class

Crowbar::Selectors::Delimiters

Inherits Crowbar::Selector < Reference < Object

Selects matched delimiter blocks (e.g. quotes or brackets)

Constructors

new(open_byte : UInt8, close_byte : UInt8, weight : Float64 = 1.0)
Source

Instance methods

close_byte
Source
open_byte
Source
select(buffer : Buffer) : Array(Tuple(Int32, Int32))

Returns an array of target ranges {start_index, end_index_exclusive}

Source