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