Class: Rubinius::ToolSet.current::TS::AST::PushActualArguments

Inherits:
Object
  • Object
show all
Defined in:
lib/rubinius/ast/sends.rb

Instance Method Summary collapse

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

#sizeObject



297
298
299
# File 'lib/rubinius/ast/sends.rb', line 297

def size
  splat? ? 1 : @arguments.size + 1
end

#splat?Boolean

Returns:

  • (Boolean)


301
302
303
# File 'lib/rubinius/ast/sends.rb', line 301

def splat?
  @arguments.splat?
end

#to_sexpObject



310
311
312
# File 'lib/rubinius/ast/sends.rb', line 310

def to_sexp
  [@arguments.to_sexp, @value.to_sexp]
end