class Sass::Selector::CommaSequence
def unify(other)
-
(Sass::SyntaxError)
- If this selector cannot be unified.
Returns:
-
(CommaSequence, nil)
- The unified selector, or nil if unification failed.
Parameters:
-
other
(CommaSequence
) --
def unify(other) results = members.map {|seq1| other.members.map {|seq2| seq1.unify(seq2)}}.flatten.compact results.empty? ? nil : CommaSequence.new(results.map {|cseq| cseq.members}.flatten) end