Class: Dictionary

Dictionary

new Dictionary(name)

A dictionary is a collection of chapters
Parameters:
Name Type Description
name
Source:

Extends

Methods

add(word, fn, options)

Add new word to a chapter
Parameters:
Name Type Argument Description
word String
fn function
options Mixed <optional>
Inherited From:
Source:

chap(name) → {Chapter|Array.<Chapter>}

Returns a chapter or a list of available chapters
Parameters:
Name Type Argument Description
name String <optional>
name of a chapter or empty to list all
Source:
Returns:
Type
Chapter | Array.<Chapter>

execute(word, options) → {Dictionary}

Directly execute a word
Parameters:
Name Type Description
word String
options Object
Inherited From:
Source:
Returns:
the current dictionary
Type
Dictionary

list() → {Object}

Inherited From:
Source:
Returns:
[description]
Type
Object