Class: RailsStats::CodeStatistics
- Inherits:
-
Object
- Object
- RailsStats::CodeStatistics
- Defined in:
- lib/rails_stats/code_statistics.rb
Instance Method Summary collapse
-
#initialize(root_directory, opts = {}) ⇒ CodeStatistics
constructor
A new instance of CodeStatistics.
- #to_s ⇒ Object
Constructor Details
#initialize(root_directory, opts = {}) ⇒ CodeStatistics
Returns a new instance of CodeStatistics.
5 6 7 8 |
# File 'lib/rails_stats/code_statistics.rb', line 5 def initialize(root_directory, opts = {}) @calculator = RailsStats::StatsCalculator.new(root_directory) @formatter = load_formatter(opts) end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/rails_stats/code_statistics.rb', line 10 def to_s @formatter.to_s end |