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.
144 145 146 147 |
# File 'lib/term-slides.rb', line 144 def initialize renderer, text @renderer = renderer @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
143 144 145 |
# File 'lib/term-slides.rb', line 143 def text @text end |
Instance Method Details
#render ⇒ Object
149 150 151 |
# File 'lib/term-slides.rb', line 149 def render @renderer.render_text self end |