Module: ConfigSL::Collection::ClassMethods
- Defined in:
- lib/configsl/collection.rb
Overview
Class methods necessary for defining collection options.
Instance Method Summary collapse
Instance Method Details
#option(name, opts = {}) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/configsl/collection.rb', line 43 def option(name, opts = {}) # If the option was set using the shorthand syntax, convert it to an # options hash for consistent handling. opts[:collection] = { type: opts[:collection], key: nil } \ if opts[:collection].is_a?(Class) super end |