From: Oliver Saunders Date: 2009-05-27T09:26:06+09:00 Subject: Initialize not being called on objects created from literals Initialize doesn't appear to get called. class Object def initialize @foo = 'bar' end attr_reader :foo end a = Object.new # => # a.foo # => "bar" 'string'.foo # => nil //.foo # => nil I want to have //.foo and 'string.foo give me "bar" as they should. How can I do that? -- Posted via http://www.ruby-forum.com/.