Module: WaterDrop::Configurable::InstanceMethods
- Defined in:
- lib/waterdrop/configurable.rb
Overview
Instance related methods
Instance Method Summary collapse
-
#config ⇒ Node
Config root node.
-
#configure(&block) ⇒ Object
Allows for a per instance configuration (if needed).
Instance Method Details
#config ⇒ Node
Returns config root node.
34 35 36 |
# File 'lib/waterdrop/configurable.rb', line 34 def config @config ||= self.class.config.deep_dup end |
#configure(&block) ⇒ Object
Allows for a per instance configuration (if needed)
40 41 42 |
# File 'lib/waterdrop/configurable.rb', line 40 def configure(&block) config.configure(&block) end |