class ASeriesOfTubes::TubeState::Flash

Attributes

next[R]
now[R]
store[R]

Public Class Methods

new(existing_flash_data = {}) click to toggle source
# File lib/a_series_of_tubes/tube_state/flash.rb, line 8
def initialize existing_flash_data = {}
  @store = existing_flash_data
  @next = {}
end

Public Instance Methods

[](key) click to toggle source
# File lib/a_series_of_tubes/tube_state/flash.rb, line 13
def [] key
  self.store[key]
end
[]=(key, value) click to toggle source
# File lib/a_series_of_tubes/tube_state/flash.rb, line 17
def []= key, value
  self.next[key] = value
end