class KindAssay

Comparison assertion for kind_of?

KindAssay.pass?(1, Integer)  #=> true
KindAssay.fail?(1, String)   #=> true

Public Class Methods

pass?(object, class_type) click to toggle source

Check assertion.

# File lib/assay/kind_assay.rb, line 13
def self.pass?(object, class_type)
  object.kind_of?(class_type)
end