struct

Bidi::BidiMatchedOpeningBracket

Inherits Struct < Value < Object

This is the return value of BidiDataSource#bidi_matched_opening_bracket().

It represents the matching normalized opening bracket for a given bracket in a bracket pair, and whether or not that bracket is opening.

Constructors

new(opening : Char, is_open : Bool)
Source

Instance methods

is_open

Whether or not the requested bracket was an opening bracket. True for opening

Source
is_open=(is_open : Bool)

Whether or not the requested bracket was an opening bracket. True for opening

Source
opening

The corresponding opening bracket in this bracket pair, normalized

In case of opening brackets, this will be the bracket itself, except for when the bracket is not normalized, in which case it will be the normalized form.

Source
opening=(opening : Char)

The corresponding opening bracket in this bracket pair, normalized

In case of opening brackets, this will be the bracket itself, except for when the bracket is not normalized, in which case it will be the normalized form.

Source