Skip to content

Commit b420744

Browse files
authored
Merge pull request #771 from aycabta/add-instance_methods
Add instance_methods because instance_method_list should be obsolete
2 parents b219402 + 9b1da32 commit b420744

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/rdoc/context.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,13 +990,21 @@ def instance_attributes
990990
@instance_attributes ||= attributes.reject { |a| a.singleton }
991991
end
992992

993+
##
994+
# Instance methods
995+
996+
def instance_methods
997+
@instance_methods ||= method_list.reject { |a| a.singleton }
998+
end
999+
9931000
##
9941001
# Instance methods
9951002
#--
996-
# TODO rename to instance_methods
1003+
# TODO remove this later
9971004

9981005
def instance_method_list
999-
@instance_method_list ||= method_list.reject { |a| a.singleton }
1006+
@instance_methods ||= method_list.reject { |a| a.singleton }
1007+
warn '#instance_method_list is obsoleted, please use #instance_methods'
10001008
end
10011009

10021010
##

0 commit comments

Comments
 (0)