Module: Trxl::ToIntFunction1

Defined in:
lib/trxl/trxl_grammar.rb

Instance Method Summary collapse

Instance Method Details

#eval(env = Environment.new) ⇒ Object



5826
5827
5828
# File 'lib/trxl/trxl_grammar.rb', line 5826

def eval(env = Environment.new)
  expression.eval(env).to_i
end