From: Ryan Davis Date: 2011-06-14T18:52:14+09:00 Subject: Re: A way to find out when a constant gets defined? On Jun 14, 2011, at 02:32 , Josh Cheek wrote: > # When I load irb with my app, Psych is somehow defined > $ bundle exec irb > ruby-1.9.2-p180 :001 > Psych > => Psych > ruby-1.9.2-p180 :002 > exit 6478 % gem19 which psych /Users/ryan/.multiruby/install/1.9.2-p136/lib/ruby/1.9.1/psych >> require 'psych' => true >> $".grep(/psych/i).map { |s| File.dirname File.dirname s }.uniq => ["/Users/ryan/.multiruby/install/1.9.2-p136/lib/ruby/1.9.1", "/Users/ryan/.multiruby/install/1.9.2-p136/lib/ruby/1.9.1/psych", "/Users/ryan/.multiruby/install/1.9.2-p136/lib/ruby"] Psych ships with 1.9