class Pallets::Context

Hash-like class that additionally holds a buffer for all write operations that occur after initialization

Public Instance Methods

[]=(key, value) click to toggle source
Calls superclass method
# File lib/pallets/context.rb, line 5
def []=(key, value)
  buffer[key] = value
  super
end
buffer() click to toggle source
# File lib/pallets/context.rb, line 15
def buffer
  @buffer ||= {}
end
merge!(other_hash) click to toggle source
Calls superclass method
# File lib/pallets/context.rb, line 10
def merge!(other_hash)
  buffer.merge!(other_hash)
  super
end