class Slop::IntegerOption

Cast the option argument to an Integer.

Public Instance Methods

call(value) click to toggle source
# File lib/slop/types.rb, line 53
def call(value)
  value =~ /\A[+-]?\d+\z/ && value.to_i
end