Skip to content

Instantly share code, notes, and snippets.

@rafer
Last active December 19, 2015 19:08

Revisions

  1. rafer revised this gist Jul 15, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions bad_kitty.rb
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # coding: utf-8

    # Can ruby have method names have newlines/be crazy?

    class BadKitty
  2. rafer revised this gist Jul 15, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions bad_kitty.rb
    Original file line number Diff line number Diff line change
    @@ -14,3 +14,4 @@ class BadKitty
    end

    BadKitty.new.send(BadKitty::FACE)
    puts BadKitty.new.methods # Well shit.
  3. rafer created this gist Jul 15, 2013.
    16 changes: 16 additions & 0 deletions bad_kitty.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # 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)