We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fc2a66 commit 60389c4Copy full SHA for 60389c4
1 file changed
lib/pattern_patch/core_ext/string.rb
@@ -3,7 +3,7 @@ class String
3
# data from matches. Modifies the receiver. The receiver
4
# need not match the matches.regexp.
5
#
6
- # :matches: A MatchData object returned by Regexp#match
+ # [matches] [MatchData] A MatchData object returned by Regexp#match
7
def apply_matches!(matches)
8
search_position = 0
9
while (m = /\\(\d+)/.match(self, search_position))
@@ -19,7 +19,7 @@ def apply_matches!(matches)
19
# in self replaced by appropriate data from matches. The receiver
20
21
22
23
def apply_matches(matches)
24
string = clone
25
string.apply_matches! matches
0 commit comments