Skip to content

Instantly share code, notes, and snippets.

@alindeman
Forked from caleywoods/gist:801371
Created January 29, 2011 01:16
Show Gist options
  • Save alindeman/801375 to your computer and use it in GitHub Desktop.
Save alindeman/801375 to your computer and use it in GitHub Desktop.
def upcase(text):
return text.upper()
@upcase
def words(text):
return ' '.join(text)
def words(text)
text.join(' ')
end
alias :words_without_upcase :words
def words(text)
words_without_upcase(text).upcase
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment