Class: Gauge::Configuration Private
- Inherits:
-
Object
- Object
- Gauge::Configuration
- Defined in:
- lib/configuration.rb
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.
Class Method Summary collapse
- .include_configured_modules ⇒ Object private
- .instance ⇒ Object private
Instance Method Summary collapse
- #include(*includes) ⇒ Object private
- #includes ⇒ Object private
-
#initialize ⇒ Configuration
constructor
private
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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 Configuration.
47 48 49 |
# File 'lib/configuration.rb', line 47 def initialize @includes=[] end |
Class Method Details
.include_configured_modules ⇒ 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.
63 64 65 66 67 68 |
# File 'lib/configuration.rb', line 63 def self.include_configured_modules # include all modules that have been configured # TODO: move this feature to something more specific, ex look at supporting Sandboxed execution. main=TOPLEVEL_BINDING.eval('self') self.instance.includes.each &main.method(:include) end |
.instance ⇒ 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.
51 52 53 |
# File 'lib/configuration.rb', line 51 def self.instance @configuration ||= Configuration.new end |
Instance Method Details
#include(*includes) ⇒ 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.
55 56 57 |
# File 'lib/configuration.rb', line 55 def include(*includes) @includes.push *includes end |
#includes ⇒ 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.
59 60 61 |
# File 'lib/configuration.rb', line 59 def includes @includes end |