>>>>> "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%
 
C> and #succ does not show up in Fixnum.methods either. (Ruby has a 

 Try

 ruby -e 'p 12.methods'

 also #prec is a method of Precision (included in Integer)

C> pretty interesting idea of 'A'..'k' versus 'A'..'kk' by the way). 
C> I am curious on why the analog #prec methods is missing?

 You have a thread about this subject in [ruby-talk:5862]

 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/5862


Guy Decoux