Class: Git::StreamFileCopy
- Inherits:
-
Object
- Object
- Git::StreamFileCopy
- Defined in:
- lib/git/stream.rb
Instance Attribute Summary collapse
-
#repository_path_from ⇒ Object
Returns the value of attribute repository_path_from.
-
#repository_path_to ⇒ Object
Returns the value of attribute repository_path_to.
Instance Method Summary collapse
-
#initialize(repository_path_from, repository_path_to) ⇒ StreamFileCopy
constructor
A new instance of StreamFileCopy.
- #to_s ⇒ Object
Constructor Details
#initialize(repository_path_from, repository_path_to) ⇒ StreamFileCopy
Returns a new instance of StreamFileCopy.
115 116 117 118 |
# File 'lib/git/stream.rb', line 115 def initialize(repository_path_from, repository_path_to) @repository_path_from = repository_path_from @repository_path_to = repository_path_to end |
Instance Attribute Details
#repository_path_from ⇒ Object
Returns the value of attribute repository_path_from.
113 114 115 |
# File 'lib/git/stream.rb', line 113 def repository_path_from @repository_path_from end |
#repository_path_to ⇒ Object
Returns the value of attribute repository_path_to.
113 114 115 |
# File 'lib/git/stream.rb', line 113 def repository_path_to @repository_path_to end |
Instance Method Details
#to_s ⇒ Object
120 121 122 |
# File 'lib/git/stream.rb', line 120 def to_s "C #{repository_path_from} #{repository_path_to}\n" end |