Class: INotify::Event

Inherits:
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.


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

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

Instance Attribute Details

Returns the value of attribute cookie.


189
190
191
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 189

def cookie
  @cookie
end

#filenameObject (readonly)

Returns the value of attribute filename.


189
190
191
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 189

def filename
  @filename
end

#pathObject (readonly)

Returns the value of attribute path.


189
190
191
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 189

def path
  @path
end

#typeObject (readonly)

Returns the value of attribute type.


189
190
191
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 189

def type
  @type
end

Instance Method Details

#dumpObject


198
199
200
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 198

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

#to_sObject


202
203
204
# File 'lib/vim_mate/plugins/inotify/lib/INotify.rb', line 202

def to_s
  dump
end