类:RSpec::Matchers::BuiltIn::YieldWithArgs 私有

继承
BaseMatcher
  • Object
显示全部
定义于
lib/rspec/matchers/built_in/yield.rb

概述

此类属于私有 API。 尽可能避免使用此类,因为它可能会在未来被移除或更改。

提供 yield_with_args 的实现。不建议直接实例化。

常量摘要

BaseMatcher 继承的常量

BaseMatcher::UNDEFINED

实例方法摘要 收起

BaseMatcher 继承的方法

#diffable?, #expects_call_stack_jump?, #match_unless_raises

Composable 包含的方法

#===, #and, #description_of, #or, should_enumerate?, surface_descriptions_in, unreadable_io?, #values_match?

构造函数详细信息

#initialize(*args) ⇒YieldWithArgs

此方法属于私有 API。 尽可能避免使用此方法,因为它可能会在未来被移除或更改。

返回一个新的 YieldWithArgs 实例。

200
201
202
# File 'lib/rspec/matchers/built_in/yield.rb', line 200
def initialize(*args)
  @expected = args
end