Module: Trxl::MaxFunction2
- Defined in:
- lib/trxl/trxl_grammar.rb
Instance Method Summary collapse
Instance Method Details
#eval(env = Environment.new) ⇒ Object
7984 7985 7986 |
# File 'lib/trxl/trxl_grammar.rb', line 7984 def eval(env = Environment.new) expressions.map { |e| e.eval(env) }.max end |
#expressions ⇒ Object
7988 7989 7990 |
# File 'lib/trxl/trxl_grammar.rb', line 7988 def expressions [ expression ] + more_expressions.elements.map { |e| e.expression } end |