class SyntaxTree::YARV::DupHash
~~~
{ a: 1 }
~~~ruby
### Usage
`duphash` dups a Hash literal and pushes it onto the stack.
### Summary
def ==(other)
def ==(other) other.is_a?(DupHash) && other.object == object end
def call(vm)
def call(vm) vm.push(object.dup) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { object: object } end
def disasm(fmt)
def disasm(fmt) fmt.instruction("duphash", [fmt.object(object)]) end
def initialize(object)
def initialize(object) @object = object end
def length
def length 2 end
def pushes
def pushes 1 end
def to_a(_iseq)
def to_a(_iseq) [:duphash, object] end