class SyntaxTree::YARV::Legacy::OptNewArrayMax
~~~
[a, b, c].max
~~~ruby
### Usage
stack and pushes on the result.
is called on an array literal. It pops the values of the array off the
`opt_newarray_max` is a specialization that occurs when the ‘max` method
### Summary
def ==(other)
def ==(other) other.is_a?(OptNewArrayMax) && other.number == number end
def call(vm)
def call(vm) vm.push(vm.pop(number).max) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { number: number } end
def disasm(fmt)
def disasm(fmt) fmt.instruction("opt_newarray_max", [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) [:opt_newarray_max, number] end