Class: RLSL::Prism::IR::FieldAccess
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(receiver, field, type = nil) ⇒ FieldAccess
constructor
A new instance of FieldAccess.
Methods inherited from Node
Constructor Details
#initialize(receiver, field, type = nil) ⇒ FieldAccess
Returns a new instance of FieldAccess.
112 113 114 115 116 117 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 112 def initialize(receiver, field, type = nil) super() @receiver = receiver @field = field @type = type end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
108 109 110 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 108 def field @field end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
108 109 110 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 108 def receiver @receiver end |