Hi Rubyists,

Is there a way to copy an instance method from one class to another?

class C1
  def f
    p self.class
  end
end

class C2
end

Now I want C2 to have f method so that I can call C2.new.f.

Thanks.

Sam