Class: Delorean::ClassText

Inherits:
Object
  • Object
show all
Defined in:
lib/delorean/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ ClassText

Returns a new instance of ClassText.



164
165
166
# File 'lib/delorean/nodes.rb', line 164

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject (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_sObject



172
173
174
# File 'lib/delorean/nodes.rb', line 172

def to_s
  text
end