Class: Presentify::Slide
- Inherits:
-
Object
- Object
- Presentify::Slide
- Defined in:
- lib/presentify/slide.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#head ⇒ Object
readonly
Returns the value of attribute head.
Instance Method Summary collapse
-
#initialize(content) ⇒ Slide
constructor
A new instance of Slide.
Constructor Details
#initialize(content) ⇒ Slide
Returns a new instance of Slide.
5 6 7 |
# File 'lib/presentify/slide.rb', line 5 def initialize(content) @head, @code = parse(content) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/presentify/slide.rb', line 3 def code @code end |
#head ⇒ Object (readonly)
Returns the value of attribute head.
3 4 5 |
# File 'lib/presentify/slide.rb', line 3 def head @head end |