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.



169
170
171
172
# File 'lib/em/globwatcher.rb', line 169

def initialize(path)
  @path = path
  @stat = File.stat(path)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



166
167
168
# File 'lib/em/globwatcher.rb', line 166

def path
  @path
end

#statObject (readonly)

Returns the value of attribute stat.



167
168
169
# File 'lib/em/globwatcher.rb', line 167

def stat
  @stat
end