Rdoc

T

Thomas Buckley

Hi All

I'm trying to write a simple program that when given a a few paragraphs
of plain text from a file, will extract various metadata on the
file...i.e. Number of paragraphs, number of lines, number of words,
etc...

I have spent endless hours looking through the Rdoc documentation but
cannot find any useful info of examples on how to do this, is it
actually capable of doing this?

Thanks
 
S

Stephan Goldenberg

Am Sonntag, 3. Oktober 2010, 13:51:44 schrieb Thomas Buckley:
Hi All

I'm trying to write a simple program that when given a a few
paragraphs of plain text from a file, will extract various
metadata on the file...i.e. Number of paragraphs, number of lines,
number of words, etc...

I have spent endless hours looking through the Rdoc documentation
but cannot find any useful info of examples on how to do this, is
it actually capable of doing this?

Thanks

Sure can, it's a common exercise ;)

http://www.apress.com/book/downloadfile/4436

These are the source files to "Beginning Ruby From Novice to
Professional" Look at chapter 4, analyzer.rb.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top