Method: Cucumber::Formatter::CurlOptionParser.remove_arg_for

Defined in:
lib/cucumber/formatter/curl_option_parser.rb

.remove_arg_for(args, arg) ⇒ Object

TODO: [LH] -> Switch below methods to private

Raises:

  • (StandardError)
[View source] [View on GitHub]

35
36
37
38
39
# File 'lib/cucumber/formatter/curl_option_parser.rb', line 35

def self.remove_arg_for(args, arg)
  return args.shift unless args.empty?

  raise StandardError, "Missing argument for #{arg}"
end