More PDoc additions.

This commit is contained in:
Andrew Dupont 2009-02-23 20:35:49 -06:00
parent 50304a7fa6
commit 7a32414655
4 changed files with 11 additions and 9 deletions

View File

@ -250,11 +250,7 @@ Array.from = $A;
return (n < 0) ? n : i - n - 1;
}
/**
* Array#concat(args...) -> Array
*
* TODO: Array#concat
**/
// Replaces a built-in function. No PDoc needed.
function concat() {
var array = slice.call(this, 0), item;
for (var i = 0, length = arguments.length; i < length; i++) {

View File

@ -6,7 +6,7 @@
* $R(start, end[, exclusive = false]) -> ObjectRange
*
* Creates a new ObjectRange object.
* This method is a convenience wrapper around the ObjectRange constructor,
* This method is a convenience wrapper around the [[ObjectRange]] constructor,
* but $R is the preferred alias.
**/
function $R(start, end, exclusive) {
@ -17,7 +17,10 @@ var ObjectRange = Class.create(Enumerable, (function() {
/**
* new ObjectRange(start, end[, exclusive = false])
*
* TODO: new ObjectRange
* Creates a new `ObjectRange`.
*
* The `exclusive` argument specifies whether `end` itself is a part of the
* range.
**/
function initialize(start, end, exclusive) {
this.start = start;

View File

@ -5,7 +5,7 @@ Object.extend(String, {
/**
* String.interpret(value) -> String
*
* TODO: String.interpret
* Coerces `value` into a string. Returns an empty string for `null`.
**/
interpret: function(value) {
return value == null ? '' : String(value);

View File

@ -5,7 +5,10 @@ var Template = Class.create({
/**
* new Template(template[, pattern = Template.Pattern])
*
* TODO: new Template
* Creates a Template object.
*
* The optional `pattern` argument expects a `RegExp` that defines a custom
* syntax for the replaceable symbols in `template`.
**/
initialize: function(template, pattern) {
this.template = template.toString();