ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: Rdoc with readable hashes
by Florian Gilcher other posts by this author
Nov 8 2009 8:17AM messages near this date
Re: Rdoc with readable hashes | Hash#count
On Nov 5, 2009, at 12:10 PM, Roger Pack wrote:
> 
>  I think I've seen some docu that's like
>  #
>  #
>  # param:: describe something that could be in args
>  # param2:: again
>  def go args
>  end
> 
>  but I'm not sure what that was for--yard?
>  -r
>  -- 
>  Posted via http://www.ruby-forum.com/.
> 

YARD has @option:

   class Test
     # Nice little method with hash-arg
     #
     # @option param :height [Fixnum, #to_i] (300) The height
     # @option param :width  [Fixnum, #to_i] (200) The width
     #
     def test(param = {})

     end
   end

I thing param:: an such was used by the Merb team.

Regards,
Florian
Thread:
Christoph Kappel
Roger Pack
Florian Gilcher

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved