Skip to content

Instantly share code, notes, and snippets.

@yhara
Created April 23, 2020 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yhara/c33676a01e8119a5bb8c69dd7210fdae to your computer and use it in GitHub Desktop.
Save yhara/c33676a01e8119a5bb8c69dd7210fdae to your computer and use it in GitHub Desktop.
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