Class: JRubyNotify::Listener
- Inherits:
-
Object
- Object
- JRubyNotify::Listener
- Includes:
- Java::NetContentobjectsJnotify::JNotifyListener
- Defined in:
- lib/jruby-notify/listener.rb
Instance Method Summary collapse
- #file_created(watch, path, file) ⇒ Object
- #file_deleted(watch, path, file) ⇒ Object
- #file_modified(watch, path, file) ⇒ Object
- #file_renamed(watch, path, file, old) ⇒ Object
-
#initialize(callback) ⇒ Listener
constructor
A new instance of Listener.
Constructor Details
#initialize(callback) ⇒ Listener
Returns a new instance of Listener.
5 6 7 |
# File 'lib/jruby-notify/listener.rb', line 5 def initialize(callback) @callback = callback end |
Instance Method Details
#file_created(watch, path, file) ⇒ Object
21 22 23 |
# File 'lib/jruby-notify/listener.rb', line 21 def file_created(watch, path, file) clean_call(path, file) end |
#file_deleted(watch, path, file) ⇒ Object
17 18 19 |
# File 'lib/jruby-notify/listener.rb', line 17 def file_deleted(watch, path, file) clean_call(path, file) end |
#file_modified(watch, path, file) ⇒ Object
13 14 15 |
# File 'lib/jruby-notify/listener.rb', line 13 def file_modified(watch, path, file) clean_call(path, file) end |
#file_renamed(watch, path, file, old) ⇒ Object
9 10 11 |
# File 'lib/jruby-notify/listener.rb', line 9 def file_renamed(watch, path, file, old) clean_call(path, file, old) end |