Class: Rubinius::AST::AttributeAssignment
- Inherits:
-
SendWithArguments
- Object
- Node
- Send
- SendWithArguments
- Rubinius::AST::AttributeAssignment
- Defined in:
- lib/compiler/ast/sends.rb
Instance Attribute Summary
Attributes inherited from SendWithArguments
Attributes inherited from Send
#block, #check_for_local, #name, #privately, #receiver, #variable
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, receiver, name, arguments) ⇒ AttributeAssignment
constructor
A new instance of AttributeAssignment.
- #sexp_name ⇒ Object
Methods inherited from SendWithArguments
Methods inherited from Send
#arguments_sexp, #check_local_reference, #receiver_sexp, #to_sexp
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
#initialize(line, receiver, name, arguments) ⇒ AttributeAssignment
Returns a new instance of AttributeAssignment.
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/compiler/ast/sends.rb', line 71 def initialize(line, receiver, name, arguments) @line = line @receiver = receiver @privately = receiver.kind_of?(Self) ? true : false @name = :"#{name}=" @arguments = ActualArguments.new line, arguments end |
Instance Method Details
#sexp_name ⇒ Object
82 83 84 |
# File 'lib/compiler/ast/sends.rb', line 82 def sexp_name :attrasgn end |