Class: SlideEmUp::Presentation::Slide
- Inherits:
-
Struct
- Object
- Struct
- SlideEmUp::Presentation::Slide
- Defined in:
- lib/slide-em-up/presentation.rb
Instance Attribute Summary collapse
-
#classes ⇒ Object
Returns the value of attribute classes.
-
#html ⇒ Object
Returns the value of attribute html.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
Instance Attribute Details
#classes ⇒ Object
Returns the value of attribute classes
11 12 13 |
# File 'lib/slide-em-up/presentation.rb', line 11 def classes @classes end |
#html ⇒ Object
Returns the value of attribute html
11 12 13 |
# File 'lib/slide-em-up/presentation.rb', line 11 def html @html end |
#number ⇒ Object
Returns the value of attribute number
11 12 13 |
# File 'lib/slide-em-up/presentation.rb', line 11 def number @number end |
Instance Method Details
#extract_title ⇒ Object
12 13 14 15 16 |
# File 'lib/slide-em-up/presentation.rb', line 12 def extract_title return @title if @title html.sub!(/<h(\d)>(.*)<\/h\1>/) { @title = $2; "" } @title end |