class SyntaxTree::YARV::OptSendWithoutBlock
### Summary
‘opt_send_without_block` is a specialization of the send instruction that occurs when a method is being called without a block. It pops the receiver and the arguments off the stack and pushes on the result.
### Usage
~~~ruby puts “Hello, world!” ~~~
Attributes
Public Class Methods
Source
# File lib/syntax_tree/yarv/instructions.rb, line 4227 def initialize(calldata) @calldata = calldata end
Public Instance Methods
Source
# File lib/syntax_tree/yarv/instructions.rb, line 4243 def ==(other) other.is_a?(OptSendWithoutBlock) && other.calldata == calldata end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 4263 def call(vm) canonical.call(vm) end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 4259 def canonical Send.new(calldata, nil) end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 4239 def deconstruct_keys(_keys) { calldata: calldata } end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 4231 def disasm(fmt) fmt.instruction("opt_send_without_block", [fmt.calldata(calldata)]) end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 4251 def pops 1 + calldata.argc end
Source
# File lib/syntax_tree/yarv/instructions.rb, line 4235 def to_a(_iseq) [:opt_send_without_block, calldata.to_h] end