Method: Dreck::Result#initialize

Defined in:
lib/dreck/result.rb

#initialize(args, strict: true) ⇒ Result

Returns a new instance of Result.

Parameters:

  • args (Array<String>)

    the arguments to parse

  • strict (Boolean) (defaults to: true)

    whether or not to be strict about argument absorption



17
18
19
20
21
22
# File 'lib/dreck/result.rb', line 17

def initialize(args, strict: true)
  @args = args.dup
  @strict = strict
  @expected = []
  @results = {}
end