pretty_match_data 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pretty_match_data.rb +1 -1
- data/pretty_match_data.gemspec +1 -1
- metadata +1 -1
data/lib/pretty_match_data.rb
CHANGED
@@ -5,7 +5,7 @@ class MatchData
|
|
5
5
|
def to_s
|
6
6
|
match = self[0].dup
|
7
7
|
to_a[1..-1].each do |capture|
|
8
|
-
match.gsub!(capture) { |s| underline
|
8
|
+
match.gsub!(capture) { |s| underline + send(_next_color) { s } + underline }
|
9
9
|
end
|
10
10
|
pre_match + underline { match } + post_match
|
11
11
|
end
|
data/pretty_match_data.gemspec
CHANGED