class SyntaxTree::YARV::ConcatStrings
~~~
“#{5}”
~~~ruby
### Usage
strings.
‘objtostring` and `anytostring` to ensure the stack contents are always
This does no coercion and so is always used in conjunction with
together into a single string and pushes that string back on the stack.
`concatstrings` pops a number of strings from the stack joins them
### Summary
def ==(other)
def ==(other) other.is_a?(ConcatStrings) && other.number == number end
def call(vm)
def call(vm) vm.push(vm.pop(number).join) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { number: number } end
def disasm(fmt)
def disasm(fmt) fmt.instruction("concatstrings", [fmt.object(number)]) end
def initialize(number)
def initialize(number) @number = number end
def length
def length 2 end
def pops
def pops number end
def pushes
def pushes 1 end
def to_a(_iseq)
def to_a(_iseq) [:concatstrings, number] end