1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-11-27 14:55:31 +01:00
parent f0bfa266d7
commit f02d2f82bf
17 changed files with 214 additions and 3 deletions

View file

@ -46,4 +46,15 @@ module StringSpecs
self.replace(str)
end
end
class SpecialVarProcessor
def process(match)
if $~ != nil
str = $~[0]
else
str = "unset"
end
"<#{str}>"
end
end
end