hi Tridib,

  if i'm not mistaken you could just do something like this:

     class Fixnum
  def add_one
           self + 1
  end
     end

     p 5.add_one

     => 6


  ...is that what you were looking for?

  - j

-- 
Posted via http://www.ruby-forum.com/.