Skip to content

Instantly share code, notes, and snippets.

@havenwood

havenwood/t.rb Secret

Created June 11, 2018 19:21
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 havenwood/3c6329429e91c6703f5e86fc97be0e8e to your computer and use it in GitHub Desktop.
Save havenwood/3c6329429e91c6703f5e86fc97be0e8e to your computer and use it in GitHub Desktop.
Refinement example from #ruby freenode.net IRC channel
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