J
Jeff Rose
I'm working on a README file and I'm having trouble getting rdoc to do
what I want it to do. In a section with some short code examples I'd
like to include some ruby files from my examples directory rather than
putting the code into the file directly. So I can continue to edit and
run my sample code to make sure it always works, and I don't have to
edit two files every time I make a change.
Problem:
When I put this in the README file ":include:examples/sample.rb" it
does include the source, but it takes the # symbols off the comments in
the code, which makes it un-runnable if someone copy and pastes. (It
also looks lame...)
Anyone know how to have it include the source but either turn off rdoc
completely or treat it as regular stuff rather than cutting out #'s?
Thanks,
Jeff
what I want it to do. In a section with some short code examples I'd
like to include some ruby files from my examples directory rather than
putting the code into the file directly. So I can continue to edit and
run my sample code to make sure it always works, and I don't have to
edit two files every time I make a change.
Problem:
When I put this in the README file ":include:examples/sample.rb" it
does include the source, but it takes the # symbols off the comments in
the code, which makes it un-runnable if someone copy and pastes. (It
also looks lame...)
Anyone know how to have it include the source but either turn off rdoc
completely or treat it as regular stuff rather than cutting out #'s?
Thanks,
Jeff