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
233 234 235 |
# File 'lib/directory_watcher.rb', line 233 def mtime @mtime end |
#size ⇒ Object
Returns the value of attribute size
233 234 235 |
# File 'lib/directory_watcher.rb', line 233 def size @size end |
#stable ⇒ Object
Returns the value of attribute stable
233 234 235 |
# File 'lib/directory_watcher.rb', line 233 def stable @stable end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
234 235 236 237 |
# File 'lib/directory_watcher.rb', line 234 def eql?( other ) return false unless other.instance_of? FileStat self.mtime == other.mtime and self.size == other.size end |