Class: ERLE::Luple
Instance Attribute Summary
Attributes inherited from Enum
Attributes inherited from Term
Instance Method Summary collapse
-
#to_ruby ⇒ Object
register “[“]”.
Methods inherited from Enum
delimeter_regex, #initialize, parse, until_delimeter
Methods inherited from Term
enclosure, #initialize, parse, pattern, to_ruby, until_any_closing
Constructor Details
This class inherits a constructor from ERLE::Enum
Instance Method Details
#to_ruby ⇒ Object
register “[“]”
27 28 29 30 31 32 33 34 |
# File 'lib/erle/elements/tuple.rb', line 27 def to_ruby # @output = Enum.split("},{") # arr = @output.map {|el| # el.is_a?(Term) ? el.to_ruby : el # } # key = arr.delete_at(0) # hash = {key => ( arr.length>1 ? arr: arr[0])} end |