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
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 |