Sha256: 7d07d22330287fed36f14e0791ddbdba6455c9c06f0c21d9a49be31305b8ea7a

Contents?: true

Size: 231 Bytes

Versions: 17

Compression:

Stored size: 231 Bytes

Contents

module AngularSprinkles
  class ContentCache
    def initialize
      @store = {}
    end

    def set(content)
      @store[content.to_s] = true
    end

    def set?(content)
      @store.has_key?(content.to_s)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
angular_sprinkles-0.2.9 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.8 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.7 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.6 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.5 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.4 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.3 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.2 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.1 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.2.0 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.1.1 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.1.0 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.0.9 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.0.8 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.0.7 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.0.6 lib/angular_sprinkles/content_cache.rb
angular_sprinkles-0.0.5 lib/angular_sprinkles/content_cache.rb