class SyntaxTree::YARV::OptAsetWith


~~~
= value
~~~ruby
### Usage
value off the stack and pushes on the result.
string key in the ‘recv = set` format. It pops the receiver and the
`opt_aset_with` is an instruction for setting the hash value by the known
### Summary

def ==(other)

def ==(other)
  other.is_a?(OptAsetWith) && other.object == object &&
    other.calldata == calldata
end

def call(vm)

def call(vm)
  hash, value = vm.pop(2)
  vm.push(hash[object] = value)
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { object: object, calldata: calldata }
end

def disasm(fmt)

def disasm(fmt)
  fmt.instruction(
    "opt_aset_with",
    [fmt.object(object), fmt.calldata(calldata)]
  )
end

def initialize(object, calldata)

def initialize(object, calldata)
  @object = object
  @calldata = calldata
end

def length

def length
  3
end

def pops

def pops
  2
end

def pushes

def pushes
  1
end

def to_a(_iseq)

def to_a(_iseq)
  [:opt_aset_with, object, calldata.to_h]
end