Class: TermSlides::Text
- Inherits:
-
Object
- Object
- TermSlides::Text
- Defined in:
- lib/term-slides.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(renderer, text) ⇒ Text
constructor
A new instance of Text.
- #render ⇒ Object
Constructor Details
#initialize(renderer, text) ⇒ Text
Returns a new instance of Text.
120 121 122 123 |
# File 'lib/term-slides.rb', line 120 def initialize renderer, text @renderer = renderer @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
119 120 121 |
# File 'lib/term-slides.rb', line 119 def text @text end |
Instance Method Details
#render ⇒ Object
125 126 127 |
# File 'lib/term-slides.rb', line 125 def render @renderer.render_text self end |