Created
May 19, 2014 03:11
-
-
Save yelinaung/5631f29cf9042db62d0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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