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

Symbol#match?

sym.match?(pattern) → true or false
sym.match?(pattern, pos) → true or false

Returns sym.to_s.match?.

See also #match #name #length #next also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1