-
-
Notifications
You must be signed in to change notification settings - Fork 753
Conversation
@@ -643,7 +643,7 @@ def default_formatter=(value) | |||
|
|||
# @private | |||
def formatters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should make this method public and doc it. Without it being public there's no way to query RSpec to ask what formatters are being used. The doc can mention that a dup is returned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
@@ -641,9 +641,16 @@ def default_formatter=(value) | |||
formatter_loader.default_formatter = value | |||
end | |||
|
|||
# @private | |||
# @api public |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? I would expect YARD to treat it as public anyway...
(Don't hold off merging on this...I'm mostly just curious).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er, force of habit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pruned it with a [skip ci] ;)
LGTM, merge when green. |
[skip ci]
[skip ci]
Dup formatters to prevent mutation
Counterpart to #1483 this prevents mutation of the formatter array.