From: "Wolfgang Nádasi-Donner" Date: 2007-01-30T19:25:05+09:00 Subject: Re: Minor Change Proposal for Classes 'Object' and 'Method' Hi! I don't know how you handle "Change Proposals" for Ruby. Implement them silently or write somewhere an announcement, so I try to summarize what happens, as I understood it. Please correct me if I'm wrong, because I will report about the results in the german Ruby forum. I include my proposal for class "UnboundMethod" here, because I think it is strongly related to this one. ---------------------------- As I understood, the will be some new methods available now or in the near future in the repository (or the nightly snapshot). I'm not sure about the chosen names, so please correct them. ============== Class "Method" ============== Public instance Methods: receiver -------- "receiver" returns the bound object of the method object. E.g. for "mo = o.method(:m)" the expression "mo.receiver" will return "o". name ---- "name" returns the name of the method object. E.g. for "mo = o.method(:m)" the expression "mo.name" will return ":m" (symbol) or "'m'" (string). owner ----- "owner" returns the class which holds the method. E.g. for "mo = o.method(:m)" the expression "mo.owner" will return "c", if the method ":m", that is bound to "mo", is defined in this class. If the class is an anonymous class, it will be handled correctly. ===================== Class "UnboundMethod" ===================== Public instance Methods: name ---- "name" returns the name of the method object. E.g. for "mo = o.method(:m)" the expression "mo.name" will return ":m" (symbol) or "'m'" (string). owner ----- "owner" returns the class which holds the method. E.g. for "mo = o.method(:m)" the expression "mo.owner" will return "c", if the method ":m", that is bound to "mo", is defined in this class. If the class is an anonymous class, it will be handled correctly. ----------------------- Is it a correct summary. There are so many messages in the discussion, that I ended up in comfusion about the chosen names, sorry. Wolfgang N�dasi-Donner