-
-
Save havenwood/3c6329429e91c6703f5e86fc97be0e8e to your computer and use it in GitHub Desktop.
Refinement example from #ruby freenode.net IRC channel
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
module T | |
refine Object do | |
def t key, *args | |
GDO::Lang::Trans.instance.translate key, *args | |
end | |
end | |
end | |
using T |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment