Skip to content

Instantly share code, notes, and snippets.

@dan-manges
Created June 8, 2010 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dan-manges/430424 to your computer and use it in GitHub Desktop.
Save dan-manges/430424 to your computer and use it in GitHub Desktop.
def mask(x)x[0,6]+'*'*(x.size-10)+x[-4..-1]end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment