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.
186 187 188 189 |
# File 'lib/em/globwatcher.rb', line 186 def initialize(path) @path = path @stat = File.stat(path) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
183 184 185 |
# File 'lib/em/globwatcher.rb', line 183 def path @path end |
#stat ⇒ Object (readonly)
Returns the value of attribute stat.
184 185 186 |
# File 'lib/em/globwatcher.rb', line 184 def stat @stat end |