From: Gary Wright Date: 2007-03-02T06:44:41+09:00 Subject: Re: Why does String have to_str and Integer have to_int? On Mar 1, 2007, at 4:23 PM, Rick DeNatale wrote: > Is Exception really a string representation? I think Matz and Co. agree with you... $ irb irb(main):001:0> Exception.new('message').to_str => "message" irb(main):002:0> $ irb1.9 irb(main):001:0> Exception.new('message').to_str NoMethodError: undefined method `to_str' for # from (irb):3 from /usr/local/lib/ruby/1.9/irb.rb:150:in `block (2 levels) in eval_input' from /usr/local/lib/ruby/1.9/irb.rb:259:in `signal_status' from /usr/local/lib/ruby/1.9/irb.rb:147:in `block in eval_input' from /usr/local/lib/ruby/1.9/irb.rb:146:in `eval_input' from /usr/local/lib/ruby/1.9/irb.rb:70:in `block in start' from /usr/local/lib/ruby/1.9/irb.rb:69:in `catch' from /usr/local/lib/ruby/1.9/irb.rb:69:in `start' from /usr/local/bin/irb1.9:13:in `
' Gary Wright