Class: RSpec::Mocks::ArgumentMatchers::KindOf Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rspec-mocks/lib/rspec/mocks/argument_matchers.rb |
Class Method Summary
- .new(klass) ⇒ KindOf constructor Internal use only
Instance Method Summary
- #===(actual) Internal use only
- #description Internal use only
Instance Method Details
#===(actual)
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/argument_matchers.rb', line 341
def ===(actual) actual.kind_of?(@klass) end
#description
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/argument_matchers.rb', line 345
def description "kind of #{@klass.name}" end