Class Monk.component.CollectionsFeelingLuckyComponent
Extends
Workbench.component.Component.
Monk.component.CollectionsFeelingLuckyComponent
Defined in: collections-feeling-lucky.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
A Worbench.component.Component for randomly select text chunks.
|
| Method Attributes | Method Name and Description |
|---|---|
| <private> |
getNodes(node)
Get the children of the provided node
|
|
handle(monkEvent, data)
|
|
|
selectChunks(ratio)
Selects chunks based on the provided ratio
|
Class Detail
Monk.component.CollectionsFeelingLuckyComponent(args)
A Worbench.component.Component for randomly select text chunks.
Author: Stéfan Sinclair.
Author: Stéfan Sinclair.
- Parameters:
- args
- Since:
- Monk 0.1
Method Detail
<private>
getNodes(node)
Get the children of the provided node
- Parameters:
- {Object} node
- The node whose children to get
handle(monkEvent, data)
- Parameters:
- monkEvent
- data
selectChunks(ratio)
Selects chunks based on the provided ratio
- Parameters:
- {Integer} ratio
- The ratio of chunks to select