Class: RailsStats::AppStatistics
- Inherits:
-
Object
- Object
- RailsStats::AppStatistics
- Defined in:
- lib/rails_stats/app_statistics.rb
Instance Attribute Summary collapse
-
#statistics ⇒ Object
readonly
Returns the value of attribute statistics.
-
#test ⇒ Object
readonly
Returns the value of attribute test.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(directory) ⇒ AppStatistics
constructor
A new instance of AppStatistics.
- #key_concepts ⇒ Object
Constructor Details
#initialize(directory) ⇒ AppStatistics
Returns a new instance of AppStatistics.
5 6 7 8 9 10 11 |
# File 'lib/rails_stats/app_statistics.rb', line 5 def initialize(directory) @directories = [] @test = false @directory = directory @statistics = calculate_statistics @total = calculate_total end |
Instance Attribute Details
#statistics ⇒ Object (readonly)
Returns the value of attribute statistics.
3 4 5 |
# File 'lib/rails_stats/app_statistics.rb', line 3 def statistics @statistics end |
#test ⇒ Object (readonly)
Returns the value of attribute test.
3 4 5 |
# File 'lib/rails_stats/app_statistics.rb', line 3 def test @test end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
3 4 5 |
# File 'lib/rails_stats/app_statistics.rb', line 3 def total @total end |
Instance Method Details
#key_concepts ⇒ Object
13 14 15 |
# File 'lib/rails_stats/app_statistics.rb', line 13 def key_concepts directories.collect{ |path| File.basename(path) } end |