Class: Basic101::FunctionCall
- Inherits:
-
Object
- Object
- Basic101::FunctionCall
- Includes:
- Identity
- Defined in:
- lib/basic101/function_call.rb
Instance Method Summary collapse
- #eval(runtime) ⇒ Object
-
#initialize(identifier, arguments) ⇒ FunctionCall
constructor
A new instance of FunctionCall.
Methods included from Identity
Constructor Details
#initialize(identifier, arguments) ⇒ FunctionCall
Returns a new instance of FunctionCall.
9 10 11 12 |
# File 'lib/basic101/function_call.rb', line 9 def initialize(identifier, arguments) @identifier = identifier @arguments = arguments end |
Instance Method Details
#eval(runtime) ⇒ Object
14 15 16 |
# File 'lib/basic101/function_call.rb', line 14 def eval(runtime) runtime.call_function(@identifier, argument_values(runtime)) end |