Actions
Bug #8044
closedObject#methods incompatible with prepend
    Bug #8044:
    Object#methods incompatible with prepend
  
Description
Object#methods incompatible with prepend:
o = Object.new
def o.foo; end
o.methods(false) # => [:foo], ok
o.singleton_class.send :prepend, Enumerable
o.methods(false) # => [], should be [:foo]
        
           Updated by marcandre (Marc-Andre Lafortune) over 12 years ago
          Updated by marcandre (Marc-Andre Lafortune) over 12 years ago
          
          
        
        
      
      {public|protected|private}_methods have the same problem, since they all call class_instance_method_list
        
           Updated by nobu (Nobuyoshi Nakada) over 12 years ago
          Updated by nobu (Nobuyoshi Nakada) over 12 years ago
          
          
        
        
      
      - Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r39744.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
class.c: from the origin class
- class.c (rb_obj_singleton_methods): collect methods from the origin
 class. [ruby-core:53207] [Bug #8044]
Actions