Fry::Lib - Class for shell libraries.


Fry-Shell documentation  | view source Contained in the Fry-Shell distribution.

Index


NAME

Top

Fry::Lib - Class for shell libraries.

DESCRIPTION

Top

A Fry::Lib object has the following attributes:

	Attributes with a '*' next to them are always defined.

	*id($): Unique id which is full name of module.
	*vars(\@): Contains ids of variables in its library.
	*opts(\@): Contains ids of options in its library.
	*cmds(\@): Contains ids of commmands in its library.
	class($): Class autoloaded by library.
	depend(\@): Modules which library depends on.

PUBLIC METHODS

Top

	runLibInits(@libs): Calls &_initLib of libraries if they exist.
	fullName(@libs): Converts aliased libraries that begin with ':' to their full path in Fry::Lib.
	setAllObj(%data): Creates core class objects defined by a data hash whose
		structure is the same as used to define &_default_data in a library
	loadLib($lib): Creates library object and loads library into shell's
		executable path.
	loadLibs(@libs):  loads libraries
	unloadLib(@libs): unloads libraries
	reloadLibs(@libs): reloads libraries, uses again.pm
	checkAndLoadLibs(@libs): loads libraries if not loaded
	libsLoaded(@libs): returns boolean indicating if libraries are loaded
	requireLibraries(@libs): commandline version of &checkAndLoadLib
	initLibs(@libs): loads libraries and runs &runLibInits on them

SEE ALSO

Top

	LIBRARIES section of Fry::Shell.

AUTHOR

Top

Me. Gabriel that is. I welcome feedback and bug reports to cldwalker AT chwhat DOT com . If you like using perl,linux,vim and databases to make your life easier (not lazier ;) check out my website at www.chwhat.com.

COPYRIGHT & LICENSE

Top


Fry-Shell documentation  | view source Contained in the Fry-Shell distribution.