daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2018 204 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module TheModule
  2.   def self.included(ac)
  3.     ac.send(:include, InstanceMethods)
  4.   end
  5.  
  6.   module InstanceMethods
  7.     def method1
  8.     end
  9.     def method2
  10.     end
  11.     ...
  12.   end
  13. end
  14.  
  15.  
  16. SomeClass.send(:include, TheModule)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top