class

Dict(W, D)

Inherits Enumerable < Reference < Object

Constants

VERSION = "0.1.0"

Constructors

Instance methods

[](word : W)

See #lookup

Source
[]=(word : W, definition : D)

See #define

Source
[]?(word : W)

See #lookup?

Source
define(word : W, definition : D) : D

Inserts a word to the dictionary for later #lookup

Source
definitions

Rounds up all the definitions and returns them as an array

Source
each

Must yield this collection's elements to the block.

Source
includes?(word : W) : Bool
Source
lookup(word : W) : D

Retrieves a definition (D) from the entries

Source
lookup?(word : W) : D | Nil

Tries to retrieve a definition (D) from the entries, or returns nil

Source
words

Rounds up all the words and returns them as an array

Source

Nested types