Sha256: 65bbd82977d1e50935f2fc1c2bd26fd0fbeefa8481029da110ed4f40c33a6e5a
Contents?: true
Size: 324 Bytes
Versions: 15
Compression:
Stored size: 324 Bytes
Contents
# frozen_string_literal: true 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
15 entries across 15 versions & 1 rubygems