"DTD/xhtml1-strict.dtd">
Class Fam::Event |
|
Methods |
Public Instance methods |
hostname(VALUE self) |
Return the hostname of a Fam::Event object.
Note: some versions of FAM (ex. the Debian package) ship without remote support. In those instances, this method will always return "localhost".
Aliases:
Fam::Event#host
Examples:
host = ev.hostname host = ev.host
filename(VALUE self) |
Return the filename of a Fam::Event object.
Note: for directory monitors, this method returns the path of the file relative to the monitor directory, not the full path.
Aliases:
Fam::Event#file
Examples:
path = ev.filename path = ev.file
code(VALUE self) |
Return the code (type) of a Fam::Event object.
Note: see the file doc/event_codes.txt for a brief description of each event code.
Examples:
code = ev.code
reqnum(VALUE self) |
Return the request number of a Fam::Event object.
Aliases:
Fam::Event#request_number Fam::Event#request_num Fam::Event#request Fam::Event#req_num Fam::Event#req Fam::Event#num
Examples:
req = ev.request_number
to_s(VALUE self) |
Return a human-readable string-representation of a Fam::Event object.
Examples:
puts 'event: ' << ev.to_s