> -----Original Message-----
> From: ts [mailto:decoux / moulon.inra.fr]
> Sent: Thursday, December 14, 2000 10:35 PM
> To: ruby-talk ML
> Cc: ruby-talk / netlab.co.jp
> Subject: [ruby-talk:7290] Re: Whre is #prec
> 
> 
> >>>>> "C" == Christoph Rippel <crippel / primenet.com> writes:
> 
> C> maybe this a silly question. Both Fixnum and String provide a 
> C> hard coded #succ implementation - an override is quietly ignored
> 
>  What have you tried ?
> 
> pigeon% cat b.rb
> #!/usr/bin/ruby
> class Fixnum
>    def succ
>       self - 1
>    end
> end
> p 15.succ
> pigeon% b.rb
> 14
> pigeon%
I tried something like this couple a of days ago - Hm I guess
I must have been drunk? Anyway the snippet
class Fixnum
def succ
    self+3
end
end
p 3.succ
x= '1'..'30'
p x.to_a

still prints
'6'
["1","2","3"]

thankxs,
 Christoph


>  
> C> and #succ does not show up in Fixnum.methods either. (Ruby has a 
 

> 
> Guy Decoux
> 
> 
>