Parent

Methods

Class/Module Index [+]

Quicksearch

Spec::Mocks::ArgumentMatchers::InstanceOf

Public Class Methods

new(klass) click to toggle source
# File lib/spec/mocks/argument_matchers.rb, line 126
def initialize(klass)
  @klass = klass
end

Public Instance Methods

==(actual) click to toggle source
# File lib/spec/mocks/argument_matchers.rb, line 130
def ==(actual)
  actual.instance_of?(@klass)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.