module OpenActive module Validators class InstanceValidator < BaseValidator attr_accessor :classname def initialize(classname) @classname = classname end # 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?(classname) end end end end