Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created December 11, 2009 03:41
Show Gist options
  • Save vangberg/253964 to your computer and use it in GitHub Desktop.
Save vangberg/253964 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