Sha256: 64a04b0ac7241f8a5a6832e47764c97f78a4279fdd97e25c8500ed4bd08b8dbc
Contents?: true
Size: 293 Bytes
Versions: 38
Compression:
Stored size: 293 Bytes
Contents
require 'haveapi/client/validator' module HaveAPI::Client class Validators::Inclusion < Validator name :include def valid? if opts[:values].is_a?(::Hash) opts[:values].keys.include?(value) else opts[:values].include?(value) end end end end
Version data entries
38 entries across 38 versions & 1 rubygems