packwerk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +7 -0
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
  3. data/.github/probots.yml +2 -0
  4. data/.github/pull_request_template.md +27 -0
  5. data/.github/workflows/ci.yml +50 -0
  6. data/.gitignore +12 -0
  7. data/.rubocop.yml +46 -0
  8. data/.ruby-version +1 -0
  9. data/CODEOWNERS +1 -0
  10. data/CODE_OF_CONDUCT.md +76 -0
  11. data/CONTRIBUTING.md +17 -0
  12. data/Gemfile +22 -0
  13. data/Gemfile.lock +236 -0
  14. data/LICENSE.md +7 -0
  15. data/README.md +73 -0
  16. data/Rakefile +13 -0
  17. data/TROUBLESHOOT.md +67 -0
  18. data/USAGE.md +250 -0
  19. data/bin/console +15 -0
  20. data/bin/setup +8 -0
  21. data/dev.yml +32 -0
  22. data/docs/cohesion.png +0 -0
  23. data/exe/packwerk +6 -0
  24. data/lib/packwerk.rb +44 -0
  25. data/lib/packwerk/application_validator.rb +343 -0
  26. data/lib/packwerk/association_inspector.rb +44 -0
  27. data/lib/packwerk/checking_deprecated_references.rb +40 -0
  28. data/lib/packwerk/cli.rb +238 -0
  29. data/lib/packwerk/configuration.rb +82 -0
  30. data/lib/packwerk/const_node_inspector.rb +44 -0
  31. data/lib/packwerk/constant_discovery.rb +60 -0
  32. data/lib/packwerk/constant_name_inspector.rb +22 -0
  33. data/lib/packwerk/dependency_checker.rb +28 -0
  34. data/lib/packwerk/deprecated_references.rb +92 -0
  35. data/lib/packwerk/file_processor.rb +43 -0
  36. data/lib/packwerk/files_for_processing.rb +67 -0
  37. data/lib/packwerk/formatters/progress_formatter.rb +46 -0
  38. data/lib/packwerk/generators/application_validation.rb +62 -0
  39. data/lib/packwerk/generators/configuration_file.rb +69 -0
  40. data/lib/packwerk/generators/inflections_file.rb +43 -0
  41. data/lib/packwerk/generators/root_package.rb +37 -0
  42. data/lib/packwerk/generators/templates/inflections.yml +6 -0
  43. data/lib/packwerk/generators/templates/package.yml +17 -0
  44. data/lib/packwerk/generators/templates/packwerk +23 -0
  45. data/lib/packwerk/generators/templates/packwerk.yml.erb +23 -0
  46. data/lib/packwerk/generators/templates/packwerk_validator_test.rb +11 -0
  47. data/lib/packwerk/graph.rb +74 -0
  48. data/lib/packwerk/inflections/custom.rb +33 -0
  49. data/lib/packwerk/inflections/default.rb +73 -0
  50. data/lib/packwerk/inflector.rb +41 -0
  51. data/lib/packwerk/node.rb +259 -0
  52. data/lib/packwerk/node_processor.rb +49 -0
  53. data/lib/packwerk/node_visitor.rb +22 -0
  54. data/lib/packwerk/offense.rb +44 -0
  55. data/lib/packwerk/output_styles.rb +41 -0
  56. data/lib/packwerk/package.rb +56 -0
  57. data/lib/packwerk/package_set.rb +59 -0
  58. data/lib/packwerk/parsed_constant_definitions.rb +62 -0
  59. data/lib/packwerk/parsers.rb +23 -0
  60. data/lib/packwerk/parsers/erb.rb +66 -0
  61. data/lib/packwerk/parsers/factory.rb +34 -0
  62. data/lib/packwerk/parsers/ruby.rb +42 -0
  63. data/lib/packwerk/privacy_checker.rb +45 -0
  64. data/lib/packwerk/reference.rb +6 -0
  65. data/lib/packwerk/reference_extractor.rb +81 -0
  66. data/lib/packwerk/reference_lister.rb +23 -0
  67. data/lib/packwerk/run_context.rb +103 -0
  68. data/lib/packwerk/sanity_checker.rb +10 -0
  69. data/lib/packwerk/spring_command.rb +28 -0
  70. data/lib/packwerk/updating_deprecated_references.rb +51 -0
  71. data/lib/packwerk/version.rb +6 -0
  72. data/lib/packwerk/violation_type.rb +13 -0
  73. data/library.yml +6 -0
  74. data/packwerk.gemspec +58 -0
  75. data/service.yml +6 -0
  76. data/shipit.rubygems.yml +1 -0
  77. data/sorbet/config +2 -0
  78. data/sorbet/rbi/gems/actioncable@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +840 -0
  79. data/sorbet/rbi/gems/actionmailbox@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +571 -0
  80. data/sorbet/rbi/gems/actionmailer@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +568 -0
  81. data/sorbet/rbi/gems/actionpack@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +5216 -0
  82. data/sorbet/rbi/gems/actiontext@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +663 -0
  83. data/sorbet/rbi/gems/actionview@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +2504 -0
  84. data/sorbet/rbi/gems/activejob@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +635 -0
  85. data/sorbet/rbi/gems/activemodel@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +1201 -0
  86. data/sorbet/rbi/gems/activerecord@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +8011 -0
  87. data/sorbet/rbi/gems/activestorage@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +904 -0
  88. data/sorbet/rbi/gems/activesupport@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +3888 -0
  89. data/sorbet/rbi/gems/ast@2.4.1.rbi +54 -0
  90. data/sorbet/rbi/gems/better_html@1.0.15.rbi +317 -0
  91. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  92. data/sorbet/rbi/gems/byebug@11.1.3.rbi +8 -0
  93. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  94. data/sorbet/rbi/gems/colorize@0.8.1.rbi +40 -0
  95. data/sorbet/rbi/gems/commander@4.5.2.rbi +8 -0
  96. data/sorbet/rbi/gems/concurrent-ruby@1.1.6.rbi +1966 -0
  97. data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +26 -0
  98. data/sorbet/rbi/gems/crass@1.0.6.rbi +138 -0
  99. data/sorbet/rbi/gems/erubi@1.9.0.rbi +39 -0
  100. data/sorbet/rbi/gems/globalid@0.4.2.rbi +178 -0
  101. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  102. data/sorbet/rbi/gems/html_tokenizer@0.0.7.rbi +46 -0
  103. data/sorbet/rbi/gems/i18n@1.8.2.rbi +633 -0
  104. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +8 -0
  105. data/sorbet/rbi/gems/loofah@2.5.0.rbi +272 -0
  106. data/sorbet/rbi/gems/m@1.5.1.rbi +108 -0
  107. data/sorbet/rbi/gems/mail@2.7.1.rbi +2490 -0
  108. data/sorbet/rbi/gems/marcel@0.3.3.rbi +30 -0
  109. data/sorbet/rbi/gems/method_source@1.0.0.rbi +76 -0
  110. data/sorbet/rbi/gems/mimemagic@0.3.5.rbi +47 -0
  111. data/sorbet/rbi/gems/mini_mime@1.0.2.rbi +71 -0
  112. data/sorbet/rbi/gems/mini_portile2@2.4.0.rbi +8 -0
  113. data/sorbet/rbi/gems/minitest@5.14.0.rbi +542 -0
  114. data/sorbet/rbi/gems/mocha@1.11.2.rbi +964 -0
  115. data/sorbet/rbi/gems/nio4r@2.5.2.rbi +89 -0
  116. data/sorbet/rbi/gems/nokogiri@1.10.9.rbi +1608 -0
  117. data/sorbet/rbi/gems/parallel@1.19.1.rbi +8 -0
  118. data/sorbet/rbi/gems/parlour@4.0.1.rbi +561 -0
  119. data/sorbet/rbi/gems/parser@2.7.1.4.rbi +1632 -0
  120. data/sorbet/rbi/gems/pry@0.13.1.rbi +8 -0
  121. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +335 -0
  122. data/sorbet/rbi/gems/rack@2.2.2.rbi +1730 -0
  123. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +123 -0
  124. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +213 -0
  125. data/sorbet/rbi/gems/rails@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +8 -0
  126. data/sorbet/rbi/gems/railties@6.1.0.alpha-d80c18a391e33552ae2d943e68af56946f883f65.rbi +869 -0
  127. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +155 -0
  128. data/sorbet/rbi/gems/rake@13.0.1.rbi +841 -0
  129. data/sorbet/rbi/gems/rexml@3.2.4.rbi +8 -0
  130. data/sorbet/rbi/gems/rubocop-performance@1.5.2.rbi +8 -0
  131. data/sorbet/rbi/gems/rubocop-shopify@1.0.2.rbi +8 -0
  132. data/sorbet/rbi/gems/rubocop-sorbet@0.3.7.rbi +8 -0
  133. data/sorbet/rbi/gems/rubocop@0.82.0.rbi +8 -0
  134. data/sorbet/rbi/gems/ruby-progressbar@1.10.1.rbi +8 -0
  135. data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +168 -0
  136. data/sorbet/rbi/gems/spoom@1.0.4.rbi +418 -0
  137. data/sorbet/rbi/gems/spring@2.1.0.rbi +160 -0
  138. data/sorbet/rbi/gems/sprockets-rails@3.2.1.rbi +431 -0
  139. data/sorbet/rbi/gems/sprockets@4.0.0.rbi +1132 -0
  140. data/sorbet/rbi/gems/tapioca@0.4.5.rbi +518 -0
  141. data/sorbet/rbi/gems/thor@1.0.1.rbi +892 -0
  142. data/sorbet/rbi/gems/tzinfo@2.0.2.rbi +547 -0
  143. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +8 -0
  144. data/sorbet/rbi/gems/websocket-driver@0.7.1.rbi +438 -0
  145. data/sorbet/rbi/gems/websocket-extensions@0.1.4.rbi +71 -0
  146. data/sorbet/rbi/gems/zeitwerk@2.3.0.rbi +8 -0
  147. data/sorbet/tapioca/require.rb +25 -0
  148. data/static/packwerk-check-demo.png +0 -0
  149. data/static/packwerk_check.gif +0 -0
  150. data/static/packwerk_check_violation.gif +0 -0
  151. data/static/packwerk_update.gif +0 -0
  152. data/static/packwerk_validate.gif +0 -0
  153. metadata +341 -0
@@ -0,0 +1,89 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `nio4r` gem.
3
+ # Please instead update this file by running `dev typecheck update`.
4
+
5
+ # typed: true
6
+
7
+ module NIO
8
+ class << self
9
+ def engine; end
10
+ end
11
+ end
12
+
13
+ class NIO::ByteBuffer
14
+ include(::Enumerable)
15
+
16
+ def initialize(_); end
17
+
18
+ def <<(_); end
19
+ def [](_); end
20
+ def capacity; end
21
+ def clear; end
22
+ def compact; end
23
+ def each; end
24
+ def flip; end
25
+ def full?; end
26
+ def get(*_); end
27
+ def inspect; end
28
+ def limit; end
29
+ def limit=(_); end
30
+ def mark; end
31
+ def position; end
32
+ def position=(_); end
33
+ def read_from(_); end
34
+ def remaining; end
35
+ def reset; end
36
+ def rewind; end
37
+ def size; end
38
+ def write_to(_); end
39
+ end
40
+
41
+ class NIO::ByteBuffer::MarkUnsetError < ::IOError
42
+ end
43
+
44
+ class NIO::ByteBuffer::OverflowError < ::IOError
45
+ end
46
+
47
+ class NIO::ByteBuffer::UnderflowError < ::IOError
48
+ end
49
+
50
+ NIO::ENGINE = T.let(T.unsafe(nil), String)
51
+
52
+ class NIO::Monitor
53
+ def initialize(_, _, _); end
54
+
55
+ def add_interest(_); end
56
+ def close(*_); end
57
+ def closed?; end
58
+ def interests; end
59
+ def interests=(_); end
60
+ def io; end
61
+ def readable?; end
62
+ def readiness; end
63
+ def remove_interest(_); end
64
+ def selector; end
65
+ def value; end
66
+ def value=(_); end
67
+ def writable?; end
68
+ def writeable?; end
69
+ end
70
+
71
+ class NIO::Selector
72
+ def initialize(*_); end
73
+
74
+ def backend; end
75
+ def close; end
76
+ def closed?; end
77
+ def deregister(_); end
78
+ def empty?; end
79
+ def register(_, _); end
80
+ def registered?(_); end
81
+ def select(*_); end
82
+ def wakeup; end
83
+
84
+ class << self
85
+ def backends; end
86
+ end
87
+ end
88
+
89
+ NIO::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,1608 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `nokogiri` gem.
3
+ # Please instead update this file by running `dev typecheck update`.
4
+
5
+ # typed: true
6
+
7
+ module Nokogiri
8
+ class << self
9
+ def HTML(thing, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
10
+ def Slop(*args, &block); end
11
+ def XML(thing, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
12
+ def XSLT(stylesheet, modules = T.unsafe(nil)); end
13
+ def install_default_aliases; end
14
+ def jruby?; end
15
+ def make(input = T.unsafe(nil), opts = T.unsafe(nil), &blk); end
16
+ def parse(string, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil)); end
17
+ def uses_libxml?; end
18
+ end
19
+ end
20
+
21
+ module Nokogiri::CSS
22
+ class << self
23
+ def parse(selector); end
24
+ def xpath_for(selector, options = T.unsafe(nil)); end
25
+ end
26
+ end
27
+
28
+ class Nokogiri::CSS::Node
29
+ def initialize(type, value); end
30
+
31
+ def accept(visitor); end
32
+ def find_by_type(types); end
33
+ def to_a; end
34
+ def to_type; end
35
+ def to_xpath(prefix = T.unsafe(nil), visitor = T.unsafe(nil)); end
36
+ def type; end
37
+ def type=(_); end
38
+ def value; end
39
+ def value=(_); end
40
+ end
41
+
42
+ Nokogiri::CSS::Node::ALLOW_COMBINATOR_ON_SELF = T.let(T.unsafe(nil), Array)
43
+
44
+ class Nokogiri::CSS::Parser < ::Racc::Parser
45
+ def initialize(namespaces = T.unsafe(nil)); end
46
+
47
+ def _reduce_1(val, _values, result); end
48
+ def _reduce_11(val, _values, result); end
49
+ def _reduce_12(val, _values, result); end
50
+ def _reduce_13(val, _values, result); end
51
+ def _reduce_14(val, _values, result); end
52
+ def _reduce_15(val, _values, result); end
53
+ def _reduce_16(val, _values, result); end
54
+ def _reduce_18(val, _values, result); end
55
+ def _reduce_2(val, _values, result); end
56
+ def _reduce_20(val, _values, result); end
57
+ def _reduce_21(val, _values, result); end
58
+ def _reduce_22(val, _values, result); end
59
+ def _reduce_23(val, _values, result); end
60
+ def _reduce_25(val, _values, result); end
61
+ def _reduce_26(val, _values, result); end
62
+ def _reduce_27(val, _values, result); end
63
+ def _reduce_28(val, _values, result); end
64
+ def _reduce_29(val, _values, result); end
65
+ def _reduce_3(val, _values, result); end
66
+ def _reduce_30(val, _values, result); end
67
+ def _reduce_31(val, _values, result); end
68
+ def _reduce_32(val, _values, result); end
69
+ def _reduce_33(val, _values, result); end
70
+ def _reduce_34(val, _values, result); end
71
+ def _reduce_35(val, _values, result); end
72
+ def _reduce_36(val, _values, result); end
73
+ def _reduce_37(val, _values, result); end
74
+ def _reduce_4(val, _values, result); end
75
+ def _reduce_40(val, _values, result); end
76
+ def _reduce_41(val, _values, result); end
77
+ def _reduce_42(val, _values, result); end
78
+ def _reduce_43(val, _values, result); end
79
+ def _reduce_44(val, _values, result); end
80
+ def _reduce_45(val, _values, result); end
81
+ def _reduce_48(val, _values, result); end
82
+ def _reduce_49(val, _values, result); end
83
+ def _reduce_5(val, _values, result); end
84
+ def _reduce_50(val, _values, result); end
85
+ def _reduce_51(val, _values, result); end
86
+ def _reduce_52(val, _values, result); end
87
+ def _reduce_58(val, _values, result); end
88
+ def _reduce_59(val, _values, result); end
89
+ def _reduce_6(val, _values, result); end
90
+ def _reduce_60(val, _values, result); end
91
+ def _reduce_61(val, _values, result); end
92
+ def _reduce_63(val, _values, result); end
93
+ def _reduce_64(val, _values, result); end
94
+ def _reduce_65(val, _values, result); end
95
+ def _reduce_66(val, _values, result); end
96
+ def _reduce_67(val, _values, result); end
97
+ def _reduce_68(val, _values, result); end
98
+ def _reduce_69(val, _values, result); end
99
+ def _reduce_7(val, _values, result); end
100
+ def _reduce_70(val, _values, result); end
101
+ def _reduce_8(val, _values, result); end
102
+ def _reduce_9(val, _values, result); end
103
+ def _reduce_none(val, _values, result); end
104
+ def next_token; end
105
+ def on_error(error_token_id, error_value, value_stack); end
106
+ def parse(string); end
107
+ def unescape_css_identifier(identifier); end
108
+ def unescape_css_string(str); end
109
+ def xpath_for(string, options = T.unsafe(nil)); end
110
+
111
+ class << self
112
+ def [](string); end
113
+ def []=(string, value); end
114
+ def cache_on; end
115
+ def cache_on=(_); end
116
+ def cache_on?; end
117
+ def clear_cache; end
118
+ def parse(selector); end
119
+ def set_cache(_); end
120
+ def without_cache(&block); end
121
+ end
122
+ end
123
+
124
+ Nokogiri::CSS::Parser::Racc_arg = T.let(T.unsafe(nil), Array)
125
+
126
+ Nokogiri::CSS::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
127
+
128
+ class Nokogiri::CSS::SyntaxError < ::Nokogiri::SyntaxError
129
+ end
130
+
131
+ class Nokogiri::CSS::Tokenizer
132
+ def _next_token; end
133
+ def action; end
134
+ def filename; end
135
+ def lineno; end
136
+ def load_file(filename); end
137
+ def next_token; end
138
+ def scan(str); end
139
+ def scan_file(filename); end
140
+ def scan_setup(str); end
141
+ def scan_str(str); end
142
+ def state; end
143
+ def state=(_); end
144
+ end
145
+
146
+ class Nokogiri::CSS::Tokenizer::ScanError < ::StandardError
147
+ end
148
+
149
+ class Nokogiri::CSS::XPathVisitor
150
+ def accept(node); end
151
+ def visit_attribute_condition(node); end
152
+ def visit_child_selector(node); end
153
+ def visit_class_condition(node); end
154
+ def visit_combinator(node); end
155
+ def visit_conditional_selector(node); end
156
+ def visit_descendant_selector(node); end
157
+ def visit_direct_adjacent_selector(node); end
158
+ def visit_element_name(node); end
159
+ def visit_following_selector(node); end
160
+ def visit_function(node); end
161
+ def visit_id(node); end
162
+ def visit_not(node); end
163
+ def visit_pseudo_class(node); end
164
+
165
+ private
166
+
167
+ def is_of_type_pseudo_class?(node); end
168
+ def nth(node, options = T.unsafe(nil)); end
169
+ def read_a_and_positive_b(values); end
170
+ end
171
+
172
+ module Nokogiri::Decorators
173
+ end
174
+
175
+ module Nokogiri::Decorators::Slop
176
+ def method_missing(name, *args, &block); end
177
+
178
+ private
179
+
180
+ def respond_to_missing?(name, include_private = T.unsafe(nil)); end
181
+ end
182
+
183
+ Nokogiri::Decorators::Slop::XPATH_PREFIX = T.let(T.unsafe(nil), String)
184
+
185
+ class Nokogiri::EncodingHandler
186
+ def name; end
187
+
188
+ class << self
189
+ def [](_); end
190
+ def alias(_, _); end
191
+ def clear_aliases!; end
192
+ def delete(_); end
193
+ end
194
+ end
195
+
196
+ module Nokogiri::HTML
197
+ class << self
198
+ def fragment(string, encoding = T.unsafe(nil)); end
199
+ def parse(thing, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
200
+ end
201
+ end
202
+
203
+ class Nokogiri::HTML::Builder < ::Nokogiri::XML::Builder
204
+ def to_html; end
205
+ end
206
+
207
+ class Nokogiri::HTML::Document < ::Nokogiri::XML::Document
208
+ def fragment(tags = T.unsafe(nil)); end
209
+ def meta_encoding; end
210
+ def meta_encoding=(encoding); end
211
+ def serialize(options = T.unsafe(nil)); end
212
+ def title; end
213
+ def title=(text); end
214
+ def type; end
215
+
216
+ private
217
+
218
+ def meta_content_type; end
219
+ def set_metadata_element(element); end
220
+
221
+ class << self
222
+ def new(*_); end
223
+ def parse(string_or_io, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil)); end
224
+ def read_io(_, _, _, _); end
225
+ def read_memory(_, _, _, _); end
226
+ end
227
+ end
228
+
229
+ class Nokogiri::HTML::Document::EncodingFound < ::StandardError
230
+ def initialize(encoding); end
231
+
232
+ def found_encoding; end
233
+ end
234
+
235
+ class Nokogiri::HTML::Document::EncodingReader
236
+ def initialize(io); end
237
+
238
+ def encoding_found; end
239
+ def read(len); end
240
+
241
+ class << self
242
+ def detect_encoding(chunk); end
243
+ def detect_encoding_for_jruby_without_fix(chunk); end
244
+ def is_jruby_without_fix?; end
245
+ end
246
+ end
247
+
248
+ class Nokogiri::HTML::Document::EncodingReader::JumpSAXHandler < ::Nokogiri::HTML::Document::EncodingReader::SAXHandler
249
+ def initialize(jumptag); end
250
+
251
+ def start_element(name, attrs = T.unsafe(nil)); end
252
+ end
253
+
254
+ class Nokogiri::HTML::Document::EncodingReader::SAXHandler < ::Nokogiri::XML::SAX::Document
255
+ def initialize; end
256
+
257
+ def encoding; end
258
+ def start_element(name, attrs = T.unsafe(nil)); end
259
+ end
260
+
261
+ class Nokogiri::HTML::DocumentFragment < ::Nokogiri::XML::DocumentFragment
262
+ def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil)); end
263
+
264
+ class << self
265
+ def parse(tags, encoding = T.unsafe(nil)); end
266
+ end
267
+ end
268
+
269
+ class Nokogiri::HTML::ElementDescription
270
+ def block?; end
271
+ def default_sub_element; end
272
+ def deprecated?; end
273
+ def deprecated_attributes; end
274
+ def description; end
275
+ def empty?; end
276
+ def implied_end_tag?; end
277
+ def implied_start_tag?; end
278
+ def inline?; end
279
+ def inspect; end
280
+ def name; end
281
+ def optional_attributes; end
282
+ def required_attributes; end
283
+ def save_end_tag?; end
284
+ def sub_elements; end
285
+ def to_s; end
286
+
287
+ private
288
+
289
+ def default_desc; end
290
+
291
+ class << self
292
+ def [](_); end
293
+ end
294
+ end
295
+
296
+ Nokogiri::HTML::ElementDescription::ACTION_ATTR = T.let(T.unsafe(nil), Array)
297
+
298
+ Nokogiri::HTML::ElementDescription::ALIGN_ATTR = T.let(T.unsafe(nil), Array)
299
+
300
+ Nokogiri::HTML::ElementDescription::ALT_ATTR = T.let(T.unsafe(nil), Array)
301
+
302
+ Nokogiri::HTML::ElementDescription::APPLET_ATTRS = T.let(T.unsafe(nil), Array)
303
+
304
+ Nokogiri::HTML::ElementDescription::AREA_ATTRS = T.let(T.unsafe(nil), Array)
305
+
306
+ Nokogiri::HTML::ElementDescription::ATTRS = T.let(T.unsafe(nil), Array)
307
+
308
+ Nokogiri::HTML::ElementDescription::A_ATTRS = T.let(T.unsafe(nil), Array)
309
+
310
+ Nokogiri::HTML::ElementDescription::BASEFONT_ATTRS = T.let(T.unsafe(nil), Array)
311
+
312
+ Nokogiri::HTML::ElementDescription::BGCOLOR_ATTR = T.let(T.unsafe(nil), Array)
313
+
314
+ Nokogiri::HTML::ElementDescription::BLOCK = T.let(T.unsafe(nil), Array)
315
+
316
+ Nokogiri::HTML::ElementDescription::BLOCKLI_ELT = T.let(T.unsafe(nil), Array)
317
+
318
+ Nokogiri::HTML::ElementDescription::BODY_ATTRS = T.let(T.unsafe(nil), Array)
319
+
320
+ Nokogiri::HTML::ElementDescription::BODY_CONTENTS = T.let(T.unsafe(nil), Array)
321
+
322
+ Nokogiri::HTML::ElementDescription::BODY_DEPR = T.let(T.unsafe(nil), Array)
323
+
324
+ Nokogiri::HTML::ElementDescription::BUTTON_ATTRS = T.let(T.unsafe(nil), Array)
325
+
326
+ Nokogiri::HTML::ElementDescription::CELLHALIGN = T.let(T.unsafe(nil), Array)
327
+
328
+ Nokogiri::HTML::ElementDescription::CELLVALIGN = T.let(T.unsafe(nil), Array)
329
+
330
+ Nokogiri::HTML::ElementDescription::CLEAR_ATTRS = T.let(T.unsafe(nil), Array)
331
+
332
+ Nokogiri::HTML::ElementDescription::COL_ATTRS = T.let(T.unsafe(nil), Array)
333
+
334
+ Nokogiri::HTML::ElementDescription::COL_ELT = T.let(T.unsafe(nil), Array)
335
+
336
+ Nokogiri::HTML::ElementDescription::COMPACT_ATTR = T.let(T.unsafe(nil), Array)
337
+
338
+ Nokogiri::HTML::ElementDescription::COMPACT_ATTRS = T.let(T.unsafe(nil), Array)
339
+
340
+ Nokogiri::HTML::ElementDescription::CONTENT_ATTR = T.let(T.unsafe(nil), Array)
341
+
342
+ Nokogiri::HTML::ElementDescription::COREATTRS = T.let(T.unsafe(nil), Array)
343
+
344
+ Nokogiri::HTML::ElementDescription::CORE_ATTRS = T.let(T.unsafe(nil), Array)
345
+
346
+ Nokogiri::HTML::ElementDescription::CORE_I18N_ATTRS = T.let(T.unsafe(nil), Array)
347
+
348
+ Nokogiri::HTML::ElementDescription::DIR_ATTR = T.let(T.unsafe(nil), Array)
349
+
350
+ Nokogiri::HTML::ElementDescription::DL_CONTENTS = T.let(T.unsafe(nil), Array)
351
+
352
+ Nokogiri::HTML::ElementDescription::DefaultDescriptions = T.let(T.unsafe(nil), Hash)
353
+
354
+ Nokogiri::HTML::ElementDescription::Desc = Struct
355
+
356
+ Nokogiri::HTML::ElementDescription::EDIT_ATTRS = T.let(T.unsafe(nil), Array)
357
+
358
+ Nokogiri::HTML::ElementDescription::EMBED_ATTRS = T.let(T.unsafe(nil), Array)
359
+
360
+ Nokogiri::HTML::ElementDescription::EMPTY = T.let(T.unsafe(nil), Array)
361
+
362
+ Nokogiri::HTML::ElementDescription::EVENTS = T.let(T.unsafe(nil), Array)
363
+
364
+ Nokogiri::HTML::ElementDescription::FIELDSET_CONTENTS = T.let(T.unsafe(nil), Array)
365
+
366
+ Nokogiri::HTML::ElementDescription::FLOW = T.let(T.unsafe(nil), Array)
367
+
368
+ Nokogiri::HTML::ElementDescription::FLOW_PARAM = T.let(T.unsafe(nil), Array)
369
+
370
+ Nokogiri::HTML::ElementDescription::FONTSTYLE = T.let(T.unsafe(nil), Array)
371
+
372
+ Nokogiri::HTML::ElementDescription::FONT_ATTRS = T.let(T.unsafe(nil), Array)
373
+
374
+ Nokogiri::HTML::ElementDescription::FORMCTRL = T.let(T.unsafe(nil), Array)
375
+
376
+ Nokogiri::HTML::ElementDescription::FORM_ATTRS = T.let(T.unsafe(nil), Array)
377
+
378
+ Nokogiri::HTML::ElementDescription::FORM_CONTENTS = T.let(T.unsafe(nil), Array)
379
+
380
+ Nokogiri::HTML::ElementDescription::FRAMESET_ATTRS = T.let(T.unsafe(nil), Array)
381
+
382
+ Nokogiri::HTML::ElementDescription::FRAMESET_CONTENTS = T.let(T.unsafe(nil), Array)
383
+
384
+ Nokogiri::HTML::ElementDescription::FRAME_ATTRS = T.let(T.unsafe(nil), Array)
385
+
386
+ Nokogiri::HTML::ElementDescription::HEADING = T.let(T.unsafe(nil), Array)
387
+
388
+ Nokogiri::HTML::ElementDescription::HEAD_ATTRS = T.let(T.unsafe(nil), Array)
389
+
390
+ Nokogiri::HTML::ElementDescription::HEAD_CONTENTS = T.let(T.unsafe(nil), Array)
391
+
392
+ Nokogiri::HTML::ElementDescription::HREF_ATTRS = T.let(T.unsafe(nil), Array)
393
+
394
+ Nokogiri::HTML::ElementDescription::HR_DEPR = T.let(T.unsafe(nil), Array)
395
+
396
+ Nokogiri::HTML::ElementDescription::HTML_ATTRS = T.let(T.unsafe(nil), Array)
397
+
398
+ Nokogiri::HTML::ElementDescription::HTML_CDATA = T.let(T.unsafe(nil), Array)
399
+
400
+ Nokogiri::HTML::ElementDescription::HTML_CONTENT = T.let(T.unsafe(nil), Array)
401
+
402
+ Nokogiri::HTML::ElementDescription::HTML_FLOW = T.let(T.unsafe(nil), Array)
403
+
404
+ Nokogiri::HTML::ElementDescription::HTML_INLINE = T.let(T.unsafe(nil), Array)
405
+
406
+ Nokogiri::HTML::ElementDescription::HTML_PCDATA = T.let(T.unsafe(nil), Array)
407
+
408
+ Nokogiri::HTML::ElementDescription::I18N = T.let(T.unsafe(nil), Array)
409
+
410
+ Nokogiri::HTML::ElementDescription::I18N_ATTRS = T.let(T.unsafe(nil), Array)
411
+
412
+ Nokogiri::HTML::ElementDescription::IFRAME_ATTRS = T.let(T.unsafe(nil), Array)
413
+
414
+ Nokogiri::HTML::ElementDescription::IMG_ATTRS = T.let(T.unsafe(nil), Array)
415
+
416
+ Nokogiri::HTML::ElementDescription::INLINE = T.let(T.unsafe(nil), Array)
417
+
418
+ Nokogiri::HTML::ElementDescription::INLINE_P = T.let(T.unsafe(nil), Array)
419
+
420
+ Nokogiri::HTML::ElementDescription::INPUT_ATTRS = T.let(T.unsafe(nil), Array)
421
+
422
+ Nokogiri::HTML::ElementDescription::LABEL_ATTR = T.let(T.unsafe(nil), Array)
423
+
424
+ Nokogiri::HTML::ElementDescription::LABEL_ATTRS = T.let(T.unsafe(nil), Array)
425
+
426
+ Nokogiri::HTML::ElementDescription::LANGUAGE_ATTR = T.let(T.unsafe(nil), Array)
427
+
428
+ Nokogiri::HTML::ElementDescription::LEGEND_ATTRS = T.let(T.unsafe(nil), Array)
429
+
430
+ Nokogiri::HTML::ElementDescription::LINK_ATTRS = T.let(T.unsafe(nil), Array)
431
+
432
+ Nokogiri::HTML::ElementDescription::LIST = T.let(T.unsafe(nil), Array)
433
+
434
+ Nokogiri::HTML::ElementDescription::LI_ELT = T.let(T.unsafe(nil), Array)
435
+
436
+ Nokogiri::HTML::ElementDescription::MAP_CONTENTS = T.let(T.unsafe(nil), Array)
437
+
438
+ Nokogiri::HTML::ElementDescription::META_ATTRS = T.let(T.unsafe(nil), Array)
439
+
440
+ Nokogiri::HTML::ElementDescription::MODIFIER = T.let(T.unsafe(nil), Array)
441
+
442
+ Nokogiri::HTML::ElementDescription::NAME_ATTR = T.let(T.unsafe(nil), Array)
443
+
444
+ Nokogiri::HTML::ElementDescription::NOFRAMES_CONTENT = T.let(T.unsafe(nil), Array)
445
+
446
+ Nokogiri::HTML::ElementDescription::OBJECT_ATTRS = T.let(T.unsafe(nil), Array)
447
+
448
+ Nokogiri::HTML::ElementDescription::OBJECT_CONTENTS = T.let(T.unsafe(nil), Array)
449
+
450
+ Nokogiri::HTML::ElementDescription::OBJECT_DEPR = T.let(T.unsafe(nil), Array)
451
+
452
+ Nokogiri::HTML::ElementDescription::OL_ATTRS = T.let(T.unsafe(nil), Array)
453
+
454
+ Nokogiri::HTML::ElementDescription::OPTGROUP_ATTRS = T.let(T.unsafe(nil), Array)
455
+
456
+ Nokogiri::HTML::ElementDescription::OPTION_ATTRS = T.let(T.unsafe(nil), Array)
457
+
458
+ Nokogiri::HTML::ElementDescription::OPTION_ELT = T.let(T.unsafe(nil), Array)
459
+
460
+ Nokogiri::HTML::ElementDescription::PARAM_ATTRS = T.let(T.unsafe(nil), Array)
461
+
462
+ Nokogiri::HTML::ElementDescription::PCDATA = T.let(T.unsafe(nil), Array)
463
+
464
+ Nokogiri::HTML::ElementDescription::PHRASE = T.let(T.unsafe(nil), Array)
465
+
466
+ Nokogiri::HTML::ElementDescription::PRE_CONTENT = T.let(T.unsafe(nil), Array)
467
+
468
+ Nokogiri::HTML::ElementDescription::PROMPT_ATTRS = T.let(T.unsafe(nil), Array)
469
+
470
+ Nokogiri::HTML::ElementDescription::QUOTE_ATTRS = T.let(T.unsafe(nil), Array)
471
+
472
+ Nokogiri::HTML::ElementDescription::ROWS_COLS_ATTR = T.let(T.unsafe(nil), Array)
473
+
474
+ Nokogiri::HTML::ElementDescription::SCRIPT_ATTRS = T.let(T.unsafe(nil), Array)
475
+
476
+ Nokogiri::HTML::ElementDescription::SELECT_ATTRS = T.let(T.unsafe(nil), Array)
477
+
478
+ Nokogiri::HTML::ElementDescription::SELECT_CONTENT = T.let(T.unsafe(nil), Array)
479
+
480
+ Nokogiri::HTML::ElementDescription::SPECIAL = T.let(T.unsafe(nil), Array)
481
+
482
+ Nokogiri::HTML::ElementDescription::SRC_ALT_ATTRS = T.let(T.unsafe(nil), Array)
483
+
484
+ Nokogiri::HTML::ElementDescription::STYLE_ATTRS = T.let(T.unsafe(nil), Array)
485
+
486
+ Nokogiri::HTML::ElementDescription::TABLE_ATTRS = T.let(T.unsafe(nil), Array)
487
+
488
+ Nokogiri::HTML::ElementDescription::TABLE_CONTENTS = T.let(T.unsafe(nil), Array)
489
+
490
+ Nokogiri::HTML::ElementDescription::TABLE_DEPR = T.let(T.unsafe(nil), Array)
491
+
492
+ Nokogiri::HTML::ElementDescription::TALIGN_ATTRS = T.let(T.unsafe(nil), Array)
493
+
494
+ Nokogiri::HTML::ElementDescription::TARGET_ATTR = T.let(T.unsafe(nil), Array)
495
+
496
+ Nokogiri::HTML::ElementDescription::TEXTAREA_ATTRS = T.let(T.unsafe(nil), Array)
497
+
498
+ Nokogiri::HTML::ElementDescription::TH_TD_ATTR = T.let(T.unsafe(nil), Array)
499
+
500
+ Nokogiri::HTML::ElementDescription::TH_TD_DEPR = T.let(T.unsafe(nil), Array)
501
+
502
+ Nokogiri::HTML::ElementDescription::TR_CONTENTS = T.let(T.unsafe(nil), Array)
503
+
504
+ Nokogiri::HTML::ElementDescription::TR_ELT = T.let(T.unsafe(nil), Array)
505
+
506
+ Nokogiri::HTML::ElementDescription::TYPE_ATTR = T.let(T.unsafe(nil), Array)
507
+
508
+ Nokogiri::HTML::ElementDescription::UL_DEPR = T.let(T.unsafe(nil), Array)
509
+
510
+ Nokogiri::HTML::ElementDescription::VERSION_ATTR = T.let(T.unsafe(nil), Array)
511
+
512
+ Nokogiri::HTML::ElementDescription::WIDTH_ATTR = T.let(T.unsafe(nil), Array)
513
+
514
+ class Nokogiri::HTML::EntityDescription < ::Struct
515
+ end
516
+
517
+ class Nokogiri::HTML::EntityLookup
518
+ def [](name); end
519
+ def get(_); end
520
+ end
521
+
522
+ Nokogiri::HTML::NamedCharacters = T.let(T.unsafe(nil), Nokogiri::HTML::EntityLookup)
523
+
524
+ module Nokogiri::HTML::SAX
525
+ end
526
+
527
+ class Nokogiri::HTML::SAX::Parser < ::Nokogiri::XML::SAX::Parser
528
+ def parse_file(filename, encoding = T.unsafe(nil)); end
529
+ def parse_io(io, encoding = T.unsafe(nil)); end
530
+ def parse_memory(data, encoding = T.unsafe(nil)); end
531
+ end
532
+
533
+ class Nokogiri::HTML::SAX::ParserContext < ::Nokogiri::XML::SAX::ParserContext
534
+ def parse_with(_); end
535
+
536
+ class << self
537
+ def file(_, _); end
538
+ def memory(_, _); end
539
+ def new(thing, encoding = T.unsafe(nil)); end
540
+ end
541
+ end
542
+
543
+ class Nokogiri::HTML::SAX::PushParser < ::Nokogiri::XML::SAX::PushParser
544
+ def initialize(doc = T.unsafe(nil), file_name = T.unsafe(nil), encoding = T.unsafe(nil)); end
545
+
546
+ def <<(chunk, last_chunk = T.unsafe(nil)); end
547
+ def document; end
548
+ def document=(_); end
549
+ def finish; end
550
+ def write(chunk, last_chunk = T.unsafe(nil)); end
551
+
552
+ private
553
+
554
+ def initialize_native(_, _, _); end
555
+ def native_write(_, _); end
556
+ end
557
+
558
+ Nokogiri::LIBXML_ICONV_ENABLED = T.let(T.unsafe(nil), TrueClass)
559
+
560
+ Nokogiri::LIBXML_PARSER_VERSION = T.let(T.unsafe(nil), String)
561
+
562
+ Nokogiri::LIBXML_VERSION = T.let(T.unsafe(nil), String)
563
+
564
+ Nokogiri::NOKOGIRI_LIBXML2_PATCHES = T.let(T.unsafe(nil), Array)
565
+
566
+ Nokogiri::NOKOGIRI_LIBXML2_PATH = T.let(T.unsafe(nil), String)
567
+
568
+ Nokogiri::NOKOGIRI_LIBXSLT_PATCHES = T.let(T.unsafe(nil), Array)
569
+
570
+ Nokogiri::NOKOGIRI_LIBXSLT_PATH = T.let(T.unsafe(nil), String)
571
+
572
+ Nokogiri::NOKOGIRI_USE_PACKAGED_LIBRARIES = T.let(T.unsafe(nil), TrueClass)
573
+
574
+ class Nokogiri::SyntaxError < ::StandardError
575
+ end
576
+
577
+ Nokogiri::VERSION = T.let(T.unsafe(nil), String)
578
+
579
+ Nokogiri::VERSION_INFO = T.let(T.unsafe(nil), Hash)
580
+
581
+ class Nokogiri::VersionInfo
582
+ def compiled_parser_version; end
583
+ def engine; end
584
+ def jruby?; end
585
+ def libxml2?; end
586
+ def libxml2_using_packaged?; end
587
+ def libxml2_using_system?; end
588
+ def loaded_parser_version; end
589
+ def to_hash; end
590
+ def to_markdown; end
591
+ def warnings; end
592
+
593
+ class << self
594
+ def instance; end
595
+ end
596
+ end
597
+
598
+ module Nokogiri::XML
599
+ class << self
600
+ def Reader(string_or_io, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil)); end
601
+ def RelaxNG(string_or_io); end
602
+ def Schema(string_or_io); end
603
+ def fragment(string); end
604
+ def parse(thing, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
605
+ end
606
+ end
607
+
608
+ class Nokogiri::XML::Attr < ::Nokogiri::XML::Node
609
+ def content=(_); end
610
+ def to_s; end
611
+ def value; end
612
+ def value=(_); end
613
+
614
+ private
615
+
616
+ def inspect_attributes; end
617
+
618
+ class << self
619
+ def new(*_); end
620
+ end
621
+ end
622
+
623
+ class Nokogiri::XML::AttributeDecl < ::Nokogiri::XML::Node
624
+ def attribute_type; end
625
+ def default; end
626
+ def enumeration; end
627
+ def inspect; end
628
+ end
629
+
630
+ class Nokogiri::XML::Builder
631
+ def initialize(options = T.unsafe(nil), root = T.unsafe(nil), &block); end
632
+
633
+ def <<(string); end
634
+ def [](ns); end
635
+ def arity; end
636
+ def arity=(_); end
637
+ def cdata(string); end
638
+ def comment(string); end
639
+ def context; end
640
+ def context=(_); end
641
+ def doc; end
642
+ def doc=(_); end
643
+ def method_missing(method, *args, &block); end
644
+ def parent; end
645
+ def parent=(_); end
646
+ def text(string); end
647
+ def to_xml(*args); end
648
+
649
+ private
650
+
651
+ def insert(node, &block); end
652
+
653
+ class << self
654
+ def with(root, &block); end
655
+ end
656
+ end
657
+
658
+ class Nokogiri::XML::Builder::NodeBuilder
659
+ def initialize(node, doc_builder); end
660
+
661
+ def [](k); end
662
+ def []=(k, v); end
663
+ def method_missing(method, *args, &block); end
664
+ end
665
+
666
+ class Nokogiri::XML::CDATA < ::Nokogiri::XML::Text
667
+ def name; end
668
+
669
+ class << self
670
+ def new(*_); end
671
+ end
672
+ end
673
+
674
+ class Nokogiri::XML::CharacterData < ::Nokogiri::XML::Node
675
+ include(::Nokogiri::XML::PP::CharacterData)
676
+ end
677
+
678
+ class Nokogiri::XML::Comment < ::Nokogiri::XML::CharacterData
679
+ class << self
680
+ def new(*_); end
681
+ end
682
+ end
683
+
684
+ class Nokogiri::XML::DTD < ::Nokogiri::XML::Node
685
+ def attributes; end
686
+ def each; end
687
+ def elements; end
688
+ def entities; end
689
+ def external_id; end
690
+ def html5_dtd?; end
691
+ def html_dtd?; end
692
+ def keys; end
693
+ def notations; end
694
+ def system_id; end
695
+ def validate(_); end
696
+ end
697
+
698
+ class Nokogiri::XML::Document < ::Nokogiri::XML::Node
699
+ def initialize(*args); end
700
+
701
+ def <<(node_or_tags); end
702
+ def add_child(node_or_tags); end
703
+ def canonicalize(*_); end
704
+ def clone(*_); end
705
+ def collect_namespaces; end
706
+ def create_cdata(string, &block); end
707
+ def create_comment(string, &block); end
708
+ def create_element(name, *args, &block); end
709
+ def create_entity(*_); end
710
+ def create_text_node(string, &block); end
711
+ def decorate(node); end
712
+ def decorators(key); end
713
+ def document; end
714
+ def dup(*_); end
715
+ def encoding; end
716
+ def encoding=(_); end
717
+ def errors; end
718
+ def errors=(_); end
719
+ def fragment(tags = T.unsafe(nil)); end
720
+ def name; end
721
+ def namespaces; end
722
+ def remove_namespaces!; end
723
+ def root; end
724
+ def root=(_); end
725
+ def slop!; end
726
+ def to_java; end
727
+ def to_xml(*args, &block); end
728
+ def url; end
729
+ def validate; end
730
+ def version; end
731
+
732
+ private
733
+
734
+ def inspect_attributes; end
735
+
736
+ class << self
737
+ def empty_doc?(string_or_io); end
738
+ def new(*_); end
739
+ def parse(string_or_io, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil)); end
740
+ def read_io(_, _, _, _); end
741
+ def read_memory(_, _, _, _); end
742
+ def wrap(document); end
743
+ end
744
+ end
745
+
746
+ Nokogiri::XML::Document::IMPLIED_XPATH_CONTEXTS = T.let(T.unsafe(nil), Array)
747
+
748
+ Nokogiri::XML::Document::NCNAME_CHAR = T.let(T.unsafe(nil), String)
749
+
750
+ Nokogiri::XML::Document::NCNAME_RE = T.let(T.unsafe(nil), Regexp)
751
+
752
+ Nokogiri::XML::Document::NCNAME_START_CHAR = T.let(T.unsafe(nil), String)
753
+
754
+ class Nokogiri::XML::DocumentFragment < ::Nokogiri::XML::Node
755
+ def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil)); end
756
+
757
+ def css(*args); end
758
+ def dup; end
759
+ def errors; end
760
+ def errors=(things); end
761
+ def name; end
762
+ def search(*rules); end
763
+ def serialize; end
764
+ def to_html(*args); end
765
+ def to_s; end
766
+ def to_xhtml(*args); end
767
+ def to_xml(*args); end
768
+
769
+ private
770
+
771
+ def coerce(data); end
772
+ def namespace_declarations(ctx); end
773
+
774
+ class << self
775
+ def new(*_); end
776
+ def parse(tags); end
777
+ end
778
+ end
779
+
780
+ class Nokogiri::XML::Element < ::Nokogiri::XML::Node
781
+ end
782
+
783
+ class Nokogiri::XML::ElementContent
784
+ def children; end
785
+ def document; end
786
+ def name; end
787
+ def occur; end
788
+ def prefix; end
789
+ def type; end
790
+
791
+ private
792
+
793
+ def c1; end
794
+ def c2; end
795
+ end
796
+
797
+ Nokogiri::XML::ElementContent::ELEMENT = T.let(T.unsafe(nil), Integer)
798
+
799
+ Nokogiri::XML::ElementContent::MULT = T.let(T.unsafe(nil), Integer)
800
+
801
+ Nokogiri::XML::ElementContent::ONCE = T.let(T.unsafe(nil), Integer)
802
+
803
+ Nokogiri::XML::ElementContent::OPT = T.let(T.unsafe(nil), Integer)
804
+
805
+ Nokogiri::XML::ElementContent::OR = T.let(T.unsafe(nil), Integer)
806
+
807
+ Nokogiri::XML::ElementContent::PCDATA = T.let(T.unsafe(nil), Integer)
808
+
809
+ Nokogiri::XML::ElementContent::PLUS = T.let(T.unsafe(nil), Integer)
810
+
811
+ Nokogiri::XML::ElementContent::SEQ = T.let(T.unsafe(nil), Integer)
812
+
813
+ class Nokogiri::XML::ElementDecl < ::Nokogiri::XML::Node
814
+ def content; end
815
+ def element_type; end
816
+ def inspect; end
817
+ def prefix; end
818
+ end
819
+
820
+ class Nokogiri::XML::EntityDecl < ::Nokogiri::XML::Node
821
+ def content; end
822
+ def entity_type; end
823
+ def external_id; end
824
+ def inspect; end
825
+ def original_content; end
826
+ def system_id; end
827
+
828
+ class << self
829
+ def new(name, doc, *args); end
830
+ end
831
+ end
832
+
833
+ Nokogiri::XML::EntityDecl::EXTERNAL_GENERAL_PARSED = T.let(T.unsafe(nil), Integer)
834
+
835
+ Nokogiri::XML::EntityDecl::EXTERNAL_GENERAL_UNPARSED = T.let(T.unsafe(nil), Integer)
836
+
837
+ Nokogiri::XML::EntityDecl::EXTERNAL_PARAMETER = T.let(T.unsafe(nil), Integer)
838
+
839
+ Nokogiri::XML::EntityDecl::INTERNAL_GENERAL = T.let(T.unsafe(nil), Integer)
840
+
841
+ Nokogiri::XML::EntityDecl::INTERNAL_PARAMETER = T.let(T.unsafe(nil), Integer)
842
+
843
+ Nokogiri::XML::EntityDecl::INTERNAL_PREDEFINED = T.let(T.unsafe(nil), Integer)
844
+
845
+ class Nokogiri::XML::EntityReference < ::Nokogiri::XML::Node
846
+ def children; end
847
+ def inspect_attributes; end
848
+
849
+ class << self
850
+ def new(*_); end
851
+ end
852
+ end
853
+
854
+ class Nokogiri::XML::Namespace
855
+ include(::Nokogiri::XML::PP::Node)
856
+
857
+ def document; end
858
+ def href; end
859
+ def prefix; end
860
+
861
+ private
862
+
863
+ def inspect_attributes; end
864
+ end
865
+
866
+ class Nokogiri::XML::Node
867
+ include(::Nokogiri::XML::PP::Node)
868
+ include(::Nokogiri::XML::Searchable)
869
+ include(::Enumerable)
870
+
871
+ def initialize(name, document); end
872
+
873
+ def <<(node_or_tags); end
874
+ def <=>(other); end
875
+ def ==(other); end
876
+ def >(selector); end
877
+ def [](name); end
878
+ def []=(name, value); end
879
+ def accept(visitor); end
880
+ def add_child(node_or_tags); end
881
+ def add_class(name); end
882
+ def add_namespace(_, _); end
883
+ def add_namespace_definition(_, _); end
884
+ def add_next_sibling(node_or_tags); end
885
+ def add_previous_sibling(node_or_tags); end
886
+ def after(node_or_tags); end
887
+ def ancestors(selector = T.unsafe(nil)); end
888
+ def append_class(name); end
889
+ def attr(name); end
890
+ def attribute(_); end
891
+ def attribute_nodes; end
892
+ def attribute_with_ns(_, _); end
893
+ def attributes; end
894
+ def before(node_or_tags); end
895
+ def blank?; end
896
+ def canonicalize(mode = T.unsafe(nil), inclusive_namespaces = T.unsafe(nil), with_comments = T.unsafe(nil)); end
897
+ def cdata?; end
898
+ def child; end
899
+ def children; end
900
+ def children=(node_or_tags); end
901
+ def classes; end
902
+ def clone(*_); end
903
+ def comment?; end
904
+ def content; end
905
+ def content=(string); end
906
+ def create_external_subset(_, _, _); end
907
+ def create_internal_subset(_, _, _); end
908
+ def css_path; end
909
+ def decorate!; end
910
+ def default_namespace=(url); end
911
+ def delete(name); end
912
+ def description; end
913
+ def do_xinclude(options = T.unsafe(nil)); end
914
+ def document; end
915
+ def document?; end
916
+ def dup(*_); end
917
+ def each; end
918
+ def elem?; end
919
+ def element?; end
920
+ def element_children; end
921
+ def elements; end
922
+ def encode_special_chars(_); end
923
+ def external_subset; end
924
+ def first_element_child; end
925
+ def fragment(tags); end
926
+ def fragment?; end
927
+ def get_attribute(name); end
928
+ def has_attribute?(_); end
929
+ def html?; end
930
+ def inner_html(*args); end
931
+ def inner_html=(node_or_tags); end
932
+ def inner_text; end
933
+ def internal_subset; end
934
+ def key?(_); end
935
+ def keys; end
936
+ def lang; end
937
+ def lang=(_); end
938
+ def last_element_child; end
939
+ def line; end
940
+ def matches?(selector); end
941
+ def name; end
942
+ def name=(_); end
943
+ def namespace; end
944
+ def namespace=(ns); end
945
+ def namespace_definitions; end
946
+ def namespace_scopes; end
947
+ def namespaced_key?(_, _); end
948
+ def namespaces; end
949
+ def native_content=(_); end
950
+ def next; end
951
+ def next=(node_or_tags); end
952
+ def next_element; end
953
+ def next_sibling; end
954
+ def node_name; end
955
+ def node_name=(_); end
956
+ def node_type; end
957
+ def parent; end
958
+ def parent=(parent_node); end
959
+ def parse(string_or_io, options = T.unsafe(nil)); end
960
+ def path; end
961
+ def pointer_id; end
962
+ def prepend_child(node_or_tags); end
963
+ def previous; end
964
+ def previous=(node_or_tags); end
965
+ def previous_element; end
966
+ def previous_sibling; end
967
+ def processing_instruction?; end
968
+ def read_only?; end
969
+ def remove; end
970
+ def remove_attribute(name); end
971
+ def remove_class(name = T.unsafe(nil)); end
972
+ def replace(node_or_tags); end
973
+ def serialize(*args, &block); end
974
+ def set_attribute(name, value); end
975
+ def swap(node_or_tags); end
976
+ def text; end
977
+ def text?; end
978
+ def to_html(options = T.unsafe(nil)); end
979
+ def to_s; end
980
+ def to_str; end
981
+ def to_xhtml(options = T.unsafe(nil)); end
982
+ def to_xml(options = T.unsafe(nil)); end
983
+ def traverse(&block); end
984
+ def type; end
985
+ def unlink; end
986
+ def values; end
987
+ def wrap(html); end
988
+ def write_html_to(io, options = T.unsafe(nil)); end
989
+ def write_to(io, *options); end
990
+ def write_xhtml_to(io, options = T.unsafe(nil)); end
991
+ def write_xml_to(io, options = T.unsafe(nil)); end
992
+ def xml?; end
993
+
994
+ private
995
+
996
+ def add_child_node(_); end
997
+ def add_child_node_and_reparent_attrs(node); end
998
+ def add_next_sibling_node(_); end
999
+ def add_previous_sibling_node(_); end
1000
+ def add_sibling(next_or_previous, node_or_tags); end
1001
+ def coerce(data); end
1002
+ def compare(_); end
1003
+ def dump_html; end
1004
+ def get(_); end
1005
+ def in_context(_, _); end
1006
+ def inspect_attributes; end
1007
+ def native_write_to(_, _, _, _); end
1008
+ def process_xincludes(_); end
1009
+ def replace_node(_); end
1010
+ def set(_, _); end
1011
+ def set_namespace(_); end
1012
+ def to_format(save_option, options); end
1013
+ def write_format_to(save_option, io, options); end
1014
+
1015
+ class << self
1016
+ def new(*_); end
1017
+ end
1018
+ end
1019
+
1020
+ Nokogiri::XML::Node::ATTRIBUTE_DECL = T.let(T.unsafe(nil), Integer)
1021
+
1022
+ Nokogiri::XML::Node::ATTRIBUTE_NODE = T.let(T.unsafe(nil), Integer)
1023
+
1024
+ Nokogiri::XML::Node::CDATA_SECTION_NODE = T.let(T.unsafe(nil), Integer)
1025
+
1026
+ Nokogiri::XML::Node::COMMENT_NODE = T.let(T.unsafe(nil), Integer)
1027
+
1028
+ Nokogiri::XML::Node::DOCB_DOCUMENT_NODE = T.let(T.unsafe(nil), Integer)
1029
+
1030
+ Nokogiri::XML::Node::DOCUMENT_FRAG_NODE = T.let(T.unsafe(nil), Integer)
1031
+
1032
+ Nokogiri::XML::Node::DOCUMENT_NODE = T.let(T.unsafe(nil), Integer)
1033
+
1034
+ Nokogiri::XML::Node::DOCUMENT_TYPE_NODE = T.let(T.unsafe(nil), Integer)
1035
+
1036
+ Nokogiri::XML::Node::DTD_NODE = T.let(T.unsafe(nil), Integer)
1037
+
1038
+ Nokogiri::XML::Node::ELEMENT_DECL = T.let(T.unsafe(nil), Integer)
1039
+
1040
+ Nokogiri::XML::Node::ELEMENT_NODE = T.let(T.unsafe(nil), Integer)
1041
+
1042
+ Nokogiri::XML::Node::ENTITY_DECL = T.let(T.unsafe(nil), Integer)
1043
+
1044
+ Nokogiri::XML::Node::ENTITY_NODE = T.let(T.unsafe(nil), Integer)
1045
+
1046
+ Nokogiri::XML::Node::ENTITY_REF_NODE = T.let(T.unsafe(nil), Integer)
1047
+
1048
+ Nokogiri::XML::Node::HTML_DOCUMENT_NODE = T.let(T.unsafe(nil), Integer)
1049
+
1050
+ Nokogiri::XML::Node::IMPLIED_XPATH_CONTEXTS = T.let(T.unsafe(nil), Array)
1051
+
1052
+ Nokogiri::XML::Node::NAMESPACE_DECL = T.let(T.unsafe(nil), Integer)
1053
+
1054
+ Nokogiri::XML::Node::NOTATION_NODE = T.let(T.unsafe(nil), Integer)
1055
+
1056
+ Nokogiri::XML::Node::PI_NODE = T.let(T.unsafe(nil), Integer)
1057
+
1058
+ class Nokogiri::XML::Node::SaveOptions
1059
+ def initialize(options = T.unsafe(nil)); end
1060
+
1061
+ def as_html; end
1062
+ def as_html?; end
1063
+ def as_xhtml; end
1064
+ def as_xhtml?; end
1065
+ def as_xml; end
1066
+ def as_xml?; end
1067
+ def default_html; end
1068
+ def default_html?; end
1069
+ def default_xhtml; end
1070
+ def default_xhtml?; end
1071
+ def default_xml; end
1072
+ def default_xml?; end
1073
+ def format; end
1074
+ def format?; end
1075
+ def no_declaration; end
1076
+ def no_declaration?; end
1077
+ def no_empty_tags; end
1078
+ def no_empty_tags?; end
1079
+ def no_xhtml; end
1080
+ def no_xhtml?; end
1081
+ def options; end
1082
+ def to_i; end
1083
+ end
1084
+
1085
+ Nokogiri::XML::Node::SaveOptions::AS_HTML = T.let(T.unsafe(nil), Integer)
1086
+
1087
+ Nokogiri::XML::Node::SaveOptions::AS_XHTML = T.let(T.unsafe(nil), Integer)
1088
+
1089
+ Nokogiri::XML::Node::SaveOptions::AS_XML = T.let(T.unsafe(nil), Integer)
1090
+
1091
+ Nokogiri::XML::Node::SaveOptions::DEFAULT_HTML = T.let(T.unsafe(nil), Integer)
1092
+
1093
+ Nokogiri::XML::Node::SaveOptions::DEFAULT_XHTML = T.let(T.unsafe(nil), Integer)
1094
+
1095
+ Nokogiri::XML::Node::SaveOptions::DEFAULT_XML = T.let(T.unsafe(nil), Integer)
1096
+
1097
+ Nokogiri::XML::Node::SaveOptions::FORMAT = T.let(T.unsafe(nil), Integer)
1098
+
1099
+ Nokogiri::XML::Node::SaveOptions::NO_DECLARATION = T.let(T.unsafe(nil), Integer)
1100
+
1101
+ Nokogiri::XML::Node::SaveOptions::NO_EMPTY_TAGS = T.let(T.unsafe(nil), Integer)
1102
+
1103
+ Nokogiri::XML::Node::SaveOptions::NO_XHTML = T.let(T.unsafe(nil), Integer)
1104
+
1105
+ Nokogiri::XML::Node::TEXT_NODE = T.let(T.unsafe(nil), Integer)
1106
+
1107
+ Nokogiri::XML::Node::XINCLUDE_END = T.let(T.unsafe(nil), Integer)
1108
+
1109
+ Nokogiri::XML::Node::XINCLUDE_START = T.let(T.unsafe(nil), Integer)
1110
+
1111
+ class Nokogiri::XML::NodeSet
1112
+ include(::Nokogiri::XML::Searchable)
1113
+ include(::Enumerable)
1114
+
1115
+ def initialize(document, list = T.unsafe(nil)); end
1116
+
1117
+ def %(*args); end
1118
+ def &(_); end
1119
+ def +(_); end
1120
+ def -(_); end
1121
+ def <<(_); end
1122
+ def ==(other); end
1123
+ def >(selector); end
1124
+ def [](*_); end
1125
+ def add_class(name); end
1126
+ def after(datum); end
1127
+ def append_class(name); end
1128
+ def at(*args); end
1129
+ def attr(key, value = T.unsafe(nil), &block); end
1130
+ def attribute(key, value = T.unsafe(nil), &block); end
1131
+ def before(datum); end
1132
+ def children; end
1133
+ def clone; end
1134
+ def css(*args); end
1135
+ def delete(_); end
1136
+ def document; end
1137
+ def document=(_); end
1138
+ def dup; end
1139
+ def each; end
1140
+ def empty?; end
1141
+ def filter(expr); end
1142
+ def first(n = T.unsafe(nil)); end
1143
+ def include?(_); end
1144
+ def index(node = T.unsafe(nil)); end
1145
+ def inner_html(*args); end
1146
+ def inner_text; end
1147
+ def inspect; end
1148
+ def last; end
1149
+ def length; end
1150
+ def pop; end
1151
+ def push(_); end
1152
+ def remove; end
1153
+ def remove_attr(name); end
1154
+ def remove_attribute(name); end
1155
+ def remove_class(name = T.unsafe(nil)); end
1156
+ def reverse; end
1157
+ def set(key, value = T.unsafe(nil), &block); end
1158
+ def shift; end
1159
+ def size; end
1160
+ def slice(*_); end
1161
+ def text; end
1162
+ def to_a; end
1163
+ def to_ary; end
1164
+ def to_html(*args); end
1165
+ def to_s; end
1166
+ def to_xhtml(*args); end
1167
+ def to_xml(*args); end
1168
+ def unlink; end
1169
+ def wrap(html); end
1170
+ def xpath(*args); end
1171
+ def |(_); end
1172
+ end
1173
+
1174
+ Nokogiri::XML::NodeSet::IMPLIED_XPATH_CONTEXTS = T.let(T.unsafe(nil), Array)
1175
+
1176
+ class Nokogiri::XML::Notation < ::Struct
1177
+ end
1178
+
1179
+ module Nokogiri::XML::PP
1180
+ end
1181
+
1182
+ module Nokogiri::XML::PP::CharacterData
1183
+ def inspect; end
1184
+ def pretty_print(pp); end
1185
+ end
1186
+
1187
+ module Nokogiri::XML::PP::Node
1188
+ def inspect; end
1189
+ def pretty_print(pp); end
1190
+ end
1191
+
1192
+ class Nokogiri::XML::ParseOptions
1193
+ def initialize(options = T.unsafe(nil)); end
1194
+
1195
+ def compact; end
1196
+ def compact?; end
1197
+ def default_html; end
1198
+ def default_html?; end
1199
+ def default_xml; end
1200
+ def default_xml?; end
1201
+ def dtdattr; end
1202
+ def dtdattr?; end
1203
+ def dtdload; end
1204
+ def dtdload?; end
1205
+ def dtdvalid; end
1206
+ def dtdvalid?; end
1207
+ def huge; end
1208
+ def huge?; end
1209
+ def inspect; end
1210
+ def nobasefix; end
1211
+ def nobasefix?; end
1212
+ def noblanks; end
1213
+ def noblanks?; end
1214
+ def nocdata; end
1215
+ def nocdata?; end
1216
+ def nocompact; end
1217
+ def nodefault_html; end
1218
+ def nodefault_xml; end
1219
+ def nodict; end
1220
+ def nodict?; end
1221
+ def nodtdattr; end
1222
+ def nodtdload; end
1223
+ def nodtdvalid; end
1224
+ def noent; end
1225
+ def noent?; end
1226
+ def noerror; end
1227
+ def noerror?; end
1228
+ def nohuge; end
1229
+ def nonet; end
1230
+ def nonet?; end
1231
+ def nonobasefix; end
1232
+ def nonoblanks; end
1233
+ def nonocdata; end
1234
+ def nonodict; end
1235
+ def nonoent; end
1236
+ def nonoerror; end
1237
+ def nononet; end
1238
+ def nonowarning; end
1239
+ def nonoxincnode; end
1240
+ def nonsclean; end
1241
+ def noold10; end
1242
+ def nopedantic; end
1243
+ def norecover; end
1244
+ def nosax1; end
1245
+ def nowarning; end
1246
+ def nowarning?; end
1247
+ def noxinclude; end
1248
+ def noxincnode; end
1249
+ def noxincnode?; end
1250
+ def nsclean; end
1251
+ def nsclean?; end
1252
+ def old10; end
1253
+ def old10?; end
1254
+ def options; end
1255
+ def options=(_); end
1256
+ def pedantic; end
1257
+ def pedantic?; end
1258
+ def recover; end
1259
+ def recover?; end
1260
+ def sax1; end
1261
+ def sax1?; end
1262
+ def strict; end
1263
+ def strict?; end
1264
+ def to_i; end
1265
+ def xinclude; end
1266
+ def xinclude?; end
1267
+ end
1268
+
1269
+ Nokogiri::XML::ParseOptions::COMPACT = T.let(T.unsafe(nil), Integer)
1270
+
1271
+ Nokogiri::XML::ParseOptions::DEFAULT_HTML = T.let(T.unsafe(nil), Integer)
1272
+
1273
+ Nokogiri::XML::ParseOptions::DEFAULT_XML = T.let(T.unsafe(nil), Integer)
1274
+
1275
+ Nokogiri::XML::ParseOptions::DTDATTR = T.let(T.unsafe(nil), Integer)
1276
+
1277
+ Nokogiri::XML::ParseOptions::DTDLOAD = T.let(T.unsafe(nil), Integer)
1278
+
1279
+ Nokogiri::XML::ParseOptions::DTDVALID = T.let(T.unsafe(nil), Integer)
1280
+
1281
+ Nokogiri::XML::ParseOptions::HUGE = T.let(T.unsafe(nil), Integer)
1282
+
1283
+ Nokogiri::XML::ParseOptions::NOBASEFIX = T.let(T.unsafe(nil), Integer)
1284
+
1285
+ Nokogiri::XML::ParseOptions::NOBLANKS = T.let(T.unsafe(nil), Integer)
1286
+
1287
+ Nokogiri::XML::ParseOptions::NOCDATA = T.let(T.unsafe(nil), Integer)
1288
+
1289
+ Nokogiri::XML::ParseOptions::NODICT = T.let(T.unsafe(nil), Integer)
1290
+
1291
+ Nokogiri::XML::ParseOptions::NOENT = T.let(T.unsafe(nil), Integer)
1292
+
1293
+ Nokogiri::XML::ParseOptions::NOERROR = T.let(T.unsafe(nil), Integer)
1294
+
1295
+ Nokogiri::XML::ParseOptions::NONET = T.let(T.unsafe(nil), Integer)
1296
+
1297
+ Nokogiri::XML::ParseOptions::NOWARNING = T.let(T.unsafe(nil), Integer)
1298
+
1299
+ Nokogiri::XML::ParseOptions::NOXINCNODE = T.let(T.unsafe(nil), Integer)
1300
+
1301
+ Nokogiri::XML::ParseOptions::NSCLEAN = T.let(T.unsafe(nil), Integer)
1302
+
1303
+ Nokogiri::XML::ParseOptions::OLD10 = T.let(T.unsafe(nil), Integer)
1304
+
1305
+ Nokogiri::XML::ParseOptions::PEDANTIC = T.let(T.unsafe(nil), Integer)
1306
+
1307
+ Nokogiri::XML::ParseOptions::RECOVER = T.let(T.unsafe(nil), Integer)
1308
+
1309
+ Nokogiri::XML::ParseOptions::SAX1 = T.let(T.unsafe(nil), Integer)
1310
+
1311
+ Nokogiri::XML::ParseOptions::STRICT = T.let(T.unsafe(nil), Integer)
1312
+
1313
+ Nokogiri::XML::ParseOptions::XINCLUDE = T.let(T.unsafe(nil), Integer)
1314
+
1315
+ class Nokogiri::XML::ProcessingInstruction < ::Nokogiri::XML::Node
1316
+ def initialize(document, name, content); end
1317
+
1318
+ class << self
1319
+ def new(*_); end
1320
+ end
1321
+ end
1322
+
1323
+ class Nokogiri::XML::Reader
1324
+ include(::Enumerable)
1325
+
1326
+ def initialize(source, url = T.unsafe(nil), encoding = T.unsafe(nil)); end
1327
+
1328
+ def attribute(_); end
1329
+ def attribute_at(_); end
1330
+ def attribute_count; end
1331
+ def attribute_nodes; end
1332
+ def attributes; end
1333
+ def attributes?; end
1334
+ def base_uri; end
1335
+ def default?; end
1336
+ def depth; end
1337
+ def each; end
1338
+ def empty_element?; end
1339
+ def encoding; end
1340
+ def errors; end
1341
+ def errors=(_); end
1342
+ def inner_xml; end
1343
+ def lang; end
1344
+ def local_name; end
1345
+ def name; end
1346
+ def namespace_uri; end
1347
+ def namespaces; end
1348
+ def node_type; end
1349
+ def outer_xml; end
1350
+ def prefix; end
1351
+ def read; end
1352
+ def self_closing?; end
1353
+ def source; end
1354
+ def state; end
1355
+ def value; end
1356
+ def value?; end
1357
+ def xml_version; end
1358
+
1359
+ private
1360
+
1361
+ def attr_nodes; end
1362
+
1363
+ class << self
1364
+ def from_io(*_); end
1365
+ def from_memory(*_); end
1366
+ end
1367
+ end
1368
+
1369
+ Nokogiri::XML::Reader::TYPE_ATTRIBUTE = T.let(T.unsafe(nil), Integer)
1370
+
1371
+ Nokogiri::XML::Reader::TYPE_CDATA = T.let(T.unsafe(nil), Integer)
1372
+
1373
+ Nokogiri::XML::Reader::TYPE_COMMENT = T.let(T.unsafe(nil), Integer)
1374
+
1375
+ Nokogiri::XML::Reader::TYPE_DOCUMENT = T.let(T.unsafe(nil), Integer)
1376
+
1377
+ Nokogiri::XML::Reader::TYPE_DOCUMENT_FRAGMENT = T.let(T.unsafe(nil), Integer)
1378
+
1379
+ Nokogiri::XML::Reader::TYPE_DOCUMENT_TYPE = T.let(T.unsafe(nil), Integer)
1380
+
1381
+ Nokogiri::XML::Reader::TYPE_ELEMENT = T.let(T.unsafe(nil), Integer)
1382
+
1383
+ Nokogiri::XML::Reader::TYPE_END_ELEMENT = T.let(T.unsafe(nil), Integer)
1384
+
1385
+ Nokogiri::XML::Reader::TYPE_END_ENTITY = T.let(T.unsafe(nil), Integer)
1386
+
1387
+ Nokogiri::XML::Reader::TYPE_ENTITY = T.let(T.unsafe(nil), Integer)
1388
+
1389
+ Nokogiri::XML::Reader::TYPE_ENTITY_REFERENCE = T.let(T.unsafe(nil), Integer)
1390
+
1391
+ Nokogiri::XML::Reader::TYPE_NONE = T.let(T.unsafe(nil), Integer)
1392
+
1393
+ Nokogiri::XML::Reader::TYPE_NOTATION = T.let(T.unsafe(nil), Integer)
1394
+
1395
+ Nokogiri::XML::Reader::TYPE_PROCESSING_INSTRUCTION = T.let(T.unsafe(nil), Integer)
1396
+
1397
+ Nokogiri::XML::Reader::TYPE_SIGNIFICANT_WHITESPACE = T.let(T.unsafe(nil), Integer)
1398
+
1399
+ Nokogiri::XML::Reader::TYPE_TEXT = T.let(T.unsafe(nil), Integer)
1400
+
1401
+ Nokogiri::XML::Reader::TYPE_WHITESPACE = T.let(T.unsafe(nil), Integer)
1402
+
1403
+ Nokogiri::XML::Reader::TYPE_XML_DECLARATION = T.let(T.unsafe(nil), Integer)
1404
+
1405
+ class Nokogiri::XML::RelaxNG < ::Nokogiri::XML::Schema
1406
+
1407
+ private
1408
+
1409
+ def validate_document(_); end
1410
+
1411
+ class << self
1412
+ def from_document(_); end
1413
+ def read_memory(_); end
1414
+ end
1415
+ end
1416
+
1417
+ module Nokogiri::XML::SAX
1418
+ end
1419
+
1420
+ class Nokogiri::XML::SAX::Document
1421
+ def cdata_block(string); end
1422
+ def characters(string); end
1423
+ def comment(string); end
1424
+ def end_document; end
1425
+ def end_element(name); end
1426
+ def end_element_namespace(name, prefix = T.unsafe(nil), uri = T.unsafe(nil)); end
1427
+ def error(string); end
1428
+ def processing_instruction(name, content); end
1429
+ def start_document; end
1430
+ def start_element(name, attrs = T.unsafe(nil)); end
1431
+ def start_element_namespace(name, attrs = T.unsafe(nil), prefix = T.unsafe(nil), uri = T.unsafe(nil), ns = T.unsafe(nil)); end
1432
+ def warning(string); end
1433
+ def xmldecl(version, encoding, standalone); end
1434
+ end
1435
+
1436
+ class Nokogiri::XML::SAX::Parser
1437
+ def initialize(doc = T.unsafe(nil), encoding = T.unsafe(nil)); end
1438
+
1439
+ def document; end
1440
+ def document=(_); end
1441
+ def encoding; end
1442
+ def encoding=(_); end
1443
+ def parse(thing, &block); end
1444
+ def parse_file(filename); end
1445
+ def parse_io(io, encoding = T.unsafe(nil)); end
1446
+ def parse_memory(data); end
1447
+
1448
+ private
1449
+
1450
+ def check_encoding(encoding); end
1451
+ end
1452
+
1453
+ class Nokogiri::XML::SAX::Parser::Attribute < ::Struct
1454
+ end
1455
+
1456
+ Nokogiri::XML::SAX::Parser::ENCODINGS = T.let(T.unsafe(nil), Hash)
1457
+
1458
+ class Nokogiri::XML::SAX::ParserContext
1459
+ def column; end
1460
+ def line; end
1461
+ def parse_with(_); end
1462
+ def recovery; end
1463
+ def recovery=(_); end
1464
+ def replace_entities; end
1465
+ def replace_entities=(_); end
1466
+
1467
+ class << self
1468
+ def file(_); end
1469
+ def io(_, _); end
1470
+ def memory(_); end
1471
+ def new(thing, encoding = T.unsafe(nil)); end
1472
+ end
1473
+ end
1474
+
1475
+ class Nokogiri::XML::SAX::PushParser
1476
+ def initialize(doc = T.unsafe(nil), file_name = T.unsafe(nil), encoding = T.unsafe(nil)); end
1477
+
1478
+ def <<(chunk, last_chunk = T.unsafe(nil)); end
1479
+ def document; end
1480
+ def document=(_); end
1481
+ def finish; end
1482
+ def options; end
1483
+ def options=(_); end
1484
+ def replace_entities; end
1485
+ def replace_entities=(_); end
1486
+ def write(chunk, last_chunk = T.unsafe(nil)); end
1487
+
1488
+ private
1489
+
1490
+ def initialize_native(_, _); end
1491
+ def native_write(_, _); end
1492
+ end
1493
+
1494
+ class Nokogiri::XML::Schema
1495
+ def errors; end
1496
+ def errors=(_); end
1497
+ def valid?(thing); end
1498
+ def validate(thing); end
1499
+
1500
+ private
1501
+
1502
+ def validate_document(_); end
1503
+ def validate_file(_); end
1504
+
1505
+ class << self
1506
+ def from_document(_); end
1507
+ def new(string_or_io); end
1508
+ def read_memory(_); end
1509
+ end
1510
+ end
1511
+
1512
+ module Nokogiri::XML::Searchable
1513
+ def %(*args); end
1514
+ def /(*args); end
1515
+ def at(*args); end
1516
+ def at_css(*args); end
1517
+ def at_xpath(*args); end
1518
+ def css(*args); end
1519
+ def search(*args); end
1520
+ def xpath(*args); end
1521
+
1522
+ private
1523
+
1524
+ def css_internal(node, rules, handler, ns); end
1525
+ def css_rules_to_xpath(rules, ns); end
1526
+ def extract_params(params); end
1527
+ def xpath_impl(node, path, handler, ns, binds); end
1528
+ def xpath_internal(node, paths, handler, ns, binds); end
1529
+ def xpath_query_from_css_rule(rule, ns); end
1530
+ end
1531
+
1532
+ Nokogiri::XML::Searchable::LOOKS_LIKE_XPATH = T.let(T.unsafe(nil), Regexp)
1533
+
1534
+ class Nokogiri::XML::SyntaxError < ::Nokogiri::SyntaxError
1535
+ def code; end
1536
+ def column; end
1537
+ def domain; end
1538
+ def error?; end
1539
+ def fatal?; end
1540
+ def file; end
1541
+ def int1; end
1542
+ def level; end
1543
+ def line; end
1544
+ def none?; end
1545
+ def str1; end
1546
+ def str2; end
1547
+ def str3; end
1548
+ def to_s; end
1549
+ def warning?; end
1550
+
1551
+ private
1552
+
1553
+ def level_to_s; end
1554
+ def location_to_s; end
1555
+ def nil_or_zero?(attribute); end
1556
+ end
1557
+
1558
+ class Nokogiri::XML::Text < ::Nokogiri::XML::CharacterData
1559
+ def content=(string); end
1560
+
1561
+ class << self
1562
+ def new(*_); end
1563
+ end
1564
+ end
1565
+
1566
+ Nokogiri::XML::XML_C14N_1_0 = T.let(T.unsafe(nil), Integer)
1567
+
1568
+ Nokogiri::XML::XML_C14N_1_1 = T.let(T.unsafe(nil), Integer)
1569
+
1570
+ Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0 = T.let(T.unsafe(nil), Integer)
1571
+
1572
+ class Nokogiri::XML::XPath
1573
+ def document; end
1574
+ def document=(_); end
1575
+ end
1576
+
1577
+ class Nokogiri::XML::XPath::SyntaxError < ::Nokogiri::XML::SyntaxError
1578
+ def to_s; end
1579
+ end
1580
+
1581
+ class Nokogiri::XML::XPathContext
1582
+ def evaluate(*_); end
1583
+ def register_namespaces(namespaces); end
1584
+ def register_ns(_, _); end
1585
+ def register_variable(_, _); end
1586
+
1587
+ class << self
1588
+ def new(_); end
1589
+ end
1590
+ end
1591
+
1592
+ module Nokogiri::XSLT
1593
+ class << self
1594
+ def parse(string, modules = T.unsafe(nil)); end
1595
+ def quote_params(params); end
1596
+ def register(_, _); end
1597
+ end
1598
+ end
1599
+
1600
+ class Nokogiri::XSLT::Stylesheet
1601
+ def apply_to(document, params = T.unsafe(nil)); end
1602
+ def serialize(_); end
1603
+ def transform(*_); end
1604
+
1605
+ class << self
1606
+ def parse_stylesheet_doc(_); end
1607
+ end
1608
+ end