I want something that can parse a ruby file to give me the file positions of comments. Ranked by desirability:
- Ideally, there would be some command-line arg I could pass to "ruby" since of course "ruby" would know. But there doesn't seem to be one for this?
- Does anyone know if/where in "ruby" I could hook in and use its methods to know where the comments are?
- Some well-known regular expression?
Thanks!