Class: SuperDiff::RSpec::MatcherTextBuilders::RespondTo

Inherits:
Base
  • Object
show all
Defined in:
lib/super_diff/rspec/matcher_text_builders/respond_to.rb

Instance Method Summary collapse

Methods inherited from Base

#call, #matcher_description

Constructor Details

#initialize(expected_arity:, arbitrary_keywords:, expected_keywords:, unlimited_arguments:, **rest) ⇒ RespondTo

Returns a new instance of RespondTo.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/super_diff/rspec/matcher_text_builders/respond_to.rb', line 7

def initialize(
  expected_arity:,
  arbitrary_keywords:,
  expected_keywords:,
  unlimited_arguments:,
  **rest
)
  super(**rest)
  @expected_arity = expected_arity
  @arbitrary_keywords = arbitrary_keywords
  @expected_keywords = expected_keywords
  @unlimited_arguments = unlimited_arguments
end