1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/hamlit/unique_identifier.rb

13 lines
183 B
Ruby
Raw Normal View History

2015-11-19 12:56:55 +09:00
module Hamlit
class UniqueIdentifier
def initialize
@unique_id = 0
end
def generate
@unique_id += 1
"_hamlit_compiler#{@unique_id}"
end
end
end