Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
.irbrc Goodies
Aleks Kissinger
8/2/2006 5:08:00 PM
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/stickItInYourIrbrcMethodf...
class Object
def mlike(regex)
methods.grep(regex)
end
end
irb(main):004:0> 'stuff'.mlike /len/
=> ["length"]
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
.irbrc Goodies
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password