Class: DirectoryWatcher::FileStat
- Inherits:
-
Struct
- Object
- Struct
- DirectoryWatcher::FileStat
- Defined in:
- lib/directory_watcher.rb
Overview
:stopdoc: A persistable file stat structure used internally by the directory watcher.
Instance Attribute Summary collapse
-
#mtime ⇒ Object
Returns the value of attribute mtime.
-
#size ⇒ Object
Returns the value of attribute size.
-
#stable ⇒ Object
Returns the value of attribute stable.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
Instance Attribute Details
#mtime ⇒ Object
Returns the value of attribute mtime
242 243 244 |
# File 'lib/directory_watcher.rb', line 242 def mtime @mtime end |
#size ⇒ Object
Returns the value of attribute size
242 243 244 |
# File 'lib/directory_watcher.rb', line 242 def size @size end |
#stable ⇒ Object
Returns the value of attribute stable
242 243 244 |
# File 'lib/directory_watcher.rb', line 242 def stable @stable end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
243 244 245 246 |
# File 'lib/directory_watcher.rb', line 243 def eql?( other ) return false unless other.instance_of? FileStat self.mtime == other.mtime and self.size == other.size end |