]
- # @return [undefined]
- #
- # source://unparser//lib/unparser/equalizer.rb#20
- def initialize(*keys); end
-
- private
-
- # source://unparser//lib/unparser/equalizer.rb#39
- def define_cmp_method; end
-
- # source://unparser//lib/unparser/equalizer.rb#49
- def define_hash_method; end
-
- # source://unparser//lib/unparser/equalizer.rb#56
- def define_inspect_method; end
-
- # source://unparser//lib/unparser/equalizer.rb#33
- def define_methods; end
-
- # source://unparser//lib/unparser/equalizer.rb#29
- def included(descendant); end
-end
-
-# The comparison methods
-#
-# source://unparser//lib/unparser/equalizer.rb#66
-module Unparser::Equalizer::Methods
- # Compare the object with other object for equivalency
- #
- # @api public
- # @example
- # object == other # => true or false
- # @param other [Object] the other object to compare with
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/equalizer.rb#93
- def ==(other); end
-
- # Compare the object with other object for equality
- #
- # @api public
- # @example
- # object.eql?(other) # => true or false
- # @param other [Object] the other object to compare with
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/equalizer.rb#78
- def eql?(other); end
-end
-
-# source://unparser//lib/unparser/generation.rb#5
-module Unparser::Generation
- # source://unparser//lib/unparser/generation.rb#10
- def emit_heredoc_reminders; end
-
- # source://unparser//lib/unparser/generation.rb#12
- def symbol_name; end
-
- # source://unparser//lib/unparser/generation.rb#14
- def write_to_buffer; end
-
- private
-
- # source://unparser//lib/unparser/generation.rb#247
- def children; end
-
- # source://unparser//lib/unparser/generation.rb#239
- def conditional_parentheses(flag, &block); end
-
- # source://unparser//lib/unparser/generation.rb#21
- def delimited(nodes, delimiter = T.unsafe(nil), &block); end
-
- # source://unparser//lib/unparser/generation.rb#123
- def emit_body(node, indent: T.unsafe(nil)); end
-
- # source://unparser//lib/unparser/generation.rb#196
- def emit_body_ensure_rescue(node); end
-
- # source://unparser//lib/unparser/generation.rb#145
- def emit_body_inner(node); end
-
- # source://unparser//lib/unparser/generation.rb#158
- def emit_body_member(node); end
-
- # source://unparser//lib/unparser/generation.rb#180
- def emit_body_rescue(node); end
-
- # source://unparser//lib/unparser/generation.rb#77
- def emit_comments(comments); end
-
- # source://unparser//lib/unparser/generation.rb#69
- def emit_comments_before(source_part = T.unsafe(nil)); end
-
- # source://unparser//lib/unparser/generation.rb#166
- def emit_ensure(node); end
-
- # source://unparser//lib/unparser/generation.rb#60
- def emit_eof_comments; end
-
- # source://unparser//lib/unparser/generation.rb#54
- def emit_eol_comments; end
-
- # source://unparser//lib/unparser/generation.rb#27
- def emit_join(nodes, emit_node, emit_delimiter); end
-
- # source://unparser//lib/unparser/generation.rb#115
- def emit_optional_body(node, indent: T.unsafe(nil)); end
-
- # source://unparser//lib/unparser/generation.rb#188
- def emit_optional_body_ensure_rescue(node); end
-
- # source://unparser//lib/unparser/generation.rb#206
- def emit_rescue_postcontrol(node); end
-
- # source://unparser//lib/unparser/generation.rb#212
- def emit_rescue_regular(node); end
-
- # source://unparser//lib/unparser/generation.rb#220
- def emitter(node); end
-
- # source://unparser//lib/unparser/generation.rb#235
- def first_child; end
-
- # source://unparser//lib/unparser/generation.rb#106
- def indented; end
-
- # source://unparser//lib/unparser/generation.rb#93
- def k_end; end
-
- # source://unparser//lib/unparser/generation.rb#39
- def nl; end
-
- # source://unparser//lib/unparser/generation.rb#100
- def parentheses(open = T.unsafe(nil), close = T.unsafe(nil)); end
-
- # source://unparser//lib/unparser/generation.rb#224
- def visit(node); end
-
- # source://unparser//lib/unparser/generation.rb#228
- def visit_deep(node); end
-
- # source://unparser//lib/unparser/generation.rb#44
- def with_comments; end
-
- # source://unparser//lib/unparser/generation.rb#89
- def write(*strings); end
-
- # source://unparser//lib/unparser/generation.rb#216
- def writer_with(klass, node); end
-
- # source://unparser//lib/unparser/generation.rb#50
- def ws; end
-end
-
-# source://unparser//lib/unparser/generation.rb#6
-Unparser::Generation::EXTRA_NL = T.let(T.unsafe(nil), Array)
-
-# Error raised when unparser encounters an invalid AST
-#
-# source://unparser//lib/unparser.rb#39
-class Unparser::InvalidNodeError < ::RuntimeError
- # @return [InvalidNodeError] a new instance of InvalidNodeError
- #
- # source://unparser//lib/unparser.rb#42
- def initialize(message, node); end
-
- # Returns the value of attribute node.
- #
- # source://unparser//lib/unparser.rb#40
- def node; end
-end
-
-# source://unparser//lib/unparser/node_details.rb#4
-module Unparser::NodeDetails
- include ::Unparser::NodeHelpers
- include ::Unparser::Constants
-
- private
-
- # source://unparser//lib/unparser/node_details.rb#17
- def children; end
-
- class << self
- # @private
- #
- # source://unparser//lib/unparser/node_details.rb#7
- def included(descendant); end
- end
-end
-
-# source://unparser//lib/unparser/node_details/send.rb#5
-class Unparser::NodeDetails::Send
- include ::Unparser::NodeHelpers
- include ::Unparser::Constants
- include ::Unparser::NodeDetails
- include ::Unparser::Equalizer::Methods
- include ::Unparser::Adamantium
- include ::Unparser::Adamantium::InstanceMethods
- extend ::Unparser::Adamantium::ModuleMethods
- extend ::Unparser::Adamantium::ClassMethods
- extend ::Unparser::DSL
-
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def arguments(&block); end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/node_details/send.rb#36
- def arguments?; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def assignment?(&block); end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/node_details/send.rb#32
- def assignment_operator?; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/node_details/send.rb#21
- def binary_syntax_allowed?; end
-
- # source://unparser//lib/unparser/node_details/send.rb#40
- def non_assignment_selector; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def receiver; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def selector; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/node_details/send.rb#17
- def selector_binary_operator?; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/node_details/send.rb#28
- def selector_unary_operator?; end
-
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def string_selector(&block); end
-
- private
-
- # source://unparser//lib/unparser/dsl.rb#11
- def remaining_children; end
-end
-
-# source://unparser//lib/unparser/node_details/send.rb#8
-Unparser::NodeDetails::Send::ASSIGN_SUFFIX = T.let(T.unsafe(nil), String)
-
-# source://unparser//lib/unparser/node_details/send.rb#9
-Unparser::NodeDetails::Send::NON_ASSIGN_RANGE = T.let(T.unsafe(nil), Range)
-
-# source://unparser//lib/unparser/node_helpers.rb#4
-module Unparser::NodeHelpers
- # Helper for building nodes
- #
- # @api private
- # @param type [Symbol]
- # @param children [Array]
- # @return [Parser::AST::Node]
- #
- # source://unparser//lib/unparser/node_helpers.rb#26
- def n(type, children = T.unsafe(nil)); end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/node_helpers.rb#30
- def n?(type, node); end
-
- # Helper for building nodes
- #
- # @api private
- # @param type [Symbol]
- # @param children [Parser::AST::Node]
- # @return [Parser::AST::Node]
- #
- # source://unparser//lib/unparser/node_helpers.rb#14
- def s(type, *children); end
-
- # source://unparser//lib/unparser/node_helpers.rb#71
- def unwrap_single_begin(node); end
-
- private
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_arg?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_args?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_array?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_array_pattern?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_begin?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_block?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_cbase?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_const?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_dstr?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_empty_else?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_ensure?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_hash?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_hash_pattern?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_if?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_in_pattern?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_int?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_kwarg?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_kwargs?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_kwsplat?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_lambda?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_match_rest?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_pair?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_rescue?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_send?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_shadowarg?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_splat?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_str?(node); end
-
- # source://unparser//lib/unparser/node_helpers.rb#65
- def n_sym?(node); end
-end
-
-# source://unparser//lib/unparser/either.rb#4
-module Unparser::RequireBlock
- private
-
- # Raise error unless block is provided
- #
- # @raise [MissingBlockError] if no block is given
- # @return [self]
- #
- # source://unparser//lib/unparser/either.rb#14
- def require_block; end
-end
-
-# source://unparser//lib/unparser/emitter.rb#4
-class Unparser::UnknownNodeError < ::ArgumentError; end
-
-# Validation of unparser results
-#
-# source://unparser//lib/unparser/validation.rb#5
-class Unparser::Validation
- include ::Unparser::Anima::InstanceMethods
- include ::Unparser::Equalizer::Methods
- include ::Unparser::Adamantium
- include ::Unparser::Adamantium::InstanceMethods
- extend ::Unparser::Adamantium::ModuleMethods
- extend ::Unparser::Adamantium::ClassMethods
-
- # source://unparser//lib/unparser/anima.rb#146
- def generated_node; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def generated_source; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def identification; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def original_node; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def original_source; end
-
- # Return error report
- #
- # @api private
- # @return [String]
- #
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def report(&block); end
-
- # Test if source could be unparsed successfully
- #
- # @api private
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/validation.rb#20
- def success?; end
-
- private
-
- # source://unparser//lib/unparser/validation.rb#106
- def make_report(label, attribute_name); end
-
- # source://unparser//lib/unparser/validation.rb#118
- def node_diff_report; end
-
- # source://unparser//lib/unparser/validation.rb#110
- def report_exception(exception); end
-
- class << self
- # source://unparser//lib/unparser/anima.rb#140
- def anima; end
-
- # Create validator from node
- #
- # @param original_node [Parser::AST::Node]
- # @return [Validator]
- #
- # source://unparser//lib/unparser/validation.rb#79
- def from_node(original_node); end
-
- # Create validator from file
- #
- # @param path [Pathname]
- # @return [Validator]
- #
- # source://unparser//lib/unparser/validation.rb#100
- def from_path(path); end
-
- # Create validator from string
- #
- # @param original_source [String]
- # @return [Validator]
- #
- # source://unparser//lib/unparser/validation.rb#53
- def from_string(original_source); end
-
- private
-
- # source://unparser//lib/unparser/validation.rb#133
- def const_unit(_value); end
- end
-end
-
-# source://unparser//lib/unparser/validation.rb#136
-class Unparser::Validation::Literal < ::Unparser::Validation
- # source://unparser//lib/unparser/validation.rb#141
- def report; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/validation.rb#137
- def success?; end
-
- private
-
- # source://unparser//lib/unparser/validation.rb#156
- def source_diff_report; end
-end
-
-# source://unparser//lib/unparser/writer.rb#4
-module Unparser::Writer
- include ::Unparser::NodeHelpers
- include ::Unparser::Generation
- include ::Unparser::Anima::InstanceMethods
- include ::Unparser::Equalizer::Methods
-
- mixes_in_class_methods ::Unparser::DSL
-
- class << self
- # @private
- #
- # source://unparser//lib/unparser/writer.rb#7
- def included(descendant); end
- end
-end
-
-# source://unparser//lib/unparser/writer/binary.rb#5
-class Unparser::Writer::Binary
- include ::Unparser::Adamantium
- include ::Unparser::Adamantium::InstanceMethods
- include ::Unparser::NodeHelpers
- include ::Unparser::Generation
- include ::Unparser::Writer
- include ::Unparser::Anima::InstanceMethods
- include ::Unparser::Equalizer::Methods
- extend ::Unparser::Adamantium::ModuleMethods
- extend ::Unparser::Adamantium::ClassMethods
- extend ::Unparser::DSL
-
- # source://unparser//lib/unparser/anima.rb#146
- def buffer; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def comments; end
-
- # source://unparser//lib/unparser/writer/binary.rb#54
- def dispatch; end
-
- # source://unparser//lib/unparser/writer/binary.rb#46
- def emit_operator; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def local_variable_scope; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def node; end
-
- # source://unparser//lib/unparser/writer/binary.rb#50
- def symbol_name; end
-
- private
-
- # source://unparser//lib/unparser/writer/binary.rb#62
- def effective_symbol; end
-
- # source://unparser//lib/unparser/writer/binary.rb#74
- def emit_with(map); end
-
- # source://unparser//lib/unparser/writer/binary.rb#80
- def keyword_symbol; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def left; end
-
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def left_emitter(&block); end
-
- # source://unparser//lib/unparser/writer/binary.rb#84
- def operator_symbol; end
-
- # source://unparser//lib/unparser/dsl.rb#11
- def remaining_children; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def right; end
-
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def right_emitter(&block); end
-
- class << self
- # source://unparser//lib/unparser/anima.rb#140
- def anima; end
- end
-end
-
-# source://unparser//lib/unparser/writer/binary.rb#22
-Unparser::Writer::Binary::KEYWORD_SYMBOLS = T.let(T.unsafe(nil), Hash)
-
-# source://unparser//lib/unparser/writer/binary.rb#16
-Unparser::Writer::Binary::KEYWORD_TOKENS = T.let(T.unsafe(nil), Hash)
-
-# source://unparser//lib/unparser/writer/binary.rb#34
-Unparser::Writer::Binary::MAP = T.let(T.unsafe(nil), Hash)
-
-# source://unparser//lib/unparser/writer/binary.rb#42
-Unparser::Writer::Binary::NEED_KEYWORD = T.let(T.unsafe(nil), Array)
-
-# source://unparser//lib/unparser/writer/binary.rb#28
-Unparser::Writer::Binary::OPERATOR_SYMBOLS = T.let(T.unsafe(nil), Hash)
-
-# source://unparser//lib/unparser/writer/binary.rb#10
-Unparser::Writer::Binary::OPERATOR_TOKENS = T.let(T.unsafe(nil), Hash)
-
-# source://unparser//lib/unparser/writer/dynamic_string.rb#5
-class Unparser::Writer::DynamicString
- include ::Unparser::Adamantium
- include ::Unparser::Adamantium::InstanceMethods
- include ::Unparser::NodeHelpers
- include ::Unparser::Generation
- include ::Unparser::Writer
- include ::Unparser::Anima::InstanceMethods
- include ::Unparser::Equalizer::Methods
- extend ::Unparser::Adamantium::ModuleMethods
- extend ::Unparser::Adamantium::ClassMethods
- extend ::Unparser::DSL
-
- # source://unparser//lib/unparser/anima.rb#146
- def buffer; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def comments; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#32
- def dispatch; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#25
- def emit_heredoc_reminder; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def local_variable_scope; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def node; end
-
- private
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#159
- def breakpoint?(child, current); end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#63
- def classify(node); end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#71
- def classify_str(node); end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#193
- def emit_body(children); end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#149
- def emit_dstr; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#132
- def emit_dynamic(child); end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#145
- def emit_dynamic_component(node); end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#54
- def emit_heredoc_body; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#59
- def emit_heredoc_footer; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#50
- def emit_heredoc_header; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#116
- def emit_normal_heredoc_body; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#185
- def emit_segment(children, index); end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#128
- def escape_dynamic(string); end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#46
- def heredoc?; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#42
- def heredoc_header; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#95
- def heredoc_pattern?; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#105
- def heredoc_pattern_2?; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#99
- def heredoc_pattern_3?; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#111
- def nl_last_child?; end
-
- # source://unparser//lib/unparser/writer/dynamic_string.rb#169
- def segments; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#87
- def str_empty?(node); end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#83
- def str_nl?(node); end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/dynamic_string.rb#91
- def str_ws?(node); end
-
- class << self
- # source://unparser//lib/unparser/anima.rb#140
- def anima; end
- end
-end
-
-# source://unparser//lib/unparser/writer/dynamic_string.rb#21
-Unparser::Writer::DynamicString::FLAT_INTERPOLATION = T.let(T.unsafe(nil), Set)
-
-# source://unparser//lib/unparser/writer/dynamic_string.rb#8
-Unparser::Writer::DynamicString::PATTERNS_2 = T.let(T.unsafe(nil), Array)
-
-# source://unparser//lib/unparser/writer/dynamic_string.rb#14
-Unparser::Writer::DynamicString::PATTERNS_3 = T.let(T.unsafe(nil), Array)
-
-# Writer for rescue bodies
-#
-# source://unparser//lib/unparser/writer/resbody.rb#6
-class Unparser::Writer::Resbody
- include ::Unparser::NodeHelpers
- include ::Unparser::Generation
- include ::Unparser::Writer
- include ::Unparser::Anima::InstanceMethods
- include ::Unparser::Equalizer::Methods
- extend ::Unparser::DSL
-
- # source://unparser//lib/unparser/anima.rb#146
- def buffer; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def comments; end
-
- # source://unparser//lib/unparser/writer/resbody.rb#11
- def emit_postcontrol; end
-
- # source://unparser//lib/unparser/writer/resbody.rb#16
- def emit_regular; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def local_variable_scope; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def node; end
-
- private
-
- # source://unparser//lib/unparser/dsl.rb#18
- def assignment; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def body; end
-
- # source://unparser//lib/unparser/writer/resbody.rb#32
- def emit_assignment; end
-
- # source://unparser//lib/unparser/writer/resbody.rb#25
- def emit_exception; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def exception; end
-
- # source://unparser//lib/unparser/dsl.rb#11
- def remaining_children; end
-
- class << self
- # source://unparser//lib/unparser/anima.rb#140
- def anima; end
- end
-end
-
-# source://unparser//lib/unparser/writer/rescue.rb#5
-class Unparser::Writer::Rescue
- include ::Unparser::Adamantium
- include ::Unparser::Adamantium::InstanceMethods
- include ::Unparser::NodeHelpers
- include ::Unparser::Generation
- include ::Unparser::Writer
- include ::Unparser::Anima::InstanceMethods
- include ::Unparser::Equalizer::Methods
- extend ::Unparser::Adamantium::ModuleMethods
- extend ::Unparser::Adamantium::ClassMethods
- extend ::Unparser::DSL
-
- # source://unparser//lib/unparser/anima.rb#146
- def buffer; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def comments; end
-
- # source://unparser//lib/unparser/writer/rescue.rb#23
- def emit_heredoc_reminders; end
-
- # source://unparser//lib/unparser/writer/rescue.rb#27
- def emit_postcontrol; end
-
- # source://unparser//lib/unparser/writer/rescue.rb#12
- def emit_regular; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def local_variable_scope; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def node; end
-
- private
-
- # source://unparser//lib/unparser/dsl.rb#18
- def body; end
-
- # source://unparser//lib/unparser/writer/rescue.rb#34
- def else_node; end
-
- # source://unparser//lib/unparser/writer/rescue.rb#38
- def emit_rescue_body(node); end
-
- # source://unparser//lib/unparser/dsl.rb#11
- def remaining_children; end
-
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def rescue_bodies(&block); end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def rescue_body; end
-
- class << self
- # source://unparser//lib/unparser/anima.rb#140
- def anima; end
- end
-end
-
-# Writer for send
-#
-# source://unparser//lib/unparser/writer/send.rb#6
-class Unparser::Writer::Send
- include ::Unparser::NodeHelpers
- include ::Unparser::Generation
- include ::Unparser::Constants
- include ::Unparser::Adamantium
- include ::Unparser::Adamantium::InstanceMethods
- include ::Unparser::Writer
- include ::Unparser::Anima::InstanceMethods
- include ::Unparser::Equalizer::Methods
- extend ::Unparser::Adamantium::ModuleMethods
- extend ::Unparser::Adamantium::ClassMethods
- extend ::Unparser::DSL
-
- # source://unparser//lib/unparser/anima.rb#146
- def buffer; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def comments; end
-
- # source://unparser//lib/unparser/writer/send.rb#21
- def dispatch; end
-
- # source://unparser//lib/unparser/writer/send.rb#33
- def emit_heredoc_reminders; end
-
- # source://unparser//lib/unparser/writer/send.rb#25
- def emit_mlhs; end
-
- # source://unparser//lib/unparser/writer/send.rb#29
- def emit_selector; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def local_variable_scope; end
-
- # source://unparser//lib/unparser/anima.rb#146
- def node; end
-
- private
-
- # source://unparser//lib/unparser/writer/send.rb#73
- def arguments; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/send.rb#85
- def avoid_clash?; end
-
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def details(&block); end
-
- # source://unparser//lib/unparser/adamantium/method_builder.rb#87
- def effective_writer(&block); end
-
- # source://unparser//lib/unparser/writer/send.rb#45
- def effective_writer_class; end
-
- # source://unparser//lib/unparser/writer/send.rb#65
- def emit_arguments; end
-
- # source://unparser//lib/unparser/writer/send.rb#81
- def emit_heredoc_reminder(argument); end
-
- # source://unparser//lib/unparser/writer/send.rb#77
- def emit_normal_arguments; end
-
- # source://unparser//lib/unparser/writer/send.rb#61
- def emit_operator; end
-
- # source://unparser//lib/unparser/writer/send.rb#106
- def emit_send_regular(node); end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/send.rb#89
- def local_variable_clash?; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/send.rb#93
- def parses_as_constant?; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def receiver; end
-
- # source://unparser//lib/unparser/dsl.rb#11
- def remaining_children; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def selector; end
-
- # @return [Boolean]
- #
- # source://unparser//lib/unparser/writer/send.rb#57
- def write_as_attribute_assignment?; end
-
- class << self
- # source://unparser//lib/unparser/anima.rb#140
- def anima; end
- end
-end
-
-# Writer for send as attribute assignment
-#
-# source://unparser//lib/unparser/writer/send/attribute_assignment.rb#7
-class Unparser::Writer::Send::AttributeAssignment < ::Unparser::Writer::Send
- # source://unparser//lib/unparser/writer/send/attribute_assignment.rb#10
- def dispatch; end
-
- # source://unparser//lib/unparser/writer/send/attribute_assignment.rb#22
- def emit_send_mlhs; end
-
- private
-
- # source://unparser//lib/unparser/writer/send/attribute_assignment.rb#34
- def emit_attribute; end
-
- # source://unparser//lib/unparser/writer/send/attribute_assignment.rb#29
- def emit_receiver; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def first_argument; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def receiver; end
-
- # source://unparser//lib/unparser/dsl.rb#11
- def remaining_children; end
-
- # source://unparser//lib/unparser/dsl.rb#18
- def selector; end
-end
-
-# Writer for binary sends
-#
-# source://unparser//lib/unparser/writer/send/binary.rb#7
-class Unparser::Writer::Send::Binary < ::Unparser::Writer::Send
- # source://unparser//lib/unparser/writer/send/binary.rb#8
- def dispatch; end
-
- private
-
- # source://unparser//lib/unparser/writer/send/binary.rb#16
- def emit_operator; end
-
- # source://unparser//lib/unparser/writer/send/binary.rb#20
- def emit_right; end
-end
-
-# source://unparser//lib/unparser/writer/send.rb#9
-Unparser::Writer::Send::INDEX_ASSIGN = T.let(T.unsafe(nil), Symbol)
-
-# source://unparser//lib/unparser/writer/send.rb#10
-Unparser::Writer::Send::INDEX_REFERENCE = T.let(T.unsafe(nil), Symbol)
-
-# source://unparser//lib/unparser/writer/send.rb#12
-Unparser::Writer::Send::OPERATORS = T.let(T.unsafe(nil), Hash)
-
-# Writer for "regular" receiver.selector(arguments...) case
-#
-# source://unparser//lib/unparser/writer/send/regular.rb#7
-class Unparser::Writer::Send::Regular < ::Unparser::Writer::Send
- # source://unparser//lib/unparser/writer/send/regular.rb#8
- def dispatch; end
-
- # source://unparser//lib/unparser/writer/send/regular.rb#18
- def emit_arguments_without_heredoc_body; end
-
- # source://unparser//lib/unparser/writer/send/regular.rb#22
- def emit_receiver; end
-
- # source://unparser//lib/unparser/writer/send/regular.rb#14
- def emit_send_mlhs; end
-end
-
-# Writer for unary sends
-#
-# source://unparser//lib/unparser/writer/send/unary.rb#7
-class Unparser::Writer::Send::Unary < ::Unparser::Writer::Send
- # source://unparser//lib/unparser/writer/send/unary.rb#15
- def dispatch; end
-end
-
-# source://unparser//lib/unparser/writer/send/unary.rb#8
-Unparser::Writer::Send::Unary::MAP = T.let(T.unsafe(nil), Hash)
diff --git a/sorbet/rbi/gems/webrick@1.7.0.rbi b/sorbet/rbi/gems/webrick@1.7.0.rbi
deleted file mode 100644
index ec98e78f..00000000
--- a/sorbet/rbi/gems/webrick@1.7.0.rbi
+++ /dev/null
@@ -1,2555 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `webrick` gem.
-# Please instead update this file by running `bin/tapioca gem webrick`.
-
-# AccessLog provides logging to various files in various formats.
-#
-# Multiple logs may be written to at the same time:
-#
-# access_log = [
-# [$stderr, WEBrick::AccessLog::COMMON_LOG_FORMAT],
-# [$stderr, WEBrick::AccessLog::REFERER_LOG_FORMAT],
-# ]
-#
-# server = WEBrick::HTTPServer.new :AccessLog => access_log
-#
-# Custom log formats may be defined. WEBrick::AccessLog provides a subset
-# of the formatting from Apache's mod_log_config
-# http://httpd.apache.org/docs/mod/mod_log_config.html#formats. See
-# AccessLog::setup_params for a list of supported options
-#
-# source://webrick//lib/webrick/accesslog.rb#30
-module WEBrick::AccessLog
- private
-
- # Escapes control characters in +data+
- #
- # source://webrick//lib/webrick/accesslog.rb#151
- def escape(data); end
-
- # Formats +params+ according to +format_string+ which is described in
- # setup_params.
- #
- # source://webrick//lib/webrick/accesslog.rb#123
- def format(format_string, params); end
-
- # This format specification is a subset of mod_log_config of Apache:
- #
- # %a:: Remote IP address
- # %b:: Total response size
- # %e{variable}:: Given variable in ENV
- # %f:: Response filename
- # %h:: Remote host name
- # %{header}i:: Given request header
- # %l:: Remote logname, always "-"
- # %m:: Request method
- # %{attr}n:: Given request attribute from req.attributes
- # %{header}o:: Given response header
- # %p:: Server's request port
- # %{format}p:: The canonical port of the server serving the request or the
- # actual port or the client's actual port. Valid formats are
- # canonical, local or remote.
- # %q:: Request query string
- # %r:: First line of the request
- # %s:: Request status
- # %t:: Time the request was received
- # %T:: Time taken to process the request
- # %u:: Remote user from auth
- # %U:: Unparsed URI
- # %%:: Literal %
- #
- # source://webrick//lib/webrick/accesslog.rb#95
- def setup_params(config, req, res); end
-
- class << self
- # Escapes control characters in +data+
- #
- # source://webrick//lib/webrick/accesslog.rb#151
- def escape(data); end
-
- # Formats +params+ according to +format_string+ which is described in
- # setup_params.
- #
- # source://webrick//lib/webrick/accesslog.rb#123
- def format(format_string, params); end
-
- # This format specification is a subset of mod_log_config of Apache:
- #
- # %a:: Remote IP address
- # %b:: Total response size
- # %e{variable}:: Given variable in ENV
- # %f:: Response filename
- # %h:: Remote host name
- # %{header}i:: Given request header
- # %l:: Remote logname, always "-"
- # %m:: Request method
- # %{attr}n:: Given request attribute from req.attributes
- # %{header}o:: Given response header
- # %p:: Server's request port
- # %{format}p:: The canonical port of the server serving the request or the
- # actual port or the client's actual port. Valid formats are
- # canonical, local or remote.
- # %q:: Request query string
- # %r:: First line of the request
- # %s:: Request status
- # %t:: Time the request was received
- # %T:: Time taken to process the request
- # %u:: Remote user from auth
- # %U:: Unparsed URI
- # %%:: Literal %
- #
- # source://webrick//lib/webrick/accesslog.rb#95
- def setup_params(config, req, res); end
- end
-end
-
-# A generic logging class
-#
-# source://webrick//lib/webrick/log.rb#17
-class WEBrick::BasicLog
- # Initializes a new logger for +log_file+ that outputs messages at +level+
- # or higher. +log_file+ can be a filename, an IO-like object that
- # responds to #<< or nil which outputs to $stderr.
- #
- # If no level is given INFO is chosen by default
- #
- # @return [BasicLog] a new instance of BasicLog
- #
- # source://webrick//lib/webrick/log.rb#50
- def initialize(log_file = T.unsafe(nil), level = T.unsafe(nil)); end
-
- # Synonym for log(INFO, obj.to_s)
- #
- # source://webrick//lib/webrick/log.rb#84
- def <<(obj); end
-
- # Closes the logger (also closes the log device associated to the logger)
- #
- # source://webrick//lib/webrick/log.rb#66
- def close; end
-
- # Shortcut for logging a DEBUG message
- #
- # source://webrick//lib/webrick/log.rb#97
- def debug(msg); end
-
- # Will the logger output DEBUG messages?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/log.rb#108
- def debug?; end
-
- # Shortcut for logging an ERROR message
- #
- # source://webrick//lib/webrick/log.rb#91
- def error(msg); end
-
- # Will the logger output ERROR messages?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/log.rb#102
- def error?; end
-
- # Shortcut for logging a FATAL message
- #
- # source://webrick//lib/webrick/log.rb#89
- def fatal(msg); end
-
- # Will the logger output FATAL messages?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/log.rb#100
- def fatal?; end
-
- # Shortcut for logging an INFO message
- #
- # source://webrick//lib/webrick/log.rb#95
- def info(msg); end
-
- # Will the logger output INFO messages?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/log.rb#106
- def info?; end
-
- # log-level, messages above this level will be logged
- #
- # source://webrick//lib/webrick/log.rb#41
- def level; end
-
- # log-level, messages above this level will be logged
- #
- # source://webrick//lib/webrick/log.rb#41
- def level=(_arg0); end
-
- # Logs +data+ at +level+ if the given level is above the current log
- # level.
- #
- # source://webrick//lib/webrick/log.rb#75
- def log(level, data); end
-
- # Shortcut for logging a WARN message
- #
- # source://webrick//lib/webrick/log.rb#93
- def warn(msg); end
-
- # Will the logger output WARN messages?
- #
- # @return [Boolean]
- #
- # source://webrick//lib/webrick/log.rb#104
- def warn?; end
-
- private
-
- # Formats +arg+ for the logger
- #
- # * If +arg+ is an Exception, it will format the error message and
- # the back trace.
- # * If +arg+ responds to #to_str, it will return it.
- # * Otherwise it will return +arg+.inspect.
- #
- # source://webrick//lib/webrick/log.rb#119
- def format(arg); end
-end
-
-# --
-# Updates WEBrick::GenericServer with SSL functionality
-#
-# source://webrick//lib/webrick/server.rb#56
-class WEBrick::GenericServer
- # Creates a new generic server from +config+. The default configuration
- # comes from +default+.
- #
- # @return [GenericServer] a new instance of GenericServer
- #
- # source://webrick//lib/webrick/server.rb#88
- def initialize(config = T.unsafe(nil), default = T.unsafe(nil)); end
-
- # Retrieves +key+ from the configuration
- #
- # source://webrick//lib/webrick/server.rb#121
- def [](key); end
-
- # The server configuration
- #
- # source://webrick//lib/webrick/server.rb#66
- def config; end
-
- # Updates +listen+ to enable SSL when the SSL configuration is active.
- #
- # source://webrick//lib/webrick/server.rb#129
- def listen(address, port); end
-
- # Sockets listening for connections.
- #
- # source://webrick//lib/webrick/server.rb#82
- def listeners; end
-
- # The server logger. This is independent from the HTTP access log.
- #
- # source://webrick//lib/webrick/server.rb#71
- def logger; end
-
- # You must subclass GenericServer and implement \#run which accepts a TCP
- # client socket
- #
- # source://webrick//lib/webrick/server.rb#244
- def run(sock); end
-
- # Shuts down the server and all listening sockets. New listeners must be
- # provided to restart the server.
- #
- # source://webrick//lib/webrick/server.rb#234
- def shutdown; end
-
- # Starts the server and runs the +block+ for each connection. This method
- # does not return until the server is stopped from a signal handler or
- # another thread using #stop or #shutdown.
- #
- # If the block raises a subclass of StandardError the exception is logged
- # and ignored. If an IOError or Errno::EBADF exception is raised the
- # exception is ignored. If an Exception subclass is raised the exception
- # is logged and re-raised which stops the server.
- #
- # To completely shut down a server call #shutdown from ensure:
- #
- # server = WEBrick::GenericServer.new
- # # or WEBrick::HTTPServer.new
- #
- # begin
- # server.start
- # ensure
- # server.shutdown
- # end
- #
- # @raise [ServerError]
- #
- # source://webrick//lib/webrick/server.rb#154
- def start(&block); end
-
- # The server status. One of :Stop, :Running or :Shutdown
- #
- # source://webrick//lib/webrick/server.rb#61
- def status; end
-
- # Stops the server from accepting new connections.
- #
- # source://webrick//lib/webrick/server.rb#222
- def stop; end
-
- # Tokens control the number of outstanding clients. The
- # :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 cb323f93..fb10cc0d 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.10741/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.10875/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 ac8624f8..39510918 100644
--- a/sorbet/rbi/gems/yard@0.9.28.rbi
+++ b/sorbet/rbi/gems/yard@0.9.34.rbi
@@ -503,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
#
@@ -590,28 +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
-
# Gem::YARDoc provides methods to generate YARDoc and yri data for installed gems
# upon gem installation.
#
@@ -830,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
@@ -1151,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
#
@@ -1211,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
#
@@ -1351,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
#
@@ -1654,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
#
@@ -1784,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
#
@@ -2121,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
#
@@ -2157,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
@@ -2285,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
#
@@ -2542,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
@@ -2651,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
@@ -2671,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)
@@ -2683,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)
@@ -2725,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
@@ -2742,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
@@ -2755,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,
@@ -2778,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
@@ -2834,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
@@ -2850,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
@@ -2868,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.
@@ -2899,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
@@ -2909,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
@@ -2959,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+
#
@@ -3040,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
#
@@ -3056,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
#
@@ -3086,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
#
@@ -3453,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+
@@ -3626,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.
#
@@ -3791,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+.
#
@@ -4763,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.
@@ -5937,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
#
@@ -6525,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
@@ -6843,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
@@ -7068,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
#
@@ -7097,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
@@ -7138,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
@@ -7196,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.
#
@@ -7298,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 "# ".
@@ -7481,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
#
@@ -7657,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
@@ -7767,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
#
@@ -10126,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
@@ -10636,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
@@ -10833,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
@@ -11377,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+.
#
@@ -11938,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.
@@ -11959,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.
@@ -12315,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
#
@@ -12403,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+
#
@@ -12422,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
#
@@ -12679,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}.
#
@@ -12840,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]
@@ -13286,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
@@ -13333,29 +13326,29 @@ class YARD::Server::Commands::SearchCommand < ::YARD::Server::Commands::LibraryC
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/search_command.rb#27
+ # source://yard//lib/yard/server/commands/search_command.rb#26
def visible_results; end
private
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/search_command.rb#59
+ # source://yard//lib/yard/server/commands/search_command.rb#58
def search_for_object; end
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/search_command.rb#48
+ # source://yard//lib/yard/server/commands/search_command.rb#47
def serve_normal; end
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/search_command.rb#38
+ # source://yard//lib/yard/server/commands/search_command.rb#37
def serve_xhr; end
# @since 0.6.0
#
- # source://yard//lib/yard/server/commands/search_command.rb#33
+ # source://yard//lib/yard/server/commands/search_command.rb#32
def url_for(object); end
end
@@ -13365,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
@@ -13389,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.
#
@@ -13400,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.
@@ -13409,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
@@ -13562,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
#
@@ -14098,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
@@ -14178,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
@@ -15655,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
@@ -15734,25 +16147,29 @@ 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] a list of types to parse and summarize
# @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/types_explainer.rb#9
def explain(*types); 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.
#
# @param types [Array] a list of types to parse and summarize
- # @raise [SyntaxError] if the types are not parseable
+ # @raise [SyntaxError] if the types are not 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/types_explainer.rb#17
def explain!(*types); end
+
+ private
+
+ def new(*_arg0); end
end
end
@@ -15908,7 +16325,7 @@ end
# Namespace for templating system
#
-# source://yard//lib/yard/autoload.rb#270
+# source://yard//lib/yard/autoload.rb#271
module YARD::Templates; end
# This module manages all creation, handling and rendering of {Template}
@@ -16061,7 +16478,7 @@ end
# Namespace for template helpers
#
-# source://yard//lib/yard/autoload.rb#271
+# source://yard//lib/yard/autoload.rb#272
module YARD::Templates::Helpers; end
# The base helper module included in all templates.
@@ -16696,7 +17113,7 @@ end
# Namespace for markup providers
#
-# source://yard//lib/yard/autoload.rb#272
+# source://yard//lib/yard/autoload.rb#273
module YARD::Templates::Helpers::Markup; end
# source://yard//lib/yard/templates/helpers/markup/rdoc_markdown.rb#13
@@ -17448,7 +17865,7 @@ end
#
# @see CLI::YardocOptions
#
-# source://yard//lib/yard/templates/template_options.rb#11
+# source://yard//lib/yard/templates/template_options.rb#10
class YARD::Templates::TemplateOptions < ::YARD::Options
# @return [OpenStruct] an open struct containing any global state across all
# generated objects in a template.