Class: SlideHero::Note

Inherits:
Object
  • Object
show all
Defined in:
lib/slide_hero/note.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Note

Returns a new instance of Note.



4
5
6
# File 'lib/slide_hero/note.rb', line 4

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/slide_hero/note.rb', line 3

def text
  @text
end

Instance Method Details

#compileObject



8
9
10
# File 'lib/slide_hero/note.rb', line 8

def compile
  %{<aside class="notes">#{text}</aside>}
end