Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::StringQuery#method_name?
method_name?
lib/prism/string_query.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/string_query.rb, line 26
def method_name?
StringQuery.method_name?(string)
end
Whether or not this string is a valid method name.