class ContextFilters::Context

manipulate set of context and filters for it, allow evaluating filters in given context

Public Class Methods

new(priority_filters = nil) click to toggle source

sets up the priorities order for global context filters

# File lib/context-filters/context.rb, line 18
def initialize(priority_filters = nil)
  initialize_priority_filters(priority_filters)
end

Public Instance Methods

evaluate_filters(target, method) click to toggle source

run the given method on global and local filters @param method [Proc] the method to evaluate for filters matching context

# File lib/context-filters/context.rb, line 24
def evaluate_filters(target, method)
  super(target, method) do
    evaluate_local_filters(target, method)
  end
end