Module: Trxl::ToArrayFunction1
- Defined in:
- lib/trxl/trxl_grammar.rb
Instance Method Summary collapse
Instance Method Details
#eval(env = Environment.new) ⇒ Object
6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 |
# File 'lib/trxl/trxl_grammar.rb', line 6016 def eval(env = Environment.new) result = expression.eval(env) if result.is_a?(Array) result elsif result.is_a?(Hash) result.to_a else [ result ] end end |