Sha256: 1dfa29f90c7b0619e9a0dcd19aa4c7a54e0c1aa5dfc8cbfd817dd948ed67857f

Contents?: true

Size: 318 Bytes

Versions: 10

Compression:

Stored size: 318 Bytes

Contents

module OpenActive
  module Validators
    class ArrayValidator < BaseValidator
      # Run validation on the given value.
      #
      # @param value [mixed] The value to validate.
      # @return [Boolean] Whether validation passes or not.
      def run(value)
        value.is_a?(Array)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/validators/array_validator.rb
openactive-0.4.0 lib/openactive/validators/array_validator.rb
openactive-0.3.0 lib/openactive/validators/array_validator.rb
openactive-0.2.2 lib/openactive/validators/array_validator.rb
openactive-0.2.1 lib/openactive/validators/array_validator.rb
openactive-0.2.0 lib/openactive/validators/array_validator.rb
openactive-0.1.2 lib/openactive/validators/array_validator.rb
openactive-0.1.1 lib/openactive/validators/array_validator.rb
openactive-0.1.0 lib/openactive/validators/array_validator.rb
openactive-0.1.0.rc1 lib/openactive/validators/array_validator.rb