class SyntaxTree::YARV::SetSpecial
~~~
baz if (foo == 1) .. (bar == 1)
~~~ruby
### Usage
the key given as its only argument.
local variable to that value. The special local variable is determined by
`setspecial` pops a value off the top of the stack and sets a special
### Summary
def ==(other)
def ==(other) other.is_a?(SetSpecial) && other.key == key end
def call(vm)
def call(vm) case key when GetSpecial::SVAR_LASTLINE raise NotImplementedError, "setspecial SVAR_LASTLINE" when GetSpecial::SVAR_BACKREF raise NotImplementedError, "setspecial SVAR_BACKREF" when GetSpecial::SVAR_FLIPFLOP_START vm.frame_svar.svars[GetSpecial::SVAR_FLIPFLOP_START] end end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { key: key } end
def disasm(fmt)
def disasm(fmt) fmt.instruction("setspecial", [fmt.object(key)]) end
def initialize(key)
def initialize(key) @key = key end
def length
def length 2 end
def pops
def pops 1 end
def to_a(_iseq)
def to_a(_iseq) [:setspecial, key] end