# Stubbing out class: just a little toy

**URL:** <https://www.ruby-forum.com/t/stubbing-out-class-just-a-little-toy/79586>\
**Category:** Ruby\
**Created:** [December 16, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/stubbing-out-class-just-a-little-toy/79586 "2006-12-16T20:26:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjmadsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Post date:** [December 16, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/stubbing-out-class-just-a-little-toy/79586/1 "2006-12-16T20:26:04Z")

</div>

Hi,

I was playing around recently with building a “stubbing” system in Ruby  
to allow me to make what looked like “child object” calls but that were  
really just stubs to methods in the core object.

I thought some people on this list might enjoy this idea - it’s just a  
goof-off kind of thing in it’s current form, but it could probably be  
put to better use with a little attention. My write up is here:

[http://www.misuse.org/cms/article.php?story=20061215181249980](http://www.misuse.org/cms/article.php?story=20061215181249980)

(If etiquette on this list is to post the full article here, just let  
me know - I didn’t want to clog up people’s digests).

Happy holidays,

Steve
