Module: Satis::Options::ClassMethods

Defined in:
lib/satis/configuration.rb

Instance Method Summary collapse

Instance Method Details

#option(name, default: nil) ⇒ Object



6
7
8
9
# File 'lib/satis/configuration.rb', line 6

def option(name, default: nil)
  attr_accessor(name)
  schema[name] = default
end

#schemaObject



11
12
13
# File 'lib/satis/configuration.rb', line 11

def schema
  @schema ||= {}
end