Create a gist now

Instantly share code, notes, and snippets.

# String#+ appends a string, ¿por qué no los dos?
class String
def - s
self.dup[0...self.rindex(s)||self.length]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment