stdlib/cgi/0/core.rbs in rbs-3.6.1 vs stdlib/cgi/0/core.rbs in rbs-3.7.0.dev.1
- old
+ new
@@ -358,19 +358,19 @@
# rdoc-file=lib/cgi/core.rb
# - accept_charset()
# -->
# Return the accept character set for all new CGI instances.
#
- def self.accept_charset: () -> String
+ def self.accept_charset: () -> encoding
# <!--
# rdoc-file=lib/cgi/core.rb
# - accept_charset=(accept_charset)
# -->
# Set the accept character set for all new CGI instances.
#
- def self.accept_charset=: (String accept_charset) -> String
+ def self.accept_charset=: (encoding accept_charset) -> encoding
# <!--
# rdoc-file=lib/cgi/core.rb
# - parse(query)
# -->
@@ -383,10 +383,10 @@
def self.parse: (String query) -> Hash[String, Array[String]]
# <!-- rdoc-file=lib/cgi/core.rb -->
# Return the accept character set for this CGI instance.
#
- attr_reader accept_charset: String
+ attr_reader accept_charset: encoding
# <!-- rdoc-file=lib/cgi/core.rb -->
# This method is an alias for #http_header, when HTML5 tag maker is inactive.
#
# NOTE: use #http_header to create HTTP header blocks, this alias is only