Class: RailsStats::CodeStatistics

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_stats/code_statistics.rb

Instance Method Summary collapse

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_sObject



10
11
12
# File 'lib/rails_stats/code_statistics.rb', line 10

def to_s
  @formatter.to_s
end