Method: Mooncell::Application::ClassMethods#configure

Defined in:
lib/mooncell/application.rb

#configure(&block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Configure the application

TODO: Support specify by environment

Parameters:

  • block (Proc)

    the configuration block

Since:

  • 0.1.0



56
57
58
59
60
# File 'lib/mooncell/application.rb', line 56

def configure(&block)
  @_lock.synchronize do
    @configuration = ApplicationConfiguration.new(&block)
  end
end