Class: Noid::Rails::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/noid/rails/config.rb

Overview

Configuration parameters for creating identifiers

Instance Attribute Summary collapse

Instance Attribute Details

#identifier_in_useObject

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_classObject



21
22
23
# File 'lib/noid/rails/config.rb', line 21

def minter_class
  @minter_class ||= Minter::File
end

#namespaceObject



17
18
19
# File 'lib/noid/rails/config.rb', line 17

def namespace
  @namespace ||= 'default'
end

#statefileObject



13
14
15
# File 'lib/noid/rails/config.rb', line 13

def statefile
  @statefile ||= '/tmp/minter-state'
end

#templateObject



9
10
11
# File 'lib/noid/rails/config.rb', line 9

def template
  @template ||= '.reeddeeddk'
end