Method: Backup::Configuration::Helpers::ClassMethods#defaults
- Defined in:
- lib/backup/configuration/helpers.rb
#defaults ⇒ Object
Returns or yields the Configuration::Store for storing pre-configured defaults for the class.
16 17 18 19 20 21 22 23 24 |
# File 'lib/backup/configuration/helpers.rb', line 16 def defaults @configuration ||= Configuration::Store.new if block_given? yield @configuration else @configuration end end |