class Typhoeus::Filter
def apply_filter?(method_name)
def apply_filter?(method_name) if @options[:only] if @options[:only].instance_of? Symbol @options[:only] == method_name else @options[:only].include?(method_name) end elsif @options[:except] if @options[:except].instance_of? Symbol @options[:except] != method_name else !@options[:except].include?(method_name) end else true end end
def initialize(method_name, options = {})
def initialize(method_name, options = {}) @method_name = method_name @options = options end