stdlib/cgi/0/core.rbs in rbs-3.6.0.pre.2 vs stdlib/cgi/0/core.rbs in rbs-3.6.0.pre.3
- old
+ new
@@ -380,12 +380,10 @@
# # {"name1" => ["value1", "value2", ...],
# # "name2" => ["value1", "value2", ...], ... }
#
def self.parse: (String query) -> Hash[String, Array[String]]
- public
-
# <!-- rdoc-file=lib/cgi/core.rb -->
# Return the accept character set for this CGI instance.
#
attr_reader accept_charset: String
@@ -704,12 +702,10 @@
# cookies = CGI::Cookie.parse("raw_cookie_string")
# # { "name1" => cookie1, "name2" => cookie2, ... }
#
def self.parse: (String raw_cookie) -> Hash[String, instance]
- public
-
# <!-- rdoc-file=lib/cgi/cookie.rb -->
# Domain for which this cookie applies, as a `String`
#
def domain: () -> String?
@@ -862,12 +858,10 @@
def initialize: (String name_string, *String value) -> void
| (Hash[String, untyped] options_hash) -> void
end
module Escape
- public
-
# <!--
# rdoc-file=ext/cgi/escape/escape.c
# - CGI.escape(string) -> string
# -->
# Returns URL-escaped string (`application/x-www-form-urlencoded`).
@@ -938,12 +932,10 @@
# 4. The initialize_query method, for initializing the above mechanisms,
# handling multipart forms, and allowing the class to be used in "offline"
# mode.
#
module QueryExtension
- public
-
# <!--
# rdoc-file=lib/cgi/core.rb
# - [](key)
# -->
# Get the value for the parameter with a given key.
@@ -1132,11 +1124,9 @@
def read_multipart: (String boundary, Integer content_length) -> (Tempfile | StringIO)
end
module Util
include CGI::Escape
-
- public
# <!--
# rdoc-file=lib/cgi/util.rb
# - escapeElement(string, *elements)
# -->