Module: Tins::ModuleGroup

Defined in:
lib/tins/module_group.rb

Class Method Summary collapse

Class Method Details

.[](*modules) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/tins/module_group.rb', line 3

def self.[](*modules)
  modul = Module.new
  modules.each do |m|
    m.module_eval { include modul }
  end
  modul
end