Class: Reins::Flash::NowProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/reins/flash.rb

Instance Method Summary collapse

Constructor Details

#initialize(store) ⇒ NowProxy

Returns a new instance of NowProxy.



40
41
42
# File 'lib/reins/flash.rb', line 40

def initialize(store)
  @store = store
end

Instance Method Details

#[](key) ⇒ Object



44
# File 'lib/reins/flash.rb', line 44

def [](key) = @store[key.to_s]

#[]=(key, value) ⇒ Object



46
47
48
# File 'lib/reins/flash.rb', line 46

def []=(key, value)
  @store[key.to_s] = value
end