Module: Unidom::Common

Defined in:
lib/unidom/common.rb,
lib/unidom/common/engine.rb,
lib/unidom/common/version.rb,
lib/unidom/common/data_helper.rb

Defined Under Namespace

Modules: ApplicationHelper, DataHelper, EngineExtension, YamlHelper Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, Neglection, Numeration

Constant Summary collapse

NULL_UUID =
'00000000-0000-0000-0000-000000000000'.freeze
SELF =
'~'.freeze
VERSION =
'1.9'.freeze

Class Method Summary collapse

Class Method Details

.configure {|options| ... } ⇒ Object

Yields:

  • (options)


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/unidom/common.rb', line 21

def self.configure

  options = {}
  yield options

  default_options = {
    neglected_namespaces: []
  }
  self.options = default_options.merge options

  puts 'Unidom::Common:'
  if self.options[:neglected_namespaces].present?
    puts '-- neglected_namespaces'
    puts "   -> #{self.options[:neglected_namespaces].join ', '}"
  end

end