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
Source
# File lib/syntax_tree/yarv/instructions.rb, line 2108 def ==(other) other.is_a?(Intern) end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 2120 def call(vm) vm.push(vm.pop.to_sym) end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 2104 def deconstruct_keys(_keys) {} end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 2096 def disasm(fmt) fmt.instruction("intern") end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 2100 def to_a(_iseq) [:intern] end