method

version_for_dir

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.

version_for_dir(d)
public

No documentation available.

# File railties/lib/rails/vendor_gem_source_index.rb, line 103
    def version_for_dir(d)
      matches = /-([^-]+)$/.match(d)
      Gem::Version.new(matches[1]) if matches
    end