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