.irbrc Goodies

Discussion in 'Ruby' started by Aleks Kissinger, Aug 2, 2006.

  1. 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"]
    Aleks Kissinger, Aug 2, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Burton

    how to use new AST goodies

    Simon Burton, Oct 25, 2005, in forum: Python
    Replies:
    1
    Views:
    301
    Fredrik Lundh
    Oct 25, 2005
  2. Emmanuel Touzery

    irbrc location under windows

    Emmanuel Touzery, Jul 28, 2003, in forum: Ruby
    Replies:
    5
    Views:
    153
    Gavin Sinclair
    Jul 28, 2003
  3. Dr Nic

    My .irbrc for console/irb

    Dr Nic, Oct 12, 2006, in forum: Ruby
    Replies:
    12
    Views:
    192
    Louis J Scoras
    Oct 18, 2006
  4. Philip McDonald

    irb login not reading irbrc file

    Philip McDonald, Feb 19, 2009, in forum: Ruby
    Replies:
    8
    Views:
    115
    Philip McDonald
    Feb 20, 2009
  5. Jeffrey Flint

    .irbrc on Windows

    Jeffrey Flint, Jun 10, 2009, in forum: Ruby
    Replies:
    2
    Views:
    106
    Luis Lavena
    Jun 10, 2009
Loading...

Share This Page