Module: MoonshotRails

Defined in:
lib/moonshot-rails.rb,
lib/moonshot-rails/config.rb,
lib/moonshot-rails/engine.rb,
lib/moonshot-rails/version.rb

Defined Under Namespace

Classes: Config, Engine

Constant Summary collapse

MissingConfig =
Class.new(StandardError)
VERSION =
'0.0.15'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



13
14
15
# File 'lib/moonshot-rails.rb', line 13

def configuration
  @configuration
end

Class Method Details

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

Yields:



15
16
17
18
# File 'lib/moonshot-rails.rb', line 15

def configure
  self.configuration ||= Config.new
  yield(configuration)
end