Skip to content

Instantly share code, notes, and snippets.

@yhara
Created Apr 23, 2020
Embed
What would you like to do?
def conv(txt)
txt.gsub(/&Vec<(.+?)>/) do
"&[#{$1}]"
end
end
ARGV.each do |path|
txt = conv File.read(path)
File.write(path, txt)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment