Top Level Namespace
Defined Under Namespace
Modules: Aggrobot, LogStasher
Constant Summary collapse
- Infinity =
(1.0/0)
Instance Method Summary collapse
Instance Method Details
#los_labels ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/aggrobot/query_planner/agg.rb', line 5 def los_labels ->(label){ range = label.match(/(?<begin>\-?\d+)?(?<separator>[\-\<])?(?<end>\-?\d+)?/) case range[:separator] when '<' "#{range[:end]}+" when '-' "#{range[:begin]} to #{range[:end]}" else label end } end |