Class: Lotus::Config::FrameworkConfiguration Private

Inherits:
BasicObject
Defined in:
lib/lotus/config/framework_configuration.rb

Overview

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

Collects all the settings for a given framework configuration and then forwards them when the application is loaded.

Since:

  • 0.2.0

Instance Method Summary collapse

Constructor Details

#initializeFrameworkConfiguration

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.

Returns a new instance of FrameworkConfiguration.

Since:

  • 0.2.0



11
12
13
# File 'lib/lotus/config/framework_configuration.rb', line 11

def initialize
  @settings = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &blk) ⇒ 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.

Since:

  • 0.2.0



25
26
27
# File 'lib/lotus/config/framework_configuration.rb', line 25

def method_missing(m, *args, &blk)
  @settings.push([m, args, blk])
end

Instance Method Details

#__apply(configuration) ⇒ 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.

Since:

  • 0.2.0



17
18
19
20
21
# File 'lib/lotus/config/framework_configuration.rb', line 17

def __apply(configuration)
  @settings.each do |(m, args, blk)|
    configuration.public_send(m, *args, &blk)
  end
end