Sha256: 5c876ead0d703497bfdb8a1f1542940d69d2c99fee8f1e1a381ecf3484efd1f7
Contents?: true
Size: 244 Bytes
Versions: 12
Compression:
Stored size: 244 Bytes
Contents
module AngularSprinkles class KeyGenerator def initialize(args) @counter = args.fetch(:counter) end def call(object) klass = object.class count = @counter.inc(klass) "#{klass}_#{count}" end end end
Version data entries
12 entries across 12 versions & 1 rubygems