Skip to content

Instantly share code, notes, and snippets.

@guimello
Created June 3, 2010 07:28
Show Gist options
  • Save guimello/423598 to your computer and use it in GitHub Desktop.
Save guimello/423598 to your computer and use it in GitHub Desktop.
reindent tabs with spaces
class String
def reindent(by = 2)
self.gsub("\t", " " * by)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment