Module: Mensa::Options::ClassMethods

Defined in:
lib/mensa/configuration.rb

Instance Method Summary collapse

Instance Method Details

#option(name, default: nil) ⇒ Object



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

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

#schemaObject



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

def schema
  @schema ||= {}
end