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-3.0.3-java lib/hamlit/identity.rb
hamlit-3.0.3 lib/hamlit/identity.rb
hamlit-3.0.2-java lib/hamlit/identity.rb
hamlit-3.0.2 lib/hamlit/identity.rb
hamlit-3.0.1-java lib/hamlit/identity.rb
hamlit-3.0.1 lib/hamlit/identity.rb
hamlit-3.0.0-java lib/hamlit/identity.rb
hamlit-3.0.0 lib/hamlit/identity.rb
hamlit-2.16.2-java lib/hamlit/identity.rb
hamlit-2.16.2 lib/hamlit/identity.rb
hamlit-2.16.1-java lib/hamlit/identity.rb
hamlit-2.16.1 lib/hamlit/identity.rb
hamlit-2.16.0-java lib/hamlit/identity.rb
hamlit-2.16.0 lib/hamlit/identity.rb
hamlit-2.15.2-java lib/hamlit/identity.rb
hamlit-2.15.2 lib/hamlit/identity.rb
hamlit-2.15.1-java lib/hamlit/identity.rb
hamlit-2.15.1 lib/hamlit/identity.rb
hamlit-2.15.0-java lib/hamlit/identity.rb
hamlit-2.15.0 lib/hamlit/identity.rb