Class: Log::FileReader::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/log/filereader.rb

Defined Under Namespace

Modules: EndDate, Find, Grep, NoFind, NoGrep, NoneOfLevels, OneOfLevels, StartDate

Constant Summary collapse

Types =
{
	:grep           => Grep,
	:no_grep        => NoGrep,
	:find           => Find,
	:no_find        => NoFind,
	:start_date     => StartDate,
	:end_date       => EndDate,
	:one_of_levels  => OneOfLevels,
	:none_of_levels => NoneOfLevels,
}

Instance Method Summary collapse

Constructor Details

#initialize(type, *args) ⇒ Filter

Returns a new instance of Filter.



25
26
27
28
29
# File 'lib/log/filereader.rb', line 25

def initialize(type, *args)
	extend Types[type]
	@arg1 = args.first
	@args = args
end