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
-
#config ⇒ Config
readonly
Return object's configuration.
Instance Method Summary collapse
- #configure {|config| ... } ⇒ Object included from Methods
-
#finalize! ⇒ Object
Finalize the config and freeze the object.
Instance Attribute Details
#config ⇒ Config (readonly)
Return object's configuration
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
#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 |