# .irbrc Goodies

**URL:** <https://www.ruby-forum.com/t/irbrc-goodies/101112>\
**Category:** Ruby\
**Created:** [August 3, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/irbrc-goodies/101112 "2006-08-03T12:58:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aleks\_Kissinger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@Aleks\_Kissinger](https://www.ruby-forum.com/u/Aleks_Kissinger)\
**Post date:** [August 3, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/irbrc-goodies/101112/1 "2006-08-03T12:58:04Z")

</div>

I was wondering, what are some of your favourite .irbrc tricks? For  
example, the one I end up using the most is the mlike mixin, which I  
found in the comments on a Redhanded article:  
[http://redhanded.hobix.com/inspect/stickItInYourIrbrcMethodfinder.html](http://redhanded.hobix.com/inspect/stickItInYourIrbrcMethodfinder.html)

class Object  
def mlike(regex)  
methods.grep(regex)  
end  
end

irb(main):004:0\> ‘stuff’.mlike /len/  
=\> [“length”]
