Class: Log::Analyzer::Analyze
- Inherits:
-
Object
- Object
- Log::Analyzer::Analyze
- Defined in:
- lib/log-analyzer/analyze.rb
Instance Method Summary collapse
-
#initialize(files, routes_text) ⇒ Analyze
constructor
A new instance of Analyze.
- #result ⇒ Object
- #sort ⇒ Object
Constructor Details
Instance Method Details
#result ⇒ Object
9 10 11 |
# File 'lib/log-analyzer/analyze.rb', line 9 def result @result ||= matche end |
#sort ⇒ Object
13 14 15 |
# File 'lib/log-analyzer/analyze.rb', line 13 def sort result.sort{ |a, b| b.count <=> a.count } end |