Class: CodeTools::AST::SplatAssignment
- Defined in:
- lib/rubinius/code/ast/variables.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
- #bytecode(g) ⇒ Object
-
#initialize(line, value) ⇒ SplatAssignment
constructor
A new instance of SplatAssignment.
- #to_sexp ⇒ Object
Methods inherited from Node
#ascii_graph, #attributes, #children, #defined, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk
Constructor Details
#initialize(line, value) ⇒ SplatAssignment
Returns a new instance of SplatAssignment.
344 345 346 347 |
# File 'lib/rubinius/code/ast/variables.rb', line 344 def initialize(line, value) @line = line @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
342 343 344 |
# File 'lib/rubinius/code/ast/variables.rb', line 342 def value @value end |
Instance Method Details
#bytecode(g) ⇒ Object
349 350 351 352 353 354 |
# File 'lib/rubinius/code/ast/variables.rb', line 349 def bytecode(g) pos(g) g.cast_array @value.bytecode(g) end |
#to_sexp ⇒ Object
356 357 358 |
# File 'lib/rubinius/code/ast/variables.rb', line 356 def to_sexp @value.to_sexp end |