as_json

as_json(*) Instance Public methods Returns a hash, that will be turned into a JSON object and represent this object.

==

exc == obj â true or false Instance Public methods EqualityâIf obj is not an Exception, returns false. Otherwise, returns true if exc and obj share same class, messages, and backtrace.

new

Exception.new(msg = nil) â exception Class Public methods Construct a new Exception object, optionally passing in a message.

json_create

json_create(object) Class Public methods Deserializes JSON string by constructing new Exception object with message m and backtrace b serialized with to_json

exception

exc.exception(string) â an_exception or exc Class Public methods With no argument, or if the argument is the same as the receiver, return the receiver. Otherwise, create a new exception object of the same class as the receiver, but with a message equal to string.to_str.

systmpdir

systmpdir() Class Public methods Returns system temporary directory; typically â/tmpâ.

sysconfdir

sysconfdir() Class Public methods Returns system configuration directory. This is typically â/etcâ, but is modified by the prefix used when Ruby was compiled. For example, if Ruby is built and installed in /usr/local, returns â/usr/local/etcâ.

setpwent

setpwent() Class Public methods Resets the process of reading the /etc/passwd file, so that the next call to ::getpwent will return the first entry again.

setgrent

setgrent() Class Public methods Resets the process of reading the /etc/group file, so that the next call to ::getgrent will return the first entry again.

passwd

Etc.passwd { |struct| block } â PasswdEtc.passwd â Passwd Class Public methods Provides a convenient Ruby iterator which executes a block for each entry in the /etc/passwd file. The code block is passed an Passwd struct. See ::getpwent above for details. Example: require 'etc' Etc.passwd {|u| puts u.name + " = " + u.gecos }