Class: Noid::Rails::Config
- Inherits:
-
Object
- Object
- Noid::Rails::Config
- Defined in:
- lib/noid/rails/config.rb
Overview
Configuration parameters for creating identifiers
Instance Attribute Summary collapse
-
#identifier_in_use ⇒ Object
A check to guarantee the identifier is not already in use.
- #minter_class ⇒ Object
- #namespace ⇒ Object
- #statefile ⇒ Object
- #template ⇒ Object
Instance Attribute Details
#identifier_in_use ⇒ Object
A check to guarantee the identifier is not already in use. When true, the minter will continue to cycle through ids until it finds one that returns false
28 29 30 31 32 |
# File 'lib/noid/rails/config.rb', line 28 def identifier_in_use @identifier_in_use ||= lambda do |_id| false end end |
#minter_class ⇒ Object
21 22 23 |
# File 'lib/noid/rails/config.rb', line 21 def minter_class @minter_class ||= Minter::File end |
#namespace ⇒ Object
17 18 19 |
# File 'lib/noid/rails/config.rb', line 17 def namespace @namespace ||= 'default' end |
#statefile ⇒ Object
13 14 15 |
# File 'lib/noid/rails/config.rb', line 13 def statefile @statefile ||= '/tmp/minter-state' end |
#template ⇒ Object
9 10 11 |
# File 'lib/noid/rails/config.rb', line 9 def template @template ||= '.reeddeeddk' end |