method

load_specification

rails latest stable - Class: Rails::VendorGemSourceIndex

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

load_specification(gem_dir)
public

No documentation available.

# File railties/lib/rails/vendor_gem_source_index.rb, line 108
    def load_specification(gem_dir)
      spec_file = File.join(gem_dir, '.specification')
      YAML.load_file(spec_file) if File.exist?(spec_file)
    end