Skip to content

Instantly share code, notes, and snippets.

@acook
Created March 28, 2013 23:41
Show Gist options
  • Save acook/5267707 to your computer and use it in GitHub Desktop.
Save acook/5267707 to your computer and use it in GitHub Desktop.
class Foo
def whatever
puts 'whatever foo'
end
end
module Fooish
def whatever
raise NotImplementedError, "This is a Fooish method, you need to implement the guts of it in #{self.is_a? Module ? self.name : self.class.name}."
end
end
class Bar
include Fooish
def whatever
puts 'whatever bar'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment