Class: RedShift::Component::EventPhaseItem
Constant Summary
collapse
- E_IDX =
0
- V_IDX =
1
- I_IDX =
2
Instance Method Summary
collapse
#index_accessor, #index_reader, #index_writer
Methods inherited from Array
#diff, #filter
Instance Method Details
178
|
# File 'lib/redshift/component.rb', line 178
def inspect; "<Event #{event}: #{value.inspect}>"; end
|
#value=(val) ⇒ Object
165
166
167
168
169
170
171
172
173
174
175
176
|
# File 'lib/redshift/component.rb', line 165
def value=(val)
self[V_IDX] = case val
when Proc
DynamicEventValue.new(&val)
when String
ExprEventValue.new val
when Literal
val.literal_value
else
val
end
end
|