Class: Rbnotes::Commands::Search::SearchEntry
- Inherits:
-
Struct
- Object
- Struct
- Rbnotes::Commands::Search::SearchEntry
- Defined in:
- lib/rbnotes/commands/search.rb
Overview
Each entry of search result is:
[<timestamp>, <line_number>, <matched_text>]
The sort must be done in;
- descending order for <timestamp>,
- ascending ordier for <line_number>.
Instance Method Summary collapse
Instance Method Details
#line_number_digits_size ⇒ Object
105 106 107 |
# File 'lib/rbnotes/commands/search.rb', line 105 def line_number_digits_size line_number.to_s.size end |
#timestamp_size ⇒ Object
101 102 103 |
# File 'lib/rbnotes/commands/search.rb', line 101 def .to_s.size end |