Class: Raudi::ActionProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/raudi/action_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeActionProcessor

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

#collectionObject

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