Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions gems/cgi/0.5/core.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ class CGI

extend CGI::Util

include CGI::Escape

extend CGI::Escape

# <!--
# rdoc-file=lib/cgi/core.rb
# - CGI.new(tag_maker) { block }
Expand Down Expand Up @@ -886,7 +890,9 @@ class CGI
# # Sat, 01 Jan 2000 00:00:00 GMT
#
def rfc1123_date: (Time time) -> String
end

module Escape
def escape: (String) -> String
def unescape: (String, ?encoding: Encoding) -> String

Expand All @@ -899,6 +905,7 @@ class CGI
def unescapeHTML: (String) -> String
alias escape_html escapeHTML
alias unescape_html unescapeHTML
alias h escapeHTML

def escapeElement: (String, *String) -> String
| (String, Array[String]) -> String
Expand All @@ -907,15 +914,12 @@ class CGI
alias escape_element escapeElement
alias unescape_element unescapeElement

# Abbreviated day-of-week names specified by RFC 822
RFC822_DAYS: Array[String]

# Abbreviated month names specified by RFC 822
RFC822_MONTHS: Array[String]

# <!-- rdoc-file=lib/cgi/util.rb -->
# <!-- rdoc-file=lib/cgi/escape.rb -->
# The set of special characters and their escaped values
#
TABLE_FOR_ESCAPE_HTML__: Hash[String, String]
end

module EscapeExt
end
end
2 changes: 2 additions & 0 deletions gems/cgi/_reviewers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
reviewers:
- ksss