class CloudSesame::Context
Attributes
table[R]
Public Class Methods
new(hash = {})
click to toggle source
# File lib/cloud_sesame/context.rb, line 14 def initialize(hash = {}) @table = hash end
Public Instance Methods
[](key, default = nil)
click to toggle source
# File lib/cloud_sesame/context.rb, line 18 def [](key, default = nil) (result = table[key.to_sym]) ? result : default ? table[key.to_sym] = default : nil end
[]=(key, value)
click to toggle source
# File lib/cloud_sesame/context.rb, line 22 def []=(key, value) table[key.to_sym] = value end