[#964] Bastion or SecurityManager for Ruby? — Clemens Hintze <clemens.hintze@...>

Hi,

15 messages 1999/12/10

[#989] a question about to_i — Friedrich Dominicus <Friedrich.Dominicus@...>

Sorry, I'm quite new to ruby. But I encounterd the following problem. If

17 messages 1999/12/19

[ruby-talk:00995] Re: a question about to_i

From: gotoken@... (GOTO Kentaro)
Date: 1999-12-19 09:19:30 UTC
List: ruby-talk #995
In message "[ruby-talk:00992] Re: a question about to_i"
    on 99/12/19, GOTO Kentaro <gotoken@math.sci.hokudai.ac.jp> writes:

>    def numeric?(klass = Numeric)
>      unless klass <= Numeric
>        raise ArgumentError, "non Numeric type `#{klass}'"
>      end
>      begin
>        res = eval self
>        if res.is_a? klass then res else false end
>      rescue NameError

Oops again! "rescue NameError" should be "rescue" simply.

-- gotoken

In This Thread