Skip to content

Instantly share code, notes, and snippets.

@aereal
Created May 7, 2014 07:27
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 aereal/8397028f06dfa3df4519 to your computer and use it in GitHub Desktop.
Save aereal/8397028f06dfa3df4519 to your computer and use it in GitHub Desktop.
using AntiString
puts !"和尚" # -> 尚和
module AntiString
refine String do
def !@
self.reverse
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment