Class: NaiveCalculator::Environment::Function
- Inherits:
-
Struct
- Object
- Struct
- NaiveCalculator::Environment::Function
- Defined in:
- lib/naive_calculator/environment.rb
Instance Attribute Summary collapse
-
#arity ⇒ Object
Returns the value of attribute arity.
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
Instance Attribute Details
#arity ⇒ Object
Returns the value of attribute arity
3 4 5 |
# File 'lib/naive_calculator/environment.rb', line 3 def arity @arity end |
#body ⇒ Object
Returns the value of attribute body
3 4 5 |
# File 'lib/naive_calculator/environment.rb', line 3 def body @body end |
Instance Method Details
#to_s ⇒ Object
4 5 6 |
# File 'lib/naive_calculator/environment.rb', line 4 def to_s "function/#{arity}" end |