View source file

chris's Avatar


31 Oct, 2012 06:15 PM

A problem I run into frequently is that I'm happily browsing documentation on, and I run into a class which has most of its methods hidden from YARD.

To figure out how this class works, I need to read the source. I look up at the top of the page, I see the source code's filename... and in a spasm of optimism, I try to click it. My clicks are in vain, however, since it's not a link; it's merely the name.

I've clicked that name in vain so many times.

After this, I curse a bit, and proceed to copy/paste the filename in preparation to hunt down the file (which involves inconvenient activities like searching github or, or installing the gem just so I can 'cd' into its directory and view one file).

It would be humayzing if that filename was clickable, and just showed the source code in a new window. (Displaying the code completely unhighlighted is totally acceptable, although line numbers and colour would be nice too.)

Thanks for your time,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac