Skip to content

Instantly share code, notes, and snippets.

@omgitsads
Created September 30, 2009 11:32
Show Gist options
  • Save omgitsads/198028 to your computer and use it in GitHub Desktop.
Save omgitsads/198028 to your computer and use it in GitHub Desktop.
class String
def strip_test
strip
end
end
"string ".strip_test
# => "string"
class String
def strip_test!
strip!
end
end
"string ".strip_test!
# => "string"
"string".strip_test!
# => nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment