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
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 # e.g., literal "x", or literal {...} val.literal_value else val end end |