Class: ERLE::Tuple
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
Attributes inherited from Enum
Attributes inherited from Term
Instance Method Summary collapse
-
#initialize(elements) ⇒ Tuple
constructor
A new instance of Tuple.
- #to_ruby ⇒ Object
Methods inherited from Enum
delimeter_regex, parse, until_delimeter
Methods inherited from Term
enclosure, parse, pattern, to_ruby, until_any_closing
Constructor Details
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
7 8 9 |
# File 'lib/erle/elements/tuple.rb', line 7 def key @key end |
Instance Method Details
#to_ruby ⇒ Object
14 15 16 |
# File 'lib/erle/elements/tuple.rb', line 14 def to_ruby @output ||= { @key => one_or_all(terms_to_ruby) } end |