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