Class: Delta::SetOperator::ActiveRecord

Inherits:
Delta::SetOperator show all
Defined in:
lib/delta/set_operator/active_record.rb

Constant Summary

Constants inherited from Delta::SetOperator

ADAPTERS

Class Method Summary collapse

Methods inherited from Delta::SetOperator

adapt, #initialize, #intersection, #subtract_a_from_b, #subtract_b_from_a

Constructor Details

This class inherits a constructor from Delta::SetOperator

Class Method Details

.compatible?(a, b) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/delta/set_operator/active_record.rb', line 4

def self.compatible?(a, b)
  a.is_a?(b.class) && a.class.name.include?("ActiveRecord")
end