Skip to content

Instantly share code, notes, and snippets.

@goodmike
Created June 4, 2010 13:58
Show Gist options
  • Save goodmike/425441 to your computer and use it in GitHub Desktop.
Save goodmike/425441 to your computer and use it in GitHub Desktop.
module Monkeyedwith
def monkeyed
puts "Invisible Cavemen!"
end
end
class MonkeyString < String
include Monkeyedwith
end
madness = MonkeyString.new("madness") # => "madness"
madness.monkeyed
# Invisible Cavemen!
# => nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment