Sha256: 1a96924edc004a9dbe1a9a9846b845915090def625c3fe4ac13b05b750b99495
Contents?: true
Size: 328 Bytes
Versions: 10
Compression:
Stored size: 328 Bytes
Contents
module OpenActive module Validators class BoolValidator < BaseValidator # Run validation on the given value. # # @param value [mixed] The value to validate. # @return [Boolean] Whether validation passes or not. def run(value) [true, false].include?(value) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems