Open 10io opened 11 years ago
Looks like a potential bug. See what happens if you put a blank line after the before_filter
.
Also, given your stated intent, you may be interested in rubyworks/tomparse.
Same behavior with a blank line.
@trans: Yep, I am looking into rubyworks/tomparse too but my understanding is that it is used to parse code comments: I can't use it directly on ruby files. I need first to extract all the comments using yard(I saw yard-tomdoc), rdoc or whatever. Thanks for your suggestion.
Hi, I am trying to document a Rails controller. I'd like to extract this information as tokens using tomdoc.
Unfortunately, there is a small issue when the controller has before filters.
Here is a simple controller:
and the output of
tomdoc
:Looks good. Now, with this controller containing a before_filter:
tomdoc
will output nothing. Am I doing something wrong?