Problem:

  given a proc p and an object o with method x, such that the arity of x
and p are the same, dynamically append p into x.

statically you have this:

  class O
    def x(a)
      puts "do something with #{a}"
    end
  end
  o = O.new

then given:

  p = Proc.new { |a| puts "do something else with #{a}" }

the goal is to dynamically modify instance o such that it were AS IF it
were an instantiation of:

  class O
    def x(a)
      puts "do something with #{a}"
      puts "do something else with #{a}"
    end
  end

~transami