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.8.10 lib/hamlit/identity.rb
hamlit-2.8.8 lib/hamlit/identity.rb
hamlit-2.8.7 lib/hamlit/identity.rb
hamlit-2.8.6 lib/hamlit/identity.rb
hamlit-2.8.5 lib/hamlit/identity.rb
hamlit-2.8.4 lib/hamlit/identity.rb
hamlit-2.8.3 lib/hamlit/identity.rb
hamlit-2.8.2 lib/hamlit/identity.rb
hamlit-2.8.1 lib/hamlit/identity.rb
hamlit-2.8.0 lib/hamlit/identity.rb
hamlit-2.7.5 lib/hamlit/identity.rb
hamlit-2.7.3 lib/hamlit/identity.rb
hamlit-2.7.2 lib/hamlit/identity.rb
hamlit-2.7.1 lib/hamlit/identity.rb
hamlit-2.7.0 lib/hamlit/identity.rb
hamlit-2.6.2 lib/hamlit/identity.rb