Class: SlideHero::Note
- Inherits:
-
Object
- Object
- SlideHero::Note
- Defined in:
- lib/slide_hero/note.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(text) ⇒ Note
constructor
A new instance of Note.
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
#text ⇒ Object (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
#compile ⇒ Object
8 9 10 |
# File 'lib/slide_hero/note.rb', line 8 def compile %{<aside class="notes">#{text}</aside>} end |