Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment