Module: Logasm::Preprocessors
- Defined in:
- lib/logasm/preprocessors.rb,
lib/logasm/preprocessors/blacklist.rb,
lib/logasm/preprocessors/whitelist.rb
Defined Under Namespace
Classes: Blacklist, Whitelist
Class Method Summary
collapse
Class Method Details
.get(type, arguments) ⇒ Object
3
4
5
6
7
|
# File 'lib/logasm/preprocessors.rb', line 3
def self.get(type, arguments)
require_relative "preprocessors/#{type.to_s}"
preprocessor = const_get(Inflecto.camelize(type.to_s))
preprocessor.new(arguments)
end
|