Class: Delta::SetOperator::Enumerable
- Inherits:
-
Delta::SetOperator
- Object
- Delta::SetOperator
- Delta::SetOperator::Enumerable
- Defined in:
- lib/delta/set_operator/enumerable.rb
Constant Summary
Constants inherited from Delta::SetOperator
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(a:, b:, identifiers: nil, changes:) ⇒ Enumerable
constructor
A new instance of Enumerable.
Methods inherited from Delta::SetOperator
#a_minus_b, adapt, #b_minus_a, #intersection
Constructor Details
#initialize(a:, b:, identifiers: nil, changes:) ⇒ Enumerable
Returns a new instance of Enumerable.
8 9 10 11 12 13 14 |
# File 'lib/delta/set_operator/enumerable.rb', line 8 def initialize(a:, b:, identifiers: nil, changes:) super self.identifiers = identifiers || [:object_id] self.a = a.lazy self.b = b.lazy end |
Class Method Details
.compatible?(_a, _b) ⇒ Boolean
4 5 6 |
# File 'lib/delta/set_operator/enumerable.rb', line 4 def self.compatible?(_a, _b) true end |