enum

Noir::TopLevelSplit::Escape

Inherits Enum < Comparable < Value < Object

How a backslash is treated.

InQuotes consumes the backslash AND the following character as part of the quoted run, and RETAINS the backslash in the emitted part — verified against the implementations being replaced (e.g. drogon/httplib/oatpp split_top_level_args, which append the char first and only then decide whether it was an escape). Callers re-parse the literal themselves, so stripping the backslash here would have silently changed every route string that contained an escaped quote.

Constants

None = 0
InQuotes = 1
Always = 2

Instance methods

always?

Returns true if this enum value equals Always

Source
in_quotes?

Returns true if this enum value equals InQuotes

Source
none?

Returns true if this enum value equals None

Source