Module: Trxl::MinFunction2
- Defined in:
- lib/trxl/trxl_grammar.rb
Instance Method Summary collapse
Instance Method Details
#eval(env = Environment.new) ⇒ Object
7754 7755 7756 |
# File 'lib/trxl/trxl_grammar.rb', line 7754 def eval(env = Environment.new) expressions.map { |e| e.eval(env) }.min end |
#expressions ⇒ Object
7758 7759 7760 |
# File 'lib/trxl/trxl_grammar.rb', line 7758 def expressions [ expression ] + more_expressions.elements.map { |e| e.expression } end |