class Raamen::Now

Attributes

now[R]

Public Class Methods

new(now) click to toggle source
# File lib/raamen/flash.rb, line 27
def initialize(now)
  @now = Hash[now.map{ |k,v| [k.to_sym, v] }]
end

Public Instance Methods

[](key) click to toggle source
# File lib/raamen/flash.rb, line 31
def [](key)
  self.now[key.to_sym]
end
[]=(key, val) click to toggle source
# File lib/raamen/flash.rb, line 35
def []=(key, val)
  self.now[key.to_sym] = val
end