Skip to content

Commit 017e6c9

Browse files
committed
Duck type each_ancestor
1 parent 1d3f389 commit 017e6c9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

History.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Bug fixes
44
* Fix infinite loop created when re-encountering BasicObject.
5+
* RDoc::Context#each_ancestor is now provided for duck-typing.
56

67
=== 3.6 / 2011-05-13
78

lib/rdoc/context.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,13 @@ def display(method_attr) # :nodoc:
663663
end
664664
end
665665

666+
##
667+
# Iterator for ancestors for duck-typing. Does nothing. See
668+
# RDoc::ClassModule#each_ancestor.
669+
670+
def each_ancestor # :nodoc:
671+
end
672+
666673
##
667674
# Iterator for attributes
668675

0 commit comments

Comments
 (0)