Skip to content

Instantly share code, notes, and snippets.

@ashizawa
Forked from Layzie/jsdoc.coffee
Created May 31, 2013 11:01
Show Gist options
  • Select an option

  • Save ashizawa/5684272 to your computer and use it in GitHub Desktop.

Select an option

Save ashizawa/5684272 to your computer and use it in GitHub Desktop.

Revisions

  1. @Layzie Layzie revised this gist Nov 1, 2012. 2 changed files with 3 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion jsdoc.coffee
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,6 @@ cube = ''
    * Funtion to calculate cube of input
    * @param {number} Number to operate on
    * @return {number} Cube of input
    ###
    ###

    cube = (x) -> x*x*x
    3 changes: 2 additions & 1 deletion jsdoc.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    /* define function variable before block to avoid code being appended to closing part of JSDoc comment */var cube;
    /* define function variable before block to avoid code being appended to closing part of JSDoc comment */
    var cube;
    cube = '';
    /**
    * Funtion to calculate cube of input
  2. @Layzie Layzie revised this gist Nov 1, 2012. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions jsdoc.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    /* define function variable before block to avoid code being appended to closing part of JSDoc comment */var cube;
    cube = '';
    /**
    * Funtion to calculate cube of input
    * @param {number} Number to operate on
    * @return {number} Cube of input
    */
    cube = function(x) {
    return x * x * x;
    };
  3. @Layzie Layzie created this gist Nov 1, 2012.
    10 changes: 10 additions & 0 deletions jsdoc.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    ### define function variable before block to avoid code being appended to closing part of JSDoc comment ###
    cube = ''

    ###*
    * Funtion to calculate cube of input
    * @param {number} Number to operate on
    * @return {number} Cube of input
    ###

    cube = (x) -> x*x*x