Method: Squib::Args.extract_import
- Defined in:
- lib/squib/args/import.rb
.extract_import(opts) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/squib/args/import.rb', line 2 module_function def extract_import(opts) # note how we don't use ArgLoader here because it's way more complex than # what we need here. Don't need layouts or singleton expansion, so... # ...let's just do it ourselves. Import.parameters.each { |p, value| opts[p] = value unless opts.key? p } return Import.new.load! opts end |