Class: Tequila::Node::Static

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, value) ⇒ Static

Returns a new instance of Static.



167
168
169
170
# File 'lib/tree.rb', line 167

def initialize label, value
  @label = label
  @value = value
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



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

def label
  @label
end

#valueObject

Returns the value of attribute value.



165
166
167
# File 'lib/tree.rb', line 165

def value
  @value
end

Instance Method Details

#to_sObject



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

def to_s
  "#{label}: #{value}"
end