Class: Raudi::ActionProcessor
- Inherits:
-
Object
- Object
- Raudi::ActionProcessor
- Defined in:
- lib/raudi/action_processor.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
Instance Method Summary collapse
- #[](*keys) ⇒ Object
- #[]=(*keys, value) ⇒ Object
-
#initialize ⇒ ActionProcessor
constructor
A new instance of ActionProcessor.
Constructor Details
#initialize ⇒ ActionProcessor
Returns a new instance of ActionProcessor.
7 8 9 |
# File 'lib/raudi/action_processor.rb', line 7 def initialize self.collection = {} end |
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection.
5 6 7 |
# File 'lib/raudi/action_processor.rb', line 5 def collection @collection end |
Instance Method Details
#[](*keys) ⇒ Object
11 12 13 |
# File 'lib/raudi/action_processor.rb', line 11 def [](*keys) collection[prepare_key(*keys)] end |
#[]=(*keys, value) ⇒ Object
15 16 17 |
# File 'lib/raudi/action_processor.rb', line 15 def []=(*keys, value) collection[prepare_key(*keys)] = value end |