.irbrc Goodies

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

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs