class Sass::Media::QueryList

def merge(other)

Returns:
  • (QueryList?) - The merged list, or nil if there is no intersection.

Parameters:
  • other (QueryList) --
def merge(other)
  new_queries = queries.map {|q1| other.queries.map {|q2| q1.merge(q2)}}.flatten.compact
  return if new_queries.empty?
  QueryList.new(new_queries)
end