Sha256: 48852ba4bc94478b3d98669bcb1907a6b0d0f72717387feeda9070815040c009

Contents?: true

Size: 167 Bytes

Versions: 2

Compression:

Stored size: 167 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-ext-0.4.1 old/lib/RubyExt/ImportAll.rb
ruby-ext-0.4.0 old/lib/RubyExt/ImportAll.rb