class SyntaxTree::YARV::PutSelf

### Summary

‘putself` pushes the current value of self onto the stack.

### Usage

~~~ruby puts “Hello, world!” ~~~

Public Instance Methods

==(other) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4684
def ==(other)
  other.is_a?(PutSelf)
end
call(vm) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4692
def call(vm)
  vm.push(vm.frame._self)
end
deconstruct_keys(_keys) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4680
def deconstruct_keys(_keys)
  {}
end
disasm(fmt) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4672
def disasm(fmt)
  fmt.instruction("putself")
end
pushes() click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4688
def pushes
  1
end
side_effects?() click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4696
def side_effects?
  false
end
to_a(_iseq) click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 4676
def to_a(_iseq)
  [:putself]
end