Ticket #204 (new defect)
Private methods redefined public are still in private_methods
| Reported by: | vincent.isambart@… | Owned by: | eloy.de.enige@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 1.0 |
| Component: | MacRuby | Keywords: | #reduction |
| Cc: |
Description
All classes have a private puts method. However, if you redefine publically puts in a class, puts is still in its private methods list (but it's also in the public methods). It should only be in the public methods.
class A; end p A.private_instance_methods.grep(/puts/) p A.public_instance_methods.grep(/puts/) class A def puts end end p A.private_instance_methods.grep(/puts/) p A.public_instance_methods.grep(/puts/)
displays:
[:puts] [] [:puts] [:puts]
instead of: (Ruby 1.9)
[:puts] [] [] [:puts]
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


