Sha256: 409687e96a690b2353db0bc73e7a60fa043e7136d1d318792f5117f88bc14797
Contents?: true
Size: 365 Bytes
Versions: 13
Compression:
Stored size: 365 Bytes
Contents
[ Array, Complex, Enumerable, Float, Integer, Numeric, Range, Rational, Regexp, String, Symbol, Time ].each do |type| name = type.to_s.gsub(/(.)([A-Z])/,'\1_\2').downcase # ActiveSupport/Inflector#underscore behaviour HashValidator.append_validator(HashValidator::Validator::SimpleValidator.new(name, lambda { |v| v.is_a?(type) })) end
Version data entries
13 entries across 13 versions & 1 rubygems