Module: ROM::Configurable::InstanceMethods

Includes:
Methods
Defined in:
lib/rom/support/configurable/instance_methods.rb

Overview

Instance-level API when ROM::Configurable is included in a class

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configConfig (readonly)

Return object's configuration

Returns:



36
37
38
# File 'lib/rom/support/configurable/instance_methods.rb', line 36

def config
  @config
end

Instance Method Details

#configure {|config| ... } ⇒ Object Originally defined in module Methods

Yields:

  • (config)

Raises:

#finalize!Object

Finalize the config and freeze the object



41
42
43
44
45
46
# File 'lib/rom/support/configurable/instance_methods.rb', line 41

def finalize!
  return self if frozen?

  super
  freeze
end