@private
# File lib/rspec/core/filter_manager.rb, line 207 def add(*args) set_standalone_filter(*args) || super end
# File lib/rspec/core/filter_manager.rb, line 203 def add_location(locations) replace_filters({ :locations => locations }) end
# File lib/rspec/core/filter_manager.rb, line 211 def add_with_low_priority(*args) set_standalone_filter(*args) || super end
# File lib/rspec/core/filter_manager.rb, line 219 def include_example?(example) @rules.empty? ? true : example.any_apply?(@rules) end
# File lib/rspec/core/filter_manager.rb, line 223 def standalone? is_standalone_filter?(@rules) end
# File lib/rspec/core/filter_manager.rb, line 215 def use(*args) set_standalone_filter(*args) || super end
# File lib/rspec/core/filter_manager.rb, line 243 def is_standalone_filter?(rules) STANDALONE_FILTERS.any? { |key| rules.has_key?(key) } end
# File lib/rspec/core/filter_manager.rb, line 238 def replace_filters(new_rules) @rules.replace(new_rules) opposite.clear end
# File lib/rspec/core/filter_manager.rb, line 229 def set_standalone_filter(updated) return true if standalone? if is_standalone_filter?(updated) replace_filters(updated) true end end