@blazetrails/ruby-compat 0.0.0-stage → 0.1.0-alpha0.2

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 (625) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +6 -0
  3. package/README.md +440 -2
  4. package/dist/argument-error.d.ts +15 -0
  5. package/dist/argument-error.js +15 -0
  6. package/dist/argument-error.js.map +1 -0
  7. package/dist/array.d.ts +415 -0
  8. package/dist/array.js +1330 -0
  9. package/dist/array.js.map +1 -0
  10. package/dist/async-context-adapter.d.ts +19 -0
  11. package/dist/async-context-adapter.js +139 -0
  12. package/dist/async-context-adapter.js.map +1 -0
  13. package/dist/backtrace-location.d.ts +78 -0
  14. package/dist/backtrace-location.js +158 -0
  15. package/dist/backtrace-location.js.map +1 -0
  16. package/dist/base64.d.ts +73 -0
  17. package/dist/base64.js +164 -0
  18. package/dist/base64.js.map +1 -0
  19. package/dist/benchmark.d.ts +19 -0
  20. package/dist/benchmark.js +16 -0
  21. package/dist/benchmark.js.map +1 -0
  22. package/dist/big-decimal.d.ts +111 -0
  23. package/dist/big-decimal.js +584 -0
  24. package/dist/big-decimal.js.map +1 -0
  25. package/dist/bundler.d.ts +44 -0
  26. package/dist/bundler.js +97 -0
  27. package/dist/bundler.js.map +1 -0
  28. package/dist/cgi.d.ts +89 -0
  29. package/dist/cgi.js +168 -0
  30. package/dist/cgi.js.map +1 -0
  31. package/dist/child-process-adapter.d.ts +110 -0
  32. package/dist/child-process-adapter.js +272 -0
  33. package/dist/child-process-adapter.js.map +1 -0
  34. package/dist/class-module.d.ts +10 -0
  35. package/dist/class-module.js +10 -0
  36. package/dist/class-module.js.map +1 -0
  37. package/dist/classpath.d.ts +93 -0
  38. package/dist/classpath.js +210 -0
  39. package/dist/classpath.js.map +1 -0
  40. package/dist/closed-queue-error.d.ts +10 -0
  41. package/dist/closed-queue-error.js +10 -0
  42. package/dist/closed-queue-error.js.map +1 -0
  43. package/dist/comparable.d.ts +127 -0
  44. package/dist/comparable.js +376 -0
  45. package/dist/comparable.js.map +1 -0
  46. package/dist/complex.d.ts +49 -0
  47. package/dist/complex.js +164 -0
  48. package/dist/complex.js.map +1 -0
  49. package/dist/concurrent/atomic-boolean.d.ts +24 -0
  50. package/dist/concurrent/atomic-boolean.js +43 -0
  51. package/dist/concurrent/atomic-boolean.js.map +1 -0
  52. package/dist/concurrent/atomic-fixnum.d.ts +21 -0
  53. package/dist/concurrent/atomic-fixnum.js +35 -0
  54. package/dist/concurrent/atomic-fixnum.js.map +1 -0
  55. package/dist/concurrent/count-down-latch.d.ts +20 -0
  56. package/dist/concurrent/count-down-latch.js +50 -0
  57. package/dist/concurrent/count-down-latch.js.map +1 -0
  58. package/dist/concurrent/cyclic-barrier.d.ts +18 -0
  59. package/dist/concurrent/cyclic-barrier.js +50 -0
  60. package/dist/concurrent/cyclic-barrier.js.map +1 -0
  61. package/dist/concurrent/event.d.ts +19 -0
  62. package/dist/concurrent/event.js +31 -0
  63. package/dist/concurrent/event.js.map +1 -0
  64. package/dist/concurrent/map.d.ts +149 -0
  65. package/dist/concurrent/map.js +202 -0
  66. package/dist/concurrent/map.js.map +1 -0
  67. package/dist/concurrent/read-write-lock.d.ts +25 -0
  68. package/dist/concurrent/read-write-lock.js +70 -0
  69. package/dist/concurrent/read-write-lock.js.map +1 -0
  70. package/dist/concurrent/semaphore.d.ts +24 -0
  71. package/dist/concurrent/semaphore.js +74 -0
  72. package/dist/concurrent/semaphore.js.map +1 -0
  73. package/dist/concurrent/timer-task.d.ts +52 -0
  74. package/dist/concurrent/timer-task.js +112 -0
  75. package/dist/concurrent/timer-task.js.map +1 -0
  76. package/dist/constants.generated.d.ts +2 -0
  77. package/dist/constants.generated.js +64 -0
  78. package/dist/constants.generated.js.map +1 -0
  79. package/dist/converter-not-found-error.d.ts +14 -0
  80. package/dist/converter-not-found-error.js +14 -0
  81. package/dist/converter-not-found-error.js.map +1 -0
  82. package/dist/crypto-adapter.d.ts +64 -0
  83. package/dist/crypto-adapter.js +365 -0
  84. package/dist/crypto-adapter.js.map +1 -0
  85. package/dist/delegate.d.ts +156 -0
  86. package/dist/delegate.js +306 -0
  87. package/dist/delegate.js.map +1 -0
  88. package/dist/digest.d.ts +99 -0
  89. package/dist/digest.js +131 -0
  90. package/dist/digest.js.map +1 -0
  91. package/dist/dir.d.ts +225 -0
  92. package/dist/dir.js +608 -0
  93. package/dist/dir.js.map +1 -0
  94. package/dist/encoding-error.d.ts +14 -0
  95. package/dist/encoding-error.js +17 -0
  96. package/dist/encoding-error.js.map +1 -0
  97. package/dist/encoding.d.ts +121 -0
  98. package/dist/encoding.js +306 -0
  99. package/dist/encoding.js.map +1 -0
  100. package/dist/ensure.d.ts +15 -0
  101. package/dist/ensure.js +35 -0
  102. package/dist/ensure.js.map +1 -0
  103. package/dist/enumerable.d.ts +375 -0
  104. package/dist/enumerable.js +1102 -0
  105. package/dist/enumerable.js.map +1 -0
  106. package/dist/enumerator.d.ts +324 -0
  107. package/dist/enumerator.js +625 -0
  108. package/dist/enumerator.js.map +1 -0
  109. package/dist/eof-error.d.ts +14 -0
  110. package/dist/eof-error.js +14 -0
  111. package/dist/eof-error.js.map +1 -0
  112. package/dist/errno.d.ts +447 -0
  113. package/dist/errno.js +616 -0
  114. package/dist/errno.js.map +1 -0
  115. package/dist/exc-detailed-message.d.ts +15 -0
  116. package/dist/exc-detailed-message.js +106 -0
  117. package/dist/exc-detailed-message.js.map +1 -0
  118. package/dist/exc-to-s.d.ts +10 -0
  119. package/dist/exc-to-s.js +21 -0
  120. package/dist/exc-to-s.js.map +1 -0
  121. package/dist/exception.d.ts +44 -0
  122. package/dist/exception.js +115 -0
  123. package/dist/exception.js.map +1 -0
  124. package/dist/fiber-error.d.ts +12 -0
  125. package/dist/fiber-error.js +12 -0
  126. package/dist/fiber-error.js.map +1 -0
  127. package/dist/fiber.d.ts +51 -0
  128. package/dist/fiber.js +178 -0
  129. package/dist/fiber.js.map +1 -0
  130. package/dist/file-utils.d.ts +480 -0
  131. package/dist/file-utils.js +1824 -0
  132. package/dist/file-utils.js.map +1 -0
  133. package/dist/file.d.ts +643 -0
  134. package/dist/file.js +1334 -0
  135. package/dist/file.js.map +1 -0
  136. package/dist/float-domain-error.d.ts +17 -0
  137. package/dist/float-domain-error.js +17 -0
  138. package/dist/float-domain-error.js.map +1 -0
  139. package/dist/fork-children.d.ts +23 -0
  140. package/dist/fork-children.js +32 -0
  141. package/dist/fork-children.js.map +1 -0
  142. package/dist/frozen-error.d.ts +33 -0
  143. package/dist/frozen-error.js +41 -0
  144. package/dist/frozen-error.js.map +1 -0
  145. package/dist/fs-adapter.d.ts +158 -0
  146. package/dist/fs-adapter.js +253 -0
  147. package/dist/fs-adapter.js.map +1 -0
  148. package/dist/gem/deprecate.d.ts +10 -0
  149. package/dist/gem/deprecate.js +8 -0
  150. package/dist/gem/deprecate.js.map +1 -0
  151. package/dist/gem/requirement.d.ts +55 -0
  152. package/dist/gem/requirement.js +91 -0
  153. package/dist/gem/requirement.js.map +1 -0
  154. package/dist/gem/version.d.ts +50 -0
  155. package/dist/gem/version.js +148 -0
  156. package/dist/gem/version.js.map +1 -0
  157. package/dist/gem.d.ts +59 -0
  158. package/dist/gem.js +82 -0
  159. package/dist/gem.js.map +1 -0
  160. package/dist/hash.d.ts +967 -0
  161. package/dist/hash.js +1572 -0
  162. package/dist/hash.js.map +1 -0
  163. package/dist/http-adapter.d.ts +124 -0
  164. package/dist/http-adapter.js +220 -0
  165. package/dist/http-adapter.js.map +1 -0
  166. package/dist/immediate-executor.d.ts +20 -0
  167. package/dist/immediate-executor.js +39 -0
  168. package/dist/immediate-executor.js.map +1 -0
  169. package/dist/include.d.ts +778 -0
  170. package/dist/include.js +2208 -0
  171. package/dist/include.js.map +1 -0
  172. package/dist/index-error.d.ts +13 -0
  173. package/dist/index-error.js +13 -0
  174. package/dist/index-error.js.map +1 -0
  175. package/dist/index.d.ts +174 -0
  176. package/dist/index.js +166 -0
  177. package/dist/index.js.map +1 -0
  178. package/dist/invalid-byte-sequence-error.d.ts +62 -0
  179. package/dist/invalid-byte-sequence-error.js +75 -0
  180. package/dist/invalid-byte-sequence-error.js.map +1 -0
  181. package/dist/io-error.d.ts +14 -0
  182. package/dist/io-error.js +17 -0
  183. package/dist/io-error.js.map +1 -0
  184. package/dist/io.d.ts +867 -0
  185. package/dist/io.js +1960 -0
  186. package/dist/io.js.map +1 -0
  187. package/dist/ipaddr.d.ts +79 -0
  188. package/dist/ipaddr.js +405 -0
  189. package/dist/ipaddr.js.map +1 -0
  190. package/dist/json.d.ts +70 -0
  191. package/dist/json.js +181 -0
  192. package/dist/json.js.map +1 -0
  193. package/dist/kernel-catch.d.ts +59 -0
  194. package/dist/kernel-catch.js +184 -0
  195. package/dist/kernel-catch.js.map +1 -0
  196. package/dist/kernel-float.d.ts +19 -0
  197. package/dist/kernel-float.js +54 -0
  198. package/dist/kernel-float.js.map +1 -0
  199. package/dist/kernel-fork.d.ts +30 -0
  200. package/dist/kernel-fork.js +72 -0
  201. package/dist/kernel-fork.js.map +1 -0
  202. package/dist/kernel-format.d.ts +27 -0
  203. package/dist/kernel-format.js +901 -0
  204. package/dist/kernel-format.js.map +1 -0
  205. package/dist/kernel-hash.d.ts +7 -0
  206. package/dist/kernel-hash.js +33 -0
  207. package/dist/kernel-hash.js.map +1 -0
  208. package/dist/kernel-integer.d.ts +49 -0
  209. package/dist/kernel-integer.js +170 -0
  210. package/dist/kernel-integer.js.map +1 -0
  211. package/dist/kernel-rand.d.ts +16 -0
  212. package/dist/kernel-rand.js +237 -0
  213. package/dist/kernel-rand.js.map +1 -0
  214. package/dist/kernel-system.d.ts +39 -0
  215. package/dist/kernel-system.js +103 -0
  216. package/dist/kernel-system.js.map +1 -0
  217. package/dist/kernel-warn.d.ts +35 -0
  218. package/dist/kernel-warn.js +73 -0
  219. package/dist/kernel-warn.js.map +1 -0
  220. package/dist/key-error.d.ts +44 -0
  221. package/dist/key-error.js +59 -0
  222. package/dist/key-error.js.map +1 -0
  223. package/dist/keyword-splat.d.ts +41 -0
  224. package/dist/keyword-splat.js +65 -0
  225. package/dist/keyword-splat.js.map +1 -0
  226. package/dist/load-error.d.ts +19 -0
  227. package/dist/load-error.js +19 -0
  228. package/dist/load-error.js.map +1 -0
  229. package/dist/load.d.ts +128 -0
  230. package/dist/load.js +278 -0
  231. package/dist/load.js.map +1 -0
  232. package/dist/loaded-features.d.ts +13 -0
  233. package/dist/loaded-features.js +15 -0
  234. package/dist/loaded-features.js.map +1 -0
  235. package/dist/local-jump-error.d.ts +12 -0
  236. package/dist/local-jump-error.js +12 -0
  237. package/dist/local-jump-error.js.map +1 -0
  238. package/dist/logger/formatter.d.ts +21 -0
  239. package/dist/logger/formatter.js +43 -0
  240. package/dist/logger/formatter.js.map +1 -0
  241. package/dist/logger/log-device.d.ts +52 -0
  242. package/dist/logger/log-device.js +104 -0
  243. package/dist/logger/log-device.js.map +1 -0
  244. package/dist/logger/severity.d.ts +23 -0
  245. package/dist/logger/severity.js +42 -0
  246. package/dist/logger/severity.js.map +1 -0
  247. package/dist/logger.d.ts +127 -0
  248. package/dist/logger.js +218 -0
  249. package/dist/logger.js.map +1 -0
  250. package/dist/marshal.d.ts +83 -0
  251. package/dist/marshal.js +1487 -0
  252. package/dist/marshal.js.map +1 -0
  253. package/dist/match-data.d.ts +161 -0
  254. package/dist/match-data.js +284 -0
  255. package/dist/match-data.js.map +1 -0
  256. package/dist/method-cache.d.ts +81 -0
  257. package/dist/method-cache.js +109 -0
  258. package/dist/method-cache.js.map +1 -0
  259. package/dist/method-missing-proxy.d.ts +53 -0
  260. package/dist/method-missing-proxy.js +154 -0
  261. package/dist/method-missing-proxy.js.map +1 -0
  262. package/dist/method.d.ts +132 -0
  263. package/dist/method.js +320 -0
  264. package/dist/method.js.map +1 -0
  265. package/dist/monitor.d.ts +114 -0
  266. package/dist/monitor.js +270 -0
  267. package/dist/monitor.js.map +1 -0
  268. package/dist/mutex.d.ts +51 -0
  269. package/dist/mutex.js +150 -0
  270. package/dist/mutex.js.map +1 -0
  271. package/dist/name-error.d.ts +45 -0
  272. package/dist/name-error.js +54 -0
  273. package/dist/name-error.js.map +1 -0
  274. package/dist/net/http/exceptions.d.ts +31 -0
  275. package/dist/net/http/exceptions.js +46 -0
  276. package/dist/net/http/exceptions.js.map +1 -0
  277. package/dist/net/http/request.d.ts +137 -0
  278. package/dist/net/http/request.js +559 -0
  279. package/dist/net/http/request.js.map +1 -0
  280. package/dist/net/http/requests.d.ts +197 -0
  281. package/dist/net/http/requests.js +197 -0
  282. package/dist/net/http/requests.js.map +1 -0
  283. package/dist/net/http/response.d.ts +141 -0
  284. package/dist/net/http/response.js +416 -0
  285. package/dist/net/http/response.js.map +1 -0
  286. package/dist/net/http/responses.d.ts +345 -0
  287. package/dist/net/http/responses.js +486 -0
  288. package/dist/net/http/responses.js.map +1 -0
  289. package/dist/net/http.d.ts +278 -0
  290. package/dist/net/http.js +760 -0
  291. package/dist/net/http.js.map +1 -0
  292. package/dist/net/protocol.d.ts +227 -0
  293. package/dist/net/protocol.js +392 -0
  294. package/dist/net/protocol.js.map +1 -0
  295. package/dist/nil-class.d.ts +10 -0
  296. package/dist/nil-class.js +27 -0
  297. package/dist/nil-class.js.map +1 -0
  298. package/dist/no-method-error.d.ts +38 -0
  299. package/dist/no-method-error.js +45 -0
  300. package/dist/no-method-error.js.map +1 -0
  301. package/dist/not-implemented-error.d.ts +13 -0
  302. package/dist/not-implemented-error.js +13 -0
  303. package/dist/not-implemented-error.js.map +1 -0
  304. package/dist/numeric-class.d.ts +29 -0
  305. package/dist/numeric-class.js +41 -0
  306. package/dist/numeric-class.js.map +1 -0
  307. package/dist/numeric.d.ts +226 -0
  308. package/dist/numeric.js +848 -0
  309. package/dist/numeric.js.map +1 -0
  310. package/dist/object-space.d.ts +34 -0
  311. package/dist/object-space.js +152 -0
  312. package/dist/object-space.js.map +1 -0
  313. package/dist/object.d.ts +833 -0
  314. package/dist/object.js +2131 -0
  315. package/dist/object.js.map +1 -0
  316. package/dist/open-uri.d.ts +180 -0
  317. package/dist/open-uri.js +402 -0
  318. package/dist/open-uri.js.map +1 -0
  319. package/dist/open3.d.ts +69 -0
  320. package/dist/open3.js +134 -0
  321. package/dist/open3.js.map +1 -0
  322. package/dist/openssl.d.ts +479 -0
  323. package/dist/openssl.js +1052 -0
  324. package/dist/openssl.js.map +1 -0
  325. package/dist/optparse.d.ts +130 -0
  326. package/dist/optparse.js +457 -0
  327. package/dist/optparse.js.map +1 -0
  328. package/dist/os-adapter.d.ts +20 -0
  329. package/dist/os-adapter.js +95 -0
  330. package/dist/os-adapter.js.map +1 -0
  331. package/dist/pathname.d.ts +73 -0
  332. package/dist/pathname.js +412 -0
  333. package/dist/pathname.js.map +1 -0
  334. package/dist/pp.d.ts +60 -0
  335. package/dist/pp.js +195 -0
  336. package/dist/pp.js.map +1 -0
  337. package/dist/pretty-print.d.ts +89 -0
  338. package/dist/pretty-print.js +232 -0
  339. package/dist/pretty-print.js.map +1 -0
  340. package/dist/process-adapter.d.ts +229 -0
  341. package/dist/process-adapter.js +889 -0
  342. package/dist/process-adapter.js.map +1 -0
  343. package/dist/process.d.ts +202 -0
  344. package/dist/process.js +433 -0
  345. package/dist/process.js.map +1 -0
  346. package/dist/psych/class-loader.d.ts +92 -0
  347. package/dist/psych/class-loader.js +139 -0
  348. package/dist/psych/class-loader.js.map +1 -0
  349. package/dist/psych/coder.d.ts +144 -0
  350. package/dist/psych/coder.js +176 -0
  351. package/dist/psych/coder.js.map +1 -0
  352. package/dist/psych/core-ext.d.ts +8 -0
  353. package/dist/psych/core-ext.js +10 -0
  354. package/dist/psych/core-ext.js.map +1 -0
  355. package/dist/psych/emitter.d.ts +116 -0
  356. package/dist/psych/emitter.js +1130 -0
  357. package/dist/psych/emitter.js.map +1 -0
  358. package/dist/psych/exception.d.ts +43 -0
  359. package/dist/psych/exception.js +54 -0
  360. package/dist/psych/exception.js.map +1 -0
  361. package/dist/psych/handler.d.ts +59 -0
  362. package/dist/psych/handler.js +95 -0
  363. package/dist/psych/handler.js.map +1 -0
  364. package/dist/psych/handlers/document-stream.d.ts +17 -0
  365. package/dist/psych/handlers/document-stream.js +26 -0
  366. package/dist/psych/handlers/document-stream.js.map +1 -0
  367. package/dist/psych/nodes/alias.d.ts +15 -0
  368. package/dist/psych/nodes/alias.js +22 -0
  369. package/dist/psych/nodes/alias.js.map +1 -0
  370. package/dist/psych/nodes/document.d.ts +23 -0
  371. package/dist/psych/nodes/document.js +35 -0
  372. package/dist/psych/nodes/document.js.map +1 -0
  373. package/dist/psych/nodes/mapping.d.ts +25 -0
  374. package/dist/psych/nodes/mapping.js +35 -0
  375. package/dist/psych/nodes/mapping.js.map +1 -0
  376. package/dist/psych/nodes/node.d.ts +59 -0
  377. package/dist/psych/nodes/node.js +79 -0
  378. package/dist/psych/nodes/node.js.map +1 -0
  379. package/dist/psych/nodes/scalar.d.ts +35 -0
  380. package/dist/psych/nodes/scalar.js +47 -0
  381. package/dist/psych/nodes/scalar.js.map +1 -0
  382. package/dist/psych/nodes/sequence.d.ts +25 -0
  383. package/dist/psych/nodes/sequence.js +35 -0
  384. package/dist/psych/nodes/sequence.js.map +1 -0
  385. package/dist/psych/nodes/stream.d.ts +23 -0
  386. package/dist/psych/nodes/stream.js +31 -0
  387. package/dist/psych/nodes/stream.js.map +1 -0
  388. package/dist/psych/omap.d.ts +9 -0
  389. package/dist/psych/omap.js +9 -0
  390. package/dist/psych/omap.js.map +1 -0
  391. package/dist/psych/parser.d.ts +41 -0
  392. package/dist/psych/parser.js +139 -0
  393. package/dist/psych/parser.js.map +1 -0
  394. package/dist/psych/scalar-scanner.d.ts +31 -0
  395. package/dist/psych/scalar-scanner.js +169 -0
  396. package/dist/psych/scalar-scanner.js.map +1 -0
  397. package/dist/psych/syntax-error.d.ts +23 -0
  398. package/dist/psych/syntax-error.js +35 -0
  399. package/dist/psych/syntax-error.js.map +1 -0
  400. package/dist/psych/tree-builder.d.ts +51 -0
  401. package/dist/psych/tree-builder.js +118 -0
  402. package/dist/psych/tree-builder.js.map +1 -0
  403. package/dist/psych/visitors/depth-first.d.ts +27 -0
  404. package/dist/psych/visitors/depth-first.js +37 -0
  405. package/dist/psych/visitors/depth-first.js.map +1 -0
  406. package/dist/psych/visitors/emitter.d.ts +32 -0
  407. package/dist/psych/visitors/emitter.js +63 -0
  408. package/dist/psych/visitors/emitter.js.map +1 -0
  409. package/dist/psych/visitors/to-ruby.d.ts +110 -0
  410. package/dist/psych/visitors/to-ruby.js +396 -0
  411. package/dist/psych/visitors/to-ruby.js.map +1 -0
  412. package/dist/psych/visitors/visitor.d.ts +11 -0
  413. package/dist/psych/visitors/visitor.js +17 -0
  414. package/dist/psych/visitors/visitor.js.map +1 -0
  415. package/dist/psych/visitors/yaml-tree.d.ts +182 -0
  416. package/dist/psych/visitors/yaml-tree.js +593 -0
  417. package/dist/psych/visitors/yaml-tree.js.map +1 -0
  418. package/dist/psych-adapter.d.ts +65 -0
  419. package/dist/psych-adapter.js +121 -0
  420. package/dist/psych-adapter.js.map +1 -0
  421. package/dist/psych-yaml.d.ts +2 -0
  422. package/dist/psych-yaml.js +5 -0
  423. package/dist/psych-yaml.js.map +1 -0
  424. package/dist/psych.d.ts +257 -0
  425. package/dist/psych.js +332 -0
  426. package/dist/psych.js.map +1 -0
  427. package/dist/queue.d.ts +137 -0
  428. package/dist/queue.js +236 -0
  429. package/dist/queue.js.map +1 -0
  430. package/dist/racc/parser.d.ts +70 -0
  431. package/dist/racc/parser.js +206 -0
  432. package/dist/racc/parser.js.map +1 -0
  433. package/dist/range-error.d.ts +15 -0
  434. package/dist/range-error.js +15 -0
  435. package/dist/range-error.js.map +1 -0
  436. package/dist/range.d.ts +166 -0
  437. package/dist/range.js +421 -0
  438. package/dist/range.js.map +1 -0
  439. package/dist/rational.d.ts +168 -0
  440. package/dist/rational.js +587 -0
  441. package/dist/rational.js.map +1 -0
  442. package/dist/rb-config.d.ts +33 -0
  443. package/dist/rb-config.js +53 -0
  444. package/dist/rb-config.js.map +1 -0
  445. package/dist/rb-equal.d.ts +66 -0
  446. package/dist/rb-equal.js +262 -0
  447. package/dist/rb-equal.js.map +1 -0
  448. package/dist/rb-hash.d.ts +26 -0
  449. package/dist/rb-hash.js +108 -0
  450. package/dist/rb-hash.js.map +1 -0
  451. package/dist/regexp.d.ts +82 -0
  452. package/dist/regexp.js +191 -0
  453. package/dist/regexp.js.map +1 -0
  454. package/dist/repl-adapter.d.ts +270 -0
  455. package/dist/repl-adapter.js +562 -0
  456. package/dist/repl-adapter.js.map +1 -0
  457. package/dist/resolv.d.ts +30 -0
  458. package/dist/resolv.js +48 -0
  459. package/dist/resolv.js.map +1 -0
  460. package/dist/ruby-empty.d.ts +28 -0
  461. package/dist/ruby-empty.js +40 -0
  462. package/dist/ruby-empty.js.map +1 -0
  463. package/dist/ruby-platform.d.ts +39 -0
  464. package/dist/ruby-platform.js +49 -0
  465. package/dist/ruby-platform.js.map +1 -0
  466. package/dist/runtime-error.d.ts +15 -0
  467. package/dist/runtime-error.js +15 -0
  468. package/dist/runtime-error.js.map +1 -0
  469. package/dist/scheduled-task.d.ts +73 -0
  470. package/dist/scheduled-task.js +150 -0
  471. package/dist/scheduled-task.js.map +1 -0
  472. package/dist/secure-random.d.ts +50 -0
  473. package/dist/secure-random.js +141 -0
  474. package/dist/secure-random.js.map +1 -0
  475. package/dist/set.d.ts +158 -0
  476. package/dist/set.js +352 -0
  477. package/dist/set.js.map +1 -0
  478. package/dist/shellwords.d.ts +27 -0
  479. package/dist/shellwords.js +53 -0
  480. package/dist/shellwords.js.map +1 -0
  481. package/dist/signal-exception.d.ts +43 -0
  482. package/dist/signal-exception.js +88 -0
  483. package/dist/signal-exception.js.map +1 -0
  484. package/dist/socket.d.ts +230 -0
  485. package/dist/socket.js +484 -0
  486. package/dist/socket.js.map +1 -0
  487. package/dist/standard-error.d.ts +27 -0
  488. package/dist/standard-error.js +49 -0
  489. package/dist/standard-error.js.map +1 -0
  490. package/dist/stop-iteration.d.ts +10 -0
  491. package/dist/stop-iteration.js +10 -0
  492. package/dist/stop-iteration.js.map +1 -0
  493. package/dist/string/b.d.ts +19 -0
  494. package/dist/string/b.js +28 -0
  495. package/dist/string/b.js.map +1 -0
  496. package/dist/string/byte-methods.d.ts +57 -0
  497. package/dist/string/byte-methods.js +266 -0
  498. package/dist/string/byte-methods.js.map +1 -0
  499. package/dist/string/bytes.d.ts +35 -0
  500. package/dist/string/bytes.js +123 -0
  501. package/dist/string/bytes.js.map +1 -0
  502. package/dist/string/case-mapping.d.ts +57 -0
  503. package/dist/string/case-mapping.js +192 -0
  504. package/dist/string/case-mapping.js.map +1 -0
  505. package/dist/string/chomp.d.ts +15 -0
  506. package/dist/string/chomp.js +32 -0
  507. package/dist/string/chomp.js.map +1 -0
  508. package/dist/string/convert.d.ts +55 -0
  509. package/dist/string/convert.js +316 -0
  510. package/dist/string/convert.js.map +1 -0
  511. package/dist/string/delete.d.ts +14 -0
  512. package/dist/string/delete.js +17 -0
  513. package/dist/string/delete.js.map +1 -0
  514. package/dist/string/each.d.ts +108 -0
  515. package/dist/string/each.js +305 -0
  516. package/dist/string/each.js.map +1 -0
  517. package/dist/string/encode.d.ts +37 -0
  518. package/dist/string/encode.js +268 -0
  519. package/dist/string/encode.js.map +1 -0
  520. package/dist/string/force-encoding.d.ts +72 -0
  521. package/dist/string/force-encoding.js +147 -0
  522. package/dist/string/force-encoding.js.map +1 -0
  523. package/dist/string/inspect.d.ts +17 -0
  524. package/dist/string/inspect.js +81 -0
  525. package/dist/string/inspect.js.map +1 -0
  526. package/dist/string/method-table.d.ts +174 -0
  527. package/dist/string/method-table.js +805 -0
  528. package/dist/string/method-table.js.map +1 -0
  529. package/dist/string/scrub.d.ts +12 -0
  530. package/dist/string/scrub.js +33 -0
  531. package/dist/string/scrub.js.map +1 -0
  532. package/dist/string/slice.d.ts +26 -0
  533. package/dist/string/slice.js +73 -0
  534. package/dist/string/slice.js.map +1 -0
  535. package/dist/string/split.d.ts +11 -0
  536. package/dist/string/split.js +44 -0
  537. package/dist/string/split.js.map +1 -0
  538. package/dist/string/sub.d.ts +114 -0
  539. package/dist/string/sub.js +371 -0
  540. package/dist/string/sub.js.map +1 -0
  541. package/dist/string/succ.d.ts +14 -0
  542. package/dist/string/succ.js +118 -0
  543. package/dist/string/succ.js.map +1 -0
  544. package/dist/string/support.d.ts +142 -0
  545. package/dist/string/support.js +296 -0
  546. package/dist/string/support.js.map +1 -0
  547. package/dist/string/tr.d.ts +46 -0
  548. package/dist/string/tr.js +156 -0
  549. package/dist/string/tr.js.map +1 -0
  550. package/dist/string-io.d.ts +166 -0
  551. package/dist/string-io.js +248 -0
  552. package/dist/string-io.js.map +1 -0
  553. package/dist/string-scanner.d.ts +133 -0
  554. package/dist/string-scanner.js +248 -0
  555. package/dist/string-scanner.js.map +1 -0
  556. package/dist/struct.d.ts +54 -0
  557. package/dist/struct.js +222 -0
  558. package/dist/struct.js.map +1 -0
  559. package/dist/symbol.d.ts +48 -0
  560. package/dist/symbol.js +107 -0
  561. package/dist/symbol.js.map +1 -0
  562. package/dist/tempfile.d.ts +173 -0
  563. package/dist/tempfile.js +295 -0
  564. package/dist/tempfile.js.map +1 -0
  565. package/dist/temporal-tag.d.ts +23 -0
  566. package/dist/temporal-tag.js +29 -0
  567. package/dist/temporal-tag.js.map +1 -0
  568. package/dist/thread-error.d.ts +13 -0
  569. package/dist/thread-error.js +13 -0
  570. package/dist/thread-error.js.map +1 -0
  571. package/dist/thread-pool-executor.d.ts +121 -0
  572. package/dist/thread-pool-executor.js +254 -0
  573. package/dist/thread-pool-executor.js.map +1 -0
  574. package/dist/thread.d.ts +211 -0
  575. package/dist/thread.js +495 -0
  576. package/dist/thread.js.map +1 -0
  577. package/dist/timeout.d.ts +29 -0
  578. package/dist/timeout.js +41 -0
  579. package/dist/timeout.js.map +1 -0
  580. package/dist/tse.d.ts +40 -0
  581. package/dist/tse.js +66 -0
  582. package/dist/tse.js.map +1 -0
  583. package/dist/type-error.d.ts +14 -0
  584. package/dist/type-error.js +14 -0
  585. package/dist/type-error.js.map +1 -0
  586. package/dist/undefined-conversion-error.d.ts +10 -0
  587. package/dist/undefined-conversion-error.js +10 -0
  588. package/dist/undefined-conversion-error.js.map +1 -0
  589. package/dist/uri/common.d.ts +209 -0
  590. package/dist/uri/common.js +369 -0
  591. package/dist/uri/common.js.map +1 -0
  592. package/dist/uri/generic.d.ts +280 -0
  593. package/dist/uri/generic.js +806 -0
  594. package/dist/uri/generic.js.map +1 -0
  595. package/dist/uri/http.d.ts +23 -0
  596. package/dist/uri/http.js +30 -0
  597. package/dist/uri/http.js.map +1 -0
  598. package/dist/uri/https.d.ts +13 -0
  599. package/dist/uri/https.js +15 -0
  600. package/dist/uri/https.js.map +1 -0
  601. package/dist/uri/rfc2396-parser.d.ts +70 -0
  602. package/dist/uri/rfc2396-parser.js +264 -0
  603. package/dist/uri/rfc2396-parser.js.map +1 -0
  604. package/dist/uri/rfc3986-parser.d.ts +46 -0
  605. package/dist/uri/rfc3986-parser.js +171 -0
  606. package/dist/uri/rfc3986-parser.js.map +1 -0
  607. package/dist/uri.d.ts +13 -0
  608. package/dist/uri.js +13 -0
  609. package/dist/uri.js.map +1 -0
  610. package/dist/variable.d.ts +183 -0
  611. package/dist/variable.js +463 -0
  612. package/dist/variable.js.map +1 -0
  613. package/dist/verbose.d.ts +39 -0
  614. package/dist/verbose.js +49 -0
  615. package/dist/verbose.js.map +1 -0
  616. package/dist/yaml.d.ts +9 -0
  617. package/dist/yaml.js +9 -0
  618. package/dist/yaml.js.map +1 -0
  619. package/dist/zlib-adapter.d.ts +119 -0
  620. package/dist/zlib-adapter.js +230 -0
  621. package/dist/zlib-adapter.js.map +1 -0
  622. package/dist/zlib.d.ts +299 -0
  623. package/dist/zlib.js +679 -0
  624. package/dist/zlib.js.map +1 -0
  625. package/package.json +172 -3
@@ -0,0 +1,833 @@
1
+ import { classpaths } from "./classpath.js";
2
+ import { _superSlot, rbModDefineMethod, rbSeatSuper, superSlotFor, superSlots } from "./method-cache.js";
3
+ import { rbCFloat, rbCInteger, rbCNumeric } from "./numeric-class.js";
4
+ type Klass = abstract new (...args: never) => unknown;
5
+ /**
6
+ * `rb_obj_class` (`vendor/ruby/v3.3.11/object.c:265`), `Object#class`: the
7
+ * class object, read as `rb_class_of`
8
+ * (`vendor/ruby/v3.3.11/include/ruby/internal/globals.h:172`) reads it for the
9
+ * immediates Ruby answers a class for without a heap object, and otherwise
10
+ * the constructor, which a singleton class leaves naming the real class.
11
+ *
12
+ * @boundary: a JS `number` is the seat for both `Integer` and `Float`, so
13
+ * which one it is is read off the value; a `Uint8Array` is the binary
14
+ * `String` seat, and an instance of a `Uint8Array` subclass is an instance of
15
+ * that String subclass, whose ancestry `class_search_ancestor` continues
16
+ * into `String`'s at `Uint8Array.prototype`; a Temporal value carrying an instant
17
+ * is a Ruby `Time`, by the same reading `cmp` orders it with, and so are a JS
18
+ * `Date` and a `Temporal.PlainTime`. A function is a `Class` when its
19
+ * `prototype` is non-writable and a `Proc` otherwise. `Temporal.PlainDate` and
20
+ * `Temporal.PlainDateTime` are the seats of `Date` and `DateTime`, and a
21
+ * record whose prototype chain holds no class is a `Hash`, or a `Module` when
22
+ * `const_set` or `defineModule` marked it (`rb_obj_class`,
23
+ * `vendor/ruby/v3.3.11/object.c:296`). `-0` is a whole
24
+ * `number` and so an `Integer`, though Ruby has no negative Integer zero: JS
25
+ * integer arithmetic answers `-0` (`Math.round(-0.4)`, `0 * -1`) where Ruby
26
+ * answers `0`, so reading it as `-0.0` would turn those into Floats. The
27
+ * Float `-0.0` is the boxed `new Number(-0)`.
28
+ *
29
+ * @noRailsEquivalent PERMANENT
30
+ */
31
+ export declare function rbObjClass(obj: unknown): Klass;
32
+ /**
33
+ * The receiver phrase of `name_err_mesg_to_str`
34
+ * (`vendor/ruby/v3.3.11/error.c:2325-2390`), the `%3$s%4$s` of an
35
+ * `undefined method '…' for …` message: `nil`, `true` or `false` for those
36
+ * receivers, `module M` / `class C` for a module or class, and
37
+ * `an instance of C` otherwise.
38
+ *
39
+ * @noRailsEquivalent PERMANENT
40
+ */
41
+ export declare function nameErrMesgReceiver(obj: unknown): string;
42
+ /**
43
+ * `rb_obj_classname` (`vendor/ruby/v3.3.11/variable.c:498`): the
44
+ * {@link rbModToS} of the class {@link rbObjClass} answers, which is how Ruby
45
+ * interpolates `obj.class`.
46
+ *
47
+ * @noRailsEquivalent PERMANENT
48
+ */
49
+ export declare function rbObjClassname(x: unknown): string;
50
+ /**
51
+ * `rb_set_class_path_string` (`vendor/ruby/v3.3.11/variable.c:407`), by which
52
+ * `declare_under` (`vendor/ruby/v3.3.11/vm_insnhelper.c:5375`) paths a class
53
+ * after the cbase it is declared in: `under`'s path, `::`, and `name`.
54
+ *
55
+ * @noRailsEquivalent PERMANENT
56
+ */
57
+ export declare function rbSetClassPathString(klass: abstract new (...args: never) => unknown, under: {
58
+ readonly name: string | null;
59
+ }, name: string): void;
60
+ /** @noRailsEquivalent PERMANENT */
61
+ export interface TopLevelConstants {
62
+ ENV?: typeof import("./process-adapter.js").env;
63
+ Net?: import("./net/protocol.js").NetModule;
64
+ Object?: ObjectConstructor;
65
+ Psych?: typeof import("./psych.js").Psych;
66
+ URI?: typeof import("./uri/common.js").URI;
67
+ TSREPL?: typeof import("./repl-adapter.js").TSREPL;
68
+ }
69
+ /** @noRailsEquivalent PERMANENT */
70
+ export interface ConstantTable {
71
+ }
72
+ /**
73
+ * Ruby's top-level `Object`, whose constant table is
74
+ * `RCLASS_CONST_TBL(rb_cObject)` (`vendor/ruby/v3.3.11/internal/class.h:95`). It
75
+ * lives with `rb_cObject` so `object.ts` reads it without importing
76
+ * `variable.ts`, whose load-time core-class seats need this module
77
+ * evaluated first. It has no prototype, so a name such as `constructor` is
78
+ * not a constant.
79
+ *
80
+ * @noRailsEquivalent PERMANENT
81
+ */
82
+ export declare const TopLevel: TopLevelConstants;
83
+ /**
84
+ * The one class object a core class has once a gem reopens it
85
+ * (`class Date extends rbCDate`, seated on `TopLevel`): MRI has one
86
+ * `cDate` (`vendor/ruby/v3.3.11/ext/date/date_core.c:9604`), so the seat and
87
+ * the class reopening it are the same class. A class nothing reopens is
88
+ * answered as it is.
89
+ *
90
+ * @noRailsEquivalent PERMANENT
91
+ */
92
+ export declare function reopened(klass: object): object;
93
+ /**
94
+ * `FL_SINGLETON` (`vendor/ruby/v3.3.11/include/ruby/internal/fl_type.h:58`), the
95
+ * flag marking a class as some object's singleton class.
96
+ *
97
+ * @noRailsEquivalent PERMANENT
98
+ */
99
+ export declare const FL_SINGLETON: unique symbol;
100
+ /**
101
+ * `rb_obj_singleton_class` (`vendor/ruby/v3.3.11/object.c:288`), Ruby's
102
+ * `Kernel#singleton_class`, over `singleton_class_of` (`vendor/ruby/v3.3.11/class.c:2215`):
103
+ * the receiver's own class, created on first call and inserted between the
104
+ * object and its class. The JS seat is a subclass of `obj.constructor` that
105
+ * becomes the object's prototype. Its `prototype.constructor` stays the
106
+ * attached object's class, because `rb_obj_class` skips a singleton class
107
+ * (`vendor/ruby/v3.3.11/object.c:296`): `obj.constructor` keeps answering Ruby's
108
+ * `obj.class`. Ruby gives a class receiver a metaclass
109
+ * (`vendor/ruby/v3.3.11/class.c:2240`); a JS class has none apart from its own
110
+ * statics, so a class receiver is unsupported here and raises `TypeError`,
111
+ * a trails limitation rather than Ruby behavior.
112
+ *
113
+ * @noRailsEquivalent PERMANENT
114
+ */
115
+ export declare function rbObjSingletonClass(obj: object): abstract new (...args: never) => object;
116
+ /**
117
+ * `rb_singleton_class` (`vendor/ruby/v3.3.11/class.c:2286`). An object
118
+ * receiver answers {@link rbObjSingletonClass}. A class receiver answers its
119
+ * metaclass (`make_metaclass`, `vendor/ruby/v3.3.11/class.c:757`): a JS class's
120
+ * singleton methods are its own statics, so the metaclass's method table, its
121
+ * `prototype`, is the class itself, and `prepend` onto it writes the statics.
122
+ *
123
+ * @noRailsEquivalent PERMANENT
124
+ */
125
+ export declare function rbSingletonClass(obj: object): abstract new (...args: never) => object;
126
+ /**
127
+ * `rb_class_of` (`vendor/ruby/v3.3.11/include/ruby/internal/globals.h:172`):
128
+ * the singleton class when the object has one, where {@link rbObjClass}
129
+ * skips it, and the class {@link rbObjClass} answers otherwise.
130
+ *
131
+ * @noRailsEquivalent PERMANENT
132
+ */
133
+ export declare function rbClassOf(obj: unknown): Klass;
134
+ /**
135
+ * `T_ICLASS` (`vendor/ruby/v3.3.11/include/ruby/internal/value_type.h:140`), the
136
+ * type of the hidden class an `include` or `extend` splices into an ancestry. A link
137
+ * carries the module it stands for under this key.
138
+ *
139
+ * @noRailsEquivalent PERMANENT
140
+ */
141
+ export declare const T_ICLASS: unique symbol;
142
+ /**
143
+ * `rb_class_superclass` (`vendor/ruby/v3.3.11/object.c:2191`), `Class#superclass`:
144
+ * the next `T_CLASS` in the ancestry, so the iclass an `extend` put above the
145
+ * class is skipped, where `Object.getPrototypeOf` answers it.
146
+ *
147
+ * @noRailsEquivalent PERMANENT
148
+ */
149
+ export declare function rbClassSuperclass<T extends object>(klass: T): T | null;
150
+ export { classpaths };
151
+ export { rbCFloat, rbCInteger, rbCNumeric };
152
+ export { _superSlot, rbModDefineMethod, rbSeatSuper, superSlotFor, superSlots };
153
+ /**
154
+ * `rb_cBasicObject` (`vendor/ruby/v3.3.11/object.c:4200`). `Object.prototype`
155
+ * is the seat of `Object`, so this prototype has no parent.
156
+ * @noRailsEquivalent PERMANENT
157
+ */
158
+ export declare const rbCBasicObject: new () => object;
159
+ /**
160
+ * `rb_cClass` (`vendor/ruby/v3.3.11/object.c:4203`), a `Module` once include.ts loads.
161
+ * @noRailsEquivalent PERMANENT
162
+ */
163
+ export declare const rbCClass: new () => object;
164
+ /**
165
+ * `rb_cString` (`vendor/ruby/v3.3.11/string.c:12121`).
166
+ * @noRailsEquivalent PERMANENT
167
+ */
168
+ export declare const rbCString: new () => object;
169
+ /**
170
+ * `rb_cSymbol` (`vendor/ruby/v3.3.11/string.c:12290`).
171
+ * @noRailsEquivalent PERMANENT
172
+ */
173
+ export declare const rbCSymbol: new () => object;
174
+ /**
175
+ * `rb_cTime` (`vendor/ruby/v3.3.11/time.c:5832`).
176
+ * @noRailsEquivalent PERMANENT
177
+ */
178
+ export declare const rbCTime: new () => object;
179
+ /**
180
+ * `cDate` (`vendor/ruby/v3.3.11/ext/date/date_core.c:9604`).
181
+ * @noRailsEquivalent PERMANENT
182
+ */
183
+ export declare const rbCDate: new () => object;
184
+ /**
185
+ * `cDateTime` (`vendor/ruby/v3.3.11/ext/date/date_core.c:9984`).
186
+ * @noRailsEquivalent PERMANENT
187
+ */
188
+ export declare const rbCDateTime: new () => object;
189
+ /**
190
+ * `rb_cNilClass` (`vendor/ruby/v3.3.11/object.c:4412`).
191
+ * @noRailsEquivalent PERMANENT
192
+ */
193
+ export declare const rbCNilClass: new () => object;
194
+ /**
195
+ * `rb_check_to_integer(val, "to_int")` (`vendor/ruby/v3.3.11/object.c:3219-3230`):
196
+ * an Integer, a Float's or another object's `to_int` when it answers one, else `nil`.
197
+ *
198
+ * @noRailsEquivalent PERMANENT
199
+ */
200
+ export declare function rbCheckToInteger(val: unknown): number | bigint | null;
201
+ /**
202
+ * `rb_cTrueClass` (`vendor/ruby/v3.3.11/object.c:4498`).
203
+ * @noRailsEquivalent PERMANENT
204
+ */
205
+ export declare const rbCTrueClass: new () => object;
206
+ /**
207
+ * `rb_cFalseClass` (`vendor/ruby/v3.3.11/object.c:4510`).
208
+ * @noRailsEquivalent PERMANENT
209
+ */
210
+ export declare const rbCFalseClass: new () => object;
211
+ /**
212
+ * `rb_cArray` (`vendor/ruby/v3.3.11/array.c:8605`): the seat a reopened
213
+ * `class Array` defines its methods on, since a JS array's prototype is the
214
+ * global `Array.prototype`.
215
+ * @noRailsEquivalent PERMANENT
216
+ */
217
+ export declare const rbCArray: new () => object;
218
+ /**
219
+ * `rb_cProc` (`vendor/ruby/v3.3.11/proc.c:4290`).
220
+ * @noRailsEquivalent PERMANENT
221
+ */
222
+ export declare const rbCProc: new () => object;
223
+ /**
224
+ * `rb_mod_singleton_p` (`vendor/ruby/v3.3.11/object.c:3050`), `Module#singleton_class?`.
225
+ *
226
+ * @noRailsEquivalent PERMANENT
227
+ */
228
+ export declare function rbModSingletonP(klass: unknown): boolean;
229
+ /**
230
+ * `rb_class_attached_object` (`vendor/ruby/v3.3.11/class.c:1707-1714`),
231
+ * `Class#attached_object`.
232
+ *
233
+ * @noRailsEquivalent PERMANENT
234
+ */
235
+ export declare function rbClassAttachedObject(klass: abstract new (...args: never) => unknown): unknown;
236
+ /**
237
+ * `rb_mod_to_s` (`vendor/ruby/v3.3.11/object.c:1710-1742`), `Module#to_s` /
238
+ * `Module#inspect`: a singleton class renders `#<Class:` plus its attached
239
+ * object — `rb_inspect` for a class or module, `rb_any_to_s` otherwise — and
240
+ * `>`; any other class renders `rb_class_name`: its name, or for an anonymous
241
+ * class the `#<Class:0x…>` path `make_temporary_path`
242
+ * (`vendor/ruby/v3.3.11/variable.c:320-336`) gives it. Ruby's refinement arm
243
+ * has no JS seat.
244
+ *
245
+ * @noRailsEquivalent PERMANENT
246
+ */
247
+ export declare function rbModToS(klass: abstract new (...args: never) => unknown): string;
248
+ /**
249
+ * `rb_mod_name` (`vendor/ruby/v3.3.11/variable.c:122-127`), `Module#name`: the
250
+ * classpath a `const_set` or a module-eval seat gave the class, else the path
251
+ * its package's generated table holds (RFC 0205), else the name its
252
+ * definition gave it, or `nil` while it is anonymous.
253
+ *
254
+ * A class expression with no identifier is Ruby's `Class.new`, which JS names
255
+ * after the binding it is assigned to. Like Ruby, that names the class only
256
+ * when the binding is a constant name (`Foo = Class.new`), not a local
257
+ * (`klass = Class.new`).
258
+ *
259
+ * A minifier that mangles class names is out of scope, as it is for every
260
+ * reader of `name`. A bundle keeps its classes named by preserving names
261
+ * (esbuild `keepNames`) or by seating them.
262
+ *
263
+ * @noRailsEquivalent PERMANENT
264
+ */
265
+ export declare function rbModName(klass: object): string | null;
266
+ /**
267
+ * The methods a package defines on `Object`, as `rb_define_method` on
268
+ * `rb_cObject` (`vendor/ruby/v3.3.11/class.c:2134`) does, keyed by the camelCased Ruby
269
+ * name, which {@link rbFSend} dispatches for a receiver whose own class
270
+ * defines none: ActiveSupport's `Object#in?`
271
+ * (`activesupport/lib/active_support/core_ext/object/inclusion.rb:15`) is
272
+ * reached by `value.public_send(:in?, range)` on an Integer.
273
+ *
274
+ * @noRailsEquivalent PERMANENT
275
+ */
276
+ export declare const OBJECT_METHOD_TABLE: Record<string, (self: never, ...args: never[]) => unknown>;
277
+ /**
278
+ * The methods a package defines on `Enumerable`, keyed by the camelCased Ruby
279
+ * name, which {@link rbFSend} dispatches and {@link basicObjRespondTo} answers
280
+ * for on the receivers `each` is bound for: a JS array, a `Set`, and a `Map`
281
+ * or plain hash, whose Ruby classes include `Enumerable`
282
+ * (`vendor/ruby/v3.3.11/array.c:8606`, `lib/set.rb:221`, `hash.c:7184`), and
283
+ * an object that defines `Symbol.iterator`, a class's
284
+ * `include Enumerable` (`enum.c:5061`).
285
+ * ActiveSupport's `Enumerable#maximum`
286
+ * (`activesupport/lib/active_support/core_ext/enumerable.rb:40`) is reached by
287
+ * `object.try(:maximum, :updated_at)` on an Array of records.
288
+ *
289
+ * @noRailsEquivalent PERMANENT
290
+ */
291
+ export declare const ENUMERABLE_METHOD_TABLE: Record<string, (self: never, ...args: never[]) => unknown>;
292
+ /**
293
+ * `rb_obj_is_proc` (`vendor/ruby/v3.3.11/proc.c:120`): a function that is not
294
+ * a class, which is what a block or a lambda is.
295
+ *
296
+ * @noRailsEquivalent PERMANENT
297
+ */
298
+ export declare function rbObjIsProc(proc: unknown): proc is AnyFunction;
299
+ /**
300
+ * Ruby's `callable.call(*args)`: `rb_proc_call` (`vendor/ruby/v3.3.11/proc.c:990`)
301
+ * applies a proc to the arguments, where JS `Function.prototype.call` would
302
+ * take the first as `this`; any other receiver answers its own `call`, and one
303
+ * with no `call` member is sent `call`, so it reaches `method_missing` or
304
+ * raises `NoMethodError` as {@link rbFSend} does.
305
+ *
306
+ * @noRailsEquivalent PERMANENT
307
+ */
308
+ export declare function rbProcCall(callable: unknown, ...args: unknown[]): unknown;
309
+ /**
310
+ * The methods a package defines on `Class`, as `rb_define_method` on
311
+ * `rb_cClass` (`vendor/ruby/v3.3.11/class.c:2134`) does, keyed by the camelCased Ruby
312
+ * name, which {@link basicObjRespondTo} answers for a class receiver:
313
+ * ActiveSupport's `Class#class_attribute`
314
+ * (`activesupport/lib/active_support/core_ext/class/attribute.rb:86`) is what
315
+ * `respond_to?(:class_attribute)` asks of a class and not of a module.
316
+ *
317
+ * @noRailsEquivalent PERMANENT
318
+ */
319
+ export declare const CLASS_METHOD_TABLE: Record<string, (self: never, ...args: never[]) => unknown>;
320
+ /**
321
+ * The methods bound on a Temporal seat, keyed by its `Symbol.toStringTag` and
322
+ * then by the camelCased Ruby name, which {@link rbFSend} dispatches and
323
+ * {@link basicObjRespondTo} answers for: a Temporal value's prototype carries
324
+ * none of them. `to_date` is Ruby's own, for Date and DateTime
325
+ * (`date_to_date` and `datetime_to_date`,
326
+ * `vendor/ruby/v3.3.11/ext/date/date_core.c:10054,10058`). A package that
327
+ * reopens one of those classes, as ActiveSupport's `core_ext/date_time` does,
328
+ * assigns an entry, as it does on `STRING_METHOD_TABLE`. A JS `Date`, which
329
+ * spells a Ruby Time at the boundary and has no such tag, is keyed `"Date"`:
330
+ * the date package seats `Time#utc?`, `#getutc` and `#getlocal`
331
+ * (`vendor/ruby/v3.3.11/time.c:4340,4425,4374`) there and on
332
+ * `Temporal.Instant`. An instance of {@link rbCDate} (the date package's
333
+ * `Date` and its subclasses) is keyed `"rbCDate"`, for the private methods
334
+ * `Date` defines (`hour` and the rest, `date_core.c:9773-9777`): they answer
335
+ * `send` but not a JS `name in object`, and a subclass's own member, such as
336
+ * `DateTime#hour`, is found first.
337
+ *
338
+ * @noRailsEquivalent PERMANENT
339
+ */
340
+ export declare const TEMPORAL_METHOD_TABLE: Record<string, Record<string, (self: never, ...args: never[]) => unknown>>;
341
+ /**
342
+ * `basic_obj_respond_to` (`vendor/ruby/v3.3.11/vm_method.c:2864`) — the default
343
+ * `Object#respond_to?`, which answers whether the receiver's class defines the
344
+ * method. A JS object answers a name whether it carries a method or a
345
+ * property, so the prototype-chain lookup is the whole `method_boundp` here,
346
+ * and an own `undefined` value is its `2` (undefined method) case. An unbound
347
+ * name falls through to the receiver's `respond_to_missing?`
348
+ * (`basic_obj_respond_to_missing`, `vm_method.c:2850-2861`).
349
+ * Like `callable_method_entry` there, the entry is found by descriptor lookup,
350
+ * never by a property read a `methodMissingPrototype` `get` trap would answer.
351
+ * `isEmpty` is bound for the core receivers `ruby-empty.ts`'s `isEmpty` answers
352
+ * `empty?` for (`array.c:2686`, `hash.c:3023`, `string.c:2243`), whose JS
353
+ * values carry no such member. `isInclude` is bound for the same receivers and
354
+ * `Set`, which define `include?` (`array.c:8679`, `hash.c:7255`,
355
+ * `string.c:12215`, `lib/set.rb:393`), and `toSym` for every JS string
356
+ * (`string.c:12212`), which spells both a Ruby String and a Ruby Symbol
357
+ * (`":name"`); Symbol answers `to_sym` too (`symbol.rb:8`). `toAry` is bound for a JS array
358
+ * (`array.c:8619`), whose prototype carries no such member. `each` is bound
359
+ * for a JS array, a `Set`, and a `Map` or plain hash (`array.c:8642`,
360
+ * `lib/set.rb:499`, `hash.c:7219`), and `eachPair` for a `Map` or plain hash
361
+ * (`hash.c:7218`). `isInfinite` and
362
+ * `isFinite` are bound for a JS number and bigint, which spell Float
363
+ * (`numeric.c:6376-6377`) and Integer (`numeric.rb:39-48`). `toYaml` is bound for
364
+ * every receiver: Psych defines `to_yaml` on `Object` (`ext/psych/lib/psych/core_ext.rb:12-14`),
365
+ * and trails ports it as the free `toYaml` in `psych/core-ext.ts`. A Temporal seat answers for the methods
366
+ * {@link TEMPORAL_METHOD_TABLE} binds on it.
367
+ *
368
+ * A class receiver (a non-writable `prototype`, which a plain function, the
369
+ * JS spelling of a `Proc`, does not have) answers `Module#respond_to?`: its static data fields hold
370
+ * what Ruby keeps in class-level ivars, not methods, and the lookup stops
371
+ * short of `Function.prototype`, whose `call` / `apply` / `bind` no Ruby
372
+ * `Module` defines. A plain function's own `length` and `name` are its JS
373
+ * arity and function name, which no Ruby `Proc` defines.
374
+ *
375
+ * A writer `name=` is answered by a JS accessor's setter or by a `setName`
376
+ * method, the conventions table's two writer spellings and the entries
377
+ * {@link rbFSend} dispatches it to. An underscore-prefixed writer
378
+ * (`_reflections=`) is a `class_attribute` storage slot and has no `set*`
379
+ * spelling.
380
+ *
381
+ * `method_boundp` (`vm_method.c:1788-1818`) answers `0` for a PRIVATE entry,
382
+ * and under `BOUND_RESPONDS` a PROTECTED one, when `pub` is set. A JS entry
383
+ * carries no visibility, so there is no `pub` to pass (see CLAUDE.md, "Method
384
+ * visibility is compile-time only").
385
+ *
386
+ * @noRailsEquivalent PERMANENT — Ruby core `basic_obj_respond_to`
387
+ * (`vendor/ruby/v3.3.11/vm_method.c:2864`).
388
+ */
389
+ export declare function basicObjRespondTo(obj: unknown, mid: string): boolean;
390
+ /**
391
+ * `Object#respond_to_missing?` (`obj_respond_to_missing`,
392
+ * `vendor/ruby/v3.3.11/vm_method.c:3009`), the default a class's own
393
+ * `respond_to_missing?` reaches through `super`: it answers false for every
394
+ * name.
395
+ *
396
+ * @noRailsEquivalent PERMANENT — Ruby core `obj_respond_to_missing`
397
+ * (`vendor/ruby/v3.3.11/vm_method.c:3009`).
398
+ */
399
+ export declare function objRespondToMissing(_obj: unknown, _mid: string, _priv: boolean): boolean;
400
+ /**
401
+ * The `setName` method that answers a Ruby writer `name=` (`rb_id_attrset`,
402
+ * `vendor/ruby/v3.3.11/vm_method.c:1895`) when it is not a JS accessor's
403
+ * setter, as {@link rbFSend} and {@link rbObjRespondTo} look it up.
404
+ *
405
+ * @noRailsEquivalent PERMANENT
406
+ */
407
+ export declare function writerSpelling(attr: string | undefined): string | undefined;
408
+ /**
409
+ * The `snake_case` to `camelCase` spelling of a Ruby ID `rb_f_send`
410
+ * (`vendor/ruby/v3.3.11/vm_eval.c:1330`) would dispatch.
411
+ *
412
+ * @noRailsEquivalent PERMANENT
413
+ */
414
+ export declare function camelized(name: string): string;
415
+ /**
416
+ * Thor's `name.tr("-", "_")` reversed (`rb_str_tr`,
417
+ * `vendor/ruby/v3.3.11/string.c:8226`) for a CLI name: RFC 0171 decision 6.
418
+ *
419
+ * @noRailsEquivalent PERMANENT
420
+ */
421
+ export declare function kebabCase(name: string): string;
422
+ /**
423
+ * `Module#method_defined?` (`rb_mod_method_defined`,
424
+ * `vendor/ruby/v3.3.11/vm_method.c:2055`). A JS entry carries no visibility, so
425
+ * every defined entry answers. A writer `name=` is
426
+ * answered by a JS accessor's setter or a `setName` method, the entries
427
+ * {@link rbFSend} dispatches to. A false `inherit` answers for `mod`'s
428
+ * own method table only (`check_definition_visibility`, `vm_method.c:2000-2013`).
429
+ * A `Module` instance keeps its method table on a private carrier and answers
430
+ * through its own `isMethodDefined`, for that table only whatever `inherit` is:
431
+ * a ruby-compat `Module` copies an included module's methods into its includer
432
+ * and records no ancestor to walk. A plain-object module answers for its own
433
+ * enumerable members, its instance methods, and with `inherit` for the
434
+ * modules it recorded including.
435
+ *
436
+ * @noRailsEquivalent PERMANENT
437
+ */
438
+ export declare function rbModMethodDefined(mod: {
439
+ prototype: object;
440
+ } | {
441
+ isMethodDefined(mid: string): boolean;
442
+ } | object, mid: string, inherit?: boolean): boolean;
443
+ /**
444
+ * Whether `half` is the getter or setter {@link defineAccessorHalf} seats for
445
+ * a method the table does not define. Ruby keeps `x` and `x=` as two method
446
+ * entries (`rb_add_method`, `vendor/ruby/v3.3.11/vm_method.c:1146`), so a table
447
+ * with only one of them leaves the other to the next table in the ancestry;
448
+ * every method lookup reads such a half as no entry and keeps walking.
449
+ *
450
+ * @noRailsEquivalent PERMANENT
451
+ */
452
+ export declare function isAbsentHalf(half: unknown): boolean;
453
+ /**
454
+ * Seats one half of the accessor `name` on `target`, the JS spelling of adding
455
+ * the method entry `name` or `name=` to a method table (`rb_add_method`,
456
+ * `vendor/ruby/v3.3.11/vm_method.c:1146`). A JS accessor is one descriptor, so
457
+ * the half not given keeps `target`'s own, and where `target` has none it
458
+ * defers to the next table up the prototype chain, as Ruby's method search
459
+ * does for an entry the table lacks. `enumerable` is set on a plain-object
460
+ * module, whose enumerable members are the instance methods `include()` copies
461
+ * (CLAUDE.md, "A Ruby module is a JS object or a JS class").
462
+ *
463
+ * @noRailsEquivalent PERMANENT
464
+ */
465
+ export declare function defineAccessorHalf(target: object, name: string, half: {
466
+ get?: () => unknown;
467
+ set?: (value: unknown) => void;
468
+ enumerable?: boolean;
469
+ }): void;
470
+ /**
471
+ * `Module#undef_method` (`rb_mod_undef_method`,
472
+ * `vendor/ruby/v3.3.11/vm_method.c:1973`). An undefined name raises `NameError`.
473
+ * `name` and `name=` are one JS descriptor, so `name=` is undefined by a `"name="`
474
+ * entry, which every lookup reads first, and `name` by a reader half that stops
475
+ * the search and keeps the writer.
476
+ *
477
+ * @noRailsEquivalent PERMANENT
478
+ */
479
+ export declare function rbModUndefMethod<K extends {
480
+ prototype: object;
481
+ }>(klass: K, ...names: string[]): K;
482
+ /**
483
+ * `Module#attr_reader` (`rb_mod_attr_reader`, `vendor/ruby/v3.3.11/object.c:2279`).
484
+ *
485
+ * @noRailsEquivalent PERMANENT
486
+ */
487
+ export declare function rbModAttrReader(klass: {
488
+ prototype: object;
489
+ }, ...argv: string[]): void;
490
+ /**
491
+ * `Module#attr_writer` (`rb_mod_attr_writer`, `vendor/ruby/v3.3.11/object.c:2335`).
492
+ *
493
+ * @noRailsEquivalent PERMANENT
494
+ */
495
+ export declare function rbModAttrWriter(klass: {
496
+ prototype: object;
497
+ }, ...argv: string[]): void;
498
+ /**
499
+ * Ruby's `obj.to_sym` send: `String#to_sym` (`rb_str_intern`,
500
+ * `vendor/ruby/v3.3.11/symbol.c:862`, bound at `vendor/ruby/v3.3.11/string.c:12212`)
501
+ * and `Symbol#to_sym` (`vendor/ruby/v3.3.11/symbol.rb:8`). A JS string spells
502
+ * both receivers and answers the Symbol's colon spelling (`":name"`); no other
503
+ * core receiver defines `to_sym`, so the send dispatches to a receiver's own
504
+ * `toSym` and otherwise raises `NoMethodError`. It is
505
+ * the send, where {@link stringToSym} is `rb_str_intern` on a known String,
506
+ * as `toI` is to `rbStrToI`.
507
+ *
508
+ * @noRailsEquivalent PERMANENT
509
+ */
510
+ export declare function toSym(obj: unknown): string;
511
+ /**
512
+ * Ruby's `obj.to_s` send for a receiver that may be a Symbol: `Symbol#to_s`
513
+ * (`rb_sym_to_s`, `vendor/ruby/v3.3.11/string.c:11734`) answers the name of a
514
+ * colon-spelled Symbol (`":name"`), and every other receiver answers as
515
+ * {@link rbObjAsString} does (`String#to_s` is `rb_str_to_s`,
516
+ * `vendor/ruby/v3.3.11/string.c:6648`). It is the send, where
517
+ * {@link symbolToS} is `rb_sym_to_s` on a known Symbol, as `toSym` is to
518
+ * `stringToSym`.
519
+ *
520
+ * @noRailsEquivalent PERMANENT
521
+ */
522
+ export declare function toS(obj: string): string;
523
+ /** @noRailsEquivalent PERMANENT — Ruby core `rb_str_to_s` (`vendor/ruby/v3.3.11/string.c:6648`). */
524
+ export declare function toS(obj: Uint8Array): Uint8Array;
525
+ /** @noRailsEquivalent PERMANENT — Ruby core `rb_str_to_s` (`vendor/ruby/v3.3.11/string.c:6648`). */
526
+ export declare function toS(obj: string | Uint8Array): string | Uint8Array;
527
+ /** @noRailsEquivalent PERMANENT — Ruby core `rb_str_to_s` (`vendor/ruby/v3.3.11/string.c:6648`). */
528
+ export declare function toS(obj: unknown): string;
529
+ /**
530
+ * `Kernel#send` (`rb_f_send`, `vendor/ruby/v3.3.11/vm_eval.c:1330`): calls the nearest
531
+ * entry for `mid` whatever its visibility. A zero-argument reader ported as a
532
+ * JS accessor or a field answers through its getter or its value, as the Ruby
533
+ * reader it ports would. `infinite?` is dispatched for a JS number and bigint,
534
+ * whose prototypes carry no such member: `Float#infinite?`
535
+ * (`rb_flo_is_infinite_p`, `vendor/ruby/v3.3.11/numeric.c:1992`) answers `1` /
536
+ * `-1` for an infinity and `nil` otherwise, as `Integer#infinite?`
537
+ * (`vendor/ruby/v3.3.11/numeric.rb:48`) always does. `odd?` and `even?` are
538
+ * dispatched for an Integer alone (`rb_int_odd_p` / `rb_int_even_p`,
539
+ * `vendor/ruby/v3.3.11/numeric.c:3564,3588`): a Float defines neither. A
540
+ * predicate sent by its Ruby name (`:odd?`, the value Rails' `NUMBER_CHECKS`
541
+ * holds) reaches those two arms and `OBJECT_METHOD_TABLE` by its `is`-prefixed
542
+ * TS spelling; every other lookup, `method_missing` included, sees the name as
543
+ * sent. An operator is sent by its
544
+ * Ruby name (`">"`), which has no TS method spelling. `==` is {@link rbEqual},
545
+ * which sends the receiver's own `==`, and `!=` its negation
546
+ * (`rb_obj_not_equal`, `vendor/ruby/v3.3.11/object.c:248`). The four ordering
547
+ * operators answer for the receivers that define them in Ruby: between two
548
+ * numbers they are `Integer`'s and `Float`'s own (`rb_int_gt`,
549
+ * `vendor/ruby/v3.3.11/numeric.c:4743`, and `rb_float_gt`, `:1753`), false for
550
+ * a NaN operand and never raising; a number against
551
+ * anything else, and any other `Comparable` receiver (a String, a Time or
552
+ * Date, or an object defining `<=>`), go through `cmpint`
553
+ * (`vendor/ruby/v3.3.11/compar.c:105-147`) and raise `ArgumentError` for a pair
554
+ * `<=>` cannot place. Any other receiver, `nil` included, has no such method
555
+ * and raises `NoMethodError`. `include?` is dispatched for the core receivers
556
+ * {@link basicObjRespondTo} binds it for, when no entry of their own answers
557
+ * (`vendor/ruby/v3.3.11/string.c:12215`, `array.c:8679`, `hash.c:7255`,
558
+ * `lib/set.rb:393`). A Set or Hash looks a member up by `eql?`, so an object a
559
+ * JS `has` misses by identity is compared with `rb_eql` against each key.
560
+ *
561
+ * @noRailsEquivalent PERMANENT — Ruby core `Kernel#send` (`vendor/ruby/v3.3.11/vm_eval.c:1330`).
562
+ */
563
+ export declare function rbFSend(recv: unknown, mid: unknown, ...args: unknown[]): unknown;
564
+ /**
565
+ * `conversion_mismatch` (`vendor/ruby/v3.3.11/object.c:3132`): the `TypeError`
566
+ * a conversion method raises for answering the wrong type.
567
+ *
568
+ * @noRailsEquivalent PERMANENT
569
+ */
570
+ export declare function conversionMismatch(val: unknown, tname: string, method: string, result: unknown): never;
571
+ /**
572
+ * The method tables `Module#undef_method` writes its entries into: a data
573
+ * property holding `undefined` on one of them is `VM_METHOD_TYPE_UNDEF`
574
+ * (`vendor/ruby/v3.3.11/vm_method.c:1973` `rb_mod_undef_method`), where the
575
+ * lookup stops and `send` goes to `method_missing`.
576
+ *
577
+ * @noRailsEquivalent PERMANENT
578
+ */
579
+ export declare const UNDEF_METHOD_TABLES: WeakSet<object>;
580
+ type AnyFunction = (...args: unknown[]) => unknown;
581
+ /**
582
+ * `rb_check_funcall` (`vendor/ruby/v3.3.11/vm_eval.c:687`): the call when the
583
+ * receiver responds to `mid`, else `undefined`, MRI's `Qundef`.
584
+ *
585
+ * @noRailsEquivalent PERMANENT
586
+ */
587
+ export declare function rbCheckFuncall(recv: unknown, mid: string, ...args: unknown[]): unknown;
588
+ /**
589
+ * `rb_obj_respond_to` (`vendor/ruby/v3.3.11/vm_method.c:2934`) — the SEND of
590
+ * `respond_to?`, which `vm_respond_to` (`vm_method.c:2882`) routes through an
591
+ * overridden `respond_to?` when the receiver's class defines one (as
592
+ * `ActiveModel::AttributeMethods` does) — with no private-methods argument,
593
+ * since a JS entry carries no visibility (`vm_method.c:2896-2905`) — and otherwise
594
+ * falls back to {@link basicObjRespondTo} (`vm_method.c:2945`). Like
595
+ * `method_entry_get` there, `respond_to?` is found by descriptor lookup, never
596
+ * by a property read a `method_missing` Proxy's `get` trap would answer. An
597
+ * overridden `respond_to?` is spelled `isRespondTo`, never `respondTo`, which
598
+ * is a Rails method of its own (`MimeResponds#respond_to`).
599
+ *
600
+ * @noRailsEquivalent PERMANENT — Ruby core `rb_obj_respond_to`
601
+ * (`vendor/ruby/v3.3.11/vm_method.c:2934`).
602
+ */
603
+ export declare function rbObjRespondTo(obj: unknown, mid: string): boolean;
604
+ /**
605
+ * `rb_builtin_class_name` (`vendor/ruby/v3.3.11/error.c:1216`), which the conversion
606
+ * errors name their operand by: `builtin_class_name` (`error.c:1189`) answers
607
+ * the LOWERCASE `"nil"` / `"true"` / `"false"` for those three immediates —
608
+ * `Float(nil)` is `can't convert nil into Float`, not `NilClass` — and
609
+ * everything else falls through to {@link rbObjClassname}.
610
+ *
611
+ * @noRailsEquivalent PERMANENT — Ruby core `rb_builtin_class_name` (`vendor/ruby/v3.3.11/error.c:1216`).
612
+ */
613
+ export declare function rbBuiltinClassName(x: unknown): string;
614
+ /**
615
+ * `rb_inspect` (`vendor/ruby/v3.3.11/object.c:704`) over the core classes a JS value
616
+ * can be: `nil`, `true` / `false`, Integer and Float, Symbol, String (an
617
+ * ASCII-8BIT one is a `Uint8Array`, its high bytes `\xHH`), Array and Hash.
618
+ * Anything else falls through to the receiver's own `inspect`.
619
+ *
620
+ * The default arm is `to_s`, not Ruby's `#<Foo:0x… @a=1>` (`rb_obj_inspect`,
621
+ * `vendor/ruby/v3.3.11/object.c:764`): reproducing that needs an object id JS does not
622
+ * expose. Callers hand this plain data structures only, so the arm is unreached
623
+ * today — a caller that does pass a class instance gets its `to_s`.
624
+ *
625
+ * @noRailsEquivalent PERMANENT — Ruby core `rb_inspect` (`vendor/ruby/v3.3.11/object.c:704`).
626
+ */
627
+ export declare function rbInspect(value: unknown): string;
628
+ /**
629
+ * Node's `util.inspect` (`console.log`, an assertion diff, a spy matcher)
630
+ * renders an object by walking its fields, where Ruby's `p`
631
+ * (`rb_p`, `vendor/ruby/v3.3.11/io.c:9023`) prints `rb_inspect(obj)`. This
632
+ * defines the `nodejs.util.inspect.custom` hook on `klass` as its own
633
+ * `inspect`, so a class that ports `inspect` is printed by it.
634
+ *
635
+ * @noRailsEquivalent PERMANENT
636
+ */
637
+ export declare function rbDefineInspectCustom(klass: {
638
+ prototype: {
639
+ inspect(): unknown;
640
+ };
641
+ }): void;
642
+ /**
643
+ * `rb_obj_inspect` (`vendor/ruby/v3.3.11/object.c:783-795`), Ruby's `Kernel#inspect`:
644
+ * `#<Class:0x… @ivar=value, …>`, or `rb_any_to_s` when there are no ivars.
645
+ * A trails field `fooBar` / `_fooBar` is Ruby's `@foo_bar`. JS exposes no
646
+ * object address, so each object is assigned a stable one on first inspection.
647
+ *
648
+ * @noRailsEquivalent PERMANENT
649
+ */
650
+ export declare function rbObjInspect(obj: object): string;
651
+ /**
652
+ * `rb_any_to_s` (`vendor/ruby/v3.3.11/object.c:693-701`), `Kernel#to_s`:
653
+ * `#<Class:0x…>`. JS exposes no object address, so each object is assigned a
654
+ * stable one on first use. A JS function is Ruby's `Proc`, whose `to_s`
655
+ * (`proc_to_s`, `vendor/ruby/v3.3.11/proc.c:1595`) opens the same way.
656
+ *
657
+ * @noRailsEquivalent PERMANENT
658
+ */
659
+ export declare function rbAnyToS(obj: object): string;
660
+ /**
661
+ * `rb_obj_id` (`vendor/ruby/v3.3.11/gc.c:4975`), `Kernel#object_id`. A heap
662
+ * object answers a stable integer handed out on first use, starting at
663
+ * `OBJ_ID_INITIAL` and `OBJ_ID_INCREMENT` apart (`gc.c:3826-3827`, a 40-byte
664
+ * `RVALUE` on 64-bit). A special constant answers its own `VALUE`
665
+ * (`rb_find_object_id`, `gc.c:4883-4898`): `nil` is 4, `true` 20, `false` 0
666
+ * (`vendor/ruby/v3.3.11/include/ruby/internal/special_consts.h:98-100`), a
667
+ * Fixnum `n` is `2n + 1`, and a flonum is the rotated bits
668
+ * `rb_float_new_inline` packs it into
669
+ * (`vendor/ruby/v3.3.11/internal/numeric.h:243-262`).
670
+ *
671
+ * @boundary: a JS `number` is the seat for both `Integer` and `Float`, read
672
+ * off the value as {@link rbObjClassname} reads it, so `1.0`, `0.0` and `-0`
673
+ * answer the Fixnum id where MRI answers a flonum's. A JS string has no
674
+ * identity, so each send hands out a fresh id, as a fresh `String` would get;
675
+ * a Symbol's static id is not modelled. A Bignum and a Float outside the
676
+ * flonum range are heap objects in MRI and get a fresh id the same way. An id
677
+ * past `Number.MAX_SAFE_INTEGER` is a bigint.
678
+ *
679
+ * @noRailsEquivalent PERMANENT
680
+ */
681
+ export declare function rbObjId(obj: object): number;
682
+ /** @noRailsEquivalent PERMANENT — Ruby core `rb_obj_id` (`vendor/ruby/v3.3.11/gc.c:4975`). */
683
+ export declare function rbObjId(obj: unknown): number | bigint;
684
+ /**
685
+ * `RB_TYPE_P(obj, T_HASH)` (`vendor/ruby/v3.3.11/include/ruby/internal/value_type.h:122`)
686
+ * for the object-literal half of a trails Hash: an object whose prototype
687
+ * chain reaches `Object.prototype` through no class.
688
+ *
689
+ * @noRailsEquivalent PERMANENT
690
+ */
691
+ export declare function isPlainHash(value: unknown): value is Record<string, unknown>;
692
+ /**
693
+ * `RTEST` (`vendor/ruby/v3.3.11/include/ruby/internal/special_consts.h:138` `RB_TEST`):
694
+ * false only for `nil` and `false`, where a JS truthiness test is also false
695
+ * for `0`, `""` and `NaN`.
696
+ *
697
+ * @noRailsEquivalent PERMANENT
698
+ */
699
+ export declare function rtest<T>(obj: T): obj is Exclude<T, null | undefined | false>;
700
+ /**
701
+ * Ruby's `obj.nil?` send: `NilClass#nil?` is `rb_true`
702
+ * (`vendor/ruby/v3.3.11/object.c:4425`) and `Kernel#nil?` is `rb_false`
703
+ * (`object.c:4371`), which a class may override
704
+ * (`ActiveRecord::Relation::QueryAttribute#nil?`). JS has no method on `null`
705
+ * or `undefined`, the two spellings of Ruby's `nil`, so the send is a
706
+ * function; an override is spelled `isNil`.
707
+ *
708
+ * @noRailsEquivalent PERMANENT
709
+ */
710
+ export declare function isNil(obj: unknown): boolean;
711
+ /**
712
+ * `rb_obj_as_string` (`vendor/ruby/v3.3.11/string.c:1653`) — the `to_s` of any value.
713
+ * `Array#to_s` and `Hash#to_s` are aliases of `inspect`
714
+ * (`vendor/ruby/v3.3.11/array.c:8616`, `vendor/ruby/v3.3.11/hash.c:7197`), so those two classes
715
+ * render through {@link rbInspect}; every other value — a String above all,
716
+ * which `rb_obj_as_string` returns unquoted — is its own `to_s`. A
717
+ * `Uint8Array` is the binary String seat (see {@link rbEqual}), so it is
718
+ * returned as it is (`string.c:1658`), and so is one a receiver's `to_s`
719
+ * answers (`rb_obj_as_string_result`, `string.c:1666`). Otherwise
720
+ * it is a send (`rb_funcall(obj, idTo_s, 0)`, `string.c:1661`): a ported class
721
+ * defining `toS` answers it, and an answer that is not a String falls back to
722
+ * {@link rbAnyToS}. A ported `String` subclass that is not a JS string
723
+ * (`ActiveSupport::SafeBuffer`) is an instance of {@link rbCString}, which is
724
+ * the `T_STRING` test on a `toS` answer, as it is for any class built on
725
+ * `rbCString`; `to_str` is never called. MRI returns that String itself, and
726
+ * the port returns its contents, since a Ruby String is a JS string primitive
727
+ * (CLAUDE.md, "Ruby Strings are JS string primitives").
728
+ *
729
+ * @noRailsEquivalent PERMANENT — Ruby core `rb_obj_as_string`
730
+ * (`vendor/ruby/v3.3.11/string.c:1653`); JS `String(x)` is not the same function, since
731
+ * it gives the comma-joined form for a nested Array and `[object Object]` for a
732
+ * Hash.
733
+ */
734
+ export declare function rbObjAsString(value: Uint8Array | {
735
+ toString(): Uint8Array;
736
+ }): Uint8Array;
737
+ /** @noRailsEquivalent PERMANENT — Ruby core `rb_obj_as_string` (`vendor/ruby/v3.3.11/string.c:1653`). */
738
+ export declare function rbObjAsString(value: unknown): string;
739
+ /**
740
+ * The ivar-table entry `rb_ivar_set` (`vendor/ruby/v3.3.11/variable.c:1923`) writes
741
+ * for `iv`, located on `klass`'s instances: the JS field holding it, where that
742
+ * is not the field-name rule's spelling. An ivar behind a same-named reader
743
+ * lives in the `_`-prefixed field. {@link rbObjIvarGet}, {@link rbObjIvarSet}
744
+ * and {@link rbObjInstanceVariables} read the declaration, which subclasses
745
+ * inherit.
746
+ *
747
+ * @noRailsEquivalent PERMANENT — Ruby core ivar table (`vendor/ruby/v3.3.11/variable.c:1923`).
748
+ */
749
+ export declare function rbDeclareIvar(klass: {
750
+ prototype: object;
751
+ }, iv: string, field: string): void;
752
+ /**
753
+ * `Kernel#instance_variables` (`rb_obj_instance_variables`,
754
+ * `vendor/ruby/v3.3.11/variable.c:2259`): the ivar names of `obj`'s own
755
+ * enumerable fields, each spelled by its {@link rbDeclareIvar} declaration or
756
+ * the field-name rule (`fooBar` is `@foo_bar`).
757
+ *
758
+ * @noRailsEquivalent PERMANENT — Ruby core `Kernel#instance_variables`
759
+ * (`vendor/ruby/v3.3.11/variable.c:2259`).
760
+ */
761
+ export declare function rbObjInstanceVariables(obj: object): string[];
762
+ /**
763
+ * `Kernel#instance_variable_get` (`rb_obj_ivar_get`, `vendor/ruby/v3.3.11/object.c:2880`):
764
+ * the value of ivar `iv`, or `nil` when `obj` has no own field for it
765
+ * (`rb_ivar_get`, `vendor/ruby/v3.3.11/variable.c:1405`), never an inherited
766
+ * method or accessor. A name that is not an ivar name (`rb_is_instance_name`,
767
+ * where a non-ASCII character is an identifier character) raises `NameError`.
768
+ *
769
+ * @noRailsEquivalent PERMANENT — Ruby core `Kernel#instance_variable_get`
770
+ * (`vendor/ruby/v3.3.11/object.c:2880`).
771
+ */
772
+ export declare function rbObjIvarGet(obj: object, iv: string): unknown;
773
+ /**
774
+ * `Kernel#instance_variable_defined?` (`rb_obj_ivar_defined`, `vendor/ruby/v3.3.11/object.c:2942`):
775
+ * whether `obj` has an own field for ivar `iv`, a `nil`-valued one included.
776
+ *
777
+ * @noRailsEquivalent PERMANENT — Ruby core `Kernel#instance_variable_defined?`
778
+ * (`vendor/ruby/v3.3.11/object.c:2942`).
779
+ */
780
+ export declare function rbObjIvarDefined(obj: object, iv: string): boolean;
781
+ /**
782
+ * `Kernel#instance_variable_set` (`rb_obj_ivar_set_m`, `vendor/ruby/v3.3.11/object.c:2914`):
783
+ * sets ivar `iv` as an own field of `obj`, never through a setter, as
784
+ * `rb_ivar_set` (`vendor/ruby/v3.3.11/variable.c:1923`) writes the ivar table
785
+ * directly after `rb_check_frozen`. `iv` is a Symbol (`":@foo"`) or a String,
786
+ * as `id_for_var`'s `rb_check_id` (`vendor/ruby/v3.3.11/object.c:2225`) takes either.
787
+ *
788
+ * @noRailsEquivalent PERMANENT — Ruby core `Kernel#instance_variable_set`
789
+ * (`vendor/ruby/v3.3.11/object.c:2914`).
790
+ */
791
+ export declare function rbObjIvarSet(obj: object, iv: string, val: unknown): unknown;
792
+ /**
793
+ * A T_OBJECT of class `Object` (`struct RObject`,
794
+ * `vendor/ruby/v3.3.11/include/ruby/internal/core/robject.h:83`). A plain JS
795
+ * object reads as a Hash, so `rb_obj_alloc(rb_cObject)` is one of these where
796
+ * a compat dumper builds it (`range_dumper`, `vendor/ruby/v3.3.11/range.c:2180`).
797
+ *
798
+ * @noRailsEquivalent PERMANENT
799
+ */
800
+ export declare class RObject {
801
+ }
802
+ /**
803
+ * `rb_ivar_set` (`vendor/ruby/v3.3.11/variable.c:1923`). An `@` name is the
804
+ * object's own field; any other ID is a hidden ivar (`id_excl`, `id_beg`,
805
+ * `id_end`), which `instance_variables` never lists.
806
+ *
807
+ * @noRailsEquivalent PERMANENT
808
+ */
809
+ export declare function rbIvarSet(obj: object, id: string, val: unknown): unknown;
810
+ /**
811
+ * `rb_ivar_get` (`vendor/ruby/v3.3.11/variable.c:1405`), reading a hidden ivar
812
+ * {@link rbIvarSet} wrote as well as an `@` one.
813
+ *
814
+ * @noRailsEquivalent PERMANENT
815
+ */
816
+ export declare function rbIvarGet(obj: object, id: string): unknown;
817
+ /**
818
+ * `rb_ivar_foreach` (`vendor/ruby/v3.3.11/variable.c:2182`): every ivar of
819
+ * `obj`, the hidden ones included.
820
+ *
821
+ * @noRailsEquivalent PERMANENT
822
+ */
823
+ export declare function rbIvarForeach(obj: object, func: (id: string, val: unknown) => void): void;
824
+ /**
825
+ * `Kernel#remove_instance_variable` (`rb_obj_remove_instance_variable`,
826
+ * `vendor/ruby/v3.3.11/variable.c:2314`): deletes `obj`'s own field for ivar
827
+ * `iv` and answers its value, raising `NameError` when it is not defined.
828
+ *
829
+ * @noRailsEquivalent PERMANENT — Ruby core `Kernel#remove_instance_variable`
830
+ * (`vendor/ruby/v3.3.11/variable.c:2314`).
831
+ */
832
+ export declare function rbObjRemoveInstanceVariable(obj: object, iv: string): unknown;
833
+ //# sourceMappingURL=object.d.ts.map