class Onuro::Context
Attributes
data[R]
Public Class Methods
new(**options)
click to toggle source
# File lib/onuro/context.rb, line 15 def initialize(**options) @data = Hash.new(0) @data.merge!(options) end
Public Instance Methods
[](key)
click to toggle source
# File lib/onuro/context.rb, line 7 def [](key) data[key] end
[]=(key, value)
click to toggle source
# File lib/onuro/context.rb, line 11 def []=(key, value) data[key] = value end
add(key, value)
click to toggle source
# File lib/onuro/context.rb, line 20 def add(key, value) data[key] = value end