Class Spec::Mocks::ArgumentMatchers::InstanceOf

  1. lib/spec/mocks/argument_matchers.rb
Parent: Object

Methods

public class

  1. new

public instance

  1. ==

Public class methods

new (klass)
[show source]
# File lib/spec/mocks/argument_matchers.rb, line 122
        def initialize(klass)
          @klass = klass
        end

Public instance methods

== (actual)
[show source]
# File lib/spec/mocks/argument_matchers.rb, line 126
        def ==(actual)
          actual.instance_of?(@klass)
        end