Module: ROM::Configurable::Initializer Private
- Defined in:
- lib/rom/support/configurable/instance_methods.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.
Initializer method which is prepended when ROM::Configurable
is included in a class
Instance Method Summary collapse
- #initialize ⇒ Object private
Instance Method Details
#initialize ⇒ Object
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.
14 15 16 17 18 19 20 21 |
# File 'lib/rom/support/configurable/instance_methods.rb', line 14 def initialize(*) # Dup settings at time of initializing to ensure setting values are specific to # this instance. This does mean that any settings defined on the class _after_ # initialization will not be available on the instance. @config = Config.new(self.class._settings.dup) super end |