Class: Tagrity::Provider
- Inherits:
-
Object
- Object
- Tagrity::Provider
- Defined in:
- lib/tagrity/provider.rb
Class Method Summary collapse
Class Method Details
.provide(want) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/tagrity/provider.rb', line 8 def provide(want) case want when :tag_generator TagGenerator.new(provide(:config_file), provide(:tlogger)) when :tlogger Tlogger.instance when :config_file config = ConfigFile.instance config.initial_load config end end |