Module: UniqueId::Base::ClassMethods
- Defined in:
- lib/unique_id/base.rb
Instance Attribute Summary collapse
-
#unique ⇒ Object
Returns the value of attribute unique.
Instance Method Summary collapse
Instance Attribute Details
#unique ⇒ Object
Returns the value of attribute unique.
38 39 40 |
# File 'lib/unique_id/base.rb', line 38 def unique @unique end |
Instance Method Details
#has_unique(*args) ⇒ Object
40 41 42 43 |
# File 'lib/unique_id/base.rb', line 40 def has_unique(*args) opts = args. @unique = ::Unique::Generator.new(args.first, opts) end |