Skip to content

Commit

Permalink
build: more JSDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed May 11, 2014
1 parent 40cb474 commit 1bf6f8d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ var xmlbuilder = require('xmlbuilder');

exports.build = build;

/**
* Accepts a `Date` instance and returns an ISO date string.
*
* @param {Date} d - Date instance to serialize
* @returns {String} ISO date string representation of `d`
* @api private
*/

function ISODateString(d){
function pad(n){
return n < 10 ? '0' + n : n;
Expand Down Expand Up @@ -40,10 +48,10 @@ function type (obj) {
}

/**
* generate an XML plist string from the input object
* Generate an XML plist string from the input object `obj`.
*
* @param {Object} obj - the object to convert
* @returns {String} converted plist
* @returns {String} converted plist XML string
* @api public
*/

Expand Down

0 comments on commit 1bf6f8d

Please sign in to comment.