class Slideoff::Presentation::Slide
Public Instance Methods
extract_subtitle()
click to toggle source
# File lib/slideoff/presentation.rb, line 19 def extract_subtitle return @subtitle if @subtitle html.sub!(/<h(\d)>(.*)<\/h\1>/) { @subtitle = $2; "" } @subtitle end
extract_title()
click to toggle source
# File lib/slideoff/presentation.rb, line 13 def extract_title return @title if @title html.sub!(/<h(\d)>(.*)<\/h\1>/) { @title = $2; "" } @title end
id()
click to toggle source
# File lib/slideoff/presentation.rb, line 9 def id [section_num, number].join('-') end