Class: Hamlit::Identity

Inherits:
Object show all
Defined in:
lib/hamlit/identity.rb

Instance Method Summary collapse

Constructor Details

#initializeIdentity

Returns a new instance of Identity.


4
5
6
# File 'lib/hamlit/identity.rb', line 4

def initialize
  @unique_id = 0
end

Instance Method Details

#generateObject


8
9
10
11
# File 'lib/hamlit/identity.rb', line 8

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