Last active
July 21, 2016 18:56
-
-
Save vcolavin/fc0c00bc0dc47614f286abb44cf8299b 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 Wolf < AR::Base | |
module Movable | |
include GeneralMovingMethods | |
# here would be specifics about wolves moving | |
end | |
end | |
class Rabbit < AR::Base | |
module Movable | |
include GeneralMovingMethods | |
# here would be specifics about rabbits moving | |
end | |
end | |
module GeneralMovingMethods | |
def whatever | |
# some general stuff | |
end | |
end | |
Rabbit.new.Movable.move |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment