Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
CGI::QueryExtension#has_key?
(::String key) -> bool
has_key?(*args)
lib/cgi/core.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/cgi/core.rb, line 738
def has_key?(*args)
@params.has_key?(*args)
end
Returns true if a given query string parameter exists.