Class: Tracing::MethodFilter
- Inherits:
-
BaseFilter
- Object
- BaseFilter
- Tracing::MethodFilter
- Defined in:
- lib/filters/simple/method_filter.rb
Overview
filter on method
Instance Attribute Summary
Attributes inherited from BaseFilter
Instance Method Summary collapse
- #allow_action(msg, context) ⇒ Object
-
#initialize(options) ⇒ MethodFilter
constructor
A new instance of MethodFilter.
Methods inherited from BaseFilter
#name_allow_action, register_filters, unregister_filters
Constructor Details
#initialize(options) ⇒ MethodFilter
Returns a new instance of MethodFilter.
4 5 6 7 8 9 |
# File 'lib/filters/simple/method_filter.rb', line 4 def initialize() super() # puts "Method filter options: #{options.inspect}" # puts "use :method_rules or :method_filter" @rules = [:method_rules] || [:method_filter] || {} end |
Instance Method Details
#allow_action(msg, context) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/filters/simple/method_filter.rb', line 11 def allow_action(msg, context) puts "MethF" name = context[:method_name] # puts "allow name?: #{name}" allow = name_allow_action(name) end |