Class: EventMachine::FileGlobWatch::FileInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/em/globwatcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (readonly)

Returns the value of attribute path.



183
184
185
# File 'lib/em/globwatcher.rb', line 183

def path
  @path
end

#statObject (readonly)

Returns the value of attribute stat.



184
185
186
# File 'lib/em/globwatcher.rb', line 184

def stat
  @stat
end