Class: SuperDiff::Basic::OperationTrees::CustomObject

Inherits:
DefaultObject show all
Defined in:
lib/super_diff/basic/operation_trees/custom_object.rb

Instance Attribute Summary

Attributes inherited from DefaultObject

#underlying_object

Class Method Summary collapse

Methods inherited from DefaultObject

#initialize, #pretty_print

Methods inherited from Core::AbstractOperationTree

#==, #flatten, #initialize, #perhaps_elide, #pretty_print, #to_diff

Constructor Details

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

Class Method Details

.applies_to?(value) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/super_diff/basic/operation_trees/custom_object.rb', line 7

def self.applies_to?(value)
  value.respond_to?(:attributes_for_super_diff)
end