add_method(method)
Adds method to Object instead of self.
# File lib/rdoc/top_level.rb, line 351 def add_method(method) object_class.record_location self return method unless @document_self object_class.add_method method end