Created
September 18, 2011 06:09
-
-
Save havenwood/1224794 to your computer and use it in GitHub Desktop.
Say
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class String | |
def say | |
puts self | |
end | |
end | |
%w[cats vanilla trees].each(&:say) | |
#=> | |
cats | |
vanilla | |
trees |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment