stdlib/cgi/0/core.rbs in rbs-2.8.0 vs stdlib/cgi/0/core.rbs in rbs-2.8.1

- old
+ new

@@ -147,11 +147,11 @@ # # returns true if form has 'field_name' # cgi.has_key?('field_name') # cgi.has_key?('field_name') # cgi.include?('field_name') # -# CAUTION! [cgi]('field_name') returned an Array with the old cgi.rb(included in +# CAUTION! `cgi['field_name']` returned an Array with the old cgi.rb(included in # Ruby 1.6) # # ### Get form values as hash # # require "cgi" @@ -711,12 +711,15 @@ # <!-- rdoc-file=lib/cgi/cookie.rb --> # Domain for which this cookie applies, as a `String` # def domain: () -> String? - # <!-- rdoc-file=lib/cgi/cookie.rb --> - # Domain for which this cookie applies, as a `String` + # <!-- + # rdoc-file=lib/cgi/cookie.rb + # - domain=(str) + # --> + # Set domain for which this cookie applies # def domain=: (String domain) -> String # <!-- rdoc-file=lib/cgi/cookie.rb --> # Time at which this cookie expires, as a `Time` @@ -754,22 +757,28 @@ # <!-- rdoc-file=lib/cgi/cookie.rb --> # Name of this cookie, as a `String` # def name: () -> String - # <!-- rdoc-file=lib/cgi/cookie.rb --> - # Name of this cookie, as a `String` + # <!-- + # rdoc-file=lib/cgi/cookie.rb + # - name=(str) + # --> + # Set name of this cookie # def name=: (String name) -> String # <!-- rdoc-file=lib/cgi/cookie.rb --> # Path for which this cookie applies, as a `String` # def path: () -> String? - # <!-- rdoc-file=lib/cgi/cookie.rb --> - # Path for which this cookie applies, as a `String` + # <!-- + # rdoc-file=lib/cgi/cookie.rb + # - path=(str) + # --> + # Set path for which this cookie applies # def path=: (String path) -> String # <!-- rdoc-file=lib/cgi/cookie.rb --> # True if this cookie is secure; false otherwise @@ -859,11 +868,11 @@ # <!-- # rdoc-file=ext/cgi/escape/escape.c # - CGI.escape(string) -> string # --> - # Returns URL-escaped string. + # Returns URL-escaped string (`application/x-www-form-urlencoded`). # def escape: (string str) -> String # <!-- # rdoc-file=ext/cgi/escape/escape.c @@ -875,10 +884,10 @@ # <!-- # rdoc-file=ext/cgi/escape/escape.c # - CGI.unescape(string, encoding=@@accept_charset) -> string # --> - # Returns URL-unescaped string. + # Returns URL-unescaped string (`application/x-www-form-urlencoded`). # def unescape: (string str, ?encoding encoding) -> String # <!-- # rdoc-file=ext/cgi/escape/escape.c