Sha256: 4cceafdf4e5f0465e385949d04a1a4d8ac1ea7567783ed54aa8cfcf1d1013460

Contents?: true

Size: 256 Bytes

Versions: 2

Compression:

Stored size: 256 Bytes

Contents

require_relative 'kind_assay'

# Assert that an object is an instance of a class.
#
class InstanceAssay < KindAssay

  register :instance_of

  #
  # Check assertion.
  #
  def self.pass?(object, class_type)
    object.instance_of?(class_type)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
assay-0.4.1 lib/assay/instance_assay.rb
assay-0.4.0 lib/assay/instance_assay.rb