Class: ERLE::Luple

Inherits:
Enum show all
Defined in:
lib/erle/elements/tuple.rb

Instance Attribute Summary

Attributes inherited from Enum

#terms

Attributes inherited from Term

#input, #output

Instance Method Summary collapse

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_rubyObject

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