Sha256: 6b14a9621eaa67067ddeeddf3ea0d130a7bbb63868d8277f8d6d9a55145de788
Contents?: true
Size: 316 Bytes
Versions: 5
Compression:
Stored size: 316 Bytes
Contents
module BBLib class OptsParser class Integer < BasicOption protected def format_value(value) raise InvalidArgumentException, "Argument provided for #{name} should be an integer but was '#{args[index]}'" unless value =~ /^\d+$/ value.to_i end end end end
Version data entries
5 entries across 5 versions & 1 rubygems