Class: BuildTool::Cfg::Node
- Inherits:
-
MJ::Visitable
- Object
- MJ::Visitable
- BuildTool::Cfg::Node
- Defined in:
- lib/build-tool/cfg/node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(values = nil) ⇒ Node
constructor
A new instance of Node.
- #value ⇒ Object
Methods inherited from MJ::Visitable
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
#values ⇒ Object
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
#value ⇒ Object
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 |