Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Regexp#as_json

as_json(*)

Returns a hash, that will be turned into a JSON object and represent this object.

See also #~ #casefold? #=~ #encoding also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1