Class: BuildTool::Cfg::Node

Inherits:
MJ::Visitable show all
Defined in:
lib/build-tool/cfg/node.rb

Direct Known Subclasses

NodeList

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from MJ::Visitable

#accept

Constructor Details

#initialize(values = nil) ⇒ Node

Returns a new instance of Node.



17
18
19
# File 'lib/build-tool/cfg/node.rb', line 17

def initialize(values = nil)
    @values = values
end

Instance Attribute Details

#valuesObject

Returns the value of attribute values.



10
11
12
# File 'lib/build-tool/cfg/node.rb', line 10

def values
  @values
end

Instance Method Details

#valueObject



12
13
14
15
# File 'lib/build-tool/cfg/node.rb', line 12

def value
    values
    #raise StandardError, "1 Value expected.#{values.length} values found!."
end