From: bitmox Date: 2008-02-20T16:49:59+09:00 Subject: instance_eval problem Hi, I' ve got problem with instance_eval. I tried the following with irb: >> obj = "3" => "3" >> obj.instance_eval "def a ; puts 'x'; end" => nil >> obj.a x => nil >> obj = 3 => 3 >> obj.instance_eval "def a ; puts 'x'; end" TypeError: (eval):1:in `irb_binding': no class/module to add method from (irb):31 Why does the instance_eval not work for the Fixnum? Best regards, Thomas