class SyntaxTree::YARV::ObjToString


~~~
β€œ#{5}”
~~~ruby
### Usage
etc. For everything else it calls β€˜to_s`.
It has various fast paths for classes like String, Symbol, Module, Class,
then pushes the result back to the stack.
`objtostring` pops a value from the stack, calls `to_s` on that value and
### Summary

def ==(other)

def ==(other)
  other.is_a?(ObjToString) && other.calldata == calldata
end

def call(vm)

def call(vm)
  vm.push(vm.pop.to_s)
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { calldata: calldata }
end

def disasm(fmt)

def disasm(fmt)
  fmt.instruction("objtostring", [fmt.calldata(calldata)])
end

def initialize(calldata)

def initialize(calldata)
  @calldata = calldata
end

def length

def length
  2
end

def pops

def pops
  1
end

def pushes

def pushes
  1
end

def to_a(_iseq)

def to_a(_iseq)
  [:objtostring, calldata.to_h]
end