Class: Ptolemy::TOML::KeyValue

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/ptolemy/nodes.rb

Overview

Represents an element of the form key = value

Instance Method Summary collapse

Instance Method Details

#to_valueArray

Evaluate both key and value and return as a 2 element array

Returns:

  • (Array)

    Two-element array containing key and value



80
81
82
# File 'lib/ptolemy/nodes.rb', line 80

def to_value
  [key.to_value, value.to_value]
end