Class: ContextFilters::Context

Inherits:
GlobalContext show all
Includes:
LocalContext
Defined in:
lib/context-filters/context.rb

Overview

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

Instance Attribute Summary

Attributes inherited from GlobalContext

#context, #priority_filters

Instance Method Summary collapse

Methods included from LocalContext

#evaluate_local_filters, #local_filter, #local_filters

Methods inherited from GlobalContext

#filter, #in_context, #initialize

Constructor Details

This class inherits a constructor from ContextFilters::GlobalContext

Instance Method Details

#evaluate_filters(target, method) ⇒ Object

run the given method on global and local filters

Parameters:

  • method (Proc)

    the method to evaluate for filters matching context



18
19
20
21
22
# File 'lib/context-filters/context.rb', line 18

def evaluate_filters(target, method)
  super(target, method) do
    evaluate_local_filters(target, method)
  end
end