Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created September 18, 2011 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havenwood/1224794 to your computer and use it in GitHub Desktop.
Save havenwood/1224794 to your computer and use it in GitHub Desktop.
Say
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