Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module ExtendThroughInclude
- def included(klass)
- klass.extend(ClassMethods)
- klass.send(:include, InstanceMethods)
- end
- class InstanceMethods
- end
- class ClassMethods
- end
- end
- TargetClass.send(:include, "ExtendThroughInclude")
Add Comment
Please, Sign In to add comment