Class: Hamlit::Identity
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize ⇒ Identity
constructor
A new instance of Identity.
Constructor Details
#initialize ⇒ Identity
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
#generate ⇒ Object
8 9 10 11 |
# File 'lib/hamlit/identity.rb', line 8 def generate @unique_id += 1 "_hamlit_compiler#{@unique_id}" end |