Class: Toml::KeyValueList

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/tomlp/token_extensions.rb

Instance Method Summary collapse

Instance Method Details

#evaluateObject



101
102
103
104
105
106
107
# File 'lib/tomlp/token_extensions.rb', line 101

def evaluate
  key_value_list = {}
  self.elements.each do |x|
    key_value_list.merge!(x.evaluate)
  end
  return key_value_list
end