类:RSpec::Matchers::BuiltIn::BeAnInstanceOf 私有
- 继承
-
BaseMatcher
- Object
- BaseMatcher
- RSpec::Matchers::BuiltIn::BeAnInstanceOf
- 定义在
- lib/rspec/matchers/built_in/be_instance_of.rb
概述
此类是私有 API 的一部分。 应尽可能避免使用此类,因为它可能在将来被删除或更改。
为 be_an_instance_of
提供实现。不建议直接实例化。
常量摘要
从 BaseMatcher 继承的常量
RSpec::Matchers::BuiltIn::BaseMatcher::UNDEFINED
实例方法摘要 折叠
从 BaseMatcher 继承的方法
#diffable?, #expects_call_stack_jump?, #initialize, #match_unless_raises, #matches?, #supports_block_expectations?
从 RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages 包含的方法
#failure_message, #failure_message_when_negated
从 Composable 包含的方法
#===, #and, #description_of, #or, should_enumerate?, surface_descriptions_in, unreadable_io?, #values_match?
构造函数详情
此类从 RSpec::Matchers::BuiltIn::BaseMatcher 继承构造函数
实例方法详情
#description ⇒String
此方法是私有 API 的一部分。 应尽可能避免使用此方法,因为它可能在将来被删除或更改。
10 11 12 |
# File 'lib/rspec/matchers/built_in/be_instance_of.rb', line 10 def description "be an instance of #{expected}" end |