Module: ImportAll

Defined in:
lib/RubyExt/ImportAll.rb

Instance Method Summary collapse

Instance Method Details

#import_all(*params) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/RubyExt/ImportAll.rb', line 2

def import_all *params
	params.each do |m|
		m.constants.each do |name|
			const_set name, m.const_get(name)
		end
	end
end