Document NamedArgs.

This commit is contained in:
Markus Reiter 2020-08-17 19:10:06 +02:00
parent 4972b1935e
commit ceeb6e6492

View File

@ -6,6 +6,9 @@ require "formulary"
module Homebrew module Homebrew
module CLI module CLI
# Helper class for loading formulae/casks from named arguments.
#
# @api private
class NamedArgs < SimpleDelegator class NamedArgs < SimpleDelegator
def initialize(*args, override_spec: nil, force_bottle: false, flags: []) def initialize(*args, override_spec: nil, force_bottle: false, flags: [])
@args = args @args = args