Class: INotify::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/vim_mate/plugins/inotify/lib/INotify.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, filename, type, cookie) ⇒ Event

Returns a new instance of Event.



193
194
195
196
197
198
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 193

def initialize (path, filename, type, cookie)
  @path = path
  @filename = filename
  @type = type
  @cookie = cookie
end

Instance Attribute Details

Returns the value of attribute cookie.



191
192
193
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 191

def cookie
  @cookie
end

#filenameObject (readonly)

Returns the value of attribute filename.



191
192
193
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 191

def filename
  @filename
end

#pathObject (readonly)

Returns the value of attribute path.



191
192
193
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 191

def path
  @path
end

#typeObject (readonly)

Returns the value of attribute type.



191
192
193
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 191

def type
  @type
end

Instance Method Details

#dumpObject



200
201
202
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 200

def dump
  "path: " + @path.to_s + ", filename: " + @filename.to_s + ", type: " + @type.to_s + ", cookie: " + @cookie.to_s
end

#to_sObject



204
205
206
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 204

def to_s
  dump
end