SHARE
TWEET

Untitled

a guest Jan 17th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. module MyAwesomeDSL
  3.  
  4.   def define_blabla
  5.     ...
  6.   end
  7.  
  8.   def something_else
  9.  
  10.   end
  11.  
  12.   def define_something(&block)
  13.     MyAwesomeDSL.module_exec(&block)
  14.   end
  15. end
  16.  
  17.  
  18.  
  19. include MyAwesomeDSL
  20.  
  21.  
  22.  
  23. define_something do
  24.   define_blabla
  25.   something_else
  26.   ...
  27. end
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