class RSpec::Core::InclusionRules

@private

def add(*args)

def add(*args)
  set_standalone_filter(*args) || super
end

def add_location(locations)

def add_location(locations)
  replace_filters({ :locations => locations })
end

def add_with_low_priority(*args)

def add_with_low_priority(*args)
  set_standalone_filter(*args) || super
end

def include_example?(example)

def include_example?(example)
  @rules.empty? ? true : example.any_apply?(@rules)
end

def is_standalone_filter?(rules)

def is_standalone_filter?(rules)
  STANDALONE_FILTERS.any? { |key| rules.has_key?(key) }
end

def replace_filters(new_rules)

def replace_filters(new_rules)
  @rules.replace(new_rules)
  opposite.clear
end

def set_standalone_filter(updated)

def set_standalone_filter(updated)
  return true if standalone?
  if is_standalone_filter?(updated)
    replace_filters(updated)
    true
  end
end

def standalone?

def standalone?
  is_standalone_filter?(@rules)
end

def use(*args)

def use(*args)
  set_standalone_filter(*args) || super
end