Class: RailsIdle::Report
- Inherits:
-
Object
- Object
- RailsIdle::Report
- Defined in:
- lib/rails-idle/report.rb
Constant Summary collapse
- CALCULATED_KEY =
:calculated
- COUNTER_KEY =
RailsIdle::Storage::COUNTER_KEY
Instance Method Summary collapse
-
#initialize(collector) ⇒ Report
constructor
A new instance of Report.
- #prepare ⇒ Object
Constructor Details
#initialize(collector) ⇒ Report
Returns a new instance of Report.
6 7 8 |
# File 'lib/rails-idle/report.rb', line 6 def initialize(collector) @tree = TreeBuilder.new(collector).tree end |
Instance Method Details
#prepare ⇒ Object
10 11 12 13 14 |
# File 'lib/rails-idle/report.rb', line 10 def prepare calc_counter!(@tree) #sort!(@obj) @tree end |