class SyntaxTree::YARV::PutNil

### Summary

‘putnil` pushes a global nil object onto the stack.

### Usage

~~~ruby nil ~~~

Public Instance Methods

==(other) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4498
def ==(other)
  other.is_a?(PutNil)
end
call(vm) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4510
def call(vm)
  canonical.call(vm)
end
canonical() click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4506
def canonical
  PutObject.new(nil)
end
deconstruct_keys(_keys) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4494
def deconstruct_keys(_keys)
  {}
end
disasm(fmt) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4486
def disasm(fmt)
  fmt.instruction("putnil")
end
pushes() click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4502
def pushes
  1
end
side_effects?() click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4514
def side_effects?
  false
end
to_a(_iseq) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4490
def to_a(_iseq)
  [:putnil]
end