Class: Rubinius::ToolSet.current::TS::AST::PushActualArguments
- Inherits:
-
Object
- Object
- Rubinius::ToolSet.current::TS::AST::PushActualArguments
- Defined in:
- lib/rubinius/ast/sends.rb
Instance Method Summary collapse
- #bytecode(g) ⇒ Object
-
#initialize(pa) ⇒ PushActualArguments
constructor
A new instance of PushActualArguments.
- #size ⇒ Object
- #splat? ⇒ Boolean
- #to_sexp ⇒ Object
Constructor Details
#initialize(pa) ⇒ PushActualArguments
Returns a new instance of PushActualArguments.
292 293 294 295 |
# File 'lib/rubinius/ast/sends.rb', line 292 def initialize(pa) @arguments = pa.arguments @value = pa.value end |
Instance Method Details
#bytecode(g) ⇒ Object
305 306 307 308 |
# File 'lib/rubinius/ast/sends.rb', line 305 def bytecode(g) @arguments.bytecode(g) @value.bytecode(g) end |
#size ⇒ Object
297 298 299 |
# File 'lib/rubinius/ast/sends.rb', line 297 def size splat? ? 1 : @arguments.size + 1 end |
#splat? ⇒ Boolean
301 302 303 |
# File 'lib/rubinius/ast/sends.rb', line 301 def splat? @arguments.splat? end |
#to_sexp ⇒ Object
310 311 312 |
# File 'lib/rubinius/ast/sends.rb', line 310 def to_sexp [@arguments.to_sexp, @value.to_sexp] end |