Class: RSpec::Mocks::ArgumentMatchers::KindOf
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/argument_matchers.rb
Instance Method Summary collapse
- #===(actual) ⇒ Object
- #description ⇒ Object
-
#initialize(klass) ⇒ KindOf
constructor
A new instance of KindOf.
Constructor Details
#initialize(klass) ⇒ KindOf
Returns a new instance of KindOf.
293 294 295 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/argument_matchers.rb', line 293 def initialize(klass) @klass = klass end |
Instance Method Details
#===(actual) ⇒ Object
297 298 299 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/argument_matchers.rb', line 297 def ===(actual) actual.kind_of?(@klass) end |
#description ⇒ Object
301 302 303 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/argument_matchers.rb', line 301 def description "kind of #{@klass.name}" end |