From: Love U Ruby Date: 2013-03-20T15:37:55+09:00 Subject: Confusion with has object creation. I know we create Hash object with Hash.new,it calls `initialize` method. Here it is: class Hash alias_method :_initialize, :initialize def initialize puts 'welcome!!' _initialize end end Hash.new #welcome But how hash object is created when we call them as below: Hash['a', 'b'] Hash['a' => 'b'] What method is being called internally? -- Posted via http://www.ruby-forum.com/.