Sha256: a1f5c0bde0002cdde1526232c485cd41e94f69e451a4c149c1dc8a62c4984138
Contents?: true
Size: 526 Bytes
Versions: 13
Compression:
Stored size: 526 Bytes
Contents
# =========================================================================== # Project: Abbot - SproutCore Build Tools # Copyright: ©2009 Apple, Inc. # portions copyright @2006-2009 Sprout Systems, Inc. # and contributors # =========================================================================== module SC module Helpers module DomIdHelper @@tick = 0 def dom_id!(type="id") @@tick += 1 return "#{type}_#{(Time.now.to_i + @@tick)}" end end end end
Version data entries
13 entries across 13 versions & 1 rubygems