Skip to content

Instantly share code, notes, and snippets.

@yelinaung
Created May 19, 2014 03:11
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 yelinaung/5631f29cf9042db62d0e to your computer and use it in GitHub Desktop.
Save yelinaung/5631f29cf9042db62d0e to your computer and use it in GitHub Desktop.
def uni512zg1(input_text)
output_text = input_text
puts output_text
{% for rule in uni512zg1_rules -%}
output_text = output_text.gsub("{{rule.0}}","{{rule.1|replace("$","\\\\") }}")
{% endfor -%}
end
def zg12uni51(input_text)
output_text = input_text
puts output_text
{% for rule in zg12uni51_rules -%}
output_text = output_text.gsub("{{rule.0}}","{{rule.1|replace("$","\\\\") }}")
{% endfor -%}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment