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.



131
132
133
# File 'lib/delorean/nodes.rb', line 131

def initialize(text)
  @text = text
end

Instance Attribute Details

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



139
140
141
# File 'lib/delorean/nodes.rb', line 139

def to_s
  text
end