# File lib/scrubyt/core/scraping/filters/base_filter.rb, line 55 def self.create(parent_pattern, example=nil) filter_name = (parent_pattern.type.to_s.split("_").map!{|e| e.capitalize }.join) + 'Filter' if filter_name == 'RootFilter' BaseFilter.new(parent_pattern, example) else instance_eval("#{filter_name}.new(parent_pattern, example)") end end