Module: Trxl::HashEntry1

Defined in:
lib/trxl/trxl_grammar.rb

Instance Method Summary collapse

Instance Method Details

#eval(env = Environment.new) ⇒ Object



2560
2561
2562
# File 'lib/trxl/trxl_grammar.rb', line 2560

def eval(env = Environment.new)
  { key.eval(env) => value.eval(env) }
end

#to_s(env = Environment.new) ⇒ Object



2564
2565
2566
# File 'lib/trxl/trxl_grammar.rb', line 2564

def to_s(env = Environment.new)
  text_value
end