Class: Rubinius::AST::AttributeAssignment

Inherits:
SendWithArguments show all
Defined in:
lib/compiler/ast/sends.rb

Instance Attribute Summary

Attributes inherited from SendWithArguments

#arguments

Attributes inherited from Send

#block, #check_for_local, #name, #privately, #receiver, #variable

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from SendWithArguments

#arguments_sexp

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_nameObject



82
83
84
# File 'lib/compiler/ast/sends.rb', line 82

def sexp_name
  :attrasgn
end