Skip to content

Commit 9715b4b

Browse files
committed
📚 Workaround rdoc issue with :yield: and visibility
Rdoc seems to get confused with the yield in this method. It somehow causes all of private methods to be documented as public. Adding `:yield:` fixes it. (I think that changing the block containing yield to be multiline _also_ fixes it, but this yield needed better docs anyway.)
1 parent 9980c69 commit 9715b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/imap/sequence_set.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def numbers; each_number.to_a end
907907
# normalized form, this will yield the same values as #each_element.
908908
#
909909
# Related: #entries, #each_element
910-
def each_entry(&block)
910+
def each_entry(&block) # :yields: integer or range or :*
911911
return to_enum(__method__) unless block_given?
912912
return each_element(&block) unless @string
913913
@string.split(",").each do yield tuple_to_entry str_to_tuple _1 end

0 commit comments

Comments
 (0)