Sha256: 81f1e241edb37720d9192206672a07bd2005c00db9e0e2728238d83c665d5555
Contents?: true
Size: 627 Bytes
Versions: 22
Compression:
Stored size: 627 Bytes
Contents
module Docman module Taggers class Tagger < Docman::Command @@taggers = {} #todo: docroot config in separate repos for projects def self.create(params, context = nil, caller = nil) c = @@taggers[params['handler']] if c c.new(params, context, caller, 'tagger') else raise "Bad tagger type: #{params['handler']}" end end def self.register_tagger(name) @@taggers[name] = self end def initialize(params, context = nil, caller = nil, type = nil) super(params, context, caller, type) end end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
docman-0.0.87 | lib/docman/taggers/tagger.rb |
docman-0.0.86 | lib/docman/taggers/tagger.rb |