<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,12 +3,15 @@
 
 module Rubinius
   class DelegatedMethod &lt; Executable
-    def initialize(method, receiver, pass_self=false)
+    def initialize(name, method, receiver, pass_self=false)
+      @name = name
       @method = method
       @receiver = receiver
       @pass_self = pass_self
     end
 
+    attr_reader :name
+
     def call(called_object, called_method, *args, &amp;block)
       args.unshift called_object if @pass_self
       @receiver.__send__(@method, *args, &amp;block)</diff>
      <filename>kernel/common/delegated_method.rb</filename>
    </modified>
    <modified>
      <diff>@@ -332,15 +332,15 @@ class Module
 
     case meth
     when Proc::Method
-      cm = Rubinius::DelegatedMethod.new(:call, meth, false)
+      cm = Rubinius::DelegatedMethod.new(name, :call, meth, false)
     when Proc
       prc = meth.dup
       prc.lambda_style!
-      cm = Rubinius::DelegatedMethod.new(:call_on_object, prc, true)
+      cm = Rubinius::DelegatedMethod.new(name, :call_on_object, prc, true)
     when Method
-      cm = Rubinius::DelegatedMethod.new(:call, meth, false)
+      cm = Rubinius::DelegatedMethod.new(name, :call, meth, false)
     when UnboundMethod
-      cm = Rubinius::DelegatedMethod.new(:call_on_instance, meth, true)
+      cm = Rubinius::DelegatedMethod.new(name, :call_on_instance, meth, true)
     else
       raise TypeError, &quot;wrong argument type #{meth.class} (expected Proc/Method)&quot;
     end</diff>
      <filename>kernel/common/module.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ee0729859ec4a7d5f8d983bcb023b9189f41b7a6</id>
    </parent>
  </parents>
  <author>
    <name>Evan Phoenix</name>
    <email>ephoenix@engineyard.com</email>
  </author>
  <url>http://github.com/evanphx/rubinius/commit/8161d464e1ce6708b2ad35ff16494a4a80415d1f</url>
  <id>8161d464e1ce6708b2ad35ff16494a4a80415d1f</id>
  <committed-date>2009-05-01T12:21:43-07:00</committed-date>
  <authored-date>2009-05-01T12:01:17-07:00</authored-date>
  <message>Report the name of a DelegatedMethod is being used as</message>
  <tree>df36e6a9c41e2093224c9116220cf72841290bb8</tree>
  <committer>
    <name>Evan Phoenix</name>
    <email>ephoenix@engineyard.com</email>
  </committer>
</commit>
