Method: Bake::Arguments.extract
- Defined in:
- lib/bake/arguments.rb
.extract(recipe, arguments, **defaults) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/bake/arguments.rb', line 12 def self.extract(recipe, arguments, **defaults) # Only supply defaults that match the recipe option names: defaults = defaults.slice(*recipe.) self.new(recipe, defaults).extract(arguments) end |