From: "Iñaki Baz Castillo" Date: 2011-02-28T06:36:52+09:00 Subject: Re: Different content of Symbol.all_symbols between irb and ruby 2011/2/27 Einar Jónsson : > I'm assuming that the difference is that "ruby" parses the file prior to > execution, and thus has already inserted all the symbols into the > Symbol.all_symbols array. Can anyone confirm this or explain why I'm wrong? I think so. lso try adding this: new_symbol = "hello".to_sym puts Symbol.all_symbols.size Yo will see that in irb those are two symbols more (as irb seems to internally use symbols for new variables) and one symbol more in Ruby script. -- Iñaki Baz Castillo