class TrailGuide::Adapters::Participants::Anonymous::Adapter

Public Instance Methods

[](key) click to toggle source
# File lib/trail_guide/adapters/participants/anonymous.rb, line 6
def [](key)
  hash[key]
end
[]=(key, value) click to toggle source
# File lib/trail_guide/adapters/participants/anonymous.rb, line 10
def []=(key, value)
  hash[key] = value
end
delete(key) click to toggle source
# File lib/trail_guide/adapters/participants/anonymous.rb, line 14
def delete(key)
  hash.delete(key)
end
destroy!() click to toggle source
# File lib/trail_guide/adapters/participants/anonymous.rb, line 18
def destroy!
  @hash = nil
end
key?(key) click to toggle source
# File lib/trail_guide/adapters/participants/anonymous.rb, line 26
def key?(key)
  hash.key?(key)
end
keys() click to toggle source
# File lib/trail_guide/adapters/participants/anonymous.rb, line 22
def keys
  hash.keys
end
to_h() click to toggle source
# File lib/trail_guide/adapters/participants/anonymous.rb, line 30
def to_h
  hash.to_h
end

Private Instance Methods

hash() click to toggle source
# File lib/trail_guide/adapters/participants/anonymous.rb, line 36
def hash
  @hash ||= {}
end