Sha256: 97cc78803ce2227dbcef953d536e1b36b0388cac69ca5e7d59f97880037555f2
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
module BBLib class OptsParser class BasicOption < Option def extract(index, args) args.delete_at(index) raise MissingArgumentException, "No argument was provided for #{name}" if args[index].nil? format_value(args.delete_at(index)) end protected def format_value(value) raise AbstractError end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bblib-2.0.1 | lib/bblib/cli/options/basic_option.rb |
bblib-2.0.0 | lib/bblib/cli/options/basic_option.rb |