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

Instance Method Details

#configConfig

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

Returns:



90
91
92
# File 'lib/rom/support/configurable.rb', line 90

def config
  @config ||= Config.new
end

#configure {|config| ... } ⇒ self

Yield config instance

Yields:

Returns:

  • (self)


99
100
101
102
# File 'lib/rom/support/configurable.rb', line 99

def configure
  yield(config)
  self
end