Sha256: 761b890d40c9c6f639c090a2c4d528cc3281f964716ad790e80227010eda7928
Contents?: true
Size: 774 Bytes
Versions: 17
Compression:
Stored size: 774 Bytes
Contents
module RequestLogAnalyzer::Filter # Filter class loader using const_missing # This function will automatically load the class file based on the name of the class def self.const_missing(const) RequestLogAnalyzer::load_default_class_file(self, const) end # Base filter class used to filter input requests. # All filters should interit from this base. class Base attr_reader :file_format, :options # Initializer # <tt>format</tt> The file format # <tt>options</tt> Are passed to the filters. def initialize(format, options = {}) @file_format = format @options = options end # Return the request if the request should be kept. # Return nil otherwise. def filter(request) request end end end
Version data entries
17 entries across 17 versions & 2 rubygems