>>>>> "P" == Pit Capitain <pit / capitain.de> writes:

P> yes, I know that you hacked Ruby and that Matz is also working on it, 
P> but for me using the PragProg Ruby installer on Windows nothing of 
P> those I can use right now.

 Write an extension :

svg% cat b.rb
#!/usr/bin/ruby
require 'ovr'

class C
   def m
      puts "original"
   end
end

C.new.m  # => original

class C
   override :m
   def m
      puts "before(1)"
      super
   end
end

C.new.m  # => before(1), original

class C
   override :m
   def m
      puts "before(2)"
      super
   end
end

C.new.m  # => before(2), before(1), before(1), ...
svg% 

svg% b.rb
original
before(1)
original
before(2)
before(1)
original
svg% 


Guy Decoux