Class: Mnemosyne::Registry::Monitor
- Inherits:
-
Object
- Object
- Mnemosyne::Registry::Monitor
- Defined in:
- lib/mnemosyne/registry.rb
Instance Method Summary collapse
- #<<(registration) ⇒ Object
- #delete(path) ⇒ Object
-
#initialize ⇒ Monitor
constructor
A new instance of Monitor.
Constructor Details
#initialize ⇒ Monitor
Returns a new instance of Monitor.
70 71 72 |
# File 'lib/mnemosyne/registry.rb', line 70 def initialize @requirements = Hash.new {|h, k| h[k] = Set.new } end |
Instance Method Details
#<<(registration) ⇒ Object
78 79 80 81 82 |
# File 'lib/mnemosyne/registry.rb', line 78 def <<(registration) registration.require_paths.each do |path| @requirements[path] << registration end end |
#delete(path) ⇒ Object
74 75 76 |
# File 'lib/mnemosyne/registry.rb', line 74 def delete(path) @requirements.delete(path) end |