Sha256: a44691572a597ec9a62b8a5fcc38f07db0d5f9d86269952ee7bc5c151b330ff7
Contents?: true
Size: 292 Bytes
Versions: 10
Compression:
Stored size: 292 Bytes
Contents
module OptParseValidator # Implementation of the Positive Integer Option class OptPositiveInteger < OptInteger # @param [ String ] value # # @return [ Integer ] def validate(value) i = super(value) fail "#{i} is not > 0" unless i > 0 i end end end
Version data entries
10 entries across 10 versions & 1 rubygems