Module: Config::Validation::Schema

Included in:
Config
Defined in:
lib/config/validation/schema.rb

Constant Summary collapse

@@schema =
nil

Instance Method Summary collapse

Instance Method Details

#schema(&block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/config/validation/schema.rb', line 11

def schema(&block)
  if block_given?
    @@schema = Dry::Validation.Schema(&block)
  else
    @@schema
  end
end