anilwadghule.com

home archive resume about contact

true meaning of false

November 12, 2006

When I did

I:\>irb
irb(main):001:0> require 'rubygems'
=> false

I got false for various require before when I did require 'something' in irb.
But while I was on IRC, dagbrown replied to my question

<dagbrown> I'm shocked that nobody has noticed that if you say require "something" and it returns false, all that means is that it's already been required.

I wasn't aware of precise reason..why require returns false.

managed by github ¤ generated by jekyll ¤ licensed by creative commons ¤ served by github