Sha256: 7b4f6cc822661e709a5290908fc0fa7af229cb61cb315b0fbe6e41e5933ce9c6

Contents?: true

Size: 205 Bytes

Versions: 76

Compression:

Stored size: 205 Bytes

Contents

# frozen_string_literal: true
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

76 entries across 76 versions & 1 rubygems

Version Path
hamlit-2.14.6 lib/hamlit/identity.rb
hamlit-2.14.6-java lib/hamlit/identity.rb
hamlit-2.14.5-java lib/hamlit/identity.rb
hamlit-2.14.5 lib/hamlit/identity.rb
hamlit-2.14.4 lib/hamlit/identity.rb
hamlit-2.14.4-java lib/hamlit/identity.rb
hamlit-2.14.3-java lib/hamlit/identity.rb
hamlit-2.14.3 lib/hamlit/identity.rb
hamlit-2.14.2-java lib/hamlit/identity.rb
hamlit-2.14.2 lib/hamlit/identity.rb
hamlit-2.14.0 lib/hamlit/identity.rb
hamlit-2.14.0-java lib/hamlit/identity.rb
hamlit-2.14.1-java lib/hamlit/identity.rb
hamlit-2.14.1 lib/hamlit/identity.rb
hamlit-2.13.2-java lib/hamlit/identity.rb
hamlit-2.13.2 lib/hamlit/identity.rb
hamlit-2.13.1-java lib/hamlit/identity.rb
hamlit-2.13.1 lib/hamlit/identity.rb
hamlit-2.13.0-java lib/hamlit/identity.rb
hamlit-2.13.0 lib/hamlit/identity.rb