I added a new feature to irb_rocket
1 irb> 1 + 2 + 3 # Oh, I want to call "to_s" 2 irb> (1 + 2 + 3 # back to the head 3 irb> (1 + 2 + 3).to_s # return to the tail
I've experience
So I added the new feature named "irb_dollar
1 irb> require "irb_dollar" 2 irb> 1 + 2 + 3 $ to_s #=> "6"
Nice!
You can use "$" sign to make the left hand statement be receiver by installing
Enjoy :)
Links
posted by
genki
on Mon 3 Jan 2011
at 19:18