Bufdef:
Filter:
PolyBuf/Classes (extension) | PolyBuf

Bufdef
ExtensionExtension

Def-style interface for BufFiles

Description

This class is a def-style version of BufFiles. It's main usecase is to allow making a global namespace of Bufdefs with all loaded files and make sure they are only loaded once (unless explicitly reloaded with new buffers).

Class Methods

.hasGlobalDictionary

(describe method here)

Returns:

(describe returnvalue here)

.all

(describe method here)

Returns:

(describe returnvalue here)

.initClass

(describe method here)

Returns:

(describe returnvalue here)

.at

(describe method here)

Arguments:

key

(describe argument here)

Returns:

(describe returnvalue here)

.new

(describe method here)

Arguments:

key

(describe argument here)

server

(describe argument here)

path

(describe argument here)

channel

(describe argument here)

normalize

(describe argument here)

actionWhenDone

(describe argument here)

verbose

(describe argument here)

Returns:

(describe returnvalue here)

Instance Methods

.replace

Clear this buffiles instance and replace it with new buffers that are then loaded.

Arguments:

server
pathOrListOfPaths

Can be either a path (a string) or a list of paths as strings (allowing to pick and choose different files for one collection)

channel

Which channels to load. An array of channels or nil to load all.

normalize

Normalize buffers after load

actionWhenDone

Call action when finished loading

verbose

Be verbose. boolean

preloadedBuffers

Supply with preloaded buffers if you want to avoid loading new ones.

Returns:

A Bufdef instance.

Examples