class RubyCritic::SourceControlSystem::Git::Renames

Public Class Methods

new() click to toggle source
# File lib/rubycritic/source_control_systems/git/churn.rb, line 9
def initialize
  @data = {}
end

Public Instance Methods

current(name) click to toggle source
# File lib/rubycritic/source_control_systems/git/churn.rb, line 18
def current(name)
  @data.fetch(name, name)
end
renamed(from, to) click to toggle source
# File lib/rubycritic/source_control_systems/git/churn.rb, line 13
def renamed(from, to)
  current = current(to)
  @data[from] = current
end