Skip to content

Instantly share code, notes, and snippets.

@jicksta
Forked from vangberg/black_hole.rb
Created February 17, 2010 07:22
Show Gist options
  • Save jicksta/306393 to your computer and use it in GitHub Desktop.
Save jicksta/306393 to your computer and use it in GitHub Desktop.
class BlackHole
instance_methods.each { |m| undef_method m unless m =~ /^__/ }
def method_missing(*a) self end
end
BlackHole.new.doesnt.care("much").about(:anything, :you, :do).okay?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment