Skip to content

Instantly share code, notes, and snippets.

@rafer
Last active December 19, 2015 19:08
Show Gist options
  • Save rafer/6003505 to your computer and use it in GitHub Desktop.
Save rafer/6003505 to your computer and use it in GitHub Desktop.
# coding: utf-8
# Can ruby have method names have newlines/be crazy?
class BadKitty
FACE = "
|\\_/|
/ @ @ \\
( > º < )
`>>x<<´
/ O \\ "
define_method(FACE) do
puts "BAD KITTY"
end
end
BadKitty.new.send(BadKitty::FACE)
puts BadKitty.new.methods # Well shit.
@richo
Copy link

richo commented Jul 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment