Module: ROM::Configurable Private
- Included in:
- Environment, Plugin, SchemaPlugin
- 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
92 93 94 |
# File 'lib/rom/support/configurable.rb', line 92 def config @config ||= Config.new end |
#configure {|config| ... } ⇒ self
Yield config instance
101 102 103 104 |
# File 'lib/rom/support/configurable.rb', line 101 def configure yield(config) self end |