Class: SuperDiff::RSpec::Differs::ObjectHavingAttributes

Inherits:
Basic::Differs::DefaultObject show all
Defined in:
lib/super_diff/rspec/differs/object_having_attributes.rb

Class Method Summary collapse

Methods inherited from Core::AbstractDiffer

#call

Class Method Details

.applies_to?(expected, _actual) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/super_diff/rspec/differs/object_having_attributes.rb', line 7

def self.applies_to?(expected, _actual)
  SuperDiff::RSpec.an_object_having_some_attributes?(expected)
end