I've just thrown over RDoc for YARD in a Rails project I'm working on, and was wondering if anyone has any established conventions for documenting the effect of different parameters in the params hash. It seems like I could use the @options tag, but that feels a little hackish. Any suggestions?
Thanks,
Phil
# @param [Hash] opts to do something cool
> --
> You received this message because you are subscribed to the Boston Ruby Group mailing list
> To post to this group, send email to boston-r...@googlegroups.com
> To unsubscribe from this group, send email to boston-rubygro...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/boston-rubygroup
>
# @param [Hash] opts the options to create a message with.
# @option opts [String] :subject The subject
# @option opts [String] :from ('nobody') From address
# @option opts [String] :to Recipient email
# @option opts [String] :body ('') The email's body
def send_email(opts = {})
end
cheat yard
http://cheat.errtheblog.com/s/yard/