Class: Presentify::Slide

Inherits:
Object
  • Object
show all
Defined in:
lib/presentify/slide.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/presentify/slide.rb', line 3

def code
  @code
end

#headObject (readonly)

Returns the value of attribute head.



3
4
5
# File 'lib/presentify/slide.rb', line 3

def head
  @head
end