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 18 |
# File 'lib/uri/ssh_git/generic.rb', line 14 def to_s str = '' str << "#{user}@" if user && !user.empty? str << "#{host}:#{path}" end |