enum

Bidi::Direction

Inherits Enum < Comparable < Value < Object

Paragraph directionality

Represents the overall direction of a paragraph after bidi analysis:

  • Ltr: Entirely left-to-right text
  • Rtl: Entirely right-to-left text
  • Mixed: Mixed-direction text containing both LTR and RTL content

Constants

Ltr = 0
Rtl = 1
Mixed = 2

Instance methods

ltr?

Returns true if this enum value equals Ltr

Source
mixed?

Returns true if this enum value equals Mixed

Source
rtl?

Returns true if this enum value equals Rtl

Source