Class: Git::StreamFileRename

Inherits:
Object
  • Object
show all
Defined in:
lib/git/stream.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository_path_from, repository_path_to) ⇒ StreamFileRename

Returns a new instance of StreamFileRename.



130
131
132
133
# File 'lib/git/stream.rb', line 130

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_fromObject

Returns the value of attribute repository_path_from.



128
129
130
# File 'lib/git/stream.rb', line 128

def repository_path_from
  @repository_path_from
end

#repository_path_toObject

Returns the value of attribute repository_path_to.



128
129
130
# File 'lib/git/stream.rb', line 128

def repository_path_to
  @repository_path_to
end

Instance Method Details

#to_sObject



135
136
137
# File 'lib/git/stream.rb', line 135

def to_s
  "R #{repository_path_from} #{repository_path_to}\n"
end