Sha256: be8bc7560197655c9131c5bf9365fc8872a021c89ddfdc9a55c01ea8f76bc47d
Contents?: true
Size: 292 Bytes
Versions: 7
Compression:
Stored size: 292 Bytes
Contents
module OptParseValidator # Implementation of the Integer Option class OptInteger < OptBase # @param [ String ] value # # @return [ Integer ] def validate(value) raise Error, "#{value} is not an integer" if value.to_i.to_s != value value.to_i end end end
Version data entries
7 entries across 7 versions & 1 rubygems