Class: URI::SshGit::Generic
- Inherits:
-
Generic
- Object
- Generic
- URI::SshGit::Generic
- Defined in:
- lib/uri/ssh_git/generic.rb
Overview
Instance Method Summary collapse
-
#to_s ⇒ String
Git repository url via ssh protocol.
Instance Method Details
#to_s ⇒ String
Returns git repository url via ssh protocol.
14 15 16 17 |
# File 'lib/uri/ssh_git/generic.rb', line 14 def to_s show_path = path.slice(1..-1) if path.start_with?('/') "#{user}@#{host}:#{show_path}" end |