Sha256: 017febe6b6a8c951f57147279784433ccbcebab8928a1f7b1ee8e15dd84f1ce0

Contents?: true

Size: 180 Bytes

Versions: 26

Compression:

Stored size: 180 Bytes

Contents

module AngularSprinkles
  class Counter
    def initialize
      @klasses = {}
    end

    def inc(klass)
      @klasses[klass] ||= 0
      @klasses[klass] += 1
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
angular_sprinkles-0.3.3 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.3.2 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.3.1 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.3.0 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.14 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.13 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.12 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.11 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.10 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.9 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.8 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.7 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.6 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.5 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.4 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.3 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.2 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.1 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.2.0 lib/angular_sprinkles/counter.rb
angular_sprinkles-0.1.1 lib/angular_sprinkles/counter.rb