Class: Winwatch::Event
- Inherits:
-
Struct
- Object
- Struct
- Winwatch::Event
- Defined in:
- lib/winwatch.rb
Overview
A frozen event. Struct supplies deconstruct/deconstruct_keys for pattern
matching: event in {type: :renamed, from:, path:}.
type - Symbol: :added :modified :removed :renamed :rescan :gone
path - String, absolute, UTF-8, forward-slash separated (watch root for
:rescan/:gone)
from - String (old absolute path) for :renamed, else nil
code - Integer Win32 error for :gone, else nil
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#from ⇒ Object
Returns the value of attribute from.
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
62 63 64 |
# File 'lib/winwatch.rb', line 62 def code @code end |
#from ⇒ Object
Returns the value of attribute from
62 63 64 |
# File 'lib/winwatch.rb', line 62 def from @from end |
#path ⇒ Object
Returns the value of attribute path
62 63 64 |
# File 'lib/winwatch.rb', line 62 def path @path end |
#type ⇒ Object
Returns the value of attribute type
62 63 64 |
# File 'lib/winwatch.rb', line 62 def type @type end |