Module: Trxl::HashLiteral1

Defined in:
lib/trxl/trxl_grammar.rb

Instance Method Summary collapse

Instance Method Details

#eval(env = Environment.new) ⇒ Object



2327
2328
2329
# File 'lib/trxl/trxl_grammar.rb', line 2327

def eval(env = Environment.new)
  hash_entry_list.eval(env)
end

#to_s(env = Environment.new) ⇒ Object



2331
2332
2333
# File 'lib/trxl/trxl_grammar.rb', line 2331

def to_s(env = Environment.new)
  "(#{hash_entry_list.to_s(env)})"
end