Skip to content

Commit

Permalink
Corrected docstrings in coffeedoc.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Khan committed Jul 28, 2011
1 parent 8fd246a commit 44cb8ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions lib/coffeedoc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions src/coffeedoc.coffee
@@ -1,8 +1,8 @@
###
Documentation functions
=======================
These functions extract relevant documentation info from AST nodes as
returned by the coffeescript parser.
These functions extract relevant documentation info from AST nodes as returned
by the coffeescript parser.
###

coffeescript = require('coffee-script')
Expand Down Expand Up @@ -44,16 +44,15 @@ getNodes = (script) ->

getClasses = (nodes) ->
###
Returns all top-level class nodes from the AST as returned by
getNodeTypes
Returns all top-level class nodes from the AST as returned by getNodes
###
return (n for n in nodes when n.type == 'Class' \
or n.type == 'Assign' and n.value.type == 'Class')

getFunctions = (nodes) ->
###
Returns all top-level named function nodes from the AST as returned by
getNodeTypes
getNodes
###
return (n for n in nodes \
when n.type == 'Assign' and n.value.type == 'Code')
Expand All @@ -70,8 +69,8 @@ getNodeName = (node) ->

documentClass = (cls) ->
###
Evaluates a class object as returned by the coffeescript parser,
returning an object of the form:
Evaluates a class object as returned by the coffeescript parser, returning
an object of the form:
{
"name": "MyClass",
Expand Down

0 comments on commit 44cb8ae

Please sign in to comment.