Class: SuperDiff::RSpec::OperationTreeBuilders::ObjectHavingAttributes

Inherits:
Basic::OperationTreeBuilders::DefaultObject show all
Defined in:
lib/super_diff/rspec/operation_tree_builders/object_having_attributes.rb

Class Method Summary collapse

Methods inherited from Basic::OperationTreeBuilders::DefaultObject

#initialize

Methods inherited from Core::AbstractOperationTreeBuilder

#call

Constructor Details

This class inherits a constructor from SuperDiff::Basic::OperationTreeBuilders::DefaultObject

Class Method Details

.applies_to?(expected, _actual) ⇒ Boolean

Returns:

  • (Boolean)


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

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