Class: DirectoryWatcher::Event
- Inherits:
-
Struct
- Object
- Struct
- DirectoryWatcher::Event
- Defined in:
- lib/directory_watcher.rb
Overview
An Event
structure contains the type of the event and the file path to which the event pertains. The type can be one of the following:
:added => file has been added to the directory
:modified => file has been modified (either mtime or size or both
have changed)
:removed => file has been removed from the directory
:stable => file has stabilized since being added or modified
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
234 235 236 |
# File 'lib/directory_watcher.rb', line 234 def path @path end |
#type ⇒ Object
Returns the value of attribute type
234 235 236 |
# File 'lib/directory_watcher.rb', line 234 def type @type end |
Instance Method Details
#to_s ⇒ Object
235 |
# File 'lib/directory_watcher.rb', line 235 def to_s( ) "#{type} '#{path}'" end |