Skip to content

Commit

Permalink
Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre authored and mergify[bot] committed Dec 1, 2020
1 parent 14585a7 commit ad7d911
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ module Metrics
module Utils
# @api private
#
# Helps to calculate code length for the provided node.
# Identifies repetitions `&.` on the same variable:
#
# my_var&.foo
# my_var&.bar # => repeated
# my_var = baz # => reset
# my_var&.qux # => not repeated
module RepeatedCsendDiscount
def reset_repeated_csend
@repeated_csend = {}
Expand Down

0 comments on commit ad7d911

Please sign in to comment.