Class: Rfam::Listener
- Inherits:
-
Object
- Object
- Rfam::Listener
- Includes:
- FileAlterationListener
- Defined in:
- lib/rfam/listener.rb
Instance Method Summary collapse
- #onDirectoryChange(path) ⇒ Object
- #onDirectoryCreate(path) ⇒ Object
- #onDirectoryDelete(path) ⇒ Object
- #onFileChange(path) ⇒ Object
- #onFileCreate(path) ⇒ Object
- #onFileDelete(path) ⇒ Object
- #onStart(observer) ⇒ Object
- #onStop(observer) ⇒ Object
Instance Method Details
#onDirectoryChange(path) ⇒ Object
5 6 7 |
# File 'lib/rfam/listener.rb', line 5 def onDirectoryChange(path) emit Alteration.new(path, :directory, :change, now) end |
#onDirectoryCreate(path) ⇒ Object
9 10 11 |
# File 'lib/rfam/listener.rb', line 9 def onDirectoryCreate(path) emit Alteration.new(path, :directory, :create, now) end |
#onDirectoryDelete(path) ⇒ Object
13 14 15 |
# File 'lib/rfam/listener.rb', line 13 def onDirectoryDelete(path) emit Alteration.new(path, :directory, :delete, now) end |
#onFileChange(path) ⇒ Object
17 18 19 |
# File 'lib/rfam/listener.rb', line 17 def onFileChange(path) emit Alteration.new(path, :file, :change, now) end |
#onFileCreate(path) ⇒ Object
21 22 23 |
# File 'lib/rfam/listener.rb', line 21 def onFileCreate(path) emit Alteration.new(path, :file, :create, now) end |
#onFileDelete(path) ⇒ Object
25 26 27 |
# File 'lib/rfam/listener.rb', line 25 def onFileDelete(path) emit Alteration.new(path, :file, :delete, now) end |
#onStart(observer) ⇒ Object
29 30 31 |
# File 'lib/rfam/listener.rb', line 29 def onStart(observer) # no-op end |
#onStop(observer) ⇒ Object
33 34 35 |
# File 'lib/rfam/listener.rb', line 33 def onStop(observer) # no-op end |