Class: EventMachine::FileGlobWatch::FileInfo
- Inherits:
-
Object
- Object
- EventMachine::FileGlobWatch::FileInfo
- Defined in:
- lib/em/globwatcher.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#stat ⇒ Object
readonly
Returns the value of attribute stat.
Instance Method Summary collapse
-
#initialize(path) ⇒ FileInfo
constructor
A new instance of FileInfo.
Constructor Details
#initialize(path) ⇒ FileInfo
Returns a new instance of FileInfo.
169 170 171 172 |
# File 'lib/em/globwatcher.rb', line 169 def initialize(path) @path = path @stat = File.stat(path) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
166 167 168 |
# File 'lib/em/globwatcher.rb', line 166 def path @path end |
#stat ⇒ Object (readonly)
Returns the value of attribute stat.
167 168 169 |
# File 'lib/em/globwatcher.rb', line 167 def stat @stat end |