Class: Toml::KeyValue
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Toml::KeyValue
- Defined in:
- lib/tomlp/token_extensions.rb
Instance Method Summary collapse
Instance Method Details
#evaluate ⇒ Object
92 93 94 95 96 97 |
# File 'lib/tomlp/token_extensions.rb', line 92 def evaluate values = self.elements.map {|x| x.evaluate} key_value = {} key_value[values[0]] = values[2] return key_value end |