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