# Rdoc

**URL:** <https://www.ruby-forum.com/t/rdoc/195936>\
**Category:** Ruby\
**Created:** [October 3, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/rdoc/195936 "2010-10-03T13:51:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbaustert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Post date:** [October 3, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/rdoc/195936/1 "2010-10-03T13:51:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tbaustert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Post date:** [October 3, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/rdoc/195936/2 "2010-10-03T16:34:39Z")

</div>

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

> Thanks

Sure can, it’s a common exercise 😉

[http://www.apress.com/book/downloadfile/4436](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.
