Module: ROM::Configurable Private
- Included in:
- Environment, Plugin
- Defined in:
- core/lib/rom/support/configurable.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
This extension is only used for environment objects to configure arbitrary options, each adapter can use them according to what they need.
Defined Under Namespace
Classes: Config
Instance Method Summary collapse
-
#config ⇒ Config
private
Return config instance.
-
#configure {|config| ... } ⇒ self
Yield config instance.
Instance Method Details
#config ⇒ Config
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.
Return config instance
86 87 88 |
# File 'core/lib/rom/support/configurable.rb', line 86 def config @config ||= Config.new end |
#configure {|config| ... } ⇒ self
Yield config instance
95 96 97 98 |
# File 'core/lib/rom/support/configurable.rb', line 95 def configure yield(config) self end |