Method: Docman::TargetChecker.create

Defined in:
lib/docman/commands/target_checker.rb

.create(params = nil, context = nil) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/docman/commands/target_checker.rb', line 8

def self.create(params = nil, context = nil)
  c = @@checkers[params['handler']]
  if c
    c.new(params, context)
  else
    raise "Bad checker type: #{type}"
  end
end