LoadMe:
Filter:
StartupFile (extension) | Utilities

LoadMe
ExtensionExtension

convenience for loadscripts

Description

A convenience class for writing scripts that load multiple code files used for a given setup. It expands filenames and measures and optionally posts loading times.

First code examples:

Class Methods

.new

loads file(s) with the given filename or path

Arguments:

filename

relative or absolute pathname

dir

optional dir where to look for relative paths

server

the server to be optionally synced after loading

preText

text to post before loading the file(s)

postText

text to post after loading the file(s)

.postTime

flag whether to post loading time or not

.start

begin measuring loading time

Arguments:

comment

an optional comment to post when starting

.end

declare loading finished and optionally post loading time

Arguments:

comment

with an optional comment

.totalTime

the total time between start and end

.globalStartTime

time at which loading started

Instance Methods

None, LoadMe is a singleton which has no meaningful instances.