Module: ROM::Configurable Private
- Included in:
- Environment, Plugin
- Defined in:
- 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
76 77 78 |
# File 'lib/rom/support/configurable.rb', line 76 def config @config ||= Config.new end |
#configure {|config| ... } ⇒ self
Yield config instance
85 86 87 88 |
# File 'lib/rom/support/configurable.rb', line 85 def configure yield(config) self end |