Class: Delorean::ClassText
- Inherits:
-
Object
- Object
- Delorean::ClassText
- Defined in:
- lib/delorean/nodes.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #+(other) ⇒ Object
-
#initialize(text) ⇒ ClassText
constructor
A new instance of ClassText.
- #to_s ⇒ Object
Constructor Details
#initialize(text) ⇒ ClassText
Returns a new instance of ClassText.
131 132 133 |
# File 'lib/delorean/nodes.rb', line 131 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
129 130 131 |
# File 'lib/delorean/nodes.rb', line 129 def text @text end |
Instance Method Details
#+(other) ⇒ Object
135 136 137 |
# File 'lib/delorean/nodes.rb', line 135 def +(other) self.to_s + other end |
#to_s ⇒ Object
139 140 141 |
# File 'lib/delorean/nodes.rb', line 139 def to_s text end |