Class: RailsStats::RootStatistics
- Inherits:
-
Object
- Object
- RailsStats::RootStatistics
- Defined in:
- lib/rails_stats/root_statistics.rb
Constant Summary collapse
- ROOT_FOLDERS =
{ "lib" => "Libraries", "config" => "Configuration" }
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) ⇒ RootStatistics
constructor
A new instance of RootStatistics.
Constructor Details
#initialize(directory) ⇒ RootStatistics
Returns a new instance of RootStatistics.
10 11 12 13 14 15 |
# File 'lib/rails_stats/root_statistics.rb', line 10 def initialize(directory) @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/root_statistics.rb', line 3 def statistics @statistics end |
#test ⇒ Object (readonly)
Returns the value of attribute test.
3 4 5 |
# File 'lib/rails_stats/root_statistics.rb', line 3 def test @test end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
3 4 5 |
# File 'lib/rails_stats/root_statistics.rb', line 3 def total @total end |