Class: RLSL::Prism::IR::Swizzle

Inherits:
Node
  • Object
show all
Defined in:
lib/rlsl/prism/ir/expressions.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#type

Instance Method Summary collapse

Methods inherited from Node

#accept, visits

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

#componentsObject (readonly)

Returns the value of attribute components.



121
122
123
# File 'lib/rlsl/prism/ir/expressions.rb', line 121

def components
  @components
end

#receiverObject (readonly)

Returns the value of attribute receiver.



121
122
123
# File 'lib/rlsl/prism/ir/expressions.rb', line 121

def receiver
  @receiver
end