Skip to content

Commit

Permalink
Oops, tag those new methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeto committed Mar 19, 2013
1 parent f088a02 commit 6461ab2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/namegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ String.prototype.max = function() { return this.length; };
/**
* List all possible outputs (generator function).
* @returns {Array} An array of output strings.
* @method
*/
String.prototype.enumerate = function() { return [String(this)]; };

Expand Down Expand Up @@ -267,6 +268,7 @@ NameGen.Random.prototype.max = function() {
/**
* Enumerate all possible outputs.
* @returns {Array} An array of all possible outputs.
* @method
*/
NameGen.Random.prototype.enumerate = function() {
var enums = this.sub.map(function(g) { return g.enumerate(); });
Expand Down Expand Up @@ -340,6 +342,7 @@ NameGen.Sequence.prototype.max = function() {
/**
* Enumerate all possible outputs.
* @returns {Array} An array of all possible outputs.
* @method
*/
NameGen.Sequence.prototype.enumerate = function() {
var enums = this.sub.map(function(g) { return g.enumerate(); });
Expand Down

0 comments on commit 6461ab2

Please sign in to comment.