Class: Trxl::Function
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Trxl::Function
- Defined in:
- lib/trxl/trxl.rb
Defined Under Namespace
Classes: Closure
Instance Method Summary collapse
Instance Method Details
#eval(env = Environment.new) ⇒ Object
152 153 154 |
# File 'lib/trxl/trxl.rb', line 152 def eval(env = Environment.new) Closure.new(self, env) end |
#to_s(env = Environment.new) ⇒ Object
156 157 158 |
# File 'lib/trxl/trxl.rb', line 156 def to_s(env = Environment.new) text_value #eval(env).to_s(env) end |