Sha256: 6d878c95c1f048e33b749eebfb12c9ab66b38a068c7ea0b0c6f948639ae0e8bd
Contents?: true
Size: 352 Bytes
Versions: 3
Compression:
Stored size: 352 Bytes
Contents
module Nasty class SimpleContext def initialize(store = {}) @store = store end def add(key, value) key.add_to(@store, value) end def remove(key) key.remove_from(@store) end def contains?(key) key.contained_in?(@store) end def item_for(key) key.item_from(@store) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nasty-0.0.1395464273 | lib/nasty/simple_context.rb |
nasty-0.0.1388168019 | lib/nasty/simple_context.rb |
nasty-0.0.1388167257 | lib/nasty/simple_context.rb |