Created
March 28, 2013 23:41
-
-
Save acook/5267707 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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