Class: ToyLangMethod
- Inherits:
-
Object
- Object
- ToyLangMethod
- Defined in:
- lib/toylang/runtime/method.rb
Instance Method Summary collapse
- #call(receiver, arguments) ⇒ Object
-
#initialize(params, body) ⇒ ToyLangMethod
constructor
A new instance of ToyLangMethod.
Constructor Details
#initialize(params, body) ⇒ ToyLangMethod
Returns a new instance of ToyLangMethod.
4 5 6 7 |
# File 'lib/toylang/runtime/method.rb', line 4 def initialize(params, body) @params = params @body = body end |