Skip to content

Instantly share code, notes, and snippets.

@vesh95
Created November 26, 2019 04:41
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 vesh95/5532f91f4a880afd89d22a21a7ecfda3 to your computer and use it in GitHub Desktop.
Save vesh95/5532f91f4a880afd89d22a21a7ecfda3 to your computer and use it in GitHub Desktop.
Ruby module mixin template
module Name
def self.included(base)
base.extend ClassMethods
base.send :include, InstanceMethods
end
module ClassMethods
end
module InstanceMethods
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment