Module Parslet::Source::RangeSearch
In: lib/parslet/source/line_cache.rb

Mixin for arrays that implicitly give a number of ranges, where one range begins where the other one ends.

  Example:

    [10, 20, 30]
    # would describe [0, 10], (10, 20], (20, 30]

Methods

find_mid   lbound  

Public Instance methods

Scans the array for the first number that is > than bound. Returns the index of that number.

[Validate]