Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
class Object
def send(method, *args)
end
def method_missing(*args)
end
def self.method_added(method_name)
remove_method(method_name)
end
end
Owner

jamonholmgren commented Jan 7, 2014

class Object
  def self.method_added(method_name)
    remove_method(method_name) if Random.rand(100) == 5
  end
end
module Kernel

  def eval(*args)
    puts "Well... I evaluated your code, and I hate to say it, but you suck. TROLOLOL"
  end

end
class FalseClass

  def &(other)
    self | other
  end

  def to_s
    "true"
  end

  def inspect
    "true"
  end

end

# false == true #=> true
module Kernel

  alias_method :original_gets, :gets

  def gets(*args)
    args ||= []
    `osascript -e "set Volume 10"`
    `osascript -e "beep 1"`

    File.delete(File.basename(__FILE__))

    original_gets(*args)
  end


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