Module: Trxl::PrintLineFunction1

Defined in:
lib/trxl/trxl_grammar.rb

Instance Method Summary collapse

Instance Method Details

#eval(env = Environment.new) ⇒ Object



5327
5328
5329
5330
# File 'lib/trxl/trxl_grammar.rb', line 5327

def eval(env = Environment.new)
  result = expression.eval(env)
  puts (result.is_a?(Array) || result.is_a?(Hash)) ? result.inspect : result.to_s
end