[ 
http://jira.openqa.org/browse/WTR-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20361#action_20361
 ] 

Jari Bakken commented on WTR-495:
---------------------------------

With YARD it's possible to define custom handlers that know about 
meta-programming. I did it for watir-webdriver at one point for the attribute 
methods:

  
https://github.com/jarib/watir-webdriver/blob/master/lib/yard/handlers/watir.rb

The downside: You have to generate and host the docs yourself instead of 
pointing people to e.g. rubydoc.info - unless there's some way to make those 
sites pick up the custom handler that I'm unaware of.

> RDoc does not provide information about elements accessor methods in 
> Watir::COntainer due to they are meta-programmed
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: WTR-495
>                 URL: http://jira.openqa.org/browse/WTR-495
>             Project: Watir
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.0
>         Environment: watir 1 => 2 upgrade
>            Reporter: Aliaksandr
>
> In watir RDoc http://rubydoc.info/gems/watir/2.0.0/Watir/Container, it is not 
> obvious to find element accessor (factory) methods defined in 
> Watir::Container module, as they are created with meta-programming e.g. 
> bottom of https://github.com/bret/watir/blob/master/watir/lib/watir/table.rb.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to