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