Class: Bookit::Content::Text
- Defined in:
- lib/bookit/content/text.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Generic
Instance Method Summary collapse
-
#initialize(text, options = {}) ⇒ Text
constructor
A new instance of Text.
- #render ⇒ Object
Methods inherited from Generic
Constructor Details
#initialize(text, options = {}) ⇒ Text
Returns a new instance of Text.
6 7 8 9 10 |
# File 'lib/bookit/content/text.rb', line 6 def initialize(text, ={}) @text = text super end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/bookit/content/text.rb', line 4 def text @text end |
Instance Method Details
#render ⇒ Object
12 13 14 |
# File 'lib/bookit/content/text.rb', line 12 def render text end |