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.12.0-java lib/hamlit/identity.rb
hamlit-2.12.0 lib/hamlit/identity.rb
hamlit-2.11.1 lib/hamlit/identity.rb
hamlit-2.11.0-java lib/hamlit/identity.rb
hamlit-2.11.0 lib/hamlit/identity.rb
hamlit-2.10.1-java lib/hamlit/identity.rb
hamlit-2.10.1 lib/hamlit/identity.rb
hamlit-2.10.0-java lib/hamlit/identity.rb
hamlit-2.10.0 lib/hamlit/identity.rb
hamlit-2.9.5-java lib/hamlit/identity.rb
hamlit-2.9.4-java lib/hamlit/identity.rb
hamlit-2.9.5 lib/hamlit/identity.rb
hamlit-2.9.4 lib/hamlit/identity.rb
hamlit-2.9.3-java lib/hamlit/identity.rb
hamlit-2.9.3 lib/hamlit/identity.rb
hamlit-2.9.2-java lib/hamlit/identity.rb
hamlit-2.9.2 lib/hamlit/identity.rb
hamlit-2.9.1-java lib/hamlit/identity.rb
hamlit-2.9.1 lib/hamlit/identity.rb
hamlit-2.9.0 lib/hamlit/identity.rb