class SyntaxTree::YARV::SetN


~~~
= ‘val’
~~~ruby
### Usage
stack. It then pushes that value onto the top of the stack as well.
‘setn` sets a value in the stack to a value popped off the top of the
### Summary

def ==(other)

def ==(other)
  other.is_a?(SetN) && other.number == number
end

def call(vm)

def call(vm)
  vm.stack[-number - 1] = vm.stack.last
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { number: number }
end

def disasm(fmt)

def disasm(fmt)
  fmt.instruction("setn", [fmt.object(number)])
end

def initialize(number)

def initialize(number)
  @number = number
end

def length

def length
  2
end

def pops

def pops
  1
end

def pushes

def pushes
  1
end

def to_a(_iseq)

def to_a(_iseq)
  [:setn, number]
end