Sha256: 8a9b89563752d7ae8b104a5b1101b49369cc7951be7d6604b644478065877bb7

Contents?: true

Size: 175 Bytes

Versions: 18

Compression:

Stored size: 175 Bytes

Contents

module Hamlit
  class Identity
    def initialize
      @unique_id = 0
    end

    def generate
      @unique_id += 1
      "_hamlit_compiler#{@unique_id}"
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hamlit-2.2.4 lib/hamlit/identity.rb
hamlit-2.6.1 lib/hamlit/identity.rb
hamlit-2.6.0 lib/hamlit/identity.rb
hamlit-2.5.0 lib/hamlit/identity.rb
hamlit-2.4.2 lib/hamlit/identity.rb
hamlit-2.4.1 lib/hamlit/identity.rb
hamlit-2.4.0 lib/hamlit/identity.rb
hamlit-2.3.1 lib/hamlit/identity.rb
hamlit-2.3.0 lib/hamlit/identity.rb
hamlit-2.2.3 lib/hamlit/identity.rb
hamlit-2.2.2 lib/hamlit/identity.rb
hamlit-2.2.1 lib/hamlit/identity.rb
hamlit-2.2.0 lib/hamlit/identity.rb
hamlit-2.1.2 lib/hamlit/identity.rb
hamlit-2.1.1 lib/hamlit/identity.rb
hamlit-2.1.0 lib/hamlit/identity.rb
hamlit-2.0.2 lib/hamlit/identity.rb
hamlit-2.0.1 lib/hamlit/identity.rb