class Slop::IntOption
Cast the option argument to an Integer.
Public Instance Methods
call(value)
click to toggle source
# File lib/slop/types.rb, line 46 def call(value) value =~ /\A\d+\z/ && value.to_i end