class BBLib::OptsParser::Integer
Protected Instance Methods
format_value(value)
click to toggle source
# File lib/bblib/cli/options/integer.rb, line 7 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