From: Yukihiro Matsumoto Date: 2007-01-20T01:52:36+09:00 Subject: Re: Minor Change Proposal for Classes 'Object' and 'Method' Hi, In message "Re: Minor Change Proposal for Classes 'Object' and 'Method'" on Sat, 20 Jan 2007 01:15:05 +0900, Wolfgang N�dasi-Donner writes: |Minor Change Proposal for Classes 'Object' and 'Method' |my_hugo = Hugo.new |puts my_hugo.object_id # => 22497820 (for example) |myhi = my_hugo.method(:hi) |myhi[] # => An instance of Hugo says 'Hi!' |puts myhi.instance_id # => 22497820 (for example) |p myhi.method_name # => ["Hugo", "hi"] Why object_id? Isn't it more useful to return the receiver itself, e.g. myhi.receiver # => # ? And why should method_name return combination of class name and method name? I think the method_name should return the method name only ("hi" for this case). It may be useful to implement separate method to get a class that holds the method. matz.