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
164 165 166 |
# File 'lib/delorean/nodes.rb', line 164 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
162 163 164 |
# File 'lib/delorean/nodes.rb', line 162 def text @text end |
Instance Method Details
#+(other) ⇒ Object
168 169 170 |
# File 'lib/delorean/nodes.rb', line 168 def +(other) to_s + other end |
#to_s ⇒ Object
172 173 174 |
# File 'lib/delorean/nodes.rb', line 172 def to_s text end |