:MaxClients
configuration sets this.
- #
- # source://webrick//lib/webrick/server.rb#77
- def tokens; end
-
- private
-
- # Accepts a TCP client socket from the TCP server socket +svr+ and returns
- # the client socket.
- #
- # source://webrick//lib/webrick/server.rb#256
- def accept_client(svr); end
-
- # source://webrick//lib/webrick/server.rb#347
- def alarm_shutdown_pipe; end
-
- # Calls the callback +callback_name+ from the configuration with +args+
- #
- # source://webrick//lib/webrick/server.rb#334
- def call_callback(callback_name, *args); end
-
- # source://webrick//lib/webrick/server.rb#359
- def cleanup_listener; end
-
- # source://webrick//lib/webrick/server.rb#342
- def cleanup_shutdown_pipe(shutdown_pipe); end
-
- # source://webrick//lib/webrick/server.rb#338
- def setup_shutdown_pipe; end
-
- # Starts a server thread for the client socket +sock+ that runs the given
- # +block+.
- #
- # Sets the socket to the :WEBrickSocket
thread local variable
- # in the thread.
- #
- # If any errors occur in the block they are logged and handled.
- #
- # source://webrick//lib/webrick/server.rb#288
- def start_thread(sock, &block); end
-end
-
-# source://webrick//lib/webrick/htmlutils.rb#13
-module WEBrick::HTMLUtils
- private
-
- # Escapes &, ", > and < in +string+
- #
- # source://webrick//lib/webrick/htmlutils.rb#18
- def escape(string); end
-
- class << self
- # Escapes &, ", > and < in +string+
- #
- # source://webrick//lib/webrick/htmlutils.rb#18
- def escape(string); end
- end
-end
-
-# HTTPAuth provides both basic and digest authentication.
-#
-# To enable authentication for requests in WEBrick you will need a user
-# database and an authenticator. To start, here's an Htpasswd database for
-# use with a DigestAuth authenticator:
-#
-# config = { :Realm => 'DigestAuth example realm' }
-#
-# htpasswd = WEBrick::HTTPAuth::Htpasswd.new 'my_password_file'
-# htpasswd.auth_type = WEBrick::HTTPAuth::DigestAuth
-# htpasswd.set_passwd config[:Realm], 'username', 'password'
-# htpasswd.flush
-#
-# The +:Realm+ is used to provide different access to different groups
-# across several resources on a server. Typically you'll need only one
-# realm for a server.
-#
-# This database can be used to create an authenticator:
-#
-# config[:UserDB] = htpasswd
-#
-# digest_auth = WEBrick::HTTPAuth::DigestAuth.new config
-#
-# To authenticate a request call #authenticate with a request and response
-# object in a servlet:
-#
-# def do_GET req, res
-# @authenticator.authenticate req, res
-# end
-#
-# For digest authentication the authenticator must not be created every
-# request, it must be passed in as an option via WEBrick::HTTPServer#mount.
-#
-# source://webrick//lib/webrick/httpauth/authenticator.rb#12
-module WEBrick::HTTPAuth
- private
-
- # source://webrick//lib/webrick/httpauth.rb#57
- def _basic_auth(req, res, realm, req_field, res_field, err_type, block); end
-
- # Simple wrapper for providing basic authentication for a request. When
- # called with a request +req+, response +res+, authentication +realm+ and
- # +block+ the block will be called with a +username+ and +password+. If
- # the block returns true the request is allowed to continue, otherwise an
- # HTTPStatus::Unauthorized error is raised.
- #
- # source://webrick//lib/webrick/httpauth.rb#79
- def basic_auth(req, res, realm, &block); end
-
- # Simple wrapper for providing basic authentication for a proxied request.
- # When called with a request +req+, response +res+, authentication +realm+
- # and +block+ the block will be called with a +username+ and +password+.
- # If the block returns true the request is allowed to continue, otherwise
- # an HTTPStatus::ProxyAuthenticationRequired error is raised.
- #
- # source://webrick//lib/webrick/httpauth.rb#91
- def proxy_basic_auth(req, res, realm, &block); end
-
- class << self
- # source://webrick//lib/webrick/httpauth.rb#57
- def _basic_auth(req, res, realm, req_field, res_field, err_type, block); end
-
- # Simple wrapper for providing basic authentication for a request. When
- # called with a request +req+, response +res+, authentication +realm+ and
- # +block+ the block will be called with a +username+ and +password+. If
- # the block returns true the request is allowed to continue, otherwise an
- # HTTPStatus::Unauthorized error is raised.
- #
- # source://webrick//lib/webrick/httpauth.rb#79
- def basic_auth(req, res, realm, &block); end
-
- # Simple wrapper for providing basic authentication for a proxied request.
- # When called with a request +req+, response +res+, authentication +realm+
- # and +block+ the block will be called with a +username+ and +password+.
- # If the block returns true the request is allowed to continue, otherwise
- # an HTTPStatus::ProxyAuthenticationRequired error is raised.
- #
- # source://webrick//lib/webrick/httpauth.rb#91
- def proxy_basic_auth(req, res, realm, &block); end
- end
-end
-
-# Module providing generic support for both Digest and Basic
-# authentication schemes.
-#
-# source://webrick//lib/webrick/httpauth/authenticator.rb#18
-module WEBrick::HTTPAuth::Authenticator
- # The logger for this authenticator
- #
- # source://webrick//lib/webrick/httpauth/authenticator.rb#43
- def logger; end
-
- # The realm this authenticator covers
- #
- # source://webrick//lib/webrick/httpauth/authenticator.rb#33
- def realm; end
-
- # The user database for this authenticator
- #
- # source://webrick//lib/webrick/httpauth/authenticator.rb#38
- def userdb; end
-
- private
-
- # Initializes the authenticator from +config+
- #
- # source://webrick//lib/webrick/httpauth/authenticator.rb#52
- def check_init(config); end
-
- # Ensures +req+ has credentials that can be authenticated.
- #
- # source://webrick//lib/webrick/httpauth/authenticator.rb#72
- def check_scheme(req); end
-
- # source://webrick//lib/webrick/httpauth/authenticator.rb#91
- def error(fmt, *args); end
-
- # source://webrick//lib/webrick/httpauth/authenticator.rb#97
- def info(fmt, *args); end
-
- # source://webrick//lib/webrick/httpauth/authenticator.rb#85
- def log(meth, fmt, *args); end
-end
-
-# source://webrick//lib/webrick/httpauth/authenticator.rb#23
-WEBrick::HTTPAuth::Authenticator::AuthException = WEBrick::HTTPStatus::Unauthorized
-
-# Basic Authentication for WEBrick
-#
-# Use this class to add basic authentication to a WEBrick servlet.
-#
-# Here is an example of how to set up a BasicAuth:
-#
-# config = { :Realm => 'BasicAuth example realm' }
-#
-# htpasswd = WEBrick::HTTPAuth::Htpasswd.new 'my_password_file', password_hash: :bcrypt
-# htpasswd.set_passwd config[:Realm], 'username', 'password'
-# htpasswd.flush
-#
-# config[:UserDB] = htpasswd
-#
-# basic_auth = WEBrick::HTTPAuth::BasicAuth.new config
-#
-# source://webrick//lib/webrick/httpauth/basicauth.rb#35
-class WEBrick::HTTPAuth::BasicAuth
- include ::WEBrick::HTTPAuth::Authenticator
-
- # Creates a new BasicAuth instance.
- #
- # See WEBrick::Config::BasicAuth for default configuration entries
- #
- # You must supply the following configuration entries:
- #
- # :Realm:: The name of the realm being protected.
- # :UserDB:: A database of usernames and passwords.
- # A WEBrick::HTTPAuth::Htpasswd instance should be used.
- #
- # @return [BasicAuth] a new instance of BasicAuth
- #
- # source://webrick//lib/webrick/httpauth/basicauth.rb#61
- def initialize(config, default = T.unsafe(nil)); end
-
- # Authenticates a +req+ and returns a 401 Unauthorized using +res+ if
- # the authentication was not correct.
- #
- # source://webrick//lib/webrick/httpauth/basicauth.rb#70
- def authenticate(req, res); end
-
- # Returns a challenge response which asks for authentication information
- #
- # @raise [@auth_exception]
- #
- # source://webrick//lib/webrick/httpauth/basicauth.rb#103
- def challenge(req, res); end
-
- # Returns the value of attribute logger.
- #
- # source://webrick//lib/webrick/httpauth/basicauth.rb#48
- def logger; end
-
- # Returns the value of attribute realm.
- #
- # source://webrick//lib/webrick/httpauth/basicauth.rb#48
- def realm; end
-
- # Returns the value of attribute userdb.
- #
- # source://webrick//lib/webrick/httpauth/basicauth.rb#48
- def userdb; end
-
- class << self
- # Used by UserDB to create a basic password entry
- #
- # source://webrick//lib/webrick/httpauth/basicauth.rb#43
- def make_passwd(realm, user, pass); end
- end
-end
-
-# RFC 2617 Digest Access Authentication for WEBrick
-#
-# Use this class to add digest authentication to a WEBrick servlet.
-#
-# Here is an example of how to set up DigestAuth:
-#
-# config = { :Realm => 'DigestAuth example realm' }
-#
-# htdigest = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
-# htdigest.set_passwd config[:Realm], 'username', 'password'
-# htdigest.flush
-#
-# config[:UserDB] = htdigest
-#
-# digest_auth = WEBrick::HTTPAuth::DigestAuth.new config
-#
-# When using this as with a servlet be sure not to create a new DigestAuth
-# object in the servlet's #initialize. By default WEBrick creates a new
-# servlet instance for every request and the DigestAuth object must be
-# used across requests.
-#
-# source://webrick//lib/webrick/httpauth/digestauth.rb#46
-class WEBrick::HTTPAuth::DigestAuth
- include ::WEBrick::HTTPAuth::Authenticator
-
- # Creates a new DigestAuth instance. Be sure to use the same DigestAuth
- # instance for multiple requests as it saves state between requests in
- # order to perform authentication.
- #
- # See WEBrick::Config::DigestAuth for default configuration entries
- #
- # You must supply the following configuration entries:
- #
- # :Realm:: The name of the realm being protected.
- # :UserDB:: A database of usernames and passwords.
- # A WEBrick::HTTPAuth::Htdigest instance should be used.
- #
- # @return [DigestAuth] a new instance of DigestAuth
- #
- # source://webrick//lib/webrick/httpauth/digestauth.rb#87
- def initialize(config, default = T.unsafe(nil)); end
-
- # Digest authentication algorithm
- #
- # source://webrick//lib/webrick/httpauth/digestauth.rb#59
- def algorithm; end
-
- # Authenticates a +req+ and returns a 401 Unauthorized using +res+ if
- # the authentication was not correct.
- #
- # source://webrick//lib/webrick/httpauth/digestauth.rb#121
- def authenticate(req, res); end
-
- # Returns a challenge response which asks for authentication information
- #
- # @raise [@auth_exception]
- #
- # source://webrick//lib/webrick/httpauth/digestauth.rb#134
- def challenge(req, res, stale = T.unsafe(nil)); end
-
- # Quality of protection. RFC 2617 defines "auth" and "auth-int"
- #
- # source://webrick//lib/webrick/httpauth/digestauth.rb#64
- def qop; end
-
- private
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#163
- def _authenticate(req, res); end
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#306
- def check_nonce(req, auth_req); end
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#349
- def check_opaque(opaque_struct, req, auth_req); end
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#365
- def check_uri(req, auth_req); end
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#299
- def generate_next_nonce(req); end
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#332
- def generate_opaque(req); end
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#376
- def hexdigest(*args); end
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#291
- def split_param_value(string); end
-
- class << self
- # Used by UserDB to create a digest password entry
- #
- # source://webrick//lib/webrick/httpauth/digestauth.rb#69
- def make_passwd(realm, user, pass); end
- end
-end
-
-# Htdigest accesses apache-compatible digest password files. Passwords are
-# matched to a realm where they are valid. For security, the path for a
-# digest password database should be stored outside of the paths available
-# to the HTTP server.
-#
-# Htdigest is intended for use with WEBrick::HTTPAuth::DigestAuth and
-# stores passwords using cryptographic hashes.
-#
-# htpasswd = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
-# htpasswd.set_passwd 'my realm', 'username', 'password'
-# htpasswd.flush
-#
-# source://webrick//lib/webrick/httpauth/htdigest.rb#31
-class WEBrick::HTTPAuth::Htdigest
- include ::WEBrick::HTTPAuth::UserDB
-
- # Open a digest password database at +path+
- #
- # @return [Htdigest] a new instance of Htdigest
- #
- # source://webrick//lib/webrick/httpauth/htdigest.rb#37
- def initialize(path); end
-
- # Removes a password from the database for +user+ in +realm+.
- #
- # source://webrick//lib/webrick/httpauth/htdigest.rb#113
- def delete_passwd(realm, user); end
-
- # Iterate passwords in the database.
- #
- # source://webrick//lib/webrick/httpauth/htdigest.rb#122
- def each; end
-
- # Flush the password database. If +output+ is given the database will
- # be written there instead of to the original path.
- #
- # source://webrick//lib/webrick/httpauth/htdigest.rb#72
- def flush(output = T.unsafe(nil)); end
-
- # Retrieves a password from the database for +user+ in +realm+. If
- # +reload_db+ is true the database will be reloaded first.
- #
- # source://webrick//lib/webrick/httpauth/htdigest.rb#91
- def get_passwd(realm, user, reload_db); end
-
- # Reloads passwords from the database
- #
- # source://webrick//lib/webrick/httpauth/htdigest.rb#50
- def reload; end
-
- # Sets a password in the database for +user+ in +realm+ to +pass+.
- #
- # source://webrick//lib/webrick/httpauth/htdigest.rb#101
- def set_passwd(realm, user, pass); end
-end
-
-# Htgroup accesses apache-compatible group files. Htgroup can be used to
-# provide group-based authentication for users. Currently Htgroup is not
-# directly integrated with any authenticators in WEBrick. For security,
-# the path for a digest password database should be stored outside of the
-# paths available to the HTTP server.
-#
-# Example:
-#
-# htgroup = WEBrick::HTTPAuth::Htgroup.new 'my_group_file'
-# htgroup.add 'superheroes', %w[spiderman batman]
-#
-# htgroup.members('superheroes').include? 'magneto' # => false
-#
-# source://webrick//lib/webrick/httpauth/htgroup.rb#30
-class WEBrick::HTTPAuth::Htgroup
- # Open a group database at +path+
- #
- # @return [Htgroup] a new instance of Htgroup
- #
- # source://webrick//lib/webrick/httpauth/htgroup.rb#35
- def initialize(path); end
-
- # Add an Array of +members+ to +group+
- #
- # source://webrick//lib/webrick/httpauth/htgroup.rb#92
- def add(group, members); end
-
- # Flush the group database. If +output+ is given the database will be
- # written there instead of to the original path.
- #
- # source://webrick//lib/webrick/httpauth/htgroup.rb#64
- def flush(output = T.unsafe(nil)); end
-
- # Retrieve the list of members from +group+
- #
- # source://webrick//lib/webrick/httpauth/htgroup.rb#84
- def members(group); end
-
- # Reload groups from the database
- #
- # source://webrick//lib/webrick/httpauth/htgroup.rb#46
- def reload; end
-end
-
-# Htpasswd accesses apache-compatible password files. Passwords are
-# matched to a realm where they are valid. For security, the path for a
-# password database should be stored outside of the paths available to the
-# HTTP server.
-#
-# Htpasswd is intended for use with WEBrick::HTTPAuth::BasicAuth.
-#
-# To create an Htpasswd database with a single user:
-#
-# htpasswd = WEBrick::HTTPAuth::Htpasswd.new 'my_password_file'
-# htpasswd.set_passwd 'my realm', 'username', 'password'
-# htpasswd.flush
-#
-# source://webrick//lib/webrick/httpauth/htpasswd.rb#32
-class WEBrick::HTTPAuth::Htpasswd
- include ::WEBrick::HTTPAuth::UserDB
-
- # Open a password database at +path+
- #
- # @return [Htpasswd] a new instance of Htpasswd
- #
- # source://webrick//lib/webrick/httpauth/htpasswd.rb#38
- def initialize(path, password_hash: T.unsafe(nil)); end
-
- # Removes a password from the database for +user+ in +realm+.
- #
- # source://webrick//lib/webrick/httpauth/htpasswd.rb#144
- def delete_passwd(realm, user); end
-
- # Iterate passwords in the database.
- #
- # source://webrick//lib/webrick/httpauth/htpasswd.rb#151
- def each; end
-
- # Flush the password database. If +output+ is given the database will
- # be written there instead of to the original path.
- #
- # source://webrick//lib/webrick/httpauth/htpasswd.rb#103
- def flush(output = T.unsafe(nil)); end
-
- # Retrieves a password from the database for +user+ in +realm+. If
- # +reload_db+ is true the database will be reloaded first.
- #
- # source://webrick//lib/webrick/httpauth/htpasswd.rb#122
- def get_passwd(realm, user, reload_db); end
-
- # Reload passwords from the database
- #
- # source://webrick//lib/webrick/httpauth/htpasswd.rb#68
- def reload; end
-
- # Sets a password in the database for +user+ in +realm+ to +pass+.
- #
- # source://webrick//lib/webrick/httpauth/htpasswd.rb#130
- def set_passwd(realm, user, pass); end
-end
-
-# source://webrick//lib/webrick/httpauth/authenticator.rb#114
-WEBrick::HTTPAuth::ProxyAuthenticator::AuthException = WEBrick::HTTPStatus::ProxyAuthenticationRequired
-
-# Basic authentication for proxy servers. See BasicAuth for details.
-#
-# source://webrick//lib/webrick/httpauth/basicauth.rb#112
-class WEBrick::HTTPAuth::ProxyBasicAuth < ::WEBrick::HTTPAuth::BasicAuth
- include ::WEBrick::HTTPAuth::ProxyAuthenticator
-end
-
-# Digest authentication for proxy servers. See DigestAuth for details.
-#
-# source://webrick//lib/webrick/httpauth/digestauth.rb#386
-class WEBrick::HTTPAuth::ProxyDigestAuth < ::WEBrick::HTTPAuth::DigestAuth
- include ::WEBrick::HTTPAuth::ProxyAuthenticator
-
- private
-
- # source://webrick//lib/webrick/httpauth/digestauth.rb#390
- def check_uri(req, auth_req); end
-end
-
-# User database mixin for HTTPAuth. This mixin dispatches user record
-# access to the underlying auth_type for this database.
-#
-# source://webrick//lib/webrick/httpauth/userdb.rb#18
-module WEBrick::HTTPAuth::UserDB
- # The authentication type.
- #
- # WEBrick::HTTPAuth::BasicAuth or WEBrick::HTTPAuth::DigestAuth are
- # built-in.
- #
- # source://webrick//lib/webrick/httpauth/userdb.rb#26
- def auth_type; end
-
- # The authentication type.
- #
- # WEBrick::HTTPAuth::BasicAuth or WEBrick::HTTPAuth::DigestAuth are
- # built-in.
- #
- # source://webrick//lib/webrick/httpauth/userdb.rb#26
- def auth_type=(_arg0); end
-
- # Retrieves a password in +realm+ for +user+ for the auth_type of this
- # database. +reload_db+ is a dummy value.
- #
- # source://webrick//lib/webrick/httpauth/userdb.rb#48
- def get_passwd(realm, user, reload_db = T.unsafe(nil)); end
-
- # Creates an obscured password in +realm+ with +user+ and +password+
- # using the auth_type of this database.
- #
- # source://webrick//lib/webrick/httpauth/userdb.rb#32
- def make_passwd(realm, user, pass); end
-
- # Sets a password in +realm+ with +user+ and +password+ for the
- # auth_type of this database.
- #
- # source://webrick//lib/webrick/httpauth/userdb.rb#40
- def set_passwd(realm, user, pass); end
-end
-
-# --
-# Adds SSL functionality to WEBrick::HTTPRequest
-#
-# source://webrick//lib/webrick/httprequest.rb#25
-class WEBrick::HTTPRequest
- # Creates a new HTTP request. WEBrick::Config::HTTP is the default
- # configuration.
- #
- # @return [HTTPRequest] a new instance of HTTPRequest
- #
- # source://webrick//lib/webrick/httprequest.rb#153
- def initialize(config); end
-
- # Retrieves +header_name+
- #
- # source://webrick//lib/webrick/httprequest.rb#318
- def [](header_name); end
-
- # The Accept header value
- #
- # source://webrick//lib/webrick/httprequest.rb#100
- def accept; end
-
- # The Accept-Charset header value
- #
- # source://webrick//lib/webrick/httprequest.rb#105
- def accept_charset; end
-
- # The Accept-Encoding header value
- #
- # source://webrick//lib/webrick/httprequest.rb#110
- def accept_encoding; end
-
- # The Accept-Language header value
- #
- # source://webrick//lib/webrick/httprequest.rb#115
- def accept_language; end
-
- # The socket address of the server
- #
- # source://webrick//lib/webrick/httprequest.rb#127
- def addr; end
-
- # Hash of request attributes
- #
- # source://webrick//lib/webrick/httprequest.rb#137
- def attributes; end
-
- # Returns the request body.
- #
- # source://webrick//lib/webrick/httprequest.rb#255
- def body(&block); end
-
- # Prepares the HTTPRequest object for use as the
- # source for IO.copy_stream
- #
- # source://webrick//lib/webrick/httprequest.rb#265
- def body_reader; end
-
- # The content-length header
- #
- # source://webrick//lib/webrick/httprequest.rb#304
- def content_length; end
-
- # The content-type header
- #
- # source://webrick//lib/webrick/httprequest.rb#311
- def content_type; end
-
- # Generate HTTP/1.1 100 continue response if the client expects it,
- # otherwise does nothing.
- #
- # source://webrick//lib/webrick/httprequest.rb#245
- def continue; end
-
- # The parsed request cookies
- #
- # source://webrick//lib/webrick/httprequest.rb#95
- def cookies; end
-
- # Iterates over the request headers
- #
- # source://webrick//lib/webrick/httprequest.rb#328
- def each; end
-
- # Consumes any remaining body and updates keep-alive status
- #
- # source://webrick//lib/webrick/httprequest.rb#390
- def fixup; end
-
- # The parsed header of the request
- #
- # source://webrick//lib/webrick/httprequest.rb#90
- def header; end
-
- # The host this request is for
- #
- # source://webrick//lib/webrick/httprequest.rb#340
- def host; end
-
- # The HTTP version of the request
- #
- # source://webrick//lib/webrick/httprequest.rb#51
- def http_version; end
-
- # Is this a keep-alive connection?
- #
- # source://webrick//lib/webrick/httprequest.rb#142
- def keep_alive; end
-
- # Should the connection this request was made on be kept alive?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httprequest.rb#375
- def keep_alive?; end
-
- # This method provides the metavariables defined by the revision 3
- # of "The WWW Common Gateway Interface Version 1.1"
- # To browse the current document of CGI Version 1.1, see below:
- # http://tools.ietf.org/html/rfc3875
- #
- # source://webrick//lib/webrick/httprequest.rb#407
- def meta_vars; end
-
- # Parses a request from +socket+. This is called internally by
- # WEBrick::HTTPServer.
- #
- # source://webrick//lib/webrick/httprequest.rb#193
- def parse(socket = T.unsafe(nil)); end
-
- # The request path
- #
- # source://webrick//lib/webrick/httprequest.rb#63
- def path; end
-
- # The path info (CGI variable)
- #
- # source://webrick//lib/webrick/httprequest.rb#73
- def path_info; end
-
- # The path info (CGI variable)
- #
- # source://webrick//lib/webrick/httprequest.rb#73
- def path_info=(_arg0); end
-
- # The socket address of the client
- #
- # source://webrick//lib/webrick/httprequest.rb#132
- def peeraddr; end
-
- # The port this request is for
- #
- # source://webrick//lib/webrick/httprequest.rb#347
- def port; end
-
- # Request query as a Hash
- #
- # source://webrick//lib/webrick/httprequest.rb#294
- def query; end
-
- # The query from the URI of the request
- #
- # source://webrick//lib/webrick/httprequest.rb#78
- def query_string; end
-
- # The query from the URI of the request
- #
- # source://webrick//lib/webrick/httprequest.rb#78
- def query_string=(_arg0); end
-
- # The raw header of the request
- #
- # source://webrick//lib/webrick/httprequest.rb#85
- def raw_header; end
-
- # for IO.copy_stream.
- #
- # source://webrick//lib/webrick/httprequest.rb#278
- def readpartial(size, buf = T.unsafe(nil)); end
-
- # The client's IP address
- #
- # source://webrick//lib/webrick/httprequest.rb#361
- def remote_ip; end
-
- # The complete request line such as:
- #
- # GET / HTTP/1.1
- #
- # source://webrick//lib/webrick/httprequest.rb#36
- def request_line; end
-
- # The request method, GET, POST, PUT, etc.
- #
- # source://webrick//lib/webrick/httprequest.rb#41
- def request_method; end
-
- # The local time this request was received
- #
- # source://webrick//lib/webrick/httprequest.rb#147
- def request_time; end
-
- # The parsed URI of the request
- #
- # source://webrick//lib/webrick/httprequest.rb#58
- def request_uri; end
-
- # The script name (CGI variable)
- #
- # source://webrick//lib/webrick/httprequest.rb#68
- def script_name; end
-
- # The script name (CGI variable)
- #
- # source://webrick//lib/webrick/httprequest.rb#68
- def script_name=(_arg0); end
-
- # The server name this request is for
- #
- # source://webrick//lib/webrick/httprequest.rb#354
- def server_name; end
-
- # Is this an SSL request?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httprequest.rb#368
- def ssl?; end
-
- # source://webrick//lib/webrick/httprequest.rb#379
- def to_s; end
-
- # The unparsed URI of the request
- #
- # source://webrick//lib/webrick/httprequest.rb#46
- def unparsed_uri; end
-
- # The remote user (CGI variable)
- #
- # source://webrick//lib/webrick/httprequest.rb#122
- def user; end
-
- # The remote user (CGI variable)
- #
- # source://webrick//lib/webrick/httprequest.rb#122
- def user=(_arg0); end
-
- private
-
- # source://webrick//lib/webrick/httprequest.rb#562
- def _read_data(io, method, *arg); end
-
- # source://webrick//lib/webrick/httprequest.rb#582
- def parse_query; end
-
- # source://webrick//lib/webrick/httprequest.rb#484
- def parse_uri(str, scheme = T.unsafe(nil)); end
-
- # source://webrick//lib/webrick/httprequest.rb#507
- def read_body(socket, block); end
-
- # source://webrick//lib/webrick/httprequest.rb#531
- def read_chunk_size(socket); end
-
- # source://webrick//lib/webrick/httprequest.rb#542
- def read_chunked(socket, block); end
-
- # source://webrick//lib/webrick/httprequest.rb#578
- def read_data(io, size); end
-
- # source://webrick//lib/webrick/httprequest.rb#471
- def read_header(socket); end
-
- # source://webrick//lib/webrick/httprequest.rb#574
- def read_line(io, size = T.unsafe(nil)); end
-
- # @raise [HTTPStatus::EOFError]
- #
- # source://webrick//lib/webrick/httprequest.rb#451
- def read_request_line(socket); end
-
- # It's said that all X-Forwarded-* headers will contain more than one
- # (comma-separated) value if the original request already contained one of
- # these headers. Since we could use these values as Host header, we choose
- # the initial(first) value. (apr_table_mergen() adds new value after the
- # existing value with ", " prefix)
- #
- # source://webrick//lib/webrick/httprequest.rb#610
- def setup_forwarded_info; end
-end
-
-# same as Mongrel, Thin and Puma
-#
-# source://webrick//lib/webrick/httprequest.rb#449
-WEBrick::HTTPRequest::MAX_HEADER_LENGTH = T.let(T.unsafe(nil), Integer)
-
-# An HTTP response. This is filled in by the service or do_* methods of a
-# WEBrick HTTP Servlet.
-#
-# source://webrick//lib/webrick/httpresponse.rb#24
-class WEBrick::HTTPResponse
- # Creates a new HTTP response object. WEBrick::Config::HTTP is the
- # default configuration.
- #
- # @return [HTTPResponse] a new instance of HTTPResponse
- #
- # source://webrick//lib/webrick/httpresponse.rb#112
- def initialize(config); end
-
- # Retrieves the response header +field+
- #
- # source://webrick//lib/webrick/httpresponse.rb#150
- def [](field); end
-
- # Sets the response header +field+ to +value+
- #
- # source://webrick//lib/webrick/httpresponse.rb#157
- def []=(field, value); end
-
- # Body may be:
- # * a String;
- # * an IO-like object that responds to +#read+ and +#readpartial+;
- # * a Proc-like object that responds to +#call+.
- #
- # In the latter case, either #chunked= should be set to +true+,
- # or header['content-length']
explicitly provided.
- # Example:
- #
- # server.mount_proc '/' do |req, res|
- # res.chunked = true
- # # or
- # # res.header['content-length'] = 10
- # res.body = proc { |out| out.write(Time.now.to_s) }
- # end
- #
- # source://webrick//lib/webrick/httpresponse.rb#70
- def body; end
-
- # Body may be:
- # * a String;
- # * an IO-like object that responds to +#read+ and +#readpartial+;
- # * a Proc-like object that responds to +#call+.
- #
- # In the latter case, either #chunked= should be set to +true+,
- # or header['content-length']
explicitly provided.
- # Example:
- #
- # server.mount_proc '/' do |req, res|
- # res.chunked = true
- # # or
- # # res.header['content-length'] = 10
- # res.body = proc { |out| out.write(Time.now.to_s) }
- # end
- #
- # source://webrick//lib/webrick/httpresponse.rb#70
- def body=(_arg0); end
-
- # Enables chunked transfer encoding.
- #
- # source://webrick//lib/webrick/httpresponse.rb#209
- def chunked=(val); end
-
- # Will this response body be returned using chunked transfer-encoding?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpresponse.rb#202
- def chunked?; end
-
- # Configuration for this response
- #
- # source://webrick//lib/webrick/httpresponse.rb#101
- def config; end
-
- # The content-length header
- #
- # source://webrick//lib/webrick/httpresponse.rb#165
- def content_length; end
-
- # Sets the content-length header to +len+
- #
- # source://webrick//lib/webrick/httpresponse.rb#174
- def content_length=(len); end
-
- # The content-type header
- #
- # source://webrick//lib/webrick/httpresponse.rb#181
- def content_type; end
-
- # Sets the content-type header to +type+
- #
- # source://webrick//lib/webrick/httpresponse.rb#188
- def content_type=(type); end
-
- # Response cookies
- #
- # source://webrick//lib/webrick/httpresponse.rb#46
- def cookies; end
-
- # Iterates over each header in the response
- #
- # source://webrick//lib/webrick/httpresponse.rb#195
- def each; end
-
- # Filename of the static file in this response. Only used by the
- # FileHandler servlet.
- #
- # source://webrick//lib/webrick/httpresponse.rb#91
- def filename; end
-
- # Filename of the static file in this response. Only used by the
- # FileHandler servlet.
- #
- # source://webrick//lib/webrick/httpresponse.rb#91
- def filename=(_arg0); end
-
- # Response header
- #
- # source://webrick//lib/webrick/httpresponse.rb#41
- def header; end
-
- # HTTP Response version
- #
- # source://webrick//lib/webrick/httpresponse.rb#31
- def http_version; end
-
- # Is this a keep-alive response?
- #
- # source://webrick//lib/webrick/httpresponse.rb#96
- def keep_alive; end
-
- # Is this a keep-alive response?
- #
- # source://webrick//lib/webrick/httpresponse.rb#96
- def keep_alive=(_arg0); end
-
- # Will this response's connection be kept alive?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpresponse.rb#216
- def keep_alive?; end
-
- # source://webrick//lib/webrick/httpresponse.rb#303
- def make_body_tempfile; end
-
- # Response reason phrase ("OK")
- #
- # source://webrick//lib/webrick/httpresponse.rb#51
- def reason_phrase; end
-
- # Response reason phrase ("OK")
- #
- # source://webrick//lib/webrick/httpresponse.rb#51
- def reason_phrase=(_arg0); end
-
- # source://webrick//lib/webrick/httpresponse.rb#321
- def remove_body_tempfile; end
-
- # Request HTTP version for this response
- #
- # source://webrick//lib/webrick/httpresponse.rb#85
- def request_http_version; end
-
- # Request HTTP version for this response
- #
- # source://webrick//lib/webrick/httpresponse.rb#85
- def request_http_version=(_arg0); end
-
- # Request method for this response
- #
- # source://webrick//lib/webrick/httpresponse.rb#75
- def request_method; end
-
- # Request method for this response
- #
- # source://webrick//lib/webrick/httpresponse.rb#75
- def request_method=(_arg0); end
-
- # Request URI for this response
- #
- # source://webrick//lib/webrick/httpresponse.rb#80
- def request_uri; end
-
- # Request URI for this response
- #
- # source://webrick//lib/webrick/httpresponse.rb#80
- def request_uri=(_arg0); end
-
- # Sends the body on +socket+
- #
- # source://webrick//lib/webrick/httpresponse.rb#356
- def send_body(socket); end
-
- # Sends the headers on +socket+
- #
- # source://webrick//lib/webrick/httpresponse.rb#333
- def send_header(socket); end
-
- # Sends the response on +socket+
- #
- # source://webrick//lib/webrick/httpresponse.rb#223
- def send_response(socket); end
-
- # Bytes sent in this response
- #
- # source://webrick//lib/webrick/httpresponse.rb#106
- def sent_size; end
-
- # Creates an error page for exception +ex+ with an optional +backtrace+
- #
- # source://webrick//lib/webrick/httpresponse.rb#383
- def set_error(ex, backtrace = T.unsafe(nil)); end
-
- # Redirects to +url+ with a WEBrick::HTTPStatus::Redirect +status+.
- #
- # Example:
- #
- # res.set_redirect WEBrick::HTTPStatus::TemporaryRedirect
- #
- # source://webrick//lib/webrick/httpresponse.rb#373
- def set_redirect(status, url); end
-
- # Sets up the headers for sending
- #
- # source://webrick//lib/webrick/httpresponse.rb#240
- def setup_header; end
-
- # Response status code (200)
- #
- # source://webrick//lib/webrick/httpresponse.rb#36
- def status; end
-
- # Sets the response's status to the +status+ code
- #
- # source://webrick//lib/webrick/httpresponse.rb#142
- def status=(status); end
-
- # The response's HTTP status line
- #
- # source://webrick//lib/webrick/httpresponse.rb#135
- def status_line; end
-
- private
-
- # preserved for compatibility with some 3rd-party handlers
- #
- # source://webrick//lib/webrick/httpresponse.rb#557
- def _write_data(socket, data); end
-
- # source://webrick//lib/webrick/httpresponse.rb#410
- def check_header(header_value); end
-
- # :stopdoc:
- #
- # source://webrick//lib/webrick/httpresponse.rb#421
- def error_body(backtrace, ex, host, port); end
-
- # source://webrick//lib/webrick/httpresponse.rb#451
- def send_body_io(socket); end
-
- # source://webrick//lib/webrick/httpresponse.rb#513
- def send_body_proc(socket); end
-
- # source://webrick//lib/webrick/httpresponse.rb#491
- def send_body_string(socket); end
-end
-
-# source://webrick//lib/webrick/httpresponse.rb#531
-class WEBrick::HTTPResponse::ChunkedWrapper
- # @return [ChunkedWrapper] a new instance of ChunkedWrapper
- #
- # source://webrick//lib/webrick/httpresponse.rb#532
- def initialize(socket, resp); end
-
- # source://webrick//lib/webrick/httpresponse.rb#550
- def <<(*buf); end
-
- # source://webrick//lib/webrick/httpresponse.rb#537
- def write(buf); end
-end
-
-# An HTTP Server
-#
-# source://webrick//lib/webrick/httpserver.rb#44
-class WEBrick::HTTPServer < ::WEBrick::GenericServer
- # Creates a new HTTP server according to +config+
- #
- # An HTTP server uses the following attributes:
- #
- # :AccessLog:: An array of access logs. See WEBrick::AccessLog
- # :BindAddress:: Local address for the server to bind to
- # :DocumentRoot:: Root path to serve files from
- # :DocumentRootOptions:: Options for the default HTTPServlet::FileHandler
- # :HTTPVersion:: The HTTP version of this server
- # :Port:: Port to listen on
- # :RequestCallback:: Called with a request and response before each
- # request is serviced.
- # :RequestTimeout:: Maximum time to wait between requests
- # :ServerAlias:: Array of alternate names for this server for virtual
- # hosting
- # :ServerName:: Name for this server for virtual hosting
- #
- # @return [HTTPServer] a new instance of HTTPServer
- #
- # source://webrick//lib/webrick/httpserver.rb#46
- def initialize(config = T.unsafe(nil), default = T.unsafe(nil)); end
-
- # Logs +req+ and +res+ in the access logs. +config+ is used for the
- # server name.
- #
- # source://webrick//lib/webrick/httpserver.rb#220
- def access_log(config, req, res); end
-
- # Creates the HTTPRequest used when handling the HTTP
- # request. Can be overridden by subclasses.
- #
- # source://webrick//lib/webrick/httpserver.rb#230
- def create_request(with_webrick_config); end
-
- # Creates the HTTPResponse used when handling the HTTP
- # request. Can be overridden by subclasses.
- #
- # source://webrick//lib/webrick/httpserver.rb#237
- def create_response(with_webrick_config); end
-
- # The default OPTIONS request handler says GET, HEAD, POST and OPTIONS
- # requests are allowed.
- #
- # source://webrick//lib/webrick/httpserver.rb#147
- def do_OPTIONS(req, res); end
-
- # Finds the appropriate virtual host to handle +req+
- #
- # source://webrick//lib/webrick/httpserver.rb#207
- def lookup_server(req); end
-
- # Mounts +servlet+ on +dir+ passing +options+ to the servlet at creation
- # time
- #
- # source://webrick//lib/webrick/httpserver.rb#155
- def mount(dir, servlet, *options); end
-
- # Mounts +proc+ or +block+ on +dir+ and calls it with a
- # WEBrick::HTTPRequest and WEBrick::HTTPResponse
- #
- # @raise [HTTPServerError]
- #
- # source://webrick//lib/webrick/httpserver.rb#164
- def mount_proc(dir, proc = T.unsafe(nil), &block); end
-
- # Processes requests on +sock+
- #
- # source://webrick//lib/webrick/httpserver.rb#69
- def run(sock); end
-
- # Finds a servlet for +path+
- #
- # source://webrick//lib/webrick/httpserver.rb#182
- def search_servlet(path); end
-
- # Services +req+ and fills in +res+
- #
- # @raise [HTTPStatus::NotFound]
- #
- # source://webrick//lib/webrick/httpserver.rb#125
- def service(req, res); end
-
- # Unmounts +dir+
- #
- # source://webrick//lib/webrick/httpserver.rb#173
- def umount(dir); end
-
- # Unmounts +dir+
- #
- # source://webrick//lib/webrick/httpserver.rb#173
- def unmount(dir); end
-
- # Adds +server+ as a virtual host.
- #
- # source://webrick//lib/webrick/httpserver.rb#193
- def virtual_host(server); end
-end
-
-# Mount table for the path a servlet is mounted on in the directory space
-# of the server. Users of WEBrick can only access this indirectly via
-# WEBrick::HTTPServer#mount, WEBrick::HTTPServer#unmount and
-# WEBrick::HTTPServer#search_servlet
-#
-# source://webrick//lib/webrick/httpserver.rb#247
-class WEBrick::HTTPServer::MountTable
- # @return [MountTable] a new instance of MountTable
- #
- # source://webrick//lib/webrick/httpserver.rb#248
- def initialize; end
-
- # source://webrick//lib/webrick/httpserver.rb#253
- def [](dir); end
-
- # source://webrick//lib/webrick/httpserver.rb#258
- def []=(dir, val); end
-
- # source://webrick//lib/webrick/httpserver.rb#265
- def delete(dir); end
-
- # source://webrick//lib/webrick/httpserver.rb#272
- def scan(path); end
-
- private
-
- # source://webrick//lib/webrick/httpserver.rb#279
- def compile; end
-
- # source://webrick//lib/webrick/httpserver.rb#287
- def normalize(dir); end
-end
-
-# AbstractServlet allows HTTP server modules to be reused across multiple
-# servers and allows encapsulation of functionality.
-#
-# By default a servlet will respond to GET, HEAD (through an alias to GET)
-# and OPTIONS requests.
-#
-# By default a new servlet is initialized for every request. A servlet
-# instance can be reused by overriding ::get_instance in the
-# AbstractServlet subclass.
-#
-# == A Simple Servlet
-#
-# class Simple < WEBrick::HTTPServlet::AbstractServlet
-# def do_GET request, response
-# status, content_type, body = do_stuff_with request
-#
-# response.status = status
-# response['Content-Type'] = content_type
-# response.body = body
-# end
-#
-# def do_stuff_with request
-# return 200, 'text/plain', 'you got a page'
-# end
-# end
-#
-# This servlet can be mounted on a server at a given path:
-#
-# server.mount '/simple', Simple
-#
-# == Servlet Configuration
-#
-# Servlets can be configured via initialize. The first argument is the
-# HTTP server the servlet is being initialized for.
-#
-# class Configurable < Simple
-# def initialize server, color, size
-# super server
-# @color = color
-# @size = size
-# end
-#
-# def do_stuff_with request
-# content = "Hello, World!"
-#
-# return 200, "text/html", content
-# end
-# end
-#
-# This servlet must be provided two arguments at mount time:
-#
-# server.mount '/configurable', Configurable, 'red', '2em'
-#
-# source://webrick//lib/webrick/httpservlet/abstract.rb#76
-class WEBrick::HTTPServlet::AbstractServlet
- # Initializes a new servlet for +server+ using +options+ which are
- # stored as-is in +@options+. +@logger+ is also provided.
- #
- # @return [AbstractServlet] a new instance of AbstractServlet
- #
- # source://webrick//lib/webrick/httpservlet/abstract.rb#91
- def initialize(server, *options); end
-
- # Raises a NotFound exception
- #
- # @raise [HTTPStatus::NotFound]
- #
- # source://webrick//lib/webrick/httpservlet/abstract.rb#115
- def do_GET(req, res); end
-
- # Dispatches to do_GET
- #
- # source://webrick//lib/webrick/httpservlet/abstract.rb#122
- def do_HEAD(req, res); end
-
- # Returns the allowed HTTP request methods
- #
- # source://webrick//lib/webrick/httpservlet/abstract.rb#129
- def do_OPTIONS(req, res); end
-
- # Dispatches to a +do_+ method based on +req+ if such a method is
- # available. (+do_GET+ for a GET request). Raises a MethodNotAllowed
- # exception if the method is not implemented.
- #
- # source://webrick//lib/webrick/httpservlet/abstract.rb#102
- def service(req, res); end
-
- private
-
- # Redirects to a path ending in /
- #
- # source://webrick//lib/webrick/httpservlet/abstract.rb#140
- def redirect_to_directory_uri(req, res); end
-
- class << self
- # Factory for servlet instances that will handle a request from +server+
- # using +options+ from the mount point. By default a new servlet
- # instance is created for every call.
- #
- # source://webrick//lib/webrick/httpservlet/abstract.rb#83
- def get_instance(server, *options); end
- end
-end
-
-# Servlet for handling CGI scripts
-#
-# Example:
-#
-# server.mount('/cgi/my_script', WEBrick::HTTPServlet::CGIHandler,
-# '/path/to/my_script')
-#
-# source://webrick//lib/webrick/httpservlet/cgihandler.rb#28
-class WEBrick::HTTPServlet::CGIHandler < ::WEBrick::HTTPServlet::AbstractServlet
- # Creates a new CGI script servlet for the script at +name+
- #
- # @return [CGIHandler] a new instance of CGIHandler
- #
- # source://webrick//lib/webrick/httpservlet/cgihandler.rb#36
- def initialize(server, name); end
-
- # :stopdoc:
- #
- # @raise [HTTPStatus::InternalServerError]
- #
- # source://webrick//lib/webrick/httpservlet/cgihandler.rb#50
- def do_GET(req, res); end
-
- # :stopdoc:
- #
- # @raise [HTTPStatus::InternalServerError]
- #
- # source://webrick//lib/webrick/httpservlet/cgihandler.rb#50
- def do_POST(req, res); end
-end
-
-# source://webrick//lib/webrick/httpservlet/cgihandler.rb#31
-WEBrick::HTTPServlet::CGIHandler::CGIRunnerArray = T.let(T.unsafe(nil), Array)
-
-# Servlet for serving a single file. You probably want to use the
-# FileHandler servlet instead as it handles directories and fancy indexes.
-#
-# Example:
-#
-# server.mount('/my_page.txt', WEBrick::HTTPServlet::DefaultFileHandler,
-# '/path/to/my_page.txt')
-#
-# This servlet handles If-Modified-Since and Range requests.
-#
-# source://webrick//lib/webrick/httpservlet/filehandler.rb#32
-class WEBrick::HTTPServlet::DefaultFileHandler < ::WEBrick::HTTPServlet::AbstractServlet
- # Creates a DefaultFileHandler instance for the file at +local_path+.
- #
- # @return [DefaultFileHandler] a new instance of DefaultFileHandler
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#37
- def initialize(server, local_path); end
-
- # :stopdoc:
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#44
- def do_GET(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#118
- def make_partial_content(req, res, filename, filesize); end
-
- # returns a lambda for webrick/httpresponse.rb send_body_proc
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#90
- def multipart_body(body, parts, boundary, mtype, filesize); end
-
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#64
- def not_modified?(req, res, mtime, etag); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#155
- def prepare_range(range, filesize); end
-end
-
-# ERBHandler evaluates an ERB file and returns the result. This handler
-# is automatically used if there are .rhtml files in a directory served by
-# the FileHandler.
-#
-# ERBHandler supports GET and POST methods.
-#
-# The ERB file is evaluated with the local variables +servlet_request+ and
-# +servlet_response+ which are a WEBrick::HTTPRequest and
-# WEBrick::HTTPResponse respectively.
-#
-# Example .rhtml file:
-#
-# Request to <%= servlet_request.request_uri %>
-#
-# Query params <%= servlet_request.query.inspect %>
-#
-# source://webrick//lib/webrick/httpservlet/erbhandler.rb#36
-class WEBrick::HTTPServlet::ERBHandler < ::WEBrick::HTTPServlet::AbstractServlet
- # Creates a new ERBHandler on +server+ that will evaluate and serve the
- # ERB file +name+
- #
- # @return [ERBHandler] a new instance of ERBHandler
- #
- # source://webrick//lib/webrick/httpservlet/erbhandler.rb#42
- def initialize(server, name); end
-
- # Handles GET requests
- #
- # source://webrick//lib/webrick/httpservlet/erbhandler.rb#50
- def do_GET(req, res); end
-
- # Handles GET requests
- #
- # Handles POST requests
- #
- # source://webrick//lib/webrick/httpservlet/erbhandler.rb#50
- def do_POST(req, res); end
-
- private
-
- # Evaluates +erb+ providing +servlet_request+ and +servlet_response+ as
- # local variables.
- #
- # source://webrick//lib/webrick/httpservlet/erbhandler.rb#79
- def evaluate(erb, servlet_request, servlet_response); end
-end
-
-# Serves a directory including fancy indexing and a variety of other
-# options.
-#
-# Example:
-#
-# server.mount('/assets', WEBrick::HTTPServlet::FileHandler,
-# '/path/to/assets')
-#
-# source://webrick//lib/webrick/httpservlet/filehandler.rb#175
-class WEBrick::HTTPServlet::FileHandler < ::WEBrick::HTTPServlet::AbstractServlet
- # Creates a FileHandler servlet on +server+ that serves files starting
- # at directory +root+
- #
- # +options+ may be a Hash containing keys from
- # WEBrick::Config::FileHandler or +true+ or +false+.
- #
- # If +options+ is true or false then +:FancyIndexing+ is enabled or
- # disabled respectively.
- #
- # @return [FileHandler] a new instance of FileHandler
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#203
- def initialize(server, root, options = T.unsafe(nil), default = T.unsafe(nil)); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#245
- def do_GET(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#257
- def do_OPTIONS(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#251
- def do_POST(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#224
- def service(req, res); end
-
- # :stopdoc:
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#215
- def set_filesystem_encoding(str); end
-
- private
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#416
- def call_callback(callback_name, req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#369
- def check_filename(req, res, name); end
-
- # @raise [HTTPStatus::NotFound]
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#309
- def exec_handler(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#322
- def get_handler(req, res); end
-
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#428
- def nondisclosure_name?(name); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#286
- def prevent_directory_traversal(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#394
- def search_file(req, res, basename); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#385
- def search_index_file(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#437
- def set_dir_list(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#335
- def set_filename(req, res); end
-
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#376
- def shift_path_info(req, res, path_info, base = T.unsafe(nil)); end
-
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#277
- def trailing_pathsep?(path); end
-
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#422
- def windows_ambiguous_name?(name); end
-
- class << self
- # Allow custom handling of requests for files with +suffix+ by class
- # +handler+
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#182
- def add_handler(suffix, handler); end
-
- # Remove custom handling of requests for files with +suffix+
- #
- # source://webrick//lib/webrick/httpservlet/filehandler.rb#189
- def remove_handler(suffix); end
- end
-end
-
-# This module is used to manager HTTP status codes.
-#
-# See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more
-# information.
-#
-# source://webrick//lib/webrick/httpstatus.rb#21
-module WEBrick::HTTPStatus
- private
-
- # Is +code+ a client error status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#170
- def client_error?(code); end
-
- # Is +code+ an error status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#164
- def error?(code); end
-
- # Is +code+ an informational status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#146
- def info?(code); end
-
- # Returns the description corresponding to the HTTP status +code+
- #
- # WEBrick::HTTPStatus.reason_phrase 404
- # => "Not Found"
- #
- # source://webrick//lib/webrick/httpstatus.rb#140
- def reason_phrase(code); end
-
- # Is +code+ a redirection status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#158
- def redirect?(code); end
-
- # Is +code+ a server error status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#176
- def server_error?(code); end
-
- # Is +code+ a successful status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#152
- def success?(code); end
-
- class << self
- # Returns the status class corresponding to +code+
- #
- # WEBrick::HTTPStatus[302]
- # => WEBrick::HTTPStatus::NotFound
- #
- # source://webrick//lib/webrick/httpstatus.rb#186
- def [](code); end
-
- # Is +code+ a client error status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#170
- def client_error?(code); end
-
- # Is +code+ an error status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#164
- def error?(code); end
-
- # Is +code+ an informational status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#146
- def info?(code); end
-
- # Returns the description corresponding to the HTTP status +code+
- #
- # WEBrick::HTTPStatus.reason_phrase 404
- # => "Not Found"
- #
- # source://webrick//lib/webrick/httpstatus.rb#140
- def reason_phrase(code); end
-
- # Is +code+ a redirection status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#158
- def redirect?(code); end
-
- # Is +code+ a server error status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#176
- def server_error?(code); end
-
- # Is +code+ a successful status?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/httpstatus.rb#152
- def success?(code); end
- end
-end
-
-# Root of the HTTP status class hierarchy
-#
-# source://webrick//lib/webrick/httpstatus.rb#25
-class WEBrick::HTTPStatus::Status < ::StandardError
- # Returns the HTTP status code
- #
- # source://webrick//lib/webrick/httpstatus.rb#31
- def code; end
-
- # Returns the HTTP status description
- #
- # source://webrick//lib/webrick/httpstatus.rb#34
- def reason_phrase; end
-
- # Returns the HTTP status code
- #
- # source://webrick//lib/webrick/httpstatus.rb#31
- def to_i; end
-
- class << self
- # source://webrick//lib/webrick/httpstatus.rb#27
- def code; end
-
- # source://webrick//lib/webrick/httpstatus.rb#27
- def reason_phrase; end
- end
-end
-
-# HTTPUtils provides utility methods for working with the HTTP protocol.
-#
-# This module is generally used internally by WEBrick
-#
-# source://webrick//lib/webrick/httputils.rb#25
-module WEBrick::HTTPUtils
- private
-
- # source://webrick//lib/webrick/httputils.rb#443
- def _escape(str, regex); end
-
- # :stopdoc:
- #
- # source://webrick//lib/webrick/httputils.rb#441
- def _make_regex(str); end
-
- # source://webrick//lib/webrick/httputils.rb#442
- def _make_regex!(str); end
-
- # source://webrick//lib/webrick/httputils.rb#449
- def _unescape(str, regex); end
-
- # Removes quotes and escapes from +str+
- #
- # source://webrick//lib/webrick/httputils.rb#223
- def dequote(str); end
-
- # Escapes HTTP reserved and unwise characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#467
- def escape(str); end
-
- # Escapes 8 bit characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#508
- def escape8bit(str); end
-
- # Escapes form reserved characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#481
- def escape_form(str); end
-
- # Escapes path +str+
- #
- # source://webrick//lib/webrick/httputils.rb#497
- def escape_path(str); end
-
- # Loads Apache-compatible mime.types in +file+.
- #
- # source://webrick//lib/webrick/httputils.rb#112
- def load_mime_types(file); end
-
- # Returns the mime type of +filename+ from the list in +mime_tab+. If no
- # mime type was found application/octet-stream is returned.
- #
- # source://webrick//lib/webrick/httputils.rb#134
- def mime_type(filename, mime_tab); end
-
- # Normalizes a request path. Raises an exception if the path cannot be
- # normalized.
- #
- # source://webrick//lib/webrick/httputils.rb#31
- def normalize_path(path); end
-
- # Parses form data in +io+ with the given +boundary+
- #
- # source://webrick//lib/webrick/httputils.rb#395
- def parse_form_data(io, boundary); end
-
- # Parses an HTTP header +raw+ into a hash of header fields with an Array
- # of values.
- #
- # source://webrick//lib/webrick/httputils.rb#145
- def parse_header(raw); end
-
- # Parses the query component of a URI in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#371
- def parse_query(str); end
-
- # Parses q values in +value+ as used in Accept headers.
- #
- # source://webrick//lib/webrick/httputils.rb#202
- def parse_qvalues(value); end
-
- # Parses a Range header value +ranges_specifier+
- #
- # source://webrick//lib/webrick/httputils.rb#184
- def parse_range_header(ranges_specifier); end
-
- # Quotes and escapes quotes in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#233
- def quote(str); end
-
- # Splits a header value +str+ according to HTTP specification.
- #
- # source://webrick//lib/webrick/httputils.rb#175
- def split_header_value(str); end
-
- # Unescapes HTTP reserved and unwise characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#474
- def unescape(str); end
-
- # Unescapes form reserved characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#490
- def unescape_form(str); end
-
- class << self
- # source://webrick//lib/webrick/httputils.rb#443
- def _escape(str, regex); end
-
- # :stopdoc:
- #
- # source://webrick//lib/webrick/httputils.rb#441
- def _make_regex(str); end
-
- # source://webrick//lib/webrick/httputils.rb#442
- def _make_regex!(str); end
-
- # source://webrick//lib/webrick/httputils.rb#449
- def _unescape(str, regex); end
-
- # Removes quotes and escapes from +str+
- #
- # source://webrick//lib/webrick/httputils.rb#223
- def dequote(str); end
-
- # Escapes HTTP reserved and unwise characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#467
- def escape(str); end
-
- # Escapes 8 bit characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#508
- def escape8bit(str); end
-
- # Escapes form reserved characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#481
- def escape_form(str); end
-
- # Escapes path +str+
- #
- # source://webrick//lib/webrick/httputils.rb#497
- def escape_path(str); end
-
- # Loads Apache-compatible mime.types in +file+.
- #
- # source://webrick//lib/webrick/httputils.rb#112
- def load_mime_types(file); end
-
- # Returns the mime type of +filename+ from the list in +mime_tab+. If no
- # mime type was found application/octet-stream is returned.
- #
- # source://webrick//lib/webrick/httputils.rb#134
- def mime_type(filename, mime_tab); end
-
- # Normalizes a request path. Raises an exception if the path cannot be
- # normalized.
- #
- # source://webrick//lib/webrick/httputils.rb#31
- def normalize_path(path); end
-
- # Parses form data in +io+ with the given +boundary+
- #
- # source://webrick//lib/webrick/httputils.rb#395
- def parse_form_data(io, boundary); end
-
- # Parses an HTTP header +raw+ into a hash of header fields with an Array
- # of values.
- #
- # source://webrick//lib/webrick/httputils.rb#145
- def parse_header(raw); end
-
- # Parses the query component of a URI in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#371
- def parse_query(str); end
-
- # Parses q values in +value+ as used in Accept headers.
- #
- # source://webrick//lib/webrick/httputils.rb#202
- def parse_qvalues(value); end
-
- # Parses a Range header value +ranges_specifier+
- #
- # source://webrick//lib/webrick/httputils.rb#184
- def parse_range_header(ranges_specifier); end
-
- # Quotes and escapes quotes in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#233
- def quote(str); end
-
- # Splits a header value +str+ according to HTTP specification.
- #
- # source://webrick//lib/webrick/httputils.rb#175
- def split_header_value(str); end
-
- # Unescapes HTTP reserved and unwise characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#474
- def unescape(str); end
-
- # Unescapes form reserved characters in +str+
- #
- # source://webrick//lib/webrick/httputils.rb#490
- def unescape_form(str); end
- end
-end
-
-# Stores multipart form data. FormData objects are created when
-# WEBrick::HTTPUtils.parse_form_data is called.
-#
-# source://webrick//lib/webrick/httputils.rb#242
-class WEBrick::HTTPUtils::FormData < ::String
- # Creates a new FormData object.
- #
- # +args+ is an Array of form data entries. One FormData will be created
- # for each entry.
- #
- # This is called by WEBrick::HTTPUtils.parse_form_data for you
- #
- # @return [FormData] a new instance of FormData
- #
- # source://webrick//lib/webrick/httputils.rb#267
- def initialize(*args); end
-
- # Adds +str+ to this FormData which may be the body, a header or a
- # header entry.
- #
- # This is called by WEBrick::HTTPUtils.parse_form_data for you
- #
- # source://webrick//lib/webrick/httputils.rb#300
- def <<(str); end
-
- # Retrieves the header at the first entry in +key+
- #
- # source://webrick//lib/webrick/httputils.rb#286
- def [](*key); end
-
- # Adds +data+ at the end of the chain of entries
- #
- # This is called by WEBrick::HTTPUtils.parse_form_data for you.
- #
- # source://webrick//lib/webrick/httputils.rb#320
- def append_data(data); end
-
- # Yields each entry in this FormData
- #
- # source://webrick//lib/webrick/httputils.rb#335
- def each_data; end
-
- # The filename of the form data part
- #
- # source://webrick//lib/webrick/httputils.rb#254
- def filename; end
-
- # The filename of the form data part
- #
- # source://webrick//lib/webrick/httputils.rb#254
- def filename=(_arg0); end
-
- # Returns all the FormData as an Array
- #
- # source://webrick//lib/webrick/httputils.rb#347
- def list; end
-
- # The name of the form data part
- #
- # source://webrick//lib/webrick/httputils.rb#249
- def name; end
-
- # The name of the form data part
- #
- # source://webrick//lib/webrick/httputils.rb#249
- def name=(_arg0); end
-
- # source://webrick//lib/webrick/httputils.rb#256
- def next_data=(_arg0); end
-
- # Returns all the FormData as an Array
- #
- # A FormData will behave like an Array
- #
- # source://webrick//lib/webrick/httputils.rb#347
- def to_ary; end
-
- # This FormData's body
- #
- # source://webrick//lib/webrick/httputils.rb#363
- def to_s; end
-
- protected
-
- # source://webrick//lib/webrick/httputils.rb#256
- def next_data; end
-end
-
-# source://webrick//lib/webrick/utils.rb#17
-module WEBrick::Utils
- private
-
- # Creates TCP server sockets bound to +address+:+port+ and returns them.
- #
- # It will create IPV4 and IPV6 sockets on all interfaces.
- #
- # source://webrick//lib/webrick/utils.rb#56
- def create_listeners(address, port); end
-
- # The server hostname
- #
- # source://webrick//lib/webrick/utils.rb#47
- def getservername; end
-
- # Generates a random string of length +len+
- #
- # source://webrick//lib/webrick/utils.rb#79
- def random_string(len); end
-
- # Sets the close on exec flag for +io+
- #
- # source://webrick//lib/webrick/utils.rb#27
- def set_close_on_exec(io); end
-
- # Sets IO operations on +io+ to be non-blocking
- #
- # source://webrick//lib/webrick/utils.rb#20
- def set_non_blocking(io); end
-
- # Changes the process's uid and gid to the ones of +user+
- #
- # source://webrick//lib/webrick/utils.rb#34
- def su(user); end
-
- # Executes the passed block and raises +exception+ if execution takes more
- # than +seconds+.
- #
- # If +seconds+ is zero or nil, simply executes the block
- #
- # source://webrick//lib/webrick/utils.rb#253
- def timeout(seconds, exception = T.unsafe(nil)); end
-
- class << self
- # Creates TCP server sockets bound to +address+:+port+ and returns them.
- #
- # It will create IPV4 and IPV6 sockets on all interfaces.
- #
- # source://webrick//lib/webrick/utils.rb#56
- def create_listeners(address, port); end
-
- # The server hostname
- #
- # source://webrick//lib/webrick/utils.rb#47
- def getservername; end
-
- # Generates a random string of length +len+
- #
- # source://webrick//lib/webrick/utils.rb#79
- def random_string(len); end
-
- # Sets the close on exec flag for +io+
- #
- # source://webrick//lib/webrick/utils.rb#27
- def set_close_on_exec(io); end
-
- # Sets IO operations on +io+ to be non-blocking
- #
- # source://webrick//lib/webrick/utils.rb#20
- def set_non_blocking(io); end
-
- # Changes the process's uid and gid to the ones of +user+
- #
- # source://webrick//lib/webrick/utils.rb#34
- def su(user); end
-
- # Executes the passed block and raises +exception+ if execution takes more
- # than +seconds+.
- #
- # If +seconds+ is zero or nil, simply executes the block
- #
- # source://webrick//lib/webrick/utils.rb#253
- def timeout(seconds, exception = T.unsafe(nil)); end
- end
-end
-
-# Class used to manage timeout handlers across multiple threads.
-#
-# Timeout handlers should be managed by using the class methods which are
-# synchronized.
-#
-# id = TimeoutHandler.register(10, Timeout::Error)
-# begin
-# sleep 20
-# puts 'foo'
-# ensure
-# TimeoutHandler.cancel(id)
-# end
-#
-# will raise Timeout::Error
-#
-# id = TimeoutHandler.register(10, Timeout::Error)
-# begin
-# sleep 5
-# puts 'foo'
-# ensure
-# TimeoutHandler.cancel(id)
-# end
-#
-# will print 'foo'
-#
-# source://webrick//lib/webrick/utils.rb#118
-class WEBrick::Utils::TimeoutHandler
- include ::Singleton
- extend ::Singleton::SingletonClassMethods
-
- # Creates a new TimeoutHandler. You should use ::register and ::cancel
- # instead of creating the timeout handler directly.
- #
- # @return [TimeoutHandler] a new instance of TimeoutHandler
- #
- # source://webrick//lib/webrick/utils.rb#148
- def initialize; end
-
- # Cancels the timeout handler +id+
- #
- # source://webrick//lib/webrick/utils.rb#226
- def cancel(thread, id); end
-
- # Interrupts the timeout handler +id+ and raises +exception+
- #
- # source://webrick//lib/webrick/utils.rb#203
- def interrupt(thread, id, exception); end
-
- # Registers a new timeout handler
- #
- # +time+:: Timeout in seconds
- # +exception+:: Exception to raise when timeout elapsed
- #
- # source://webrick//lib/webrick/utils.rb#214
- def register(thread, time, exception); end
-
- # source://webrick//lib/webrick/utils.rb#240
- def terminate; end
-
- private
-
- # source://webrick//lib/webrick/utils.rb#158
- def watch; end
-
- # source://webrick//lib/webrick/utils.rb#193
- def watcher; end
-
- class << self
- # Cancels the timeout handler +id+
- #
- # source://webrick//lib/webrick/utils.rb#137
- def cancel(id); end
-
- # Registers a new timeout handler
- #
- # +time+:: Timeout in seconds
- # +exception+:: Exception to raise when timeout elapsed
- #
- # source://webrick//lib/webrick/utils.rb#130
- def register(seconds, exception); end
-
- # source://webrick//lib/webrick/utils.rb#141
- def terminate; end
- end
-end
diff --git a/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi b/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
similarity index 92%
rename from sorbet/rbi/gems/yard-sorbet@0.8.0.rbi
rename to sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
index 9fbe008..75797b6 100644
--- a/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi
+++ b/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
@@ -231,7 +231,7 @@ class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
def make_prop(name); end
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60
- sig { returns(T::Array[T.untyped]) }
+ sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) }
def params; end
# Register the field explicitly as an attribute.
@@ -322,67 +322,54 @@ module YARDSorbet::SigToYARD
class << self
# @see https://yardoc.org/types.html
#
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#22
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#23
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
def convert(node); end
private
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#55
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#61
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
def build_generic_type(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#64
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#70
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
def convert_aref(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#76
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#82
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
def convert_array(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#84
- sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
- def convert_call(node); end
-
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#89
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#90
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
def convert_collection(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#96
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#97
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
def convert_hash(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#104
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#105
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
def convert_list(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#28
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#31
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
def convert_node(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#37
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#43
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
def convert_node_type(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#109
- sig { params(node_source: ::String).returns([::String]) }
- def convert_ref(node_source); end
-
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#114
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#110
sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
def convert_t_method(node); end
- # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#125
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#121
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
def convert_unknown(node); end
end
end
-# Map of common types to YARD conventions (in order to reduce allocations)
-#
-# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#10
-YARDSorbet::SigToYARD::REF_TYPES = T.let(T.unsafe(nil), Hash)
-
# Used to store the details of a `T::Struct` `prop` definition
#
# source://yard-sorbet//lib/yard-sorbet/t_struct_prop.rb#6
@@ -394,7 +381,7 @@ class YARDSorbet::TStructProp < ::T::Struct
const :types, T::Array[::String]
class << self
- # source://sorbet-runtime/0.5.10712/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.10908/lib/types/struct.rb#13
def inherited(s); end
end
end
diff --git a/sorbet/rbi/gems/yard@0.9.28.rbi b/sorbet/rbi/gems/yard@0.9.34.rbi
similarity index 95%
rename from sorbet/rbi/gems/yard@0.9.28.rbi
rename to sorbet/rbi/gems/yard@0.9.34.rbi
index 6999532..fbb05f8 100644
--- a/sorbet/rbi/gems/yard@0.9.28.rbi
+++ b/sorbet/rbi/gems/yard@0.9.34.rbi
@@ -100,11 +100,6 @@ end
# source://yard//lib/yard/rubygems/backports/source_index.rb#363
Gem::Cache = Gem::SourceIndex
-Gem::ConfigMap = T.let(T.unsafe(nil), Hash)
-Gem::KERNEL_WARN_IGNORES_INTERNAL_ENTRIES = T.let(T.unsafe(nil), TrueClass)
-Gem::RbConfigPriorities = T.let(T.unsafe(nil), Array)
-Gem::RubyGemsVersion = T.let(T.unsafe(nil), String)
-
# The SourceIndex object indexes all the gems available from a
# particular source (e.g. a list of gem directories, or a remote
# source). A SourceIndex maps a gem full name to a gem
@@ -287,9 +282,6 @@ class Gem::SourceIndex
end
end
-Gem::UNTAINT = T.let(T.unsafe(nil), Proc)
-Gem::UnsatisfiableDepedencyError = Gem::UnsatisfiableDependencyError
-
# source://yard//lib/yard/parser/ruby/legacy/irb/slex.rb#17
class IRB::SLex
# @return [SLex] a new instance of SLex
@@ -473,6 +465,7 @@ end
class Object < ::BasicObject
include ::Kernel
+ include ::PP::ObjectMixin
private
@@ -510,7 +503,7 @@ end
# A subclass of Hash where all keys are converted into Symbols, and
# optionally, all String values are converted into Symbols.
#
-# source://yard//lib/yard/core_ext/symbol_hash.rb#8
+# source://yard//lib/yard/core_ext/symbol_hash.rb#4
class SymbolHash < ::Hash
# Creates a new SymbolHash object
#
@@ -597,31 +590,6 @@ class SymbolHash < ::Hash
end
end
-# @private
-#
-# source://yard//lib/yard/server/webrick_adapter.rb#42
-class WEBrick::HTTPRequest
- # Returns the value of attribute version_supplied.
- #
- # source://yard//lib/yard/server/webrick_adapter.rb#43
- def version_supplied; end
-
- # Sets the attribute version_supplied
- #
- # @param value the value to set the attribute version_supplied to.
- #
- # source://yard//lib/yard/server/webrick_adapter.rb#43
- def version_supplied=(_arg0); end
-
- # @return [Boolean]
- #
- # source://yard//lib/yard/server/webrick_adapter.rb#44
- def xhr?; end
-end
-
-# source://webrick/1.7.0/lib/webrick/httprequest.rb#449
-WEBrick::HTTPRequest::MAX_HEADER_LENGTH = T.let(T.unsafe(nil), Integer)
-
# Gem::YARDoc provides methods to generate YARDoc and yri data for installed gems
# upon gem installation.
#
@@ -840,7 +808,7 @@ end
#
# @since 0.6.2
#
-# source://yard//lib/yard/cli/config.rb#7
+# source://yard//lib/yard/cli/config.rb#6
class YARD::CLI::Config < ::YARD::CLI::Command
# @return [Config] a new instance of Config
# @since 0.6.2
@@ -1161,7 +1129,7 @@ end
# @see Graph#run
# @since 0.6.0
#
-# source://yard//lib/yard/cli/graph.rb#27
+# source://yard//lib/yard/cli/graph.rb#24
class YARD::CLI::Graph < ::YARD::CLI::YardoptsCommand
# Creates a new instance of the command-line utility
#
@@ -1221,7 +1189,7 @@ end
# Options to pass to the {Graph} CLI.
#
-# source://yard//lib/yard/cli/graph.rb#6
+# source://yard//lib/yard/cli/graph.rb#5
class YARD::CLI::GraphOptions < ::YARD::Templates::TemplateOptions
# @return [String] any contents to pass to the digraph
#
@@ -1361,7 +1329,7 @@ end
#
# @since 0.6.0
#
-# source://yard//lib/yard/cli/server.rb#8
+# source://yard//lib/yard/cli/server.rb#7
class YARD::CLI::Server < ::YARD::CLI::Command
# Creates a new instance of the Server command line utility
#
@@ -1664,7 +1632,7 @@ YARD::CLI::Stats::STATS_ORDER = T.let(T.unsafe(nil), Array)
# A tool to view documentation in the console like `ri`
#
-# source://yard//lib/yard/cli/yri.rb#9
+# source://yard//lib/yard/cli/yri.rb#7
class YARD::CLI::YRI < ::YARD::CLI::Command
# @return [YRI] a new instance of YRI
#
@@ -1794,7 +1762,7 @@ YARD::CLI::YRI::DEFAULT_SEARCH_PATHS = T.let(T.unsafe(nil), Array)
# source://yard//lib/yard/cli/yri.rb#15
YARD::CLI::YRI::SEARCH_PATHS_FILE = T.let(T.unsafe(nil), String)
-# source://yard//lib/yard/cli/yardoc.rb#147
+# source://yard//lib/yard/cli/yardoc.rb#145
class YARD::CLI::Yardoc < ::YARD::CLI::YardoptsCommand
# Creates a new instance of the commandline utility
#
@@ -2131,7 +2099,7 @@ class YARD::CLI::Yardoc < ::YARD::CLI::YardoptsCommand
# Generates output for objects
#
- # @param checksums [Hash, nil] if supplied, a list of checkums for files.
+ # @param checksums [Hash, nil] if supplied, a list of checksums for files.
# @return [void]
# @since 0.5.1
#
@@ -2167,7 +2135,7 @@ end
# Default options used in +yard doc+ command.
#
-# source://yard//lib/yard/cli/yardoc.rb#10
+# source://yard//lib/yard/cli/yardoc.rb#8
class YARD::CLI::YardocOptions < ::YARD::Templates::TemplateOptions
# @return [CodeObjects::ExtraFileObject] the file object being rendered.
# The +object+ key is not used so that a file may be rendered in the context
@@ -2295,7 +2263,7 @@ end
# @abstract
# @since 0.8.3
#
-# source://yard//lib/yard/cli/yardopts_command.rb#11
+# source://yard//lib/yard/cli/yardopts_command.rb#10
class YARD::CLI::YardoptsCommand < ::YARD::CLI::Command
# Creates a new command that reads .yardopts
#
@@ -2552,7 +2520,7 @@ class YARD::CodeObjects::Base
# @see Docstring#add_tag
# @since 0.8.4
#
- # source://yard//lib/yard/code_objects/base.rb#557
+ # source://yard//lib/yard/code_objects/base.rb#560
def add_tag(*tags); end
# The non-localized documentation string associated with the object
@@ -2661,7 +2629,7 @@ class YARD::CodeObjects::Base
# @return [String] the rendered template
# @see Templates::Engine#render
#
- # source://yard//lib/yard/code_objects/base.rb#501
+ # source://yard//lib/yard/code_objects/base.rb#504
def format(options = T.unsafe(nil)); end
# @return [String] the group this object is associated with
@@ -2681,7 +2649,7 @@ class YARD::CodeObjects::Base
# @return [Boolean]
# @see Docstring#has_tag?
#
- # source://yard//lib/yard/code_objects/base.rb#552
+ # source://yard//lib/yard/code_objects/base.rb#555
def has_tag?(name); end
# @return [Integer] the object's hash value (for equality checking)
@@ -2693,7 +2661,7 @@ class YARD::CodeObjects::Base
#
# @return [String] a string describing the object
#
- # source://yard//lib/yard/code_objects/base.rb#509
+ # source://yard//lib/yard/code_objects/base.rb#512
def inspect; end
# Returns the line the object was first parsed at (or nil)
@@ -2735,7 +2703,7 @@ class YARD::CodeObjects::Base
# for {Registry.root}). If obj is nil, the object is unregistered
# from the Registry.
#
- # source://yard//lib/yard/code_objects/base.rb#518
+ # source://yard//lib/yard/code_objects/base.rb#521
def namespace=(obj); end
# The namespace the object is defined in. If the object is in the
@@ -2752,7 +2720,7 @@ class YARD::CodeObjects::Base
# for {Registry.root}). If obj is nil, the object is unregistered
# from the Registry.
#
- # source://yard//lib/yard/code_objects/base.rb#518
+ # source://yard//lib/yard/code_objects/base.rb#521
def parent=(obj); end
# Represents the unique path of the object. The default implementation
@@ -2765,19 +2733,19 @@ class YARD::CodeObjects::Base
# @return [String] the unique path of the object
# @see #sep
#
- # source://yard//lib/yard/code_objects/base.rb#449
+ # source://yard//lib/yard/code_objects/base.rb#452
def path; end
# @param other [Base, String] another code object (or object path)
# @return [String] the shortest relative path from this object to +other+
# @since 0.5.3
#
- # source://yard//lib/yard/code_objects/base.rb#471
+ # source://yard//lib/yard/code_objects/base.rb#474
def relative_path(other); end
# @return [Boolean] whether or not this object is a RootObject
#
- # source://yard//lib/yard/code_objects/base.rb#563
+ # source://yard//lib/yard/code_objects/base.rb#566
def root?; end
# Override this method with a custom component separator. For instance,
@@ -2788,7 +2756,7 @@ class YARD::CodeObjects::Base
# @return [String] the component that separates the namespace path
# and the name (default is {NSEP})
#
- # source://yard//lib/yard/code_objects/base.rb#572
+ # source://yard//lib/yard/code_objects/base.rb#575
def sep; end
# The one line signature representing an object. For a method, this will
@@ -2844,14 +2812,14 @@ class YARD::CodeObjects::Base
#
# @see Docstring#tag
#
- # source://yard//lib/yard/code_objects/base.rb#544
+ # source://yard//lib/yard/code_objects/base.rb#547
def tag(name); end
# Gets a list of tags from the {#docstring}
#
# @see Docstring#tags
#
- # source://yard//lib/yard/code_objects/base.rb#548
+ # source://yard//lib/yard/code_objects/base.rb#551
def tags(name = T.unsafe(nil)); end
# @note Override this method if your object has a special title that does
@@ -2860,7 +2828,7 @@ class YARD::CodeObjects::Base
# @return [String] the display title for an object
# @see 0.8.4
#
- # source://yard//lib/yard/code_objects/base.rb#464
+ # source://yard//lib/yard/code_objects/base.rb#467
def title; end
# @return [nil] this object does not turn into an array
@@ -2878,7 +2846,7 @@ class YARD::CodeObjects::Base
# @return [String] the unique path of the object
# @see #sep
#
- # source://yard//lib/yard/code_objects/base.rb#449
+ # source://yard//lib/yard/code_objects/base.rb#452
def to_s; end
# Default type is the lowercase class name without the "Object" suffix.
@@ -2909,7 +2877,7 @@ class YARD::CodeObjects::Base
# @see #copy_to
# @since 0.8.0
#
- # source://yard//lib/yard/code_objects/base.rb#583
+ # source://yard//lib/yard/code_objects/base.rb#586
def copyable_attributes; end
private
@@ -2919,10 +2887,10 @@ class YARD::CodeObjects::Base
# @param source [String] the source code to format
# @return [String] formatted source
#
- # source://yard//lib/yard/code_objects/base.rb#595
+ # source://yard//lib/yard/code_objects/base.rb#598
def format_source(source); end
- # source://yard//lib/yard/code_objects/base.rb#602
+ # source://yard//lib/yard/code_objects/base.rb#605
def translate_docstring(locale); end
class << self
@@ -2969,7 +2937,7 @@ YARD::CodeObjects::CSEPQ = T.let(T.unsafe(nil), String)
# A ClassObject represents a Ruby class in source code. It is a {ModuleObject}
# with extra inheritance semantics through the superclass.
#
-# source://yard//lib/yard/code_objects/class_object.rb#9
+# source://yard//lib/yard/code_objects/class_object.rb#7
class YARD::CodeObjects::ClassObject < ::YARD::CodeObjects::NamespaceObject
# Creates a new class object in +namespace+ with +name+
#
@@ -3050,7 +3018,7 @@ end
# Represents a class variable inside a namespace. The path is expressed
# in the form "A::B::@@classvariable"
#
-# source://yard//lib/yard/code_objects/class_variable_object.rb#8
+# source://yard//lib/yard/code_objects/class_variable_object.rb#7
class YARD::CodeObjects::ClassVariableObject < ::YARD::CodeObjects::Base
# @return [String] the class variable's value
#
@@ -3066,7 +3034,7 @@ end
# A list of code objects. This array acts like a set (no unique items)
# but also disallows any {Proxy} objects from being added.
#
-# source://yard//lib/yard/code_objects/base.rb#10
+# source://yard//lib/yard/code_objects/base.rb#6
class YARD::CodeObjects::CodeObjectList < ::Array
# Creates a new object list associated with a namespace
#
@@ -3096,7 +3064,7 @@ end
# A +ConstantObject+ represents a Ruby constant (not a module or class).
# To access the constant's (source code) value, use {#value}.
#
-# source://yard//lib/yard/code_objects/constant_object.rb#9
+# source://yard//lib/yard/code_objects/constant_object.rb#7
class YARD::CodeObjects::ConstantObject < ::YARD::CodeObjects::Base
# The source code representing the constant's value
#
@@ -3463,7 +3431,7 @@ YARD::CodeObjects::MacroObject::MACRO_MATCH = T.let(T.unsafe(nil), Regexp)
# Represents a Ruby method in source
#
-# source://yard//lib/yard/code_objects/method_object.rb#10
+# source://yard//lib/yard/code_objects/method_object.rb#7
class YARD::CodeObjects::MethodObject < ::YARD::CodeObjects::Base
# Creates a new method object in +namespace+ with +name+ and an instance
# or class +scope+
@@ -3636,7 +3604,7 @@ end
# Represents a Ruby module.
#
-# source://yard//lib/yard/code_objects/module_object.rb#11
+# source://yard//lib/yard/code_objects/module_object.rb#6
class YARD::CodeObjects::ModuleObject < ::YARD::CodeObjects::NamespaceObject
# Returns the inheritance tree of mixins.
#
@@ -3801,7 +3769,7 @@ end
# The two main Ruby objects that can act as namespaces are modules
# ({ModuleObject}) and classes ({ClassObject}).
#
-# source://yard//lib/yard/code_objects/namespace_object.rb#11
+# source://yard//lib/yard/code_objects/namespace_object.rb#9
class YARD::CodeObjects::NamespaceObject < ::YARD::CodeObjects::Base
# Creates a new namespace object inside +namespace+ with +name+.
#
@@ -4773,7 +4741,7 @@ YARD::Docstring::META_MATCH = T.let(T.unsafe(nil), Regexp)
#
# == Subclassing Notes
#
-# The DocstringParser can be subclassed and subtituted during parsing by
+# The DocstringParser can be subclassed and substituted during parsing by
# setting the {Docstring.default_parser} attribute with the name of the
# subclass. This allows developers to change the way docstrings are
# parsed, allowing for completely different docstring syntaxes.
@@ -5947,7 +5915,7 @@ class YARD::Handlers::HandlerAborted < ::RuntimeError; end
# an operation on an object's namespace but the namespace could
# not be resolved.
#
-# source://yard//lib/yard/handlers/base.rb#15
+# source://yard//lib/yard/handlers/base.rb#13
class YARD::Handlers::NamespaceMissingError < ::YARD::Parser::UndocumentableError
# @return [NamespaceMissingError] a new instance of NamespaceMissingError
#
@@ -6535,7 +6503,7 @@ class YARD::Handlers::Ruby::Legacy::AttributeHandler < ::YARD::Handlers::Ruby::L
#
# @abstract See {Handlers::Base} for subclassing information.
#
-# source://yard//lib/yard/handlers/ruby/legacy/base.rb#10
+# source://yard//lib/yard/handlers/ruby/legacy/base.rb#9
class YARD::Handlers::Ruby::Legacy::Base < ::YARD::Handlers::Base
include ::YARD::Parser::Ruby::Legacy::RubyToken
@@ -6853,7 +6821,7 @@ class YARD::Handlers::Ruby::MixinHandler < ::YARD::Handlers::Ruby::Base
# source://yard//lib/yard/handlers/ruby/mixin_handler.rb#25
def process_mixin(mixin); end
- # source://yard//lib/yard/handlers/ruby/mixin_handler.rb#43
+ # source://yard//lib/yard/handlers/ruby/mixin_handler.rb#50
def recipient(mixin); end
end
@@ -7078,7 +7046,7 @@ class YARD::I18n::Locale
def name; end
# @param message [String] the translation target message.
- # @return [String] translated message. If tarnslation isn't
+ # @return [String] translated message. If translation isn't
# registered, the +message+ is returned.
# @since 0.8.2
#
@@ -7107,7 +7075,7 @@ end
#
# source://yard//lib/yard/i18n/message.rb#10
class YARD::I18n::Message
- # Creates a trasnlate target message for message ID +id+.
+ # Creates a translate target message for message ID +id+.
#
# @param id [String] the message ID of the translate target message.
# @return [Message] a new instance of Message
@@ -7148,7 +7116,7 @@ class YARD::I18n::Message
# source://yard//lib/yard/i18n/message.rb#19
def comments; end
- # @return [String] the message ID of the trnslation target message.
+ # @return [String] the message ID of the translation target message.
# @since 0.8.1
#
# source://yard//lib/yard/i18n/message.rb#12
@@ -7206,7 +7174,7 @@ class YARD::I18n::Messages
# source://yard//lib/yard/i18n/messages.rb#20
def each(&block); end
- # Registers a {Message}, the mssage ID of which is +id+. If
+ # Registers a {Message}, the message ID of which is +id+. If
# corresponding +Message+ is already registered, the previously
# registered object is returned.
#
@@ -7308,7 +7276,7 @@ class YARD::I18n::PotGenerator
#
# Locations of the +Message+ are used to generate the reference
# line that is started with "#: ". +relative_base_path+ passed
- # when the generater is created is prepended to each path in location.
+ # when the generator is created is prepended to each path in location.
#
# Comments of the +Message+ are used to generate the
# translator-comment line that is started with "# ".
@@ -7491,7 +7459,7 @@ end
# Handles console logging for info, warnings and errors.
# Uses the stdlib Logger class in Ruby for all the backend logic.
#
-# source://yard//lib/yard/logging.rb#12
+# source://yard//lib/yard/logging.rb#9
class YARD::Logger < ::Logger
# Creates a new logger
#
@@ -7667,7 +7635,7 @@ class YARD::Logger < ::Logger
# source://yard//lib/yard/logging.rb#201
def format_log(sev, _time, _prog, msg); end
- # source://logger/1.5.0/logger.rb#485
+ # source://logger/1.5.3/logger.rb#682
def print_no_newline(msg); end
class << self
@@ -7777,7 +7745,7 @@ class YARD::Options
#
# @example Setting an option with Hash syntax
# options[:format] = :html # equivalent to: options.format = :html
- # @param key [Symbol, String] the optin to set
+ # @param key [Symbol, String] the option to set
# @param value [Object] the value to set for the option
# @return [Object] the value being set
#
@@ -10136,490 +10104,490 @@ class YARD::Parser::Ruby::RipperParser < ::Ripper
# source://yard//lib/yard/parser/ruby/ruby_parser.rb#29
def frozen_string_line; end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_BEGIN(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_CHAR(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_END(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on___end__(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_alias(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_alias_error(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_arg_ambiguous(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_arg_paren(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_args_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_args_add_block(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_args_add_star(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_args_forward(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#149
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155
def on_args_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_aryptn(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_assign(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_assign_error(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_assoc_splat(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_backref(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_backtick(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_begin(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_binary(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_block_var(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_blockarg(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_brace_block(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_break(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_call(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_case(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_class(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_class_name_error(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_comma(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_command(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_command_call(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_const(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_const_path_field(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_const_ref(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_cvar(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_def(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_defined(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_defs(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_do_block(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_dot2(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_dot3(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_else(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_elsif(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_embexpr_beg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_embexpr_end(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_embvar(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_ensure(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_excessed_comma(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_fcall(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_field(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_float(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_fndptn(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_for(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_gvar(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_heredoc_beg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_heredoc_dedent(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_heredoc_end(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_hshptn(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_ident(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_if(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#443
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449
def on_if_mod(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_ifop(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#216
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#222
def on_ignored_nl(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_ignored_sp(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_imaginary(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_in(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_int(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_ivar(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#203
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#209
def on_kw(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_kwrest_param(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_label_end(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_lbrace(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_lparen(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_magic_comment(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_massign(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_method_add_arg(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_method_add_block(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_mlhs_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_mlhs_add_post(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_mlhs_add_star(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#149
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155
def on_mlhs_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_mlhs_paren(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_module(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_mrhs_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_mrhs_add_star(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#149
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155
def on_mrhs_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_mrhs_new_from_args(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_next(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#216
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#222
def on_nl(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_nokw_param(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#203
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#209
def on_op(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_opassign(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_operator_ambiguous(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_param_error(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_paren(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_period(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#468
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474
def on_qsymbols_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_qsymbols_beg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#456
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462
def on_qsymbols_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#468
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474
def on_qwords_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_qwords_beg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#456
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462
def on_qwords_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_rational(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_rbrace(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_redo(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_regexp_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_regexp_beg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_regexp_end(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_regexp_literal(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#149
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155
def on_regexp_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_rescue_mod(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_rest_param(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_retry(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_return(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_return0(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_rparen(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_sclass(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_semicolon(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_stmts_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#149
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155
def on_stmts_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_string_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_string_concat(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_string_dvar(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_string_embexpr(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_super(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_symbeg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_symbol(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_symbol_literal(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#468
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474
def on_symbols_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_symbols_beg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#456
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462
def on_symbols_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_tlambda(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_tlambeg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_top_const_field(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_tstring_beg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_tstring_content(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_tstring_end(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_undef(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_unless(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#443
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449
def on_unless_mod(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_until(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#443
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449
def on_until_mod(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_var_alias(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_var_field(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_var_ref(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#171
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#177
def on_vcall(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_when(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_while(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#443
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#449
def on_while_mod(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_word_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#149
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155
def on_word_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#468
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#474
def on_words_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#193
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#199
def on_words_beg(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#456
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#462
def on_words_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#182
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#188
def on_words_sep(tok); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#156
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#162
def on_xstring_add(list, item); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_xstring_literal(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#149
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#155
def on_xstring_new(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_yield(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_yield0(*args); end
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#164
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#170
def on_zsuper(*args); end
# @since 0.5.6
@@ -10646,195 +10614,195 @@ class YARD::Parser::Ruby::RipperParser < ::Ripper
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#661
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#667
def add_comment(line, node = T.unsafe(nil), before_node = T.unsafe(nil), into = T.unsafe(nil)); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#265
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#271
def add_token(token, data); end
# @return [Boolean]
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#605
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#611
def comment_starts_line?(charno); end
# @raise [ParserSyntaxError]
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#600
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#606
def compile_error(msg); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#687
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#693
def freeze_tree(node = T.unsafe(nil)); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#614
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#620
def insert_comments; end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#371
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#377
def on_aref(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#379
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#385
def on_aref_field(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#385
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#391
def on_array(other); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#346
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#352
def on_assoc_new(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#358
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#364
def on_assoclist_from_args(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#354
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#360
def on_bare_assoc_hash(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#341
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#347
def on_body_stmt(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#341
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#347
def on_bodystmt(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#536
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#542
def on_comment(comment); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#435
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#441
def on_const_path_ref(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#413
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#419
def on_dyna_symbol(sym); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#586
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#592
def on_embdoc(text); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#580
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#586
def on_embdoc_beg(text); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#591
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#597
def on_embdoc_end(text); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#350
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#356
def on_hash(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#528
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#534
def on_label(data); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#491
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#497
def on_lambda(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#403
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#409
def on_lbracket(tok); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#509
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#515
def on_params(*args); end
# @raise [ParserSyntaxError]
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#600
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#606
def on_parse_error(msg); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#337
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#343
def on_program(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#408
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#414
def on_rbracket(tok); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#500
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#506
def on_rescue(exc, *args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#226
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#232
def on_sp(tok); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#495
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#501
def on_string_content(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#478
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#484
def on_string_literal(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#423
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#429
def on_top_const_ref(*args); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#362
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#368
def on_unary(op, val); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#505
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#511
def on_void_stmt; end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#231
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#237
def visit_event(node); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#245
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#251
def visit_event_arr(node); end
# @since 0.5.6
#
- # source://yard//lib/yard/parser/ruby/ruby_parser.rb#253
+ # source://yard//lib/yard/parser/ruby/ruby_parser.rb#259
def visit_ns_token(token, data, ast_token = T.unsafe(nil)); end
end
@@ -10843,6 +10811,11 @@ end
# source://yard//lib/yard/parser/ruby/ruby_parser.rb#133
YARD::Parser::Ruby::RipperParser::AST_TOKENS = T.let(T.unsafe(nil), Array)
+# @since 0.5.6
+#
+# source://yard//lib/yard/parser/ruby/ruby_parser.rb#136
+YARD::Parser::Ruby::RipperParser::COMMENT_SKIP_NODE_TYPES = T.let(T.unsafe(nil), Array)
+
# @since 0.5.6
#
# source://yard//lib/yard/parser/ruby/ruby_parser.rb#78
@@ -11387,7 +11360,7 @@ module YARD::Rake; end
# The rake task to run {CLI::Yardoc} and generate documentation.
#
-# source://yard//lib/yard/rake/yardoc_task.rb#10
+# source://yard//lib/yard/rake/yardoc_task.rb#8
class YARD::Rake::YardocTask < ::Rake::TaskLib
# Creates a new task with name +name+.
#
@@ -11948,7 +11921,7 @@ class YARD::RegistryResolver
#
# @since 0.9.1
#
- # source://yard//lib/yard/registry_resolver.rb#180
+ # source://yard//lib/yard/registry_resolver.rb#181
def collect_namespaces(object); end
# Performs a lexical lookup from a namespace for a path and a type hint.
@@ -11969,20 +11942,20 @@ class YARD::RegistryResolver
# occurrences of separator tokens
# @since 0.9.1
#
- # source://yard//lib/yard/registry_resolver.rb#205
+ # source://yard//lib/yard/registry_resolver.rb#206
def split_on_separators_match; end
# @return [Regexp] the regexp match of the default separator
# @since 0.9.1
#
- # source://yard//lib/yard/registry_resolver.rb#193
+ # source://yard//lib/yard/registry_resolver.rb#194
def starts_with_default_separator_match; end
# @return [Regexp] the regexp that matches strings starting with
# a separator
# @since 0.9.1
#
- # source://yard//lib/yard/registry_resolver.rb#199
+ # source://yard//lib/yard/registry_resolver.rb#200
def starts_with_separator_match; end
# return [Boolean] if the obj's type matches the provided type.
@@ -12325,7 +12298,7 @@ end
# Implements a serializer that reads from and writes to the filesystem.
#
-# source://yard//lib/yard/serializers/file_system_serializer.rb#7
+# source://yard//lib/yard/serializers/file_system_serializer.rb#5
class YARD::Serializers::FileSystemSerializer < ::YARD::Serializers::Base
# Creates a new FileSystemSerializer with options
#
@@ -12413,7 +12386,7 @@ end
# serializer = ProcessSerializer.new('less')
# serializer.serialize(object, "data!")
#
-# source://yard//lib/yard/serializers/process_serializer.rb#12
+# source://yard//lib/yard/serializers/process_serializer.rb#9
class YARD::Serializers::ProcessSerializer < ::YARD::Serializers::Base
# Creates a new ProcessSerializer for the shell command +cmd+
#
@@ -12432,7 +12405,7 @@ end
# A serializer that writes data to standard output.
#
-# source://yard//lib/yard/serializers/stdout_serializer.rb#9
+# source://yard//lib/yard/serializers/stdout_serializer.rb#5
class YARD::Serializers::StdoutSerializer < ::YARD::Serializers::Base
# Creates a serializer to print text to stdout
#
@@ -12689,6 +12662,16 @@ class YARD::Server::Adapter
end
end
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#16
+YARD::Server::CR = T.let(T.unsafe(nil), String)
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#18
+YARD::Server::CRLF = T.let(T.unsafe(nil), String)
+
# Commands implement specific kinds of server responses which are routed
# to by the {Router} class. To implement a custom command, subclass {Commands::Base}.
#
@@ -12850,7 +12833,7 @@ class YARD::Server::Commands::Base
# def run
# self.body = 'ERROR! The System is down!'
# self.status = 500
- # self.headers['Conten-Type'] = 'text/plain'
+ # self.headers['Content-Type'] = 'text/plain'
# end
# end
# @raise [NotImplementedError]
@@ -13296,7 +13279,7 @@ end
#
# source://yard//lib/yard/server/commands/root_request_command.rb#6
class YARD::Server::Commands::RootRequestCommand < ::YARD::Server::Commands::Base
- include ::WEBrick::HTTPUtils
+ include ::YARD::Server::HTTPUtils
include ::YARD::Server::Commands::StaticFileHelpers
# @since 0.6.0
@@ -13375,7 +13358,7 @@ end
#
# source://yard//lib/yard/server/commands/static_file_command.rb#6
class YARD::Server::Commands::StaticFileCommand < ::YARD::Server::Commands::LibraryCommand
- include ::WEBrick::HTTPUtils
+ include ::YARD::Server::HTTPUtils
include ::YARD::Server::Commands::StaticFileHelpers
# @since 0.6.0
@@ -13399,9 +13382,9 @@ YARD::Server::Commands::StaticFileCommand::STATIC_PATHS = T.let(T.unsafe(nil), A
#
# @since 0.6.0
#
-# source://yard//lib/yard/server/commands/static_file_helpers.rb#9
+# source://yard//lib/yard/server/commands/static_file_helpers.rb#8
module YARD::Server::Commands::StaticFileHelpers
- include ::WEBrick::HTTPUtils
+ include ::YARD::Server::HTTPUtils
# Serves an empty favicon.
#
@@ -13410,7 +13393,7 @@ module YARD::Server::Commands::StaticFileHelpers
# @return [Boolean]
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/static_file_helpers.rb#15
+ # source://yard//lib/yard/server/commands/static_file_helpers.rb#14
def favicon?; end
# Attempts to route a path to a static template file.
@@ -13419,20 +13402,20 @@ module YARD::Server::Commands::StaticFileHelpers
# @return [void]
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/static_file_helpers.rb#27
+ # source://yard//lib/yard/server/commands/static_file_helpers.rb#26
def static_template_file?; end
private
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/static_file_helpers.rb#43
+ # source://yard//lib/yard/server/commands/static_file_helpers.rb#42
def find_file(adapter, url); end
class << self
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/static_file_helpers.rb#43
+ # source://yard//lib/yard/server/commands/static_file_helpers.rb#42
def find_file(adapter, url); end
end
end
@@ -13572,6 +13555,470 @@ end
# source://yard//lib/yard/server/adapter.rb#6
class YARD::Server::FinishRequest < ::RuntimeError; end
+# HTTPUtils provides utility methods for working with the HTTP protocol.
+#
+# This module is generally used internally by WEBrick
+#
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#25
+module YARD::Server::HTTPUtils
+ private
+
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#443
+ def _escape(str, regex); end
+
+ # :stopdoc:
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#441
+ def _make_regex(str); end
+
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#442
+ def _make_regex!(str); end
+
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#449
+ def _unescape(str, regex); end
+
+ # Removes quotes and escapes from +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#223
+ def dequote(str); end
+
+ # Escapes HTTP reserved and unwise characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#467
+ def escape(str); end
+
+ # Escapes 8 bit characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#508
+ def escape8bit(str); end
+
+ # Escapes form reserved characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#481
+ def escape_form(str); end
+
+ # Escapes path +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#497
+ def escape_path(str); end
+
+ # Loads Apache-compatible mime.types in +file+.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#112
+ def load_mime_types(file); end
+
+ # Returns the mime type of +filename+ from the list in +mime_tab+. If no
+ # mime type was found application/octet-stream is returned.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#134
+ def mime_type(filename, mime_tab); end
+
+ # Normalizes a request path. Raises an exception if the path cannot be
+ # normalized.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#31
+ def normalize_path(path); end
+
+ # Parses form data in +io+ with the given +boundary+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#395
+ def parse_form_data(io, boundary); end
+
+ # Parses an HTTP header +raw+ into a hash of header fields with an Array
+ # of values.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#145
+ def parse_header(raw); end
+
+ # Parses the query component of a URI in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#371
+ def parse_query(str); end
+
+ # Parses q values in +value+ as used in Accept headers.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#202
+ def parse_qvalues(value); end
+
+ # Parses a Range header value +ranges_specifier+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#184
+ def parse_range_header(ranges_specifier); end
+
+ # Quotes and escapes quotes in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#233
+ def quote(str); end
+
+ # Splits a header value +str+ according to HTTP specification.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#175
+ def split_header_value(str); end
+
+ # Unescapes HTTP reserved and unwise characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#474
+ def unescape(str); end
+
+ # Unescapes form reserved characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#490
+ def unescape_form(str); end
+
+ class << self
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#443
+ def _escape(str, regex); end
+
+ # :stopdoc:
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#441
+ def _make_regex(str); end
+
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#442
+ def _make_regex!(str); end
+
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#449
+ def _unescape(str, regex); end
+
+ # Removes quotes and escapes from +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#223
+ def dequote(str); end
+
+ # Escapes HTTP reserved and unwise characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#467
+ def escape(str); end
+
+ # Escapes 8 bit characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#508
+ def escape8bit(str); end
+
+ # Escapes form reserved characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#481
+ def escape_form(str); end
+
+ # Escapes path +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#497
+ def escape_path(str); end
+
+ # Loads Apache-compatible mime.types in +file+.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#112
+ def load_mime_types(file); end
+
+ # Returns the mime type of +filename+ from the list in +mime_tab+. If no
+ # mime type was found application/octet-stream is returned.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#134
+ def mime_type(filename, mime_tab); end
+
+ # Normalizes a request path. Raises an exception if the path cannot be
+ # normalized.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#31
+ def normalize_path(path); end
+
+ # Parses form data in +io+ with the given +boundary+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#395
+ def parse_form_data(io, boundary); end
+
+ # Parses an HTTP header +raw+ into a hash of header fields with an Array
+ # of values.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#145
+ def parse_header(raw); end
+
+ # Parses the query component of a URI in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#371
+ def parse_query(str); end
+
+ # Parses q values in +value+ as used in Accept headers.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#202
+ def parse_qvalues(value); end
+
+ # Parses a Range header value +ranges_specifier+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#184
+ def parse_range_header(ranges_specifier); end
+
+ # Quotes and escapes quotes in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#233
+ def quote(str); end
+
+ # Splits a header value +str+ according to HTTP specification.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#175
+ def split_header_value(str); end
+
+ # Unescapes HTTP reserved and unwise characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#474
+ def unescape(str); end
+
+ # Unescapes form reserved characters in +str+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#490
+ def unescape_form(str); end
+ end
+end
+
+# Default mime types
+#
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#47
+YARD::Server::HTTPUtils::DefaultMimeTypes = T.let(T.unsafe(nil), Hash)
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#459
+YARD::Server::HTTPUtils::ESCAPED = T.let(T.unsafe(nil), Regexp)
+
+# Stores multipart form data. FormData objects are created when
+# WEBrick::HTTPUtils.parse_form_data is called.
+#
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#242
+class YARD::Server::HTTPUtils::FormData < ::String
+ # Creates a new FormData object.
+ #
+ # +args+ is an Array of form data entries. One FormData will be created
+ # for each entry.
+ #
+ # This is called by WEBrick::HTTPUtils.parse_form_data for you
+ #
+ # @return [FormData] a new instance of FormData
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#267
+ def initialize(*args); end
+
+ # Adds +str+ to this FormData which may be the body, a header or a
+ # header entry.
+ #
+ # This is called by WEBrick::HTTPUtils.parse_form_data for you
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#300
+ def <<(str); end
+
+ # Retrieves the header at the first entry in +key+
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#286
+ def [](*key); end
+
+ # Adds +data+ at the end of the chain of entries
+ #
+ # This is called by WEBrick::HTTPUtils.parse_form_data for you.
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#320
+ def append_data(data); end
+
+ # Yields each entry in this FormData
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#335
+ def each_data; end
+
+ # The filename of the form data part
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#254
+ def filename; end
+
+ # The filename of the form data part
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#254
+ def filename=(_arg0); end
+
+ # Returns all the FormData as an Array
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#347
+ def list; end
+
+ # The name of the form data part
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#249
+ def name; end
+
+ # The name of the form data part
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#249
+ def name=(_arg0); end
+
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#256
+ def next_data=(_arg0); end
+
+ # Returns all the FormData as an Array
+ # A FormData will behave like an Array
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#347
+ def to_ary; end
+
+ # This FormData's body
+ #
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#363
+ def to_s; end
+
+ protected
+
+ # @since 0.6.0
+ #
+ # source://yard//lib/yard/server/http_utils.rb#256
+ def next_data; end
+end
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#244
+YARD::Server::HTTPUtils::FormData::EmptyHeader = T.let(T.unsafe(nil), Hash)
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#243
+YARD::Server::HTTPUtils::FormData::EmptyRawHeader = T.let(T.unsafe(nil), Array)
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#458
+YARD::Server::HTTPUtils::NONASCII = T.let(T.unsafe(nil), Regexp)
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#456
+YARD::Server::HTTPUtils::UNESCAPED = T.let(T.unsafe(nil), Regexp)
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#457
+YARD::Server::HTTPUtils::UNESCAPED_FORM = T.let(T.unsafe(nil), Regexp)
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#460
+YARD::Server::HTTPUtils::UNESCAPED_PCHAR = T.let(T.unsafe(nil), Regexp)
+
+# @since 0.6.0
+#
+# source://yard//lib/yard/server/http_utils.rb#17
+YARD::Server::LF = T.let(T.unsafe(nil), String)
+
# This exception is raised when {LibraryVersion#prepare!} fails, or discovers
# that the library is not "prepared" to be served by
#
@@ -14108,50 +14555,6 @@ module YARD::Server::StaticCaching
def check_static_cache; end
end
-# The main adapter to initialize a WEBrick server.
-#
-# @since 0.6.0
-#
-# source://yard//lib/yard/server/webrick_adapter.rb#9
-class YARD::Server::WebrickAdapter < ::YARD::Server::Adapter
- # Initializes a WEBrick server. If {Adapter#server_options} contains a
- # +:daemonize+ key set to true, the server will be daemonized.
- #
- # @since 0.6.0
- #
- # source://yard//lib/yard/server/webrick_adapter.rb#10
- def start; end
-end
-
-# The main WEBrick servlet implementation, accepting only GET requests.
-#
-# @since 0.6.0
-#
-# source://yard//lib/yard/server/webrick_adapter.rb#20
-class YARD::Server::WebrickServlet < ::WEBrick::HTTPServlet::AbstractServlet
- # @return [WebrickServlet] a new instance of WebrickServlet
- # @since 0.6.0
- #
- # source://yard//lib/yard/server/webrick_adapter.rb#23
- def initialize(server, adapter); end
-
- # @since 0.6.0
- #
- # source://yard//lib/yard/server/webrick_adapter.rb#21
- def adapter; end
-
- # @since 0.6.0
- #
- # source://yard//lib/yard/server/webrick_adapter.rb#21
- def adapter=(_arg0); end
-
- # @private
- # @since 0.6.0
- #
- # source://yard//lib/yard/server/webrick_adapter.rb#29
- def do_GET(request, response); end
-end
-
# Stubs marshal dumps and acts a delegate class for an object by path
#
# @private
@@ -14188,7 +14591,7 @@ YARD::TEMPLATE_ROOT = T.let(T.unsafe(nil), String)
# Namespace for Tag components
#
-# source://yard//lib/yard/autoload.rb#247
+# source://yard//lib/yard/autoload.rb#248
module YARD::Tags; end
# Defines an attribute with a given name, using indented block data as the
@@ -15665,10 +16068,10 @@ class YARD::Tags::Tag
def initialize(tag_name, text, types = T.unsafe(nil), name = T.unsafe(nil)); end
# Provides a plain English summary of the type specification, or nil
- # if no types are provided or parseable.
+ # if no types are provided or parsable.
#
# @return [String] a plain English description of the associated types
- # @return [nil] if no types are provided or not parseable
+ # @return [nil] if no types are provided or not parsable
#
# source://yard//lib/yard/tags/tag.rb#65
def explain_types; end
@@ -15744,22 +16147,22 @@ class YARD::Tags::TagFormatError < ::RuntimeError; end
class YARD::Tags::TypesExplainer
class << self
# Provides a plain English summary of the type specification, or nil
- # if no types are provided or parseable.
+ # if no types are provided or parsable.
#
# @param types [Array