From: Brian Candler Date: 2007-02-27T03:24:50+09:00 Subject: Re: symbol to true object On Tue, Feb 27, 2007 at 12:57:30AM +0900, Gareth Adams wrote: > class Symbol > def to_bool > case to_s > when "true" then true > when "false" then false > else raise ArgumentError > end > end > end Why to_s? class Symbol def to_bool case self when :true then true when :false then false else raise ArgumentError end end end