PackageInstance class
A Flux package instance class. This provides basic information fields and dependencies.
Summary
Methods
depends(what)shared
Specifies that a package is dependent on another package or plugin.
Class constructor.
Methods
Specifies that a package is dependent on another package or plugin. Merely adds to the dependency list. Can be called with either : or . When called with a dot, the dependency is added to the package that is currently being included (the PACKAGE global).
Package:describe(function(s)
s.depends 'sfs'
s.depends 'lib/flux.lua'
end)
Parameters
- what String name of a package, or path to a .lua file inside this package
Class constructor. Takes the file path, file name and folder path as the arguments.
Parameters
- file_path String path to the package's packagespec.lua
- lib_path String name of the package, as it was given to Package:include
- full_path String path to the package's folder, with a trailing slash