coffeedoc / codo

CoffeeScript API documentation generator. It's like YARD but for CoffeeScript!
Other
624 stars 92 forks source link

Support for named parameters in methods and funcs #132

Closed maxtaco closed 11 years ago

maxtaco commented 11 years ago

For instance:

class Classmate

  # @param {string} name Full name (first + last)
  # @param {string} phone Phone number
  # @param {obj} picture JPG of the person 
  constructor : ( {@name, @phone, picture} ) ->

  # @param {string} reason Why I'm no longer friends
  # param {Date} revisit_decision_on When to reconsider
  unfriend : ( {reason, revisit_decision_on} ) ->
netzpirat commented 11 years ago

Nice! Can you add an spec for it? There aren't many specs, but everything what's happening within the nodes directory has a JSON template based spec. Thanks.

maxtaco commented 11 years ago

Sure thing, I'll take a look.

netzpirat commented 11 years ago

Thanks a lot. 1.9.0 is released.

maxtaco commented 11 years ago

Thank you and thanks for codo!