Sha256: c917afee36a3ba781c1325f404f4ada04f6f7d50e08443d95fc48369ad8412c5
Contents?: true
Size: 251 Bytes
Versions: 1
Compression:
Stored size: 251 Bytes
Contents
module Cellularity class Min attr_accessor :min def initialize(min = '') self.min = min.to_s end def valid? self.min.length == 10 && !!Integer(self.min) rescue ArgumentError, TypeError false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cellularity-1.0.0 | lib/cellularity/min.rb |