Skip to content

Commit 4d8fd82

Browse files
committed
Rubocop cleanup
1 parent 48d3dc9 commit 4d8fd82

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/regexp-examples/helpers.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ module RegexpExamples
1010
# Edge case:
1111
# permutations_of_strings [ [] ] #=> nil
1212
# (For example, ths occurs during /[^\d\D]/.examples #=> [])
13-
def self.permutations_of_strings(arrays_of_strings, max_results_limiter = MaxResultsLimiterByProduct.new)
13+
def self.permutations_of_strings(arrays_of_strings,
14+
max_results_limiter = MaxResultsLimiterByProduct.new)
1415
partial_result = max_results_limiter.limit_results(arrays_of_strings.shift)
1516
return partial_result if arrays_of_strings.empty?
16-
partial_result.product(permutations_of_strings(arrays_of_strings, max_results_limiter)).map do |result|
17+
partial_result.product(
18+
permutations_of_strings(arrays_of_strings, max_results_limiter)
19+
).map do |result|
1720
join_preserving_capture_groups(result)
1821
end
1922
end

0 commit comments

Comments
 (0)