class Slop::IntegerOption
Cast the option argument to an Integer.
Constants
- INT_STRING_REGEXP
Public Instance Methods
Source
# File lib/slop/types.rb, line 69 def valid?(value) value =~ INT_STRING_REGEXP end
Cast the option argument to an Integer.
# File lib/slop/types.rb, line 69 def valid?(value) value =~ INT_STRING_REGEXP end