Module: Configure::Schema

Defined in:
lib/configure/schema.rb

Constant Summary collapse

SCHEMA =
{
  :configuration_class => Hash,
  :only => [
    :configuration_class,
    :only,
    :not_nil,
    :argument_keys,
    :defaults,
    :nested_default,
    :nested
  ],
  :not_nil => [
    :configuration_class
  ],
  :defaults => {
    :configuration_class => Hash
  },
  :nested => {
    :nested => {
      :configuration_class => Hash
    }
  }
}

Class Method Summary collapse

Class Method Details

.build(&block) ⇒ Object



30
31
32
# File 'lib/configure/schema.rb', line 30

def self.build(&block)
  Configure.process SCHEMA, &block
end