Class: RubyCritic::SourceControlSystem::Git::Churn
- Inherits:
-
Object
- Object
- RubyCritic::SourceControlSystem::Git::Churn
- Defined in:
- lib/rubycritic/source_control_systems/git/churn.rb
Instance Method Summary collapse
- #date_of_last_commit(path) ⇒ Object
-
#initialize ⇒ Churn
constructor
A new instance of Churn.
- #revisions_count(path) ⇒ Object
Constructor Details
#initialize ⇒ Churn
Returns a new instance of Churn.
24 25 26 27 28 29 30 |
# File 'lib/rubycritic/source_control_systems/git/churn.rb', line 24 def initialize @renames = Renames.new @date = nil @stats = {} call end |
Instance Method Details
#date_of_last_commit(path) ⇒ Object
36 37 38 |
# File 'lib/rubycritic/source_control_systems/git/churn.rb', line 36 def date_of_last_commit(path) stats(path).date end |
#revisions_count(path) ⇒ Object
32 33 34 |
# File 'lib/rubycritic/source_control_systems/git/churn.rb', line 32 def revisions_count(path) stats(path).count end |