Class: Rubinius::AST::PushActualArguments
- Inherits:
-
Object
- Object
- Rubinius::AST::PushActualArguments
- Defined in:
- lib/compiler/ast/sends.rb
Instance Method Summary collapse
-
#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.
128 129 130 131 |
# File 'lib/compiler/ast/sends.rb', line 128 def initialize(pa) @arguments = pa.arguments @value = pa.value end |
Instance Method Details
#size ⇒ Object
133 134 135 |
# File 'lib/compiler/ast/sends.rb', line 133 def size splat? ? 1 : @arguments.size + 1 end |
#splat? ⇒ Boolean
137 138 139 |
# File 'lib/compiler/ast/sends.rb', line 137 def splat? @arguments.kind_of? SplatValue or @arguments.kind_of? ConcatArgs end |
#to_sexp ⇒ Object
141 142 143 |
# File 'lib/compiler/ast/sends.rb', line 141 def to_sexp [@arguments.to_sexp, @value.to_sexp] end |