Namespace std.core
Defined in: bind.em.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
std.core.bind(func, object)
|
<static> |
std.core.pretty(obj, options)
Converts an object to a string in a 'pretty' format, i.e.
|
<static> |
std.core.RepeatingTimer(period, callback)
|
<static> |
std.core.SimpleInput(type, message, cb, additional)
|
Method Detail
<static>
{function(...[*])}
std.core.bind(func, object)
- Parameters:
- {function(this:Object|...[*])} func
- A function object to bind.
- {Object} object
- Instance of some class to become 'this'.
- Returns:
- {function(...[*])} A new function that wraps func.apply()
<static>
std.core.pretty(obj, options)
Converts an object to a string in a 'pretty' format, i.e. so it is
human-readable, multiple lines, and handles indentation. If the
object is not a tree (i.e. it has circular references in it), then
the normal toString version will be returned. Generally this
should only be used on small, tree-like objects.
Defined in: pretty.em.
Defined in: pretty.em.
- Parameters:
- obj
- options
<static>
std.core.RepeatingTimer(period, callback)
Defined in: repeatingTimer.em.
- Parameters:
- {Number} period
- A number indicating the period (in seconds) to go between firing callback.
- {function()} callback
- A callback taking no args that should be fired every period seconds.
<static>
std.core.SimpleInput(type, message, cb, additional)
Defined in: simpleInput.em.
- Parameters:
- {int} type
- what type of simple input going to provide (See std.core.SimpleInput.SELECT_LIST and std.core.SimpleInput.ENTER_TEXT as examples
- {string} message
- what message gets written at the top of the input.
- {function} cb
- Takes a single argument -- the value of what was selected.
- additional
- (optional) if ENTER_TEXT is selected, then this should be undefined. if SELECT_LIST is entered as type, then this should be an arrray of tuples. The first element of each tuple should contain the text that gets displayed to the user next to the option. The second element should contain a code that gets passed back to cb so that the scripter knows what was selected. Code must be text. if NO_INPUT is entered as type, then just display message without getting any response back.