@ai-ecoverse/wasix-ruby 3.4.11-2 → 3.4.11-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (722) hide show
  1. package/PRESTAGE.md +31 -15
  2. package/bin/bundle +1 -1
  3. package/bin/bundler +1 -1
  4. package/bin/erb +1 -1
  5. package/bin/gem +1 -1
  6. package/bin/irb +1 -1
  7. package/bin/rake +1 -1
  8. package/bin/ruby +1 -0
  9. package/bin/ruby.wasm +0 -0
  10. package/lib/ruby/3.4.0/socket.rb +1790 -0
  11. package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +5 -5
  12. package/lib/ruby/gems/3.4.0/cache/abbrev-0.1.2.gem +0 -0
  13. package/lib/ruby/gems/3.4.0/cache/base64-0.2.0.gem +0 -0
  14. package/lib/ruby/gems/3.4.0/cache/csv-3.3.2.gem +0 -0
  15. package/lib/ruby/gems/3.4.0/cache/drb-2.2.1.gem +0 -0
  16. package/lib/ruby/gems/3.4.0/cache/getoptlong-0.2.1.gem +0 -0
  17. package/lib/ruby/gems/3.4.0/cache/matrix-0.4.2.gem +0 -0
  18. package/lib/ruby/gems/3.4.0/cache/minitest-5.25.4.gem +0 -0
  19. package/lib/ruby/gems/3.4.0/cache/mutex_m-0.3.0.gem +0 -0
  20. package/lib/ruby/gems/3.4.0/cache/net-ftp-0.3.8.gem +0 -0
  21. package/lib/ruby/gems/3.4.0/cache/net-imap-0.5.15.gem +0 -0
  22. package/lib/ruby/gems/3.4.0/cache/net-pop-0.1.2.gem +0 -0
  23. package/lib/ruby/gems/3.4.0/cache/net-smtp-0.5.1.gem +0 -0
  24. package/lib/ruby/gems/3.4.0/cache/observer-0.1.2.gem +0 -0
  25. package/lib/ruby/gems/3.4.0/cache/power_assert-2.0.5.gem +0 -0
  26. package/lib/ruby/gems/3.4.0/cache/prime-0.1.3.gem +0 -0
  27. package/lib/ruby/gems/3.4.0/cache/rake-13.2.1.gem +0 -0
  28. package/lib/ruby/gems/3.4.0/cache/repl_type_completor-0.1.9.gem +0 -0
  29. package/lib/ruby/gems/3.4.0/cache/resolv-replace-0.1.1.gem +0 -0
  30. package/lib/ruby/gems/3.4.0/cache/rexml-3.4.4.gem +0 -0
  31. package/lib/ruby/gems/3.4.0/cache/rinda-0.2.0.gem +0 -0
  32. package/lib/ruby/gems/3.4.0/cache/rss-0.3.1.gem +0 -0
  33. package/lib/ruby/gems/3.4.0/cache/test-unit-3.6.7.gem +0 -0
  34. package/lib/ruby/gems/3.4.0/cache/typeprof-0.30.1.gem +0 -0
  35. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/console +0 -0
  36. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/setup +0 -0
  37. package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle +29 -0
  38. package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundler +4 -0
  39. package/lib/ruby/gems/3.4.0/gems/erb-4.0.4.1/libexec/erb +164 -0
  40. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/console +0 -0
  41. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/setup +0 -0
  42. package/lib/ruby/gems/3.4.0/gems/irb-1.14.3/exe/irb +9 -0
  43. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/console +0 -0
  44. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/setup +0 -0
  45. package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/rdoc +43 -0
  46. package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/ri +12 -0
  47. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/console +0 -0
  48. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/setup +0 -0
  49. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/console +0 -0
  50. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/setup +0 -0
  51. package/lib/ruby/gems/3.4.0/gems/syntax_suggest-2.0.3/exe/syntax_suggest +7 -0
  52. package/lib/ruby/gems/3.4.0/specifications/abbrev-0.1.2.gemspec +5 -4
  53. package/lib/ruby/gems/3.4.0/specifications/base64-0.2.0.gemspec +4 -3
  54. package/lib/ruby/gems/3.4.0/specifications/csv-3.3.2.gemspec +5 -3
  55. package/lib/ruby/gems/3.4.0/specifications/default/benchmark-0.4.0.gemspec +22 -0
  56. package/lib/ruby/gems/3.4.0/specifications/default/bundler-2.6.9.gemspec +23 -0
  57. package/lib/ruby/gems/3.4.0/specifications/default/cgi-0.4.2.gemspec +23 -0
  58. package/lib/ruby/gems/3.4.0/specifications/default/date-3.4.1.gemspec +23 -0
  59. package/lib/ruby/gems/3.4.0/specifications/default/delegate-0.4.0.gemspec +21 -0
  60. package/lib/ruby/gems/3.4.0/specifications/default/did_you_mean-2.0.0.gemspec +20 -0
  61. package/lib/ruby/gems/3.4.0/specifications/default/digest-3.2.0.gemspec +22 -0
  62. package/lib/ruby/gems/3.4.0/specifications/default/english-0.8.0.gemspec +21 -0
  63. package/lib/ruby/gems/3.4.0/specifications/default/erb-4.0.4.1.gemspec +29 -0
  64. package/lib/ruby/gems/3.4.0/specifications/default/error_highlight-0.7.0.gemspec +20 -0
  65. package/lib/ruby/gems/3.4.0/specifications/default/etc-1.4.6.gemspec +25 -0
  66. package/lib/ruby/gems/3.4.0/specifications/default/fcntl-1.2.0.gemspec +24 -0
  67. package/lib/ruby/gems/3.4.0/specifications/default/fileutils-1.7.3.gemspec +21 -0
  68. package/lib/ruby/gems/3.4.0/specifications/default/find-0.2.0.gemspec +21 -0
  69. package/lib/ruby/gems/3.4.0/specifications/default/forwardable-1.3.3.gemspec +21 -0
  70. package/lib/ruby/gems/3.4.0/specifications/default/io-console-0.8.1.gemspec +23 -0
  71. package/lib/ruby/gems/3.4.0/specifications/default/io-nonblock-0.3.2.gemspec +23 -0
  72. package/lib/ruby/gems/3.4.0/specifications/default/io-wait-0.3.2.gemspec +24 -0
  73. package/lib/ruby/gems/3.4.0/specifications/default/ipaddr-1.2.7.gemspec +20 -0
  74. package/lib/ruby/gems/3.4.0/specifications/default/irb-1.14.3.gemspec +28 -0
  75. package/lib/ruby/gems/3.4.0/specifications/default/json-2.9.1.gemspec +23 -0
  76. package/lib/ruby/gems/3.4.0/specifications/default/logger-1.6.4.gemspec +20 -0
  77. package/lib/ruby/gems/3.4.0/specifications/default/net-http-0.6.0.gemspec +26 -0
  78. package/lib/ruby/gems/3.4.0/specifications/default/net-protocol-0.2.2.gemspec +25 -0
  79. package/lib/ruby/gems/3.4.0/specifications/default/open-uri-0.5.0.gemspec +27 -0
  80. package/lib/ruby/gems/3.4.0/specifications/default/open3-0.2.1.gemspec +22 -0
  81. package/lib/ruby/gems/3.4.0/specifications/default/openssl-3.3.3.gemspec +24 -0
  82. package/lib/ruby/gems/3.4.0/specifications/default/optparse-0.6.0.gemspec +23 -0
  83. package/lib/ruby/gems/3.4.0/specifications/default/ostruct-0.6.1.gemspec +20 -0
  84. package/lib/ruby/gems/3.4.0/specifications/default/pathname-0.4.0.gemspec +24 -0
  85. package/lib/ruby/gems/3.4.0/specifications/default/pp-0.6.2.gemspec +26 -0
  86. package/lib/ruby/gems/3.4.0/specifications/default/prettyprint-0.2.0.gemspec +22 -0
  87. package/lib/ruby/gems/3.4.0/specifications/default/prism-1.5.3.gemspec +22 -0
  88. package/lib/ruby/gems/3.4.0/specifications/default/pstore-0.2.1.gemspec +21 -0
  89. package/lib/ruby/gems/3.4.0/specifications/default/psych-5.2.2.gemspec +30 -0
  90. package/lib/ruby/gems/3.4.0/specifications/default/rdoc-6.14.0.gemspec +30 -0
  91. package/lib/ruby/gems/3.4.0/specifications/default/readline-0.0.4.gemspec +23 -0
  92. package/lib/ruby/gems/3.4.0/specifications/default/reline-0.6.0.gemspec +25 -0
  93. package/lib/ruby/gems/3.4.0/specifications/default/resolv-0.7.2.gemspec +24 -0
  94. package/lib/ruby/gems/3.4.0/specifications/default/ruby2_keywords-0.0.5.gemspec +20 -0
  95. package/lib/ruby/gems/3.4.0/specifications/default/securerandom-0.4.1.gemspec +22 -0
  96. package/lib/ruby/gems/3.4.0/specifications/default/set-1.1.1.gemspec +21 -0
  97. package/lib/ruby/gems/3.4.0/specifications/default/shellwords-0.2.2.gemspec +22 -0
  98. package/lib/ruby/gems/3.4.0/specifications/default/singleton-0.3.0.gemspec +21 -0
  99. package/lib/ruby/gems/3.4.0/specifications/default/stringio-3.1.2.gemspec +23 -0
  100. package/lib/ruby/gems/3.4.0/specifications/default/strscan-3.1.2.gemspec +24 -0
  101. package/lib/ruby/gems/3.4.0/specifications/default/syntax_suggest-2.0.3.gemspec +23 -0
  102. package/lib/ruby/gems/3.4.0/specifications/default/tempfile-0.3.1.gemspec +21 -0
  103. package/lib/ruby/gems/3.4.0/specifications/default/time-0.4.1.gemspec +26 -0
  104. package/lib/ruby/gems/3.4.0/specifications/default/timeout-0.4.3.gemspec +21 -0
  105. package/lib/ruby/gems/3.4.0/specifications/default/tmpdir-0.3.1.gemspec +26 -0
  106. package/lib/ruby/gems/3.4.0/specifications/default/tsort-0.2.0.gemspec +22 -0
  107. package/lib/ruby/gems/3.4.0/specifications/default/un-0.3.0.gemspec +22 -0
  108. package/lib/ruby/gems/3.4.0/specifications/default/uri-1.0.4.gemspec +22 -0
  109. package/lib/ruby/gems/3.4.0/specifications/default/weakref-0.1.3.gemspec +25 -0
  110. package/lib/ruby/gems/3.4.0/specifications/default/yaml-0.4.0.gemspec +21 -0
  111. package/lib/ruby/gems/3.4.0/specifications/default/zlib-3.2.3.gemspec +23 -0
  112. package/lib/ruby/gems/3.4.0/specifications/drb-2.2.1.gemspec +5 -4
  113. package/lib/ruby/gems/3.4.0/specifications/getoptlong-0.2.1.gemspec +5 -4
  114. package/lib/ruby/gems/3.4.0/specifications/matrix-0.4.2.gemspec +5 -4
  115. package/lib/ruby/gems/3.4.0/specifications/minitest-5.25.4.gemspec +7 -5
  116. package/lib/ruby/gems/3.4.0/specifications/mutex_m-0.3.0.gemspec +4 -3
  117. package/lib/ruby/gems/3.4.0/specifications/net-ftp-0.3.8.gemspec +10 -4
  118. package/lib/ruby/gems/3.4.0/specifications/net-imap-0.5.15.gemspec +7 -5
  119. package/lib/ruby/gems/3.4.0/specifications/net-pop-0.1.2.gemspec +9 -4
  120. package/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.1.gemspec +9 -4
  121. package/lib/ruby/gems/3.4.0/specifications/observer-0.1.2.gemspec +5 -4
  122. package/lib/ruby/gems/3.4.0/specifications/power_assert-2.0.5.gemspec +6 -4
  123. package/lib/ruby/gems/3.4.0/specifications/prime-0.1.3.gemspec +10 -4
  124. package/lib/ruby/gems/3.4.0/specifications/rake-13.2.1.gemspec +6 -4
  125. package/lib/ruby/gems/3.4.0/specifications/repl_type_completor-0.1.9.gemspec +6 -5
  126. package/lib/ruby/gems/3.4.0/specifications/resolv-replace-0.1.1.gemspec +6 -5
  127. package/lib/ruby/gems/3.4.0/specifications/rexml-3.4.4.gemspec +5 -3
  128. package/lib/ruby/gems/3.4.0/specifications/rinda-0.2.0.gemspec +8 -5
  129. package/lib/ruby/gems/3.4.0/specifications/rss-0.3.1.gemspec +5 -4
  130. package/lib/ruby/gems/3.4.0/specifications/test-unit-3.6.7.gemspec +5 -4
  131. package/lib/ruby/gems/3.4.0/specifications/typeprof-0.30.1.gemspec +7 -5
  132. package/package.json +19 -13
  133. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/abbrev.gemspec +0 -29
  134. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/.bundled.bigdecimal-3.1.8.gemspec +0 -23
  135. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +0 -56
  136. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal-3.1.8.gemspec +0 -23
  137. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -50
  138. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +0 -90
  139. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +0 -89
  140. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +0 -232
  141. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +0 -80
  142. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +0 -185
  143. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +0 -5
  144. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +0 -74
  145. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +0 -40
  146. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +0 -21
  147. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/.bundled.debug-1.11.0.gemspec +0 -25
  148. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +0 -573
  149. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +0 -10
  150. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +0 -22
  151. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +0 -996
  152. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +0 -57
  153. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +0 -23
  154. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug-1.11.0.gemspec +0 -30
  155. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug.gemspec +0 -33
  156. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +0 -53
  157. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +0 -77
  158. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +0 -556
  159. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +0 -263
  160. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +0 -123
  161. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +0 -592
  162. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +0 -224
  163. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +0 -336
  164. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +0 -190
  165. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +0 -37
  166. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +0 -115
  167. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +0 -13
  168. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +0 -15
  169. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +0 -50
  170. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +0 -534
  171. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +0 -1348
  172. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +0 -1108
  173. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +0 -2667
  174. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +0 -150
  175. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +0 -5
  176. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +0 -1457
  177. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +0 -241
  178. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +0 -5
  179. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +0 -9
  180. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +0 -660
  181. package/lib/ruby/gems/3.4.0/gems/drb-2.2.1/drb.gemspec +0 -41
  182. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/getoptlong.gemspec +0 -30
  183. package/lib/ruby/gems/3.4.0/gems/matrix-0.4.2/matrix.gemspec +0 -26
  184. package/lib/ruby/gems/3.4.0/gems/minitest-5.25.4/.autotest +0 -34
  185. package/lib/ruby/gems/3.4.0/gems/net-ftp-0.3.8/net-ftp.gemspec +0 -34
  186. package/lib/ruby/gems/3.4.0/gems/net-imap-0.5.15/net-imap.gemspec +0 -38
  187. package/lib/ruby/gems/3.4.0/gems/net-pop-0.1.2/net-pop.gemspec +0 -32
  188. package/lib/ruby/gems/3.4.0/gems/net-smtp-0.5.1/net-smtp.gemspec +0 -31
  189. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/.bundled.nkf-0.2.0.gemspec +0 -24
  190. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +0 -5
  191. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +0 -22
  192. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +0 -38
  193. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +0 -24
  194. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +0 -14
  195. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/setup +0 -8
  196. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +0 -283
  197. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +0 -6
  198. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf-0.2.0.gemspec +0 -24
  199. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf.gemspec +0 -43
  200. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/observer.gemspec +0 -32
  201. package/lib/ruby/gems/3.4.0/gems/power_assert-2.0.5/power_assert.gemspec +0 -24
  202. package/lib/ruby/gems/3.4.0/gems/prime-0.1.3/prime.gemspec +0 -28
  203. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/.bundled.racc-1.8.1.gemspec +0 -26
  204. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +0 -22
  205. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +0 -56
  206. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +0 -846
  207. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
  208. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +0 -60
  209. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +0 -5
  210. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +0 -320
  211. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +0 -218
  212. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +0 -219
  213. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +0 -99
  214. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +0 -36
  215. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +0 -348
  216. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +0 -10
  217. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +0 -125
  218. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +0 -414
  219. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
  220. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
  221. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
  222. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
  223. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
  224. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
  225. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
  226. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
  227. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
  228. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
  229. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
  230. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
  231. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
  232. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
  233. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
  234. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +0 -6
  235. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/racc-1.8.1.gemspec +0 -26
  236. package/lib/ruby/gems/3.4.0/gems/rake-13.2.1/rake.gemspec +0 -101
  237. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.bundled.rbs-3.8.0.gemspec +0 -25
  238. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.rubocop.yml +0 -53
  239. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +0 -22
  240. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +0 -1854
  241. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +0 -56
  242. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +0 -203
  243. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +0 -415
  244. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +0 -44
  245. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +0 -311
  246. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +0 -4062
  247. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +0 -375
  248. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +0 -150
  249. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +0 -277
  250. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +0 -220
  251. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +0 -171
  252. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +0 -786
  253. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +0 -96
  254. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +0 -415
  255. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +0 -981
  256. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +0 -1371
  257. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +0 -2405
  258. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +0 -92
  259. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +0 -630
  260. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +0 -6
  261. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +0 -673
  262. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +0 -760
  263. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +0 -376
  264. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +0 -82
  265. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +0 -550
  266. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +0 -11
  267. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +0 -2936
  268. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +0 -331
  269. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +0 -1151
  270. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +0 -644
  271. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +0 -184
  272. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +0 -1861
  273. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +0 -1413
  274. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +0 -984
  275. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +0 -70
  276. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +0 -3402
  277. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +0 -3054
  278. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +0 -207
  279. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +0 -635
  280. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +0 -729
  281. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +0 -386
  282. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +0 -1704
  283. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +0 -209
  284. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +0 -818
  285. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +0 -110
  286. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +0 -166
  287. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +0 -190
  288. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +0 -868
  289. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +0 -2296
  290. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +0 -1065
  291. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +0 -237
  292. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +0 -1107
  293. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +0 -531
  294. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +0 -88
  295. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +0 -1229
  296. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +0 -1209
  297. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +0 -293
  298. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +0 -59
  299. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +0 -1928
  300. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +0 -765
  301. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +0 -6
  302. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +0 -38
  303. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +0 -6
  304. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +0 -176
  305. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +0 -15
  306. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +0 -6
  307. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +0 -7
  308. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +0 -49
  309. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +0 -148
  310. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +0 -1171
  311. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +0 -15
  312. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +0 -23
  313. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +0 -5
  314. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +0 -10
  315. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +0 -294
  316. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +0 -621
  317. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +0 -100
  318. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +0 -3583
  319. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +0 -667
  320. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +0 -475
  321. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +0 -1765
  322. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +0 -79
  323. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +0 -1762
  324. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +0 -477
  325. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +0 -98
  326. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +0 -329
  327. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +0 -87
  328. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +0 -106
  329. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +0 -110
  330. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +0 -192
  331. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +0 -86
  332. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +0 -57
  333. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +0 -309
  334. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +0 -125
  335. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +0 -167
  336. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +0 -147
  337. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +0 -905
  338. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +0 -17
  339. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +0 -7
  340. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +0 -91
  341. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +0 -82
  342. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +0 -72
  343. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +0 -7
  344. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +0 -92
  345. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +0 -199
  346. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +0 -92
  347. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +0 -400
  348. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +0 -131
  349. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +0 -8
  350. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +0 -29
  351. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +0 -29
  352. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +0 -467
  353. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +0 -39
  354. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +0 -449
  355. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +0 -225
  356. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +0 -137
  357. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +0 -67
  358. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +0 -58
  359. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +0 -48
  360. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +0 -83
  361. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +0 -356
  362. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +0 -1223
  363. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +0 -38
  364. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +0 -92
  365. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +0 -223
  366. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +0 -81
  367. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +0 -32
  368. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +0 -14
  369. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +0 -258
  370. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +0 -81
  371. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +0 -48
  372. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +0 -50
  373. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +0 -38
  374. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +0 -16
  375. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +0 -28
  376. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +0 -395
  377. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +0 -620
  378. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +0 -254
  379. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +0 -841
  380. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +0 -125
  381. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +0 -77
  382. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +0 -818
  383. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +0 -173
  384. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +0 -155
  385. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +0 -600
  386. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +0 -18
  387. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +0 -28
  388. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +0 -138
  389. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +0 -241
  390. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +0 -141
  391. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +0 -125
  392. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +0 -15
  393. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +0 -23
  394. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +0 -77
  395. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +0 -140
  396. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +0 -99
  397. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +0 -840
  398. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +0 -641
  399. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +0 -59
  400. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +0 -19
  401. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +0 -279
  402. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +0 -667
  403. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +0 -127
  404. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +0 -219
  405. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +0 -91
  406. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +0 -198
  407. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +0 -83
  408. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +0 -201
  409. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +0 -80
  410. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +0 -30
  411. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +0 -212
  412. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +0 -19
  413. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +0 -84
  414. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +0 -50
  415. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +0 -167
  416. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +0 -433
  417. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +0 -112
  418. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +0 -100
  419. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +0 -126
  420. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +0 -109
  421. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +0 -1557
  422. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +0 -176
  423. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +0 -136
  424. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +0 -341
  425. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +0 -143
  426. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +0 -6
  427. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +0 -182
  428. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +0 -189
  429. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +0 -71
  430. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +0 -5
  431. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +0 -419
  432. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +0 -93
  433. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +0 -20
  434. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +0 -163
  435. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs-3.8.0.gemspec +0 -29
  436. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs.gemspec +0 -49
  437. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +0 -14
  438. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +0 -26
  439. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +0 -326
  440. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +0 -87
  441. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +0 -56
  442. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +0 -266
  443. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +0 -50
  444. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +0 -36
  445. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +0 -317
  446. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +0 -163
  447. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +0 -60
  448. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +0 -102
  449. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +0 -24
  450. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +0 -82
  451. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +0 -30
  452. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +0 -27
  453. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +0 -32
  454. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +0 -44
  455. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +0 -15
  456. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +0 -21
  457. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +0 -43
  458. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +0 -87
  459. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +0 -13
  460. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +0 -74
  461. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +0 -66
  462. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +0 -46
  463. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +0 -17
  464. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +0 -214
  465. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +0 -4
  466. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +0 -26
  467. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +0 -21
  468. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +0 -267
  469. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +0 -173
  470. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +0 -165
  471. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +0 -28
  472. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +0 -61
  473. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +0 -277
  474. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +0 -111
  475. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +0 -65
  476. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +0 -383
  477. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +0 -5
  478. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +0 -28
  479. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +0 -110
  480. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +0 -58
  481. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +0 -7
  482. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +0 -258
  483. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +0 -84
  484. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +0 -58
  485. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +0 -146
  486. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +0 -96
  487. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +0 -27
  488. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +0 -20
  489. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +0 -96
  490. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +0 -75
  491. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +0 -182
  492. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +0 -21
  493. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +0 -67
  494. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +0 -85
  495. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +0 -92
  496. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +0 -34
  497. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +0 -35
  498. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +0 -38
  499. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +0 -5
  500. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +0 -19
  501. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +0 -41
  502. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +0 -48
  503. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +0 -37
  504. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +0 -52
  505. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +0 -9
  506. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +0 -19
  507. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +0 -82
  508. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +0 -53
  509. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +0 -98
  510. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +0 -110
  511. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +0 -79
  512. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +0 -576
  513. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +0 -154
  514. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +0 -28
  515. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +0 -194
  516. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +0 -136
  517. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +0 -35
  518. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +0 -9
  519. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +0 -59
  520. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +0 -87
  521. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +0 -51
  522. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +0 -3
  523. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +0 -47
  524. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +0 -127
  525. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +0 -153
  526. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +0 -793
  527. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +0 -66
  528. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +0 -26
  529. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +0 -355
  530. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +0 -452
  531. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +0 -1629
  532. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +0 -119
  533. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +0 -2
  534. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +0 -1285
  535. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +0 -3
  536. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +0 -263
  537. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +0 -3776
  538. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +0 -3
  539. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +0 -1585
  540. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +0 -616
  541. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +0 -26
  542. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +0 -421
  543. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +0 -184
  544. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +0 -47
  545. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +0 -96
  546. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +0 -343
  547. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +0 -577
  548. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +0 -532
  549. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +0 -865
  550. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +0 -1734
  551. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +0 -49
  552. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +0 -268
  553. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +0 -414
  554. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +0 -428
  555. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +0 -1914
  556. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +0 -166
  557. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +0 -45
  558. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +0 -100
  559. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +0 -796
  560. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +0 -2
  561. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +0 -17
  562. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +0 -34
  563. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +0 -42
  564. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +0 -52
  565. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +0 -17
  566. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +0 -590
  567. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +0 -23
  568. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +0 -102
  569. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +0 -259
  570. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +0 -25
  571. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +0 -13
  572. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +0 -3
  573. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +0 -2
  574. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +0 -21
  575. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +0 -64
  576. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +0 -64
  577. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +0 -46
  578. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +0 -5
  579. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +0 -3
  580. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +0 -2
  581. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +0 -62
  582. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +0 -19
  583. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +0 -11
  584. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +0 -53
  585. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +0 -5
  586. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +0 -28
  587. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +0 -163
  588. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +0 -6
  589. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +0 -48
  590. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +0 -129
  591. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +0 -11
  592. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +0 -81
  593. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +0 -18
  594. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +0 -92
  595. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +0 -69
  596. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +0 -12
  597. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +0 -6
  598. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +0 -3
  599. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +0 -4
  600. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +0 -115
  601. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +0 -354
  602. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +0 -104
  603. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +0 -3
  604. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +0 -5552
  605. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +0 -2
  606. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +0 -56
  607. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +0 -2
  608. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +0 -55
  609. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +0 -402
  610. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +0 -487
  611. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +0 -217
  612. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +0 -4
  613. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +0 -393
  614. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +0 -147
  615. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +0 -3
  616. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +0 -12113
  617. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +0 -1725
  618. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +0 -1406
  619. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +0 -2
  620. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +0 -300
  621. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +0 -383
  622. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +0 -603
  623. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +0 -12
  624. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +0 -237
  625. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +0 -3
  626. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +0 -402
  627. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +0 -59
  628. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +0 -237
  629. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +0 -51
  630. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +0 -59
  631. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +0 -153
  632. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +0 -117
  633. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +0 -56
  634. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +0 -391
  635. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +0 -17
  636. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +0 -48
  637. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +0 -97
  638. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +0 -3
  639. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +0 -1830
  640. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +0 -1648
  641. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +0 -62
  642. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +0 -229
  643. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +0 -131
  644. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +0 -666
  645. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +0 -590
  646. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +0 -2295
  647. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +0 -92
  648. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +0 -4157
  649. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +0 -5
  650. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +0 -192
  651. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +0 -79
  652. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +0 -133
  653. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +0 -169
  654. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +0 -170
  655. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +0 -567
  656. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +0 -1627
  657. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +0 -479
  658. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +0 -432
  659. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +0 -81
  660. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +0 -69
  661. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +0 -5
  662. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +0 -20
  663. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +0 -409
  664. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +0 -582
  665. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +0 -118
  666. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +0 -13
  667. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +0 -1108
  668. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +0 -104
  669. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +0 -14
  670. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +0 -230
  671. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +0 -14
  672. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +0 -92
  673. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +0 -189
  674. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +0 -2
  675. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +0 -13
  676. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +0 -9
  677. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +0 -2
  678. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +0 -1
  679. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +0 -10
  680. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +0 -10
  681. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +0 -210
  682. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +0 -20
  683. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +0 -12
  684. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +0 -23
  685. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +0 -12
  686. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +0 -11
  687. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +0 -156
  688. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +0 -293
  689. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +0 -166
  690. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +0 -180
  691. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +0 -10
  692. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +0 -13
  693. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +0 -11
  694. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +0 -11
  695. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +0 -11
  696. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +0 -449
  697. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +0 -200
  698. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +0 -20
  699. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +0 -10
  700. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +0 -36
  701. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +0 -27
  702. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +0 -122
  703. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/resolv-replace.gemspec +0 -22
  704. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/rinda.gemspec +0 -35
  705. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/.bundled.syslog-0.2.0.gemspec +0 -23
  706. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +0 -5
  707. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +0 -22
  708. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +0 -41
  709. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +0 -20
  710. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +0 -14
  711. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +0 -8
  712. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +0 -209
  713. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +0 -10
  714. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog-0.2.0.gemspec +0 -23
  715. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog.gemspec +0 -26
  716. package/lib/ruby/gems/3.4.0/gems/typeprof-0.30.1/typeprof.gemspec +0 -32
  717. package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +0 -50
  718. package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +0 -33
  719. package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +0 -43
  720. package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +0 -26
  721. package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +0 -49
  722. package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +0 -26
@@ -1,1627 +0,0 @@
1
- # <!-- rdoc-file=ext/strscan/strscan.c -->
2
- # Class `StringScanner` supports processing a stored string as a stream;
3
- # this code creates a new `StringScanner` object with string `'foobarbaz'`:
4
- # require 'strscan'
5
- # scanner = StringScanner.new('foobarbaz')
6
- #
7
- # ## About the Examples
8
- # All examples here assume that `StringScanner` has been required:
9
- # require 'strscan'
10
- #
11
- # Some examples here assume that these constants are defined:
12
- # MULTILINE_TEXT = <<~EOT
13
- # Go placidly amid the noise and haste,
14
- # and remember what peace there may be in silence.
15
- # EOT
16
- #
17
- # HIRAGANA_TEXT = 'こんにちは'
18
- #
19
- # ENGLISH_TEXT = 'Hello'
20
- #
21
- # Some examples here assume that certain helper methods are defined:
22
- # * `put_situation(scanner)`:
23
- # Displays the values of the scanner's
24
- # methods #pos, #charpos, #rest, and #rest_size.
25
- # * `put_match_values(scanner)`:
26
- # Displays the scanner's [match
27
- # values](rdoc-ref:StringScanner@Match+Values).
28
- # * `match_values_cleared?(scanner)`:
29
- # Returns whether the scanner's [match
30
- # values](rdoc-ref:StringScanner@Match+Values) are cleared.
31
- # See examples [[here]](ext/strscan/helper_methods_md.html).
32
- # ## The `StringScanner` Object
33
- # This code creates a `StringScanner` object
34
- # (we'll call it simply a *scanner*),
35
- # and shows some of its basic properties:
36
- # scanner = StringScanner.new('foobarbaz')
37
- # scanner.string # => "foobarbaz"
38
- # put_situation(scanner)
39
- # # Situation:
40
- # # pos: 0
41
- # # charpos: 0
42
- # # rest: "foobarbaz"
43
- # # rest_size: 9
44
- #
45
- # The scanner has:
46
- # * A *stored string*, which is:
47
- # * Initially set by StringScanner.new(string) to the given `string`
48
- # (`'foobarbaz'` in the example above).
49
- # * Modifiable by methods #string=(new_string) and #concat(more_string).
50
- # * Returned by method #string.
51
- # More at [Stored String](rdoc-ref:StringScanner@Stored+String) below.
52
- # * A *position*;
53
- # a zero-based index into the bytes of the stored string (*not* into its
54
- # characters):
55
- # * Initially set by StringScanner.new to `0`.
56
- # * Returned by method #pos.
57
- # * Modifiable explicitly by methods #reset, #terminate, and
58
- # #pos=(new_pos).
59
- # * Modifiable implicitly (various traversing methods, among others).
60
- # More at [Byte
61
- # Position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) below.
62
- # * A *target substring*,
63
- # which is a trailing substring of the stored string;
64
- # it extends from the current position to the end of the stored string:
65
- # * Initially set by StringScanner.new(string) to the given `string`
66
- # (`'foobarbaz'` in the example above).
67
- # * Returned by method #rest.
68
- # * Modified by any modification to either the stored string or the
69
- # position.
70
- # **Most importantly**:
71
- # the searching and traversing methods operate on the target substring,
72
- # which may be (and often is) less than the entire stored string.
73
- # More at [Target Substring](rdoc-ref:StringScanner@Target+Substring) below.
74
- # ## Stored String
75
- # The *stored string* is the string stored in the `StringScanner` object.
76
- # Each of these methods sets, modifies, or returns the stored string:
77
- # Method | Effect
78
- # --------------------|-----------------------------------------------
79
- # ::new(string) | Creates a new scanner for the given string.
80
- # #string=(new_string)| Replaces the existing stored string.
81
- # #concat(more_string)|Appends a string to the existing stored string.
82
- # #string | Returns the stored string.
83
- # ## Positions
84
- # A `StringScanner` object maintains a zero-based *byte position*
85
- # and a zero-based *character position*.
86
- # Each of these methods explicitly sets positions:
87
- # Method | Effect
88
- # ------------------------|--------------------------------------------------------
89
- # #reset |Sets both positions to zero (begining of stored string).
90
- # #terminate | Sets both positions to the end of the stored string.
91
- # #pos=(new_byte_position)| Sets byte position; adjusts character position.
92
- # ### Byte Position (Position)
93
- # The byte position (or simply *position*)
94
- # is a zero-based index into the bytes in the scanner's stored string;
95
- # for a new `StringScanner` object, the byte position is zero.
96
- # When the byte position is:
97
- # * Zero (at the beginning), the target substring is the entire stored string.
98
- # * Equal to the size of the stored string (at the end),
99
- # the target substring is the empty string `''`.
100
- # To get or set the byte position:
101
- # * #pos: returns the byte position.
102
- # * #pos=(new_pos): sets the byte position.
103
- # Many methods use the byte position as the basis for finding matches;
104
- # many others set, increment, or decrement the byte position:
105
- # scanner = StringScanner.new('foobar')
106
- # scanner.pos # => 0
107
- # scanner.scan(/foo/) # => "foo" # Match found.
108
- # scanner.pos # => 3 # Byte position incremented.
109
- # scanner.scan(/foo/) # => nil # Match not found.
110
- # scanner.pos # => 3 # Byte position not changed.
111
- #
112
- # Some methods implicitly modify the byte position;
113
- # see:
114
- # * [Setting the Target
115
- # Substring](rdoc-ref:StringScanner@Setting+the+Target+Substring).
116
- # * [Traversing the Target
117
- # Substring](rdoc-ref:StringScanner@Traversing+the+Target+Substring).
118
- # The values of these methods are derived directly from the values of #pos and
119
- # #string:
120
- # * #charpos: the [character
121
- # position](rdoc-ref:StringScanner@Character+Position).
122
- # * #rest: the [target substring](rdoc-ref:StringScanner@Target+Substring).
123
- # * #rest_size: `rest.size`.
124
- # ### Character Position
125
- # The character position is a zero-based index into the *characters*
126
- # in the stored string;
127
- # for a new `StringScanner` object, the character position is zero.
128
- # Method #charpos returns the character position;
129
- # its value may not be reset explicitly.
130
- # Some methods change (increment or reset) the character position;
131
- # see:
132
- # * [Setting the Target
133
- # Substring](rdoc-ref:StringScanner@Setting+the+Target+Substring).
134
- # * [Traversing the Target
135
- # Substring](rdoc-ref:StringScanner@Traversing+the+Target+Substring).
136
- # Example (string includes multi-byte characters):
137
- # scanner = StringScanner.new(ENGLISH_TEXT) # Five 1-byte characters.
138
- # scanner.concat(HIRAGANA_TEXT) # Five 3-byte characters
139
- # scanner.string # => "Helloこんにちは" # Twenty bytes in all.
140
- # put_situation(scanner)
141
- # # Situation:
142
- # # pos: 0
143
- # # charpos: 0
144
- # # rest: "Helloこんにちは"
145
- # # rest_size: 20
146
- # scanner.scan(/Hello/) # => "Hello" # Five 1-byte characters.
147
- # put_situation(scanner)
148
- # # Situation:
149
- # # pos: 5
150
- # # charpos: 5
151
- # # rest: "こんにちは"
152
- # # rest_size: 15
153
- # scanner.getch # => "こ" # One 3-byte character.
154
- # put_situation(scanner)
155
- # # Situation:
156
- # # pos: 8
157
- # # charpos: 6
158
- # # rest: "んにちは"
159
- # # rest_size: 12
160
- #
161
- # ## Target Substring
162
- # The target substring is the the part of the [stored
163
- # string](rdoc-ref:StringScanner@Stored+String)
164
- # that extends from the current [byte
165
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) to the end of
166
- # the stored string;
167
- # it is always either:
168
- # * The entire stored string (byte position is zero).
169
- # * A trailing substring of the stored string (byte position positive).
170
- # The target substring is returned by method #rest,
171
- # and its size is returned by method #rest_size.
172
- # Examples:
173
- # scanner = StringScanner.new('foobarbaz')
174
- # put_situation(scanner)
175
- # # Situation:
176
- # # pos: 0
177
- # # charpos: 0
178
- # # rest: "foobarbaz"
179
- # # rest_size: 9
180
- # scanner.pos = 3
181
- # put_situation(scanner)
182
- # # Situation:
183
- # # pos: 3
184
- # # charpos: 3
185
- # # rest: "barbaz"
186
- # # rest_size: 6
187
- # scanner.pos = 9
188
- # put_situation(scanner)
189
- # # Situation:
190
- # # pos: 9
191
- # # charpos: 9
192
- # # rest: ""
193
- # # rest_size: 0
194
- #
195
- # ### Setting the Target Substring
196
- # The target substring is set whenever:
197
- # * The [stored string](rdoc-ref:StringScanner@Stored+String) is set (position
198
- # reset to zero; target substring set to stored string).
199
- # * The [byte position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
200
- # is set (target substring adjusted accordingly).
201
- # ### Querying the Target Substring
202
- # This table summarizes (details and examples at the links):
203
- # Method | Returns
204
- # ----------|---------------------------------
205
- # #rest | Target substring.
206
- # #rest_size|Size (bytes) of target substring.
207
- # ### Searching the Target Substring
208
- # A *search* method examines the target substring,
209
- # but does not advance the [positions](rdoc-ref:StringScanner@Positions)
210
- # or (by implication) shorten the target substring.
211
- # This table summarizes (details and examples at the links):
212
- # Method | Returns |Sets Match Values?
213
- # ---------------------|---------------------------------------------|------------------
214
- # #check(pattern) | Matched leading substring or +nil+. | Yes.
215
- # #check_until(pattern)| Matched substring (anywhere) or +nil+. | Yes.
216
- # #exist?(pattern) | Matched substring (anywhere) end index. | Yes.
217
- # #match?(pattern) | Size of matched leading substring or +nil+. | Yes.
218
- # #peek(size) | Leading substring of given length (bytes). | No.
219
- # #peek_byte | Integer leading byte or +nil+. | No.
220
- # #rest |Target substring (from byte position to end).| No.
221
- # ### Traversing the Target Substring
222
- # A *traversal* method examines the target substring,
223
- # and, if successful:
224
- # * Advances the [positions](rdoc-ref:StringScanner@Positions).
225
- # * Shortens the target substring.
226
- # This table summarizes (details and examples at links):
227
- # Method | Returns |Sets Match Values?
228
- # --------------------|----------------------------------------------------|------------------
229
- # #get_byte | Leading byte or +nil+. | No.
230
- # #getch | Leading character or +nil+. | No.
231
- # #scan(pattern) | Matched leading substring or +nil+. | Yes.
232
- # #scan_byte | Integer leading byte or +nil+. | No.
233
- # #scan_until(pattern)| Matched substring (anywhere) or +nil+. | Yes.
234
- # #skip(pattern) | Matched leading substring size or +nil+. | Yes.
235
- # #skip_until(pattern)|Position delta to end-of-matched-substring or +nil+.| Yes.
236
- # #unscan | +self+. | No.
237
- # ## Querying the Scanner
238
- # Each of these methods queries the scanner object
239
- # without modifying it (details and examples at links)
240
- # Method | Returns
241
- # -------------------|--------------------------------
242
- # #beginning_of_line?| +true+ or +false+.
243
- # #charpos | Character position.
244
- # #eos? | +true+ or +false+.
245
- # #fixed_anchor? | +true+ or +false+.
246
- # #inspect |String representation of +self+.
247
- # #pos | Byte position.
248
- # #rest | Target substring.
249
- # #rest_size | Size of target substring.
250
- # #string | Stored string.
251
- # ## Matching
252
- # `StringScanner` implements pattern matching via Ruby class
253
- # [Regexp](https://docs.ruby-lang.org/en/master/Regexp.html),
254
- # and its matching behaviors are the same as Ruby's
255
- # except for the [fixed-anchor
256
- # property](rdoc-ref:StringScanner@Fixed-Anchor+Property).
257
- # ### Matcher Methods
258
- # Each *matcher method* takes a single argument `pattern`,
259
- # and attempts to find a matching substring in the [target
260
- # substring](rdoc-ref:StringScanner@Target+Substring).
261
- # Method | Pattern Type |Matches Target Substring| Success Return |May Update Positions?
262
- # ------------|-----------------|------------------------|------------------|---------------------
263
- # #check |Regexp or String.| At beginning. |Matched substring.| No.
264
- # #check_until|Regexp or String.| Anywhere. | Substring. | No.
265
- # #match? |Regexp or String.| At beginning. | Match size. | No.
266
- # #exist? |Regexp or String.| Anywhere. | Substring size. | No.
267
- # #scan |Regexp or String.| At beginning. |Matched substring.| Yes.
268
- # #scan_until |Regexp or String.| Anywhere. | Substring. | Yes.
269
- # #skip |Regexp or String.| At beginning. | Match size. | Yes.
270
- # #skip_until |Regexp or String.| Anywhere. | Substring size. | Yes.
271
- #
272
- # Which matcher you choose will depend on:
273
- # * Where you want to find a match:
274
- # * Only at the beginning of the target substring:
275
- # #check, #match?, #scan, #skip.
276
- # * Anywhere in the target substring:
277
- # #check_until, #exist?, #scan_until, #skip_until.
278
- # * Whether you want to:
279
- # * Traverse, by advancing the positions:
280
- # #scan, #scan_until, #skip, #skip_until.
281
- # * Keep the positions unchanged:
282
- # #check, #check_until, #match?, #exist?.
283
- # * What you want for the return value:
284
- # * The matched substring: #check, #scan.
285
- # * The substring: #check_until, #scan_until.
286
- # * The match size: #match?, #skip.
287
- # * The substring size: #exist?, #skip_until.
288
- # ### Match Values
289
- # The *match values* in a `StringScanner` object
290
- # generally contain the results of the most recent attempted match.
291
- # Each match value may be thought of as:
292
- # * *Clear*: Initially, or after an unsuccessful match attempt:
293
- # usually, `false`, `nil`, or `{}`.
294
- # * *Set*: After a successful match attempt:
295
- # `true`, string, array, or hash.
296
- # Each of these methods clears match values:
297
- # * ::new(string).
298
- # * #reset.
299
- # * #terminate.
300
- # Each of these methods attempts a match based on a pattern,
301
- # and either sets match values (if successful) or clears them (if not);
302
- # * #check(pattern)
303
- # * #check_until(pattern)
304
- # * #exist?(pattern)
305
- # * #match?(pattern)
306
- # * #scan(pattern)
307
- # * #scan_until(pattern)
308
- # * #skip(pattern)
309
- # * #skip_until(pattern)
310
- # #### Basic Match Values
311
- # Basic match values are those not related to captures.
312
- # Each of these methods returns a basic match value:
313
- # Method | Return After Match |Return After No Match
314
- # -------------|--------------------------------------|---------------------
315
- # #matched? | +true+. | +false+.
316
- # #matched_size| Size of matched substring. | +nil+.
317
- # #matched | Matched substring. | +nil+.
318
- # #pre_match |Substring preceding matched substring.| +nil+.
319
- # #post_match |Substring following matched substring.| +nil+.
320
- #
321
- # See examples below.
322
- # #### Captured Match Values
323
- # Captured match values are those related to
324
- # [captures](https://docs.ruby-lang.org/en/master/Regexp.html#class-Regexp-label
325
- # -Groups+and+Captures).
326
- # Each of these methods returns a captured match value:
327
- # Method | Return After Match |Return After No Match
328
- # ---------------|---------------------------------------|---------------------
329
- # #size | Count of captured substrings. | +nil+.
330
- # #[](n) | <tt>n</tt>th captured substring. | +nil+.
331
- # #captures | Array of all captured substrings. | +nil+.
332
- # #values_at(*n) |Array of specified captured substrings.| +nil+.
333
- # #named_captures| Hash of named captures. | <tt>{}</tt>.
334
- #
335
- # See examples below.
336
- # #### Match Values Examples
337
- # Successful basic match attempt (no captures):
338
- # scanner = StringScanner.new('foobarbaz')
339
- # scanner.exist?(/bar/)
340
- # put_match_values(scanner)
341
- # # Basic match values:
342
- # # matched?: true
343
- # # matched_size: 3
344
- # # pre_match: "foo"
345
- # # matched : "bar"
346
- # # post_match: "baz"
347
- # # Captured match values:
348
- # # size: 1
349
- # # captures: []
350
- # # named_captures: {}
351
- # # values_at: ["bar", nil]
352
- # # []:
353
- # # [0]: "bar"
354
- # # [1]: nil
355
- #
356
- # Failed basic match attempt (no captures);
357
- # scanner = StringScanner.new('foobarbaz')
358
- # scanner.exist?(/nope/)
359
- # match_values_cleared?(scanner) # => true
360
- #
361
- # Successful unnamed capture match attempt:
362
- # scanner = StringScanner.new('foobarbazbatbam')
363
- # scanner.exist?(/(foo)bar(baz)bat(bam)/)
364
- # put_match_values(scanner)
365
- # # Basic match values:
366
- # # matched?: true
367
- # # matched_size: 15
368
- # # pre_match: ""
369
- # # matched : "foobarbazbatbam"
370
- # # post_match: ""
371
- # # Captured match values:
372
- # # size: 4
373
- # # captures: ["foo", "baz", "bam"]
374
- # # named_captures: {}
375
- # # values_at: ["foobarbazbatbam", "foo", "baz", "bam", nil]
376
- # # []:
377
- # # [0]: "foobarbazbatbam"
378
- # # [1]: "foo"
379
- # # [2]: "baz"
380
- # # [3]: "bam"
381
- # # [4]: nil
382
- #
383
- # Successful named capture match attempt;
384
- # same as unnamed above, except for #named_captures:
385
- # scanner = StringScanner.new('foobarbazbatbam')
386
- # scanner.exist?(/(?<x>foo)bar(?<y>baz)bat(?<z>bam)/)
387
- # scanner.named_captures # => {"x"=>"foo", "y"=>"baz", "z"=>"bam"}
388
- #
389
- # Failed unnamed capture match attempt:
390
- # scanner = StringScanner.new('somestring')
391
- # scanner.exist?(/(foo)bar(baz)bat(bam)/)
392
- # match_values_cleared?(scanner) # => true
393
- #
394
- # Failed named capture match attempt;
395
- # same as unnamed above, except for #named_captures:
396
- # scanner = StringScanner.new('somestring')
397
- # scanner.exist?(/(?<x>foo)bar(?<y>baz)bat(?<z>bam)/)
398
- # match_values_cleared?(scanner) # => false
399
- # scanner.named_captures # => {"x"=>nil, "y"=>nil, "z"=>nil}
400
- #
401
- # ## Fixed-Anchor Property
402
- # Pattern matching in `StringScanner` is the same as in Ruby's,
403
- # except for its fixed-anchor property,
404
- # which determines the meaning of `'\A'`:
405
- # * `false` (the default): matches the current byte position.
406
- # scanner = StringScanner.new('foobar')
407
- # scanner.scan(/\A./) # => "f"
408
- # scanner.scan(/\A./) # => "o"
409
- # scanner.scan(/\A./) # => "o"
410
- # scanner.scan(/\A./) # => "b"
411
- #
412
- # * `true`: matches the beginning of the target substring;
413
- # never matches unless the byte position is zero:
414
- # scanner = StringScanner.new('foobar', fixed_anchor: true)
415
- # scanner.scan(/\A./) # => "f"
416
- # scanner.scan(/\A./) # => nil
417
- # scanner.reset
418
- # scanner.scan(/\A./) # => "f"
419
- #
420
- # The fixed-anchor property is set when the `StringScanner` object is created,
421
- # and may not be modified
422
- # (see StringScanner.new);
423
- # method #fixed_anchor? returns the setting.
424
- #
425
- class StringScanner
426
- # <!--
427
- # rdoc-file=ext/strscan/strscan.c
428
- # - StringScanner.must_C_version
429
- # -->
430
- # This method is defined for backward compatibility.
431
- #
432
- def self.must_C_version: () -> self
433
-
434
- # <!-- rdoc-file=ext/strscan/strscan.c -->
435
- # * Appends the given `more_string`
436
- # to the [stored string](rdoc-ref:StringScanner@Stored+String).
437
- # * Returns `self`.
438
- # * Does not affect the [positions](rdoc-ref:StringScanner@Positions)
439
- # or [match values](rdoc-ref:StringScanner@Match+Values).
440
- # scanner = StringScanner.new('foo')
441
- # scanner.string # => "foo"
442
- # scanner.terminate
443
- # scanner.concat('barbaz') # => #<StringScanner 3/9 "foo" @ "barba...">
444
- # scanner.string # => "foobarbaz"
445
- # put_situation(scanner)
446
- # # Situation:
447
- # # pos: 3
448
- # # charpos: 3
449
- # # rest: "barbaz"
450
- # # rest_size: 6
451
- #
452
- def <<: (String) -> self
453
-
454
- # <!--
455
- # rdoc-file=ext/strscan/strscan.c
456
- # - [](specifier) -> substring or nil
457
- # -->
458
- # Returns a captured substring or `nil`;
459
- # see [Captured Match Values](rdoc-ref:StringScanner@Captured+Match+Values).
460
- # When there are captures:
461
- # scanner = StringScanner.new('Fri Dec 12 1975 14:39')
462
- # scanner.scan(/(?<wday>\w+) (?<month>\w+) (?<day>\d+) /)
463
- #
464
- # * `specifier` zero: returns the entire matched substring:
465
- # scanner[0] # => "Fri Dec 12 "
466
- # scanner.pre_match # => ""
467
- # scanner.post_match # => "1975 14:39"
468
- #
469
- # * `specifier` positive integer. returns the `n`th capture, or `nil` if out
470
- # of range:
471
- # scanner[1] # => "Fri"
472
- # scanner[2] # => "Dec"
473
- # scanner[3] # => "12"
474
- # scanner[4] # => nil
475
- #
476
- # * `specifier` negative integer. counts backward from the last subgroup:
477
- # scanner[-1] # => "12"
478
- # scanner[-4] # => "Fri Dec 12 "
479
- # scanner[-5] # => nil
480
- #
481
- # * `specifier` symbol or string. returns the named subgroup, or `nil` if no
482
- # such:
483
- # scanner[:wday] # => "Fri"
484
- # scanner['wday'] # => "Fri"
485
- # scanner[:month] # => "Dec"
486
- # scanner[:day] # => "12"
487
- # scanner[:nope] # => nil
488
- #
489
- # When there are no captures, only `[0]` returns non-`nil`:
490
- # scanner = StringScanner.new('foobarbaz')
491
- # scanner.exist?(/bar/)
492
- # scanner[0] # => "bar"
493
- # scanner[1] # => nil
494
- #
495
- # For a failed match, even `[0]` returns `nil`:
496
- # scanner.scan(/nope/) # => nil
497
- # scanner[0] # => nil
498
- # scanner[1] # => nil
499
- #
500
- def []: (Integer) -> String?
501
-
502
- # <!--
503
- # rdoc-file=ext/strscan/strscan.c
504
- # - beginning_of_line? -> true or false
505
- # -->
506
- # Returns whether the
507
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) is at the
508
- # beginning of a line;
509
- # that is, at the beginning of the [stored
510
- # string](rdoc-ref:StringScanner@Stored+String)
511
- # or immediately after a newline:
512
- # scanner = StringScanner.new(MULTILINE_TEXT)
513
- # scanner.string
514
- # # => "Go placidly amid the noise and haste,\nand remember what peace there may be in silence.\n"
515
- # scanner.pos # => 0
516
- # scanner.beginning_of_line? # => true
517
- #
518
- # scanner.scan_until(/,/) # => "Go placidly amid the noise and haste,"
519
- # scanner.beginning_of_line? # => false
520
- #
521
- # scanner.scan(/\n/) # => "\n"
522
- # scanner.beginning_of_line? # => true
523
- #
524
- # scanner.terminate
525
- # scanner.beginning_of_line? # => true
526
- #
527
- # scanner.concat('x')
528
- # scanner.terminate
529
- # scanner.beginning_of_line? # => false
530
- #
531
- # StringScanner#bol? is an alias for StringScanner#beginning_of_line?.
532
- #
533
- def beginning_of_line?: () -> bool
534
-
535
- alias bol? beginning_of_line?
536
-
537
- # <!--
538
- # rdoc-file=ext/strscan/strscan.c
539
- # - captures -> substring_array or nil
540
- # -->
541
- # Returns the array of [captured match
542
- # values](rdoc-ref:StringScanner@Captured+Match+Values) at indexes `(1..)`
543
- # if the most recent match attempt succeeded, or `nil` otherwise:
544
- # scanner = StringScanner.new('Fri Dec 12 1975 14:39')
545
- # scanner.captures # => nil
546
- #
547
- # scanner.exist?(/(?<wday>\w+) (?<month>\w+) (?<day>\d+) /)
548
- # scanner.captures # => ["Fri", "Dec", "12"]
549
- # scanner.values_at(*0..4) # => ["Fri Dec 12 ", "Fri", "Dec", "12", nil]
550
- #
551
- # scanner.exist?(/Fri/)
552
- # scanner.captures # => []
553
- #
554
- # scanner.scan(/nope/)
555
- # scanner.captures # => nil
556
- #
557
- def captures: () -> Array[String]?
558
-
559
- # <!--
560
- # rdoc-file=ext/strscan/strscan.c
561
- # - charpos()
562
- # -->
563
- # call-seq:
564
- # charpos -> character_position
565
- # Returns the [character position](rdoc-ref:StringScanner@Character+Position)
566
- # (initially zero),
567
- # which may be different from the [byte
568
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
569
- # given by method #pos:
570
- # scanner = StringScanner.new(HIRAGANA_TEXT)
571
- # scanner.string # => "こんにちは"
572
- # scanner.getch # => "こ" # 3-byte character.
573
- # scanner.getch # => "ん" # 3-byte character.
574
- # put_situation(scanner)
575
- # # Situation:
576
- # # pos: 6
577
- # # charpos: 2
578
- # # rest: "にちは"
579
- # # rest_size: 9
580
- #
581
- def charpos: () -> Integer
582
-
583
- # <!--
584
- # rdoc-file=ext/strscan/strscan.c
585
- # - check(pattern) -> matched_substring or nil
586
- # -->
587
- # Attempts to [match](rdoc-ref:StringScanner@Matching) the given `pattern`
588
- # at the beginning of the [target
589
- # substring](rdoc-ref:StringScanner@Target+Substring);
590
- # does not modify the [positions](rdoc-ref:StringScanner@Positions).
591
- # If the match succeeds:
592
- # * Returns the matched substring.
593
- # * Sets all [match values](rdoc-ref:StringScanner@Match+Values).
594
- # scanner = StringScanner.new('foobarbaz')
595
- # scanner.pos = 3
596
- # scanner.check('bar') # => "bar"
597
- # put_match_values(scanner)
598
- # # Basic match values:
599
- # # matched?: true
600
- # # matched_size: 3
601
- # # pre_match: "foo"
602
- # # matched : "bar"
603
- # # post_match: "baz"
604
- # # Captured match values:
605
- # # size: 1
606
- # # captures: []
607
- # # named_captures: {}
608
- # # values_at: ["bar", nil]
609
- # # []:
610
- # # [0]: "bar"
611
- # # [1]: nil
612
- # # => 0..1
613
- # put_situation(scanner)
614
- # # Situation:
615
- # # pos: 3
616
- # # charpos: 3
617
- # # rest: "barbaz"
618
- # # rest_size: 6
619
- #
620
- # If the match fails:
621
- # * Returns `nil`.
622
- # * Clears all [match values](rdoc-ref:StringScanner@Match+Values).
623
- # scanner.check(/nope/) # => nil
624
- # match_values_cleared?(scanner) # => true
625
- #
626
- def check: (Regexp) -> String?
627
-
628
- # <!--
629
- # rdoc-file=ext/strscan/strscan.c
630
- # - check_until(pattern) -> substring or nil
631
- # -->
632
- # Attempts to [match](rdoc-ref:StringScanner@Matching) the given `pattern`
633
- # anywhere (at any
634
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29))
635
- # in the [target substring](rdoc-ref:StringScanner@Target+Substring);
636
- # does not modify the [positions](rdoc-ref:StringScanner@Positions).
637
- # If the match succeeds:
638
- # * Sets all [match values](rdoc-ref:StringScanner@Match+Values).
639
- # * Returns the matched substring,
640
- # which extends from the current
641
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
642
- # to the end of the matched substring.
643
- # scanner = StringScanner.new('foobarbazbatbam')
644
- # scanner.pos = 6
645
- # scanner.check_until(/bat/) # => "bazbat"
646
- # put_match_values(scanner)
647
- # # Basic match values:
648
- # # matched?: true
649
- # # matched_size: 3
650
- # # pre_match: "foobarbaz"
651
- # # matched : "bat"
652
- # # post_match: "bam"
653
- # # Captured match values:
654
- # # size: 1
655
- # # captures: []
656
- # # named_captures: {}
657
- # # values_at: ["bat", nil]
658
- # # []:
659
- # # [0]: "bat"
660
- # # [1]: nil
661
- # put_situation(scanner)
662
- # # Situation:
663
- # # pos: 6
664
- # # charpos: 6
665
- # # rest: "bazbatbam"
666
- # # rest_size: 9
667
- #
668
- # If the match fails:
669
- # * Clears all [match values](rdoc-ref:StringScanner@Match+Values).
670
- # * Returns `nil`.
671
- # scanner.check_until(/nope/) # => nil
672
- # match_values_cleared?(scanner) # => true
673
- #
674
- def check_until: (Regexp) -> String
675
-
676
- # <!--
677
- # rdoc-file=ext/strscan/strscan.c
678
- # - clear()
679
- # -->
680
- # Equivalent to #terminate. This method is obsolete; use #terminate instead.
681
- #
682
- def clear: () -> void
683
-
684
- # <!--
685
- # rdoc-file=ext/strscan/strscan.c
686
- # - concat(more_string) -> self
687
- # -->
688
- # * Appends the given `more_string`
689
- # to the [stored string](rdoc-ref:StringScanner@Stored+String).
690
- # * Returns `self`.
691
- # * Does not affect the [positions](rdoc-ref:StringScanner@Positions)
692
- # or [match values](rdoc-ref:StringScanner@Match+Values).
693
- # scanner = StringScanner.new('foo')
694
- # scanner.string # => "foo"
695
- # scanner.terminate
696
- # scanner.concat('barbaz') # => #<StringScanner 3/9 "foo" @ "barba...">
697
- # scanner.string # => "foobarbaz"
698
- # put_situation(scanner)
699
- # # Situation:
700
- # # pos: 3
701
- # # charpos: 3
702
- # # rest: "barbaz"
703
- # # rest_size: 6
704
- #
705
- alias concat <<
706
-
707
- # <!--
708
- # rdoc-file=ext/strscan/strscan.c
709
- # - empty?()
710
- # -->
711
- # Equivalent to #eos?. This method is obsolete, use #eos? instead.
712
- #
713
- def empty?: () -> bool
714
-
715
- # <!--
716
- # rdoc-file=ext/strscan/strscan.c
717
- # - eos? -> true or false
718
- # -->
719
- # Returns whether the
720
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
721
- # is at the end of the [stored string](rdoc-ref:StringScanner@Stored+String):
722
- # scanner = StringScanner.new('foobarbaz')
723
- # scanner.eos? # => false
724
- # pos = 3
725
- # scanner.eos? # => false
726
- # scanner.terminate
727
- # scanner.eos? # => true
728
- #
729
- def eos?: () -> bool
730
-
731
- # <!--
732
- # rdoc-file=ext/strscan/strscan.c
733
- # - exist?(pattern) -> byte_offset or nil
734
- # -->
735
- # Attempts to [match](rdoc-ref:StringScanner@Matching) the given `pattern`
736
- # anywhere (at any
737
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29))
738
- # n the [target substring](rdoc-ref:StringScanner@Target+Substring);
739
- # does not modify the [positions](rdoc-ref:StringScanner@Positions).
740
- # If the match succeeds:
741
- # * Returns a byte offset:
742
- # the distance in bytes between the current
743
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
744
- # and the end of the matched substring.
745
- # * Sets all [match values](rdoc-ref:StringScanner@Match+Values).
746
- # scanner = StringScanner.new('foobarbazbatbam')
747
- # scanner.pos = 6
748
- # scanner.exist?(/bat/) # => 6
749
- # put_match_values(scanner)
750
- # # Basic match values:
751
- # # matched?: true
752
- # # matched_size: 3
753
- # # pre_match: "foobarbaz"
754
- # # matched : "bat"
755
- # # post_match: "bam"
756
- # # Captured match values:
757
- # # size: 1
758
- # # captures: []
759
- # # named_captures: {}
760
- # # values_at: ["bat", nil]
761
- # # []:
762
- # # [0]: "bat"
763
- # # [1]: nil
764
- # put_situation(scanner)
765
- # # Situation:
766
- # # pos: 6
767
- # # charpos: 6
768
- # # rest: "bazbatbam"
769
- # # rest_size: 9
770
- #
771
- # If the match fails:
772
- # * Returns `nil`.
773
- # * Clears all [match values](rdoc-ref:StringScanner@Match+Values).
774
- # scanner.exist?(/nope/) # => nil
775
- # match_values_cleared?(scanner) # => true
776
- #
777
- def exist?: (Regexp) -> Integer?
778
-
779
- # <!--
780
- # rdoc-file=ext/strscan/strscan.c
781
- # - fixed_anchor? -> true or false
782
- # -->
783
- # Returns whether the [fixed-anchor
784
- # property](rdoc-ref:StringScanner@Fixed-Anchor+Property) is set.
785
- #
786
- def fixed_anchor?: () -> bool
787
-
788
- # <!--
789
- # rdoc-file=ext/strscan/strscan.c
790
- # - get_byte()
791
- # -->
792
- # call-seq:
793
- # get_byte -> byte_as_character or nil
794
- # Returns the next byte, if available:
795
- # * If the [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
796
- # is not at the end of the [stored
797
- # string](rdoc-ref:StringScanner@Stored+String):
798
- # * Returns the next byte.
799
- # * Increments the [byte
800
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29).
801
- # * Adjusts the [character
802
- # position](rdoc-ref:StringScanner@Character+Position).
803
- # scanner = StringScanner.new(HIRAGANA_TEXT)
804
- # # => #<StringScanner 0/15 @ "\xE3\x81\x93\xE3\x82...">
805
- # scanner.string # => "こんにちは"
806
- # [scanner.get_byte, scanner.pos, scanner.charpos] # => ["\xE3", 1, 1]
807
- # [scanner.get_byte, scanner.pos, scanner.charpos] # => ["\x81", 2, 2]
808
- # [scanner.get_byte, scanner.pos, scanner.charpos] # => ["\x93", 3, 1]
809
- # [scanner.get_byte, scanner.pos, scanner.charpos] # => ["\xE3", 4, 2]
810
- # [scanner.get_byte, scanner.pos, scanner.charpos] # => ["\x82", 5, 3]
811
- # [scanner.get_byte, scanner.pos, scanner.charpos] # => ["\x93", 6, 2]
812
- #
813
- # * Otherwise, returns `nil`, and does not change the positions.
814
- # scanner.terminate
815
- # [scanner.get_byte, scanner.pos, scanner.charpos] # => [nil, 15, 5]
816
- #
817
- def get_byte: () -> String?
818
-
819
- # <!--
820
- # rdoc-file=ext/strscan/strscan.c
821
- # - getbyte()
822
- # -->
823
- # Equivalent to #get_byte. This method is obsolete; use #get_byte instead.
824
- #
825
- def getbyte: () -> String?
826
-
827
- # <!--
828
- # rdoc-file=ext/strscan/strscan.c
829
- # - getch()
830
- # -->
831
- # call-seq:
832
- # getch -> character or nil
833
- # Returns the next (possibly multibyte) character,
834
- # if available:
835
- # * If the [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
836
- # is at the beginning of a character:
837
- # * Returns the character.
838
- # * Increments the [character
839
- # position](rdoc-ref:StringScanner@Character+Position) by 1.
840
- # * Increments the [byte
841
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
842
- # by the size (in bytes) of the character.
843
- # scanner = StringScanner.new(HIRAGANA_TEXT)
844
- # scanner.string # => "こんにちは"
845
- # [scanner.getch, scanner.pos, scanner.charpos] # => ["こ", 3, 1]
846
- # [scanner.getch, scanner.pos, scanner.charpos] # => ["ん", 6, 2]
847
- # [scanner.getch, scanner.pos, scanner.charpos] # => ["に", 9, 3]
848
- # [scanner.getch, scanner.pos, scanner.charpos] # => ["ち", 12, 4]
849
- # [scanner.getch, scanner.pos, scanner.charpos] # => ["は", 15, 5]
850
- # [scanner.getch, scanner.pos, scanner.charpos] # => [nil, 15, 5]
851
- #
852
- # * If the [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) is
853
- # within a multi-byte character
854
- # (that is, not at its beginning),
855
- # behaves like #get_byte (returns a 1-byte character):
856
- # scanner.pos = 1
857
- # [scanner.getch, scanner.pos, scanner.charpos] # => ["\x81", 2, 2]
858
- # [scanner.getch, scanner.pos, scanner.charpos] # => ["\x93", 3, 1]
859
- # [scanner.getch, scanner.pos, scanner.charpos] # => ["ん", 6, 2]
860
- #
861
- # * If the [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) is
862
- # at the end of the [stored string](rdoc-ref:StringScanner@Stored+String),
863
- # returns `nil` and does not modify the positions:
864
- # scanner.terminate
865
- # [scanner.getch, scanner.pos, scanner.charpos] # => [nil, 15, 5]
866
- #
867
- def getch: () -> String?
868
-
869
- # <!--
870
- # rdoc-file=ext/strscan/strscan.c
871
- # - inspect -> string
872
- # -->
873
- # Returns a string representation of `self` that may show:
874
- # 1. The current
875
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29).
876
- # 2. The size (in bytes) of the [stored
877
- # string](rdoc-ref:StringScanner@Stored+String).
878
- # 3. The substring preceding the current position.
879
- # 4. The substring following the current position (which is also the [target
880
- # substring](rdoc-ref:StringScanner@Target+Substring)).
881
- # scanner = StringScanner.new("Fri Dec 12 1975 14:39")
882
- # scanner.pos = 11
883
- # scanner.inspect # => "#<StringScanner 11/21 \"...c 12 \" @ \"1975 ...\">"
884
- #
885
- # If at beginning-of-string, item 4 above (following substring) is omitted:
886
- # scanner.reset
887
- # scanner.inspect # => "#<StringScanner 0/21 @ \"Fri D...\">"
888
- #
889
- # If at end-of-string, all items above are omitted:
890
- # scanner.terminate
891
- # scanner.inspect # => "#<StringScanner fin>"
892
- #
893
- def inspect: () -> String
894
-
895
- # <!--
896
- # rdoc-file=ext/strscan/strscan.c
897
- # - match?(pattern) -> updated_position or nil
898
- # -->
899
- # Attempts to [match](rdoc-ref:StringScanner@Matching) the given `pattern`
900
- # at the beginning of the [target
901
- # substring](rdoc-ref:StringScanner@Target+Substring);
902
- # does not modify the [positions](rdoc-ref:StringScanner@Positions).
903
- # If the match succeeds:
904
- # * Sets [match values](rdoc-ref:StringScanner@Match+Values).
905
- # * Returns the size in bytes of the matched substring.
906
- # scanner = StringScanner.new('foobarbaz')
907
- # scanner.pos = 3
908
- # scanner.match?(/bar/) => 3
909
- # put_match_values(scanner)
910
- # # Basic match values:
911
- # # matched?: true
912
- # # matched_size: 3
913
- # # pre_match: "foo"
914
- # # matched : "bar"
915
- # # post_match: "baz"
916
- # # Captured match values:
917
- # # size: 1
918
- # # captures: []
919
- # # named_captures: {}
920
- # # values_at: ["bar", nil]
921
- # # []:
922
- # # [0]: "bar"
923
- # # [1]: nil
924
- # put_situation(scanner)
925
- # # Situation:
926
- # # pos: 3
927
- # # charpos: 3
928
- # # rest: "barbaz"
929
- # # rest_size: 6
930
- #
931
- # If the match fails:
932
- # * Clears match values.
933
- # * Returns `nil`.
934
- # * Does not increment positions.
935
- # scanner.match?(/nope/) # => nil
936
- # match_values_cleared?(scanner) # => true
937
- #
938
- def match?: (Regexp) -> Integer?
939
-
940
- # <!--
941
- # rdoc-file=ext/strscan/strscan.c
942
- # - matched -> matched_substring or nil
943
- # -->
944
- # Returns the matched substring from the most recent
945
- # [match](rdoc-ref:StringScanner@Matching) attempt
946
- # if it was successful,
947
- # or `nil` otherwise;
948
- # see [Basic Matched Values](rdoc-ref:StringScanner@Basic+Match+Values):
949
- # scanner = StringScanner.new('foobarbaz')
950
- # scanner.matched # => nil
951
- # scanner.pos = 3
952
- # scanner.match?(/bar/) # => 3
953
- # scanner.matched # => "bar"
954
- # scanner.match?(/nope/) # => nil
955
- # scanner.matched # => nil
956
- #
957
- def matched: () -> String?
958
-
959
- # <!--
960
- # rdoc-file=ext/strscan/strscan.c
961
- # - matched? -> true or false
962
- # -->
963
- # Returns `true` of the most recent [match
964
- # attempt](rdoc-ref:StringScanner@Matching) was successful,
965
- # `false` otherwise;
966
- # see [Basic Matched Values](rdoc-ref:StringScanner@Basic+Match+Values):
967
- # scanner = StringScanner.new('foobarbaz')
968
- # scanner.matched? # => false
969
- # scanner.pos = 3
970
- # scanner.exist?(/baz/) # => 6
971
- # scanner.matched? # => true
972
- # scanner.exist?(/nope/) # => nil
973
- # scanner.matched? # => false
974
- #
975
- def matched?: () -> bool
976
-
977
- # <!--
978
- # rdoc-file=ext/strscan/strscan.c
979
- # - matched_size -> substring_size or nil
980
- # -->
981
- # Returns the size (in bytes) of the matched substring
982
- # from the most recent match [match attempt](rdoc-ref:StringScanner@Matching) if
983
- # it was successful,
984
- # or `nil` otherwise;
985
- # see [Basic Matched Values](rdoc-ref:StringScanner@Basic+Match+Values):
986
- # scanner = StringScanner.new('foobarbaz')
987
- # scanner.matched_size # => nil
988
- #
989
- # pos = 3
990
- # scanner.exist?(/baz/) # => 9
991
- # scanner.matched_size # => 3
992
- #
993
- # scanner.exist?(/nope/) # => nil
994
- # scanner.matched_size # => nil
995
- #
996
- def matched_size: () -> Integer?
997
-
998
- # <!--
999
- # rdoc-file=ext/strscan/strscan.c
1000
- # - peek(length) -> substring
1001
- # -->
1002
- # Returns the substring `string[pos, length]`;
1003
- # does not update [match values](rdoc-ref:StringScanner@Match+Values) or
1004
- # [positions](rdoc-ref:StringScanner@Positions):
1005
- # scanner = StringScanner.new('foobarbaz')
1006
- # scanner.pos = 3
1007
- # scanner.peek(3) # => "bar"
1008
- # scanner.terminate
1009
- # scanner.peek(3) # => ""
1010
- #
1011
- def peek: (Integer) -> String
1012
-
1013
- # <!--
1014
- # rdoc-file=ext/strscan/strscan.c
1015
- # - peep(p1)
1016
- # -->
1017
- # Equivalent to #peek. This method is obsolete; use #peek instead.
1018
- #
1019
- def peep: (Integer) -> String
1020
-
1021
- # <!-- rdoc-file=ext/strscan/strscan.c -->
1022
- # call-seq:
1023
- # pos -> byte_position
1024
- # Returns the integer [byte
1025
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29),
1026
- # which may be different from the [character
1027
- # position](rdoc-ref:StringScanner@Character+Position):
1028
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1029
- # scanner.string # => "こんにちは"
1030
- # scanner.pos # => 0
1031
- # scanner.getch # => "こ" # 3-byte character.
1032
- # scanner.charpos # => 1
1033
- # scanner.pos # => 3
1034
- #
1035
- def pointer: () -> Integer
1036
-
1037
- # <!-- rdoc-file=ext/strscan/strscan.c -->
1038
- # call-seq:
1039
- # pos = n -> n
1040
- # pointer = n -> n
1041
- # Sets the [byte position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
1042
- # and the [character position](rdoc-ref:StringScanner@Positions);
1043
- # returns `n`.
1044
- # Does not affect [match values](rdoc-ref:StringScanner@Match+Values).
1045
- # For non-negative `n`, sets the position to `n`:
1046
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1047
- # scanner.string # => "こんにちは"
1048
- # scanner.pos = 3 # => 3
1049
- # scanner.rest # => "んにちは"
1050
- # scanner.charpos # => 1
1051
- #
1052
- # For negative `n`, counts from the end of the [stored
1053
- # string](rdoc-ref:StringScanner@Stored+String):
1054
- # scanner.pos = -9 # => -9
1055
- # scanner.pos # => 6
1056
- # scanner.rest # => "にちは"
1057
- # scanner.charpos # => 2
1058
- #
1059
- def pointer=: (Integer) -> Integer
1060
-
1061
- # <!--
1062
- # rdoc-file=ext/strscan/strscan.c
1063
- # - pos()
1064
- # -->
1065
- # call-seq:
1066
- # pos -> byte_position
1067
- # Returns the integer [byte
1068
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29),
1069
- # which may be different from the [character
1070
- # position](rdoc-ref:StringScanner@Character+Position):
1071
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1072
- # scanner.string # => "こんにちは"
1073
- # scanner.pos # => 0
1074
- # scanner.getch # => "こ" # 3-byte character.
1075
- # scanner.charpos # => 1
1076
- # scanner.pos # => 3
1077
- #
1078
- def pos: () -> Integer
1079
-
1080
- # <!--
1081
- # rdoc-file=ext/strscan/strscan.c
1082
- # - pos=(p1)
1083
- # -->
1084
- # call-seq:
1085
- # pos = n -> n
1086
- # pointer = n -> n
1087
- # Sets the [byte position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
1088
- # and the [character position](rdoc-ref:StringScanner@Positions);
1089
- # returns `n`.
1090
- # Does not affect [match values](rdoc-ref:StringScanner@Match+Values).
1091
- # For non-negative `n`, sets the position to `n`:
1092
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1093
- # scanner.string # => "こんにちは"
1094
- # scanner.pos = 3 # => 3
1095
- # scanner.rest # => "んにちは"
1096
- # scanner.charpos # => 1
1097
- #
1098
- # For negative `n`, counts from the end of the [stored
1099
- # string](rdoc-ref:StringScanner@Stored+String):
1100
- # scanner.pos = -9 # => -9
1101
- # scanner.pos # => 6
1102
- # scanner.rest # => "にちは"
1103
- # scanner.charpos # => 2
1104
- #
1105
- def pos=: (Integer) -> Integer
1106
-
1107
- # <!--
1108
- # rdoc-file=ext/strscan/strscan.c
1109
- # - post_match -> substring
1110
- # -->
1111
- # Returns the substring that follows the matched substring
1112
- # from the most recent match attempt if it was successful,
1113
- # or `nil` otherwise;
1114
- # see [Basic Match Values](rdoc-ref:StringScanner@Basic+Match+Values):
1115
- # scanner = StringScanner.new('foobarbaz')
1116
- # scanner.post_match # => nil
1117
- #
1118
- # scanner.pos = 3
1119
- # scanner.match?(/bar/) # => 3
1120
- # scanner.post_match # => "baz"
1121
- #
1122
- # scanner.match?(/nope/) # => nil
1123
- # scanner.post_match # => nil
1124
- #
1125
- def post_match: () -> String
1126
-
1127
- # <!--
1128
- # rdoc-file=ext/strscan/strscan.c
1129
- # - pre_match -> substring
1130
- # -->
1131
- # Returns the substring that precedes the matched substring
1132
- # from the most recent match attempt if it was successful,
1133
- # or `nil` otherwise;
1134
- # see [Basic Match Values](rdoc-ref:StringScanner@Basic+Match+Values):
1135
- # scanner = StringScanner.new('foobarbaz')
1136
- # scanner.pre_match # => nil
1137
- #
1138
- # scanner.pos = 3
1139
- # scanner.exist?(/baz/) # => 6
1140
- # scanner.pre_match # => "foobar" # Substring of entire string, not just target string.
1141
- #
1142
- # scanner.exist?(/nope/) # => nil
1143
- # scanner.pre_match # => nil
1144
- #
1145
- def pre_match: () -> String
1146
-
1147
- # <!--
1148
- # rdoc-file=ext/strscan/strscan.c
1149
- # - reset -> self
1150
- # -->
1151
- # Sets both [byte position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)
1152
- # and [character position](rdoc-ref:StringScanner@Character+Position) to zero,
1153
- # and clears [match values](rdoc-ref:StringScanner@Match+Values);
1154
- # returns `self`:
1155
- # scanner = StringScanner.new('foobarbaz')
1156
- # scanner.exist?(/bar/) # => 6
1157
- # scanner.reset # => #<StringScanner 0/9 @ "fooba...">
1158
- # put_situation(scanner)
1159
- # # Situation:
1160
- # # pos: 0
1161
- # # charpos: 0
1162
- # # rest: "foobarbaz"
1163
- # # rest_size: 9
1164
- # # => nil
1165
- # match_values_cleared?(scanner) # => true
1166
- #
1167
- def reset: () -> void
1168
-
1169
- # <!--
1170
- # rdoc-file=ext/strscan/strscan.c
1171
- # - rest -> target_substring
1172
- # -->
1173
- # Returns the 'rest' of the [stored
1174
- # string](rdoc-ref:StringScanner@Stored+String) (all after the current
1175
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)),
1176
- # which is the [target substring](rdoc-ref:StringScanner@Target+Substring):
1177
- # scanner = StringScanner.new('foobarbaz')
1178
- # scanner.rest # => "foobarbaz"
1179
- # scanner.pos = 3
1180
- # scanner.rest # => "barbaz"
1181
- # scanner.terminate
1182
- # scanner.rest # => ""
1183
- #
1184
- def rest: () -> String
1185
-
1186
- # <!--
1187
- # rdoc-file=ext/strscan/strscan.c
1188
- # - rest?()
1189
- # -->
1190
- # Returns true if and only if there is more data in the string. See #eos?. This
1191
- # method is obsolete; use #eos? instead.
1192
- #
1193
- # s = StringScanner.new('test string')
1194
- # # These two are opposites
1195
- # s.eos? # => false
1196
- # s.rest? # => true
1197
- #
1198
- def rest?: () -> bool
1199
-
1200
- # <!--
1201
- # rdoc-file=ext/strscan/strscan.c
1202
- # - rest_size -> integer
1203
- # -->
1204
- # Returns the size (in bytes) of the #rest of the [stored
1205
- # string](rdoc-ref:StringScanner@Stored+String):
1206
- # scanner = StringScanner.new('foobarbaz')
1207
- # scanner.rest # => "foobarbaz"
1208
- # scanner.rest_size # => 9
1209
- # scanner.pos = 3
1210
- # scanner.rest # => "barbaz"
1211
- # scanner.rest_size # => 6
1212
- # scanner.terminate
1213
- # scanner.rest # => ""
1214
- # scanner.rest_size # => 0
1215
- #
1216
- def rest_size: () -> Integer
1217
-
1218
- # <!--
1219
- # rdoc-file=ext/strscan/strscan.c
1220
- # - restsize()
1221
- # -->
1222
- # `s.restsize` is equivalent to `s.rest_size`. This method is obsolete; use
1223
- # #rest_size instead.
1224
- #
1225
- def restsize: () -> Integer
1226
-
1227
- # <!--
1228
- # rdoc-file=ext/strscan/strscan.c
1229
- # - scan(p1)
1230
- # -->
1231
- # call-seq:
1232
- # scan(pattern) -> substring or nil
1233
- # Attempts to [match](rdoc-ref:StringScanner@Matching) the given `pattern`
1234
- # at the beginning of the [target
1235
- # substring](rdoc-ref:StringScanner@Target+Substring).
1236
- # If the match succeeds:
1237
- # * Returns the matched substring.
1238
- # * Increments the [byte
1239
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) by
1240
- # `substring.bytesize`,
1241
- # and may increment the [character
1242
- # position](rdoc-ref:StringScanner@Character+Position).
1243
- # * Sets [match values](rdoc-ref:StringScanner@Match+Values).
1244
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1245
- # scanner.string # => "こんにちは"
1246
- # scanner.pos = 6
1247
- # scanner.scan(/に/) # => "に"
1248
- # put_match_values(scanner)
1249
- # # Basic match values:
1250
- # # matched?: true
1251
- # # matched_size: 3
1252
- # # pre_match: "こん"
1253
- # # matched : "に"
1254
- # # post_match: "ちは"
1255
- # # Captured match values:
1256
- # # size: 1
1257
- # # captures: []
1258
- # # named_captures: {}
1259
- # # values_at: ["に", nil]
1260
- # # []:
1261
- # # [0]: "に"
1262
- # # [1]: nil
1263
- # put_situation(scanner)
1264
- # # Situation:
1265
- # # pos: 9
1266
- # # charpos: 3
1267
- # # rest: "ちは"
1268
- # # rest_size: 6
1269
- #
1270
- # If the match fails:
1271
- # * Returns `nil`.
1272
- # * Does not increment byte and character positions.
1273
- # * Clears match values.
1274
- # scanner.scan(/nope/) # => nil
1275
- # match_values_cleared?(scanner) # => true
1276
- #
1277
- def scan: (Regexp) -> String?
1278
-
1279
- # <!--
1280
- # rdoc-file=ext/strscan/strscan.c
1281
- # - scan_full(pattern, advance_pointer_p, return_string_p)
1282
- # -->
1283
- # Tests whether the given `pattern` is matched from the current scan pointer.
1284
- # Advances the scan pointer if `advance_pointer_p` is true. Returns the matched
1285
- # string if `return_string_p` is true. The match register is affected.
1286
- #
1287
- # "full" means "#scan with full parameters".
1288
- #
1289
- def scan_full: (Regexp pattern, bool advance_pointer_p, bool return_string_p) -> untyped
1290
-
1291
- # <!--
1292
- # rdoc-file=ext/strscan/strscan.c
1293
- # - scan_until(p1)
1294
- # -->
1295
- # call-seq:
1296
- # scan_until(pattern) -> substring or nil
1297
- # Attempts to [match](rdoc-ref:StringScanner@Matching) the given `pattern`
1298
- # anywhere (at any
1299
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)) in the
1300
- # [target substring](rdoc-ref:StringScanner@Target+Substring).
1301
- # If the match attempt succeeds:
1302
- # * Sets [match values](rdoc-ref:StringScanner@Match+Values).
1303
- # * Sets the [byte
1304
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) to the end
1305
- # of the matched substring;
1306
- # may adjust the [character
1307
- # position](rdoc-ref:StringScanner@Character+Position).
1308
- # * Returns the matched substring.
1309
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1310
- # scanner.string # => "こんにちは"
1311
- # scanner.pos = 6
1312
- # scanner.scan_until(/ち/) # => "にち"
1313
- # put_match_values(scanner)
1314
- # # Basic match values:
1315
- # # matched?: true
1316
- # # matched_size: 3
1317
- # # pre_match: "こんに"
1318
- # # matched : "ち"
1319
- # # post_match: "は"
1320
- # # Captured match values:
1321
- # # size: 1
1322
- # # captures: []
1323
- # # named_captures: {}
1324
- # # values_at: ["ち", nil]
1325
- # # []:
1326
- # # [0]: "ち"
1327
- # # [1]: nil
1328
- # put_situation(scanner)
1329
- # # Situation:
1330
- # # pos: 12
1331
- # # charpos: 4
1332
- # # rest: "は"
1333
- # # rest_size: 3
1334
- #
1335
- # If the match attempt fails:
1336
- # * Clears match data.
1337
- # * Returns `nil`.
1338
- # * Does not update positions.
1339
- # scanner.scan_until(/nope/) # => nil
1340
- # match_values_cleared?(scanner) # => true
1341
- #
1342
- def scan_until: (Regexp) -> String?
1343
-
1344
- # <!--
1345
- # rdoc-file=ext/strscan/strscan.c
1346
- # - search_full(pattern, advance_pointer_p, return_string_p)
1347
- # -->
1348
- # Scans the string *until* the `pattern` is matched. Advances the scan pointer
1349
- # if `advance_pointer_p`, otherwise not. Returns the matched string if
1350
- # `return_string_p` is true, otherwise returns the number of bytes advanced.
1351
- # This method does affect the match register.
1352
- #
1353
- def search_full: (Regexp pattern, bool advance_pointer_p, bool return_string_p) -> untyped
1354
-
1355
- # <!--
1356
- # rdoc-file=ext/strscan/strscan.c
1357
- # - size -> captures_count
1358
- # -->
1359
- # Returns the count of captures if the most recent match attempt succeeded,
1360
- # `nil` otherwise;
1361
- # see [Captures Match Values](rdoc-ref:StringScanner@Captured+Match+Values):
1362
- # scanner = StringScanner.new('Fri Dec 12 1975 14:39')
1363
- # scanner.size # => nil
1364
- #
1365
- # pattern = /(?<wday>\w+) (?<month>\w+) (?<day>\d+) /
1366
- # scanner.match?(pattern)
1367
- # scanner.values_at(*0..scanner.size) # => ["Fri Dec 12 ", "Fri", "Dec", "12", nil]
1368
- # scanner.size # => 4
1369
- #
1370
- # scanner.match?(/nope/) # => nil
1371
- # scanner.size # => nil
1372
- #
1373
- def size: () -> Integer
1374
-
1375
- # <!--
1376
- # rdoc-file=ext/strscan/strscan.c
1377
- # - skip(p1)
1378
- # -->
1379
- # call-seq:
1380
- # skip(pattern) match_size or nil
1381
- # Attempts to [match](rdoc-ref:StringScanner@Matching) the given `pattern`
1382
- # at the beginning of the [target
1383
- # substring](rdoc-ref:StringScanner@Target+Substring);
1384
- # If the match succeeds:
1385
- # * Increments the [byte
1386
- # position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) by
1387
- # substring.bytesize,
1388
- # and may increment the [character
1389
- # position](rdoc-ref:StringScanner@Character+Position).
1390
- # * Sets [match values](rdoc-ref:StringScanner@Match+Values).
1391
- # * Returns the size (bytes) of the matched substring.
1392
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1393
- # scanner.string # => "こんにちは"
1394
- # scanner.pos = 6
1395
- # scanner.skip(/に/) # => 3
1396
- # put_match_values(scanner)
1397
- # # Basic match values:
1398
- # # matched?: true
1399
- # # matched_size: 3
1400
- # # pre_match: "こん"
1401
- # # matched : "に"
1402
- # # post_match: "ちは"
1403
- # # Captured match values:
1404
- # # size: 1
1405
- # # captures: []
1406
- # # named_captures: {}
1407
- # # values_at: ["に", nil]
1408
- # # []:
1409
- # # [0]: "に"
1410
- # # [1]: nil
1411
- # put_situation(scanner)
1412
- # # Situation:
1413
- # # pos: 9
1414
- # # charpos: 3
1415
- # # rest: "ちは"
1416
- # # rest_size: 6
1417
- #
1418
- # scanner.skip(/nope/) # => nil
1419
- # match_values_cleared?(scanner) # => true
1420
- #
1421
- def skip: (Regexp) -> Integer?
1422
-
1423
- # <!--
1424
- # rdoc-file=ext/strscan/strscan.c
1425
- # - skip_until(p1)
1426
- # -->
1427
- # call-seq:
1428
- # skip_until(pattern) -> matched_substring_size or nil
1429
- # Attempts to [match](rdoc-ref:StringScanner@Matching) the given `pattern`
1430
- # anywhere (at any
1431
- # [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29)) in the
1432
- # [target substring](rdoc-ref:StringScanner@Target+Substring);
1433
- # does not modify the positions.
1434
- # If the match attempt succeeds:
1435
- # * Sets [match values](rdoc-ref:StringScanner@Match+Values).
1436
- # * Returns the size of the matched substring.
1437
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1438
- # scanner.string # => "こんにちは"
1439
- # scanner.pos = 6
1440
- # scanner.skip_until(/ち/) # => 6
1441
- # put_match_values(scanner)
1442
- # # Basic match values:
1443
- # # matched?: true
1444
- # # matched_size: 3
1445
- # # pre_match: "こんに"
1446
- # # matched : "ち"
1447
- # # post_match: "は"
1448
- # # Captured match values:
1449
- # # size: 1
1450
- # # captures: []
1451
- # # named_captures: {}
1452
- # # values_at: ["ち", nil]
1453
- # # []:
1454
- # # [0]: "ち"
1455
- # # [1]: nil
1456
- # put_situation(scanner)
1457
- # # Situation:
1458
- # # pos: 12
1459
- # # charpos: 4
1460
- # # rest: "は"
1461
- # # rest_size: 3
1462
- #
1463
- # If the match attempt fails:
1464
- # * Clears match values.
1465
- # * Returns `nil`.
1466
- # scanner.skip_until(/nope/) # => nil
1467
- # match_values_cleared?(scanner) # => true
1468
- #
1469
- def skip_until: (Regexp) -> Integer?
1470
-
1471
- # <!--
1472
- # rdoc-file=ext/strscan/strscan.c
1473
- # - string -> stored_string
1474
- # -->
1475
- # Returns the [stored string](rdoc-ref:StringScanner@Stored+String):
1476
- # scanner = StringScanner.new('foobar')
1477
- # scanner.string # => "foobar"
1478
- # scanner.concat('baz')
1479
- # scanner.string # => "foobarbaz"
1480
- #
1481
- def string: () -> String
1482
-
1483
- # <!--
1484
- # rdoc-file=ext/strscan/strscan.c
1485
- # - string = other_string -> other_string
1486
- # -->
1487
- # Replaces the [stored string](rdoc-ref:StringScanner@Stored+String) with the
1488
- # given `other_string`:
1489
- # * Sets both [positions](rdoc-ref:StringScanner@Positions) to zero.
1490
- # * Clears [match values](rdoc-ref:StringScanner@Match+Values).
1491
- # * Returns `other_string`.
1492
- # scanner = StringScanner.new('foobar')
1493
- # scanner.scan(/foo/)
1494
- # put_situation(scanner)
1495
- # # Situation:
1496
- # # pos: 3
1497
- # # charpos: 3
1498
- # # rest: "bar"
1499
- # # rest_size: 3
1500
- # match_values_cleared?(scanner) # => false
1501
- #
1502
- # scanner.string = 'baz' # => "baz"
1503
- # put_situation(scanner)
1504
- # # Situation:
1505
- # # pos: 0
1506
- # # charpos: 0
1507
- # # rest: "baz"
1508
- # # rest_size: 3
1509
- # match_values_cleared?(scanner) # => true
1510
- #
1511
- def string=: (String) -> String
1512
-
1513
- # <!--
1514
- # rdoc-file=ext/strscan/strscan.c
1515
- # - terminate()
1516
- # -->
1517
- # call-seq:
1518
- # terminate -> self
1519
- # Sets the scanner to end-of-string;
1520
- # returns `self`:
1521
- # * Sets both [positions](rdoc-ref:StringScanner@Positions) to end-of-stream.
1522
- # * Clears [match values](rdoc-ref:StringScanner@Match+Values).
1523
- # scanner = StringScanner.new(HIRAGANA_TEXT)
1524
- # scanner.string # => "こんにちは"
1525
- # scanner.scan_until(/に/)
1526
- # put_situation(scanner)
1527
- # # Situation:
1528
- # # pos: 9
1529
- # # charpos: 3
1530
- # # rest: "ちは"
1531
- # # rest_size: 6
1532
- # match_values_cleared?(scanner) # => false
1533
- #
1534
- # scanner.terminate # => #<StringScanner fin>
1535
- # put_situation(scanner)
1536
- # # Situation:
1537
- # # pos: 15
1538
- # # charpos: 5
1539
- # # rest: ""
1540
- # # rest_size: 0
1541
- # match_values_cleared?(scanner) # => true
1542
- #
1543
- def terminate: () -> void
1544
-
1545
- # <!--
1546
- # rdoc-file=ext/strscan/strscan.c
1547
- # - unscan -> self
1548
- # -->
1549
- # Sets the [position](rdoc-ref:StringScanner@Byte+Position+-28Position-29) to
1550
- # its value previous to the recent successful
1551
- # [match](rdoc-ref:StringScanner@Matching) attempt:
1552
- # scanner = StringScanner.new('foobarbaz')
1553
- # scanner.scan(/foo/)
1554
- # put_situation(scanner)
1555
- # # Situation:
1556
- # # pos: 3
1557
- # # charpos: 3
1558
- # # rest: "barbaz"
1559
- # # rest_size: 6
1560
- # scanner.unscan
1561
- # # => #<StringScanner 0/9 @ "fooba...">
1562
- # put_situation(scanner)
1563
- # # Situation:
1564
- # # pos: 0
1565
- # # charpos: 0
1566
- # # rest: "foobarbaz"
1567
- # # rest_size: 9
1568
- #
1569
- # Raises an exception if match values are clear:
1570
- # scanner.scan(/nope/) # => nil
1571
- # match_values_cleared?(scanner) # => true
1572
- # scanner.unscan # Raises StringScanner::Error.
1573
- #
1574
- def unscan: () -> void
1575
-
1576
- # <!--
1577
- # rdoc-file=ext/strscan/strscan.c
1578
- # - values_at(*specifiers) -> array_of_captures or nil
1579
- # -->
1580
- # Returns an array of captured substrings, or `nil` of none.
1581
- # For each `specifier`, the returned substring is `[specifier]`;
1582
- # see #[].
1583
- # scanner = StringScanner.new('Fri Dec 12 1975 14:39')
1584
- # pattern = /(?<wday>\w+) (?<month>\w+) (?<day>\d+) /
1585
- # scanner.match?(pattern)
1586
- # scanner.values_at(*0..3) # => ["Fri Dec 12 ", "Fri", "Dec", "12"]
1587
- # scanner.values_at(*%i[wday month day]) # => ["Fri", "Dec", "12"]
1588
- #
1589
- def values_at: (*Integer) -> Array[String]?
1590
-
1591
- private
1592
-
1593
- # <!--
1594
- # rdoc-file=ext/strscan/strscan.c
1595
- # - StringScanner.new(string, fixed_anchor: false) -> string_scanner
1596
- # -->
1597
- # Returns a new `StringScanner` object whose [stored
1598
- # string](rdoc-ref:StringScanner@Stored+String)
1599
- # is the given `string`;
1600
- # sets the [fixed-anchor
1601
- # property](rdoc-ref:StringScanner@Fixed-Anchor+Property):
1602
- # scanner = StringScanner.new('foobarbaz')
1603
- # scanner.string # => "foobarbaz"
1604
- # scanner.fixed_anchor? # => false
1605
- # put_situation(scanner)
1606
- # # Situation:
1607
- # # pos: 0
1608
- # # charpos: 0
1609
- # # rest: "foobarbaz"
1610
- # # rest_size: 9
1611
- #
1612
- def initialize: (String, ?bool dup, ?fixed_anchor: bool) -> untyped
1613
-
1614
- # <!--
1615
- # rdoc-file=ext/strscan/strscan.c
1616
- # - dup -> shallow_copy
1617
- # -->
1618
- # Returns a shallow copy of `self`;
1619
- # the [stored string](rdoc-ref:StringScanner@Stored+String) in the copy is the
1620
- # same string as in `self`.
1621
- #
1622
- def initialize_copy: (StringScanner) -> void
1623
- end
1624
-
1625
- StringScanner::Id: String
1626
-
1627
- StringScanner::Version: String