# Can't figure out what's wrong

**URL:** <https://www.ruby-forum.com/t/cant-figure-out-whats-wrong/51148>\
**Category:** Ruby\
**Created:** [December 27, 2005, 7:44am UTC](https://www.ruby-forum.com/t/cant-figure-out-whats-wrong/51148 "2005-12-27T07:44:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dust](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c2a13f/32.png) [@dust](https://www.ruby-forum.com/u/dust)\
**Post date:** [December 27, 2005, 7:44am UTC](https://www.ruby-forum.com/t/cant-figure-out-whats-wrong/51148/1 "2005-12-27T07:44:32Z")

</div>

I’m reading the why’s ruby guide, and i’ve retyped a class in the guide  
to use through the metaprogramming chapter. when i try to use it with  
irb i get this error:  
nomethoderror: undefined method '[]=] for nil:class
