Sha256: 24aa3faff76adead870c60fd43064155fee2c8e430d7018b2d02c2883c03a849
Contents?: true
Size: 249 Bytes
Versions: 1
Compression:
Stored size: 249 Bytes
Contents
# frozen_string_literal: true module ValidateParams class Types class IO def self.valid?(value) value.class.method_defined?(:size) end def self.cast(raw_value, **) raw_value.size end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
validate-params-0.10.0 | lib/validate_params/types/i_o.rb |