Class: RLSL::Prism::IR::Swizzle
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(receiver, components, type = nil) ⇒ Swizzle
constructor
A new instance of Swizzle.
Methods inherited from Node
Constructor Details
#initialize(receiver, components, type = nil) ⇒ Swizzle
Returns a new instance of Swizzle.
125 126 127 128 129 130 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 125 def initialize(receiver, components, type = nil) super() @receiver = receiver @components = components @type = type end |
Instance Attribute Details
#components ⇒ Object (readonly)
Returns the value of attribute components.
121 122 123 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 121 def components @components end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
121 122 123 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 121 def receiver @receiver end |