# Patch for ri to show subclasses

**URL:** <https://www.ruby-forum.com/t/patch-for-ri-to-show-subclasses/58698>\
**Category:** Ruby\
**Created:** [April 24, 2006, 10:57pm UTC](https://www.ruby-forum.com/t/patch-for-ri-to-show-subclasses/58698 "2006-04-24T22:57:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fink](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/85f322/32.png) [@fink](https://www.ruby-forum.com/u/fink)\
**Post date:** [April 24, 2006, 10:57pm UTC](https://www.ruby-forum.com/t/patch-for-ri-to-show-subclasses/58698/1 "2006-04-24T22:57:35Z")

</div>

Hello,

I’ve written a patch for ri to also show subclasses at the class  
documentation.  
The output with the patch looks like this:

~\> ri -T Momomoto  
-------------------------------------------------------- Class: Momomoto  
Momomoto is a database abstraction layer

* * *

## SubClasses:

```
 Base, CriticalError, Database, Datatype, Error, Function,
 Information_schema, Table, View

```

I’ve attached a patch to the ri classes and a standalone version.  
I would really love to see this integrated into the official ri.

Sven

---

<div class="post-metadata">

**Author:** ![fink](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/85f322/32.png) [@fink](https://www.ruby-forum.com/u/fink)\
**Post date:** [April 24, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/patch-for-ri-to-show-subclasses/58698/2 "2006-04-24T23:31:30Z")

</div>

On Apr 24, 2006, at 1:55 PM, Sven K. wrote:

> Hello,
> 
> I’ve written a patch for ri to also show subclasses at the class  
> documentation.  
> The output with the patch looks like this:

Please post this patch to ruby-core.

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
