Class: Taoism::Runtime::Function
- Inherits:
-
Struct
- Object
- Struct
- Taoism::Runtime::Function
- Defined in:
- lib/taoism/runtime.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#closure ⇒ Object
Returns the value of attribute closure.
-
#name ⇒ Object
Returns the value of attribute name.
-
#params ⇒ Object
Returns the value of attribute params.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
15 16 17 |
# File 'lib/taoism/runtime.rb', line 15 def body @body end |
#closure ⇒ Object
Returns the value of attribute closure
15 16 17 |
# File 'lib/taoism/runtime.rb', line 15 def closure @closure end |
#name ⇒ Object
Returns the value of attribute name
15 16 17 |
# File 'lib/taoism/runtime.rb', line 15 def name @name end |
#params ⇒ Object
Returns the value of attribute params
15 16 17 |
# File 'lib/taoism/runtime.rb', line 15 def params @params end |
#receiver ⇒ Object
Returns the value of attribute receiver
15 16 17 |
# File 'lib/taoism/runtime.rb', line 15 def receiver @receiver end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/taoism/runtime.rb', line 16 def to_s "<fun #{name || '(lambda)'}>" end |