Sha256: 6c5ab9597c6969c6c9c514f50504f6bdf6ea6430b96ee9ecff15462379f83c60

Contents?: true

Size: 339 Bytes

Versions: 21

Compression:

Stored size: 339 Bytes

Contents

Dir.glob(File.expand_path('../../helpers/**/*.rb', __FILE__)).each do |file|
  unless file == __FILE__
    require file
    module_name = []
    File.read(file).each_line do |line|
      if line =~ /module\ /
        module_name << line.gsub(/module\ /, '').strip
      end
    end
    include module_name.join('::').constantize
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
heartwood-0.0.1 lib/generators/helpers/_autoloader.rb
cambium-1.3.2 lib/generators/helpers/_autoloader.rb
cambium-1.3.1 lib/generators/helpers/_autoloader.rb
cambium-1.3.0 lib/generators/helpers/_autoloader.rb
cambium-1.2.3 lib/generators/helpers/_autoloader.rb
cambium-1.2.2 lib/generators/helpers/_autoloader.rb
cambium-1.2.1 lib/generators/helpers/_autoloader.rb
cambium-1.2.0 lib/generators/helpers/_autoloader.rb
cambium-1.1.6 lib/generators/helpers/_autoloader.rb
cambium-1.1.5 lib/generators/helpers/_autoloader.rb
cambium-1.1.4 lib/generators/helpers/_autoloader.rb
cambium-1.1.3 lib/generators/helpers/_autoloader.rb
cambium-1.1.2 lib/generators/helpers/_autoloader.rb
cambium-1.1.1 lib/generators/helpers/_autoloader.rb
cambium-1.1.0 lib/generators/helpers/_autoloader.rb
cambium-1.0.4 lib/generators/helpers/_autoloader.rb
cambium-1.0.3 lib/generators/helpers/_autoloader.rb
cambium-1.0.2 lib/generators/helpers/_autoloader.rb
cambium-1.0.1 lib/generators/helpers/_autoloader.rb
cambium-1.0.0 lib/generators/helpers/_autoloader.rb