class SyntaxTree::YARV::Intern
### Summary
‘intern` converts the top element of the stack to a symbol and pushes the symbol onto the stack.
### Usage
~~~ruby :“#{”foo“}” ~~~
Public Instance Methods
==(other)
click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 2055 def ==(other) other.is_a?(Intern) end
call(vm)
click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 2067 def call(vm) vm.push(vm.pop.to_sym) end
deconstruct_keys(_keys)
click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 2051 def deconstruct_keys(_keys) {} end
disasm(fmt)
click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 2043 def disasm(fmt) fmt.instruction("intern") end
pops()
click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 2059 def pops 1 end
pushes()
click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 2063 def pushes 1 end
to_a(_iseq)
click to toggle source
# File lib/syntax_tree/yarv/instructions.rb, line 2047 def to_a(_iseq) [:intern] end