module Micro::Attributes::Features::Accept::Validate::KindOf
Public Class Methods
accept_failed(exp)
click to toggle source
# File lib/micro/attributes/features/accept.rb, line 95 def self.accept_failed(exp); "expected to be a kind of #{exp}"; end
call(exp, val)
click to toggle source
# File lib/micro/attributes/features/accept.rb, line 94 def self.call(exp, val); val.kind_of?(exp); end
call?(exp)
click to toggle source
# File lib/micro/attributes/features/accept.rb, line 93 def self.call?(exp); exp.is_a?(Class) || exp.is_a?(Module); end
reject_failed(exp)
click to toggle source
# File lib/micro/attributes/features/accept.rb, line 96 def self.reject_failed(exp); "expected to not be a kind of #{exp}"; end