Module: Ricordami::Configuration::ClassMethods

Defined in:
lib/ricordami/configuration.rb

Instance Method Summary collapse

Instance Method Details

#configurationObject



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

def configuration
  @configuration ||= Config.new
end

#configure {|configuration| ... } ⇒ Object

Yields:

Raises:

  • (ArgumentError)


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

def configure(&block)
  raise ArgumentError.new("block missing") unless block_given?
  yield configuration
end