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
90 91 92 |
# File 'lib/rom/support/configurable.rb', line 90 def config @config ||= Config.new end |
#configure {|config| ... } ⇒ self
Yield config instance
99 100 101 102 |
# File 'lib/rom/support/configurable.rb', line 99 def configure yield(config) self end |