Class: Nydp::Builtin::HashSet
- Inherits:
-
Object
- Object
- Nydp::Builtin::HashSet
- Defined in:
- lib/nydp/builtin/hash.rb
Instance Method Summary collapse
Instance Method Details
#invoke(vm, args) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/nydp/builtin/hash.rb', line 16 def invoke vm, args hash = args.car key = args.cdr.car value = args.cdr.cdr.car hash[key] = value vm.push_arg value end |