class SyntaxTree::YARV::OptNilP


~~~
“”.nil?
~~~ruby
### Usage
pushes on the result.
‘nil?` method in other cases. It pops the receiver off the stack and
It returns true immediately when the receiver is `nil` and defers to the
`opt_nil_p` is an optimization applied when the method `nil?` is called.
### Summary

def ==(other)

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

def call(vm)

def call(vm)
  canonical.call(vm)
end

def canonical

def canonical
  Send.new(calldata, nil)
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { calldata: calldata }
end

def disasm(fmt)

def disasm(fmt)
  fmt.instruction("opt_nil_p", [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)
  [:opt_nil_p, calldata.to_h]
end