method

to_s

ruby latest stable - Class: Bundler::Source::Git

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

to_s()
public

No documentation available.

# File lib/bundler/source/git.rb, line 62
      def to_s
        at = if local?
          path
        elsif user_ref = options["ref"]
          if ref =~ /\A[a-z0-9]{4,}\z/
            shortref_for_display(user_ref)
          else
            user_ref
          end
        else
          ref
        end

        rev = begin
                "@#{shortref_for_display(revision)}"
              rescue GitError
                nil
              end

        "#{@safe_uri} (at #{at}#{rev})"
      end