Skip to content

Instantly share code, notes, and snippets.

@AlexWheeler
Created August 30, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexWheeler/254c0030f4ef5ed9369df19ee89e6262 to your computer and use it in GitHub Desktop.
Save AlexWheeler/254c0030f4ef5ed9369df19ee89e6262 to your computer and use it in GitHub Desktop.
module C
def some_method
@db.do_seomthing
end
end
class A
include C
def initialize(db)
@db = db
end
end
class B
include C
def initialize(db)
@db = db
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment