module Taxonomite::Configurable

Allows the class to be configured on its very own, such that it creates its own @configuration class object. Thus if ClassB inherited from ClassA and ClassA extends Configurable, then both could have their own configuration options? Any class that extends this must declare a create_configuration class method.

Attributes

configuration[W]

Public Instance Methods

config() click to toggle source
# File lib/taxonomite/taxonomite_configuration.rb, line 18
def config
  @configuration ||= create_configuration
end
configure() { |config| ... } click to toggle source
# File lib/taxonomite/taxonomite_configuration.rb, line 22
def configure
  yield(config)
end
reset() click to toggle source
# File lib/taxonomite/taxonomite_configuration.rb, line 26
def reset
  @configuration = create_configuration
end