active_cached_resource 0.0.1.pre

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 (340) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +22 -0
  4. data/.standard.yml +2 -0
  5. data/CHANGELOG.md +5 -0
  6. data/README.md +45 -0
  7. data/Rakefile +21 -0
  8. data/example/consumer/.dockerignore +41 -0
  9. data/example/consumer/.gitattributes +9 -0
  10. data/example/consumer/.gitignore +36 -0
  11. data/example/consumer/.kamal/hooks/docker-setup.sample +3 -0
  12. data/example/consumer/.kamal/hooks/post-deploy.sample +14 -0
  13. data/example/consumer/.kamal/hooks/post-proxy-reboot.sample +3 -0
  14. data/example/consumer/.kamal/hooks/pre-build.sample +51 -0
  15. data/example/consumer/.kamal/hooks/pre-connect.sample +47 -0
  16. data/example/consumer/.kamal/hooks/pre-deploy.sample +109 -0
  17. data/example/consumer/.kamal/hooks/pre-proxy-reboot.sample +3 -0
  18. data/example/consumer/.kamal/secrets +17 -0
  19. data/example/consumer/Dockerfile +65 -0
  20. data/example/consumer/Gemfile +17 -0
  21. data/example/consumer/Rakefile +6 -0
  22. data/example/consumer/app/controllers/application_controller.rb +2 -0
  23. data/example/consumer/app/controllers/concerns/.keep +0 -0
  24. data/example/consumer/app/jobs/application_job.rb +7 -0
  25. data/example/consumer/app/mailers/application_mailer.rb +4 -0
  26. data/example/consumer/app/models/application_record.rb +3 -0
  27. data/example/consumer/app/models/concerns/.keep +0 -0
  28. data/example/consumer/app/models/person.rb +9 -0
  29. data/example/consumer/app/views/layouts/mailer.html.erb +13 -0
  30. data/example/consumer/app/views/layouts/mailer.text.erb +1 -0
  31. data/example/consumer/bin/brakeman +7 -0
  32. data/example/consumer/bin/bundle +109 -0
  33. data/example/consumer/bin/dev +2 -0
  34. data/example/consumer/bin/docker-entrypoint +14 -0
  35. data/example/consumer/bin/jobs +6 -0
  36. data/example/consumer/bin/kamal +27 -0
  37. data/example/consumer/bin/rails +4 -0
  38. data/example/consumer/bin/rake +4 -0
  39. data/example/consumer/bin/rubocop +8 -0
  40. data/example/consumer/bin/setup +34 -0
  41. data/example/consumer/bin/thrust +5 -0
  42. data/example/consumer/config/application.rb +20 -0
  43. data/example/consumer/config/boot.rb +3 -0
  44. data/example/consumer/config/cache.yml +16 -0
  45. data/example/consumer/config/credentials.yml.enc +1 -0
  46. data/example/consumer/config/database.yml +14 -0
  47. data/example/consumer/config/deploy.yml +116 -0
  48. data/example/consumer/config/environment.rb +5 -0
  49. data/example/consumer/config/environments/development.rb +64 -0
  50. data/example/consumer/config/environments/production.rb +85 -0
  51. data/example/consumer/config/environments/test.rb +50 -0
  52. data/example/consumer/config/initializers/cors.rb +16 -0
  53. data/example/consumer/config/initializers/filter_parameter_logging.rb +8 -0
  54. data/example/consumer/config/initializers/inflections.rb +16 -0
  55. data/example/consumer/config/locales/en.yml +31 -0
  56. data/example/consumer/config/puma.rb +41 -0
  57. data/example/consumer/config/queue.yml +18 -0
  58. data/example/consumer/config/recurring.yml +10 -0
  59. data/example/consumer/config/routes.rb +10 -0
  60. data/example/consumer/config.ru +6 -0
  61. data/example/consumer/db/cache_schema.rb +14 -0
  62. data/example/consumer/db/queue_schema.rb +129 -0
  63. data/example/consumer/db/seeds.rb +0 -0
  64. data/example/consumer/lib/tasks/.keep +0 -0
  65. data/example/consumer/log/.keep +0 -0
  66. data/example/consumer/public/robots.txt +1 -0
  67. data/example/consumer/script/.keep +0 -0
  68. data/example/consumer/storage/.keep +0 -0
  69. data/example/consumer/tmp/.keep +0 -0
  70. data/example/consumer/tmp/cache/.keep +0 -0
  71. data/example/consumer/tmp/pids/.keep +0 -0
  72. data/example/consumer/tmp/storage/.keep +0 -0
  73. data/example/consumer/vendor/.keep +0 -0
  74. data/example/provider/.dockerignore +41 -0
  75. data/example/provider/.gitattributes +9 -0
  76. data/example/provider/.gitignore +32 -0
  77. data/example/provider/.kamal/hooks/docker-setup.sample +3 -0
  78. data/example/provider/.kamal/hooks/post-deploy.sample +14 -0
  79. data/example/provider/.kamal/hooks/post-proxy-reboot.sample +3 -0
  80. data/example/provider/.kamal/hooks/pre-build.sample +51 -0
  81. data/example/provider/.kamal/hooks/pre-connect.sample +47 -0
  82. data/example/provider/.kamal/hooks/pre-deploy.sample +109 -0
  83. data/example/provider/.kamal/hooks/pre-proxy-reboot.sample +3 -0
  84. data/example/provider/.kamal/secrets +17 -0
  85. data/example/provider/Dockerfile +65 -0
  86. data/example/provider/Gemfile +14 -0
  87. data/example/provider/Rakefile +6 -0
  88. data/example/provider/app/controllers/application_controller.rb +2 -0
  89. data/example/provider/app/controllers/concerns/.keep +0 -0
  90. data/example/provider/app/controllers/people_controller.rb +68 -0
  91. data/example/provider/app/jobs/application_job.rb +7 -0
  92. data/example/provider/app/mailers/application_mailer.rb +4 -0
  93. data/example/provider/app/models/address.rb +3 -0
  94. data/example/provider/app/models/application_record.rb +3 -0
  95. data/example/provider/app/models/company.rb +3 -0
  96. data/example/provider/app/models/concerns/.keep +0 -0
  97. data/example/provider/app/models/person.rb +6 -0
  98. data/example/provider/app/views/layouts/mailer.html.erb +13 -0
  99. data/example/provider/app/views/layouts/mailer.text.erb +1 -0
  100. data/example/provider/bin/brakeman +7 -0
  101. data/example/provider/bin/bundle +109 -0
  102. data/example/provider/bin/dev +2 -0
  103. data/example/provider/bin/docker-entrypoint +14 -0
  104. data/example/provider/bin/jobs +6 -0
  105. data/example/provider/bin/kamal +27 -0
  106. data/example/provider/bin/rails +4 -0
  107. data/example/provider/bin/rake +4 -0
  108. data/example/provider/bin/rubocop +8 -0
  109. data/example/provider/bin/setup +34 -0
  110. data/example/provider/bin/thrust +5 -0
  111. data/example/provider/config/application.rb +44 -0
  112. data/example/provider/config/boot.rb +3 -0
  113. data/example/provider/config/cache.yml +16 -0
  114. data/example/provider/config/credentials.yml.enc +1 -0
  115. data/example/provider/config/database.yml +20 -0
  116. data/example/provider/config/deploy.yml +116 -0
  117. data/example/provider/config/environment.rb +5 -0
  118. data/example/provider/config/environments/development.rb +64 -0
  119. data/example/provider/config/environments/production.rb +85 -0
  120. data/example/provider/config/environments/test.rb +50 -0
  121. data/example/provider/config/initializers/cors.rb +16 -0
  122. data/example/provider/config/initializers/filter_parameter_logging.rb +8 -0
  123. data/example/provider/config/initializers/inflections.rb +16 -0
  124. data/example/provider/config/locales/en.yml +31 -0
  125. data/example/provider/config/puma.rb +41 -0
  126. data/example/provider/config/queue.yml +18 -0
  127. data/example/provider/config/recurring.yml +10 -0
  128. data/example/provider/config/routes.rb +4 -0
  129. data/example/provider/config.ru +6 -0
  130. data/example/provider/db/cache_schema.rb +14 -0
  131. data/example/provider/db/migrate/20241202183937_create_people.rb +11 -0
  132. data/example/provider/db/migrate/20241202183955_create_addresses.rb +13 -0
  133. data/example/provider/db/migrate/20241202184017_create_companies.rb +14 -0
  134. data/example/provider/db/queue_schema.rb +129 -0
  135. data/example/provider/db/schema.rb +47 -0
  136. data/example/provider/db/seeds.rb +18 -0
  137. data/example/provider/lib/tasks/.keep +0 -0
  138. data/example/provider/log/.keep +0 -0
  139. data/example/provider/public/robots.txt +1 -0
  140. data/example/provider/script/.keep +0 -0
  141. data/example/provider/storage/.keep +0 -0
  142. data/example/provider/tmp/.keep +0 -0
  143. data/example/provider/tmp/pids/.keep +0 -0
  144. data/example/provider/tmp/storage/.keep +0 -0
  145. data/example/provider/vendor/.keep +0 -0
  146. data/lib/active_cached_resource/caching.rb +176 -0
  147. data/lib/active_cached_resource/caching_strategies/active_support_cache.rb +31 -0
  148. data/lib/active_cached_resource/caching_strategies/base.rb +114 -0
  149. data/lib/active_cached_resource/caching_strategies/sql_cache.rb +32 -0
  150. data/lib/active_cached_resource/configuration.rb +50 -0
  151. data/lib/active_cached_resource/logger.rb +22 -0
  152. data/lib/active_cached_resource/model.rb +33 -0
  153. data/lib/active_cached_resource/version.rb +12 -0
  154. data/lib/active_cached_resource.rb +64 -0
  155. data/lib/activeresource/.gitignore +15 -0
  156. data/lib/activeresource/README.md +283 -0
  157. data/lib/activeresource/examples/performance.rb +72 -0
  158. data/lib/activeresource/lib/active_resource/active_job_serializer.rb +26 -0
  159. data/lib/activeresource/lib/active_resource/associations/builder/association.rb +32 -0
  160. data/lib/activeresource/lib/active_resource/associations/builder/belongs_to.rb +16 -0
  161. data/lib/activeresource/lib/active_resource/associations/builder/has_many.rb +14 -0
  162. data/lib/activeresource/lib/active_resource/associations/builder/has_one.rb +14 -0
  163. data/lib/activeresource/lib/active_resource/associations.rb +175 -0
  164. data/lib/activeresource/lib/active_resource/base.rb +1741 -0
  165. data/lib/activeresource/lib/active_resource/callbacks.rb +22 -0
  166. data/lib/activeresource/lib/active_resource/collection.rb +214 -0
  167. data/lib/activeresource/lib/active_resource/connection.rb +298 -0
  168. data/lib/activeresource/lib/active_resource/custom_methods.rb +129 -0
  169. data/lib/activeresource/lib/active_resource/exceptions.rb +98 -0
  170. data/lib/activeresource/lib/active_resource/formats/json_format.rb +28 -0
  171. data/lib/activeresource/lib/active_resource/formats/xml_format.rb +27 -0
  172. data/lib/activeresource/lib/active_resource/formats.rb +24 -0
  173. data/lib/activeresource/lib/active_resource/http_mock.rb +386 -0
  174. data/lib/activeresource/lib/active_resource/inheriting_hash.rb +34 -0
  175. data/lib/activeresource/lib/active_resource/log_subscriber.rb +26 -0
  176. data/lib/activeresource/lib/active_resource/railtie.rb +31 -0
  177. data/lib/activeresource/lib/active_resource/reflection.rb +78 -0
  178. data/lib/activeresource/lib/active_resource/schema.rb +60 -0
  179. data/lib/activeresource/lib/active_resource/singleton.rb +111 -0
  180. data/lib/activeresource/lib/active_resource/threadsafe_attributes.rb +65 -0
  181. data/lib/activeresource/lib/active_resource/validations.rb +176 -0
  182. data/lib/activeresource/lib/active_resource.rb +49 -0
  183. data/lib/activeresource/lib/activeresource.rb +3 -0
  184. data/lib/activeresource/test/abstract_unit.rb +153 -0
  185. data/lib/activeresource/test/cases/active_job_serializer_test.rb +53 -0
  186. data/lib/activeresource/test/cases/association_test.rb +104 -0
  187. data/lib/activeresource/test/cases/associations/builder/belongs_to_test.rb +42 -0
  188. data/lib/activeresource/test/cases/associations/builder/has_many_test.rb +28 -0
  189. data/lib/activeresource/test/cases/associations/builder/has_one_test.rb +28 -0
  190. data/lib/activeresource/test/cases/authorization_test.rb +276 -0
  191. data/lib/activeresource/test/cases/base/custom_methods_test.rb +155 -0
  192. data/lib/activeresource/test/cases/base/equality_test.rb +53 -0
  193. data/lib/activeresource/test/cases/base/load_test.rb +249 -0
  194. data/lib/activeresource/test/cases/base/schema_test.rb +428 -0
  195. data/lib/activeresource/test/cases/base_errors_test.rb +129 -0
  196. data/lib/activeresource/test/cases/base_test.rb +1622 -0
  197. data/lib/activeresource/test/cases/callbacks_test.rb +155 -0
  198. data/lib/activeresource/test/cases/collection_test.rb +172 -0
  199. data/lib/activeresource/test/cases/connection_test.rb +357 -0
  200. data/lib/activeresource/test/cases/finder_test.rb +217 -0
  201. data/lib/activeresource/test/cases/format_test.rb +137 -0
  202. data/lib/activeresource/test/cases/http_mock_test.rb +213 -0
  203. data/lib/activeresource/test/cases/inheritence_test.rb +19 -0
  204. data/lib/activeresource/test/cases/inheriting_hash_test.rb +25 -0
  205. data/lib/activeresource/test/cases/log_subscriber_test.rb +63 -0
  206. data/lib/activeresource/test/cases/reflection_test.rb +65 -0
  207. data/lib/activeresource/test/cases/validations_test.rb +78 -0
  208. data/lib/activeresource/test/fixtures/address.rb +20 -0
  209. data/lib/activeresource/test/fixtures/beast.rb +16 -0
  210. data/lib/activeresource/test/fixtures/comment.rb +5 -0
  211. data/lib/activeresource/test/fixtures/customer.rb +5 -0
  212. data/lib/activeresource/test/fixtures/inventory.rb +14 -0
  213. data/lib/activeresource/test/fixtures/person.rb +15 -0
  214. data/lib/activeresource/test/fixtures/pet.rb +6 -0
  215. data/lib/activeresource/test/fixtures/post.rb +5 -0
  216. data/lib/activeresource/test/fixtures/product.rb +11 -0
  217. data/lib/activeresource/test/fixtures/project.rb +19 -0
  218. data/lib/activeresource/test/fixtures/proxy.rb +6 -0
  219. data/lib/activeresource/test/fixtures/sound.rb +11 -0
  220. data/lib/activeresource/test/fixtures/street_address.rb +6 -0
  221. data/lib/activeresource/test/fixtures/subscription_plan.rb +7 -0
  222. data/lib/activeresource/test/fixtures/weather.rb +21 -0
  223. data/lib/activeresource/test/setter_trap.rb +28 -0
  224. data/lib/activeresource/test/singleton_test.rb +138 -0
  225. data/lib/activeresource/test/threadsafe_attributes_test.rb +91 -0
  226. data/lib/generators/active_cached_resource/install_generator.rb +31 -0
  227. data/lib/generators/active_cached_resource/templates/migration.erb +16 -0
  228. data/sorbet/config +4 -0
  229. data/sorbet/rbi/annotations/.gitattributes +1 -0
  230. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  231. data/sorbet/rbi/annotations/activesupport.rbi +457 -0
  232. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  233. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  234. data/sorbet/rbi/dsl/.gitattributes +1 -0
  235. data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
  236. data/sorbet/rbi/gems/.gitattributes +1 -0
  237. data/sorbet/rbi/gems/actioncable@8.0.0.rbi +252 -0
  238. data/sorbet/rbi/gems/actionmailbox@8.0.0.rbi +9 -0
  239. data/sorbet/rbi/gems/actionmailer@8.0.0.rbi +9 -0
  240. data/sorbet/rbi/gems/actionpack@8.0.0.rbi +20909 -0
  241. data/sorbet/rbi/gems/actiontext@8.0.0.rbi +9 -0
  242. data/sorbet/rbi/gems/actionview@8.0.0.rbi +16207 -0
  243. data/sorbet/rbi/gems/activejob@8.0.0.rbi +9 -0
  244. data/sorbet/rbi/gems/activemodel-serializers-xml@1.0.3.rbi +166 -0
  245. data/sorbet/rbi/gems/activemodel@8.0.0.rbi +6857 -0
  246. data/sorbet/rbi/gems/activerecord@8.0.0.rbi +42896 -0
  247. data/sorbet/rbi/gems/activeresource@6.1.4.rbi +3944 -0
  248. data/sorbet/rbi/gems/activestorage@8.0.0.rbi +9 -0
  249. data/sorbet/rbi/gems/activesupport@8.0.0.rbi +21251 -0
  250. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  251. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  252. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  253. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +78 -0
  254. data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
  255. data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
  256. data/sorbet/rbi/gems/byebug@11.1.3.rbi +3607 -0
  257. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
  258. data/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi +11645 -0
  259. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  260. data/sorbet/rbi/gems/crass@1.0.6.rbi +623 -0
  261. data/sorbet/rbi/gems/date@3.4.0.rbi +75 -0
  262. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1131 -0
  263. data/sorbet/rbi/gems/docile@1.4.1.rbi +377 -0
  264. data/sorbet/rbi/gems/drb@2.2.1.rbi +1347 -0
  265. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  266. data/sorbet/rbi/gems/globalid@1.2.1.rbi +9 -0
  267. data/sorbet/rbi/gems/i18n@1.14.6.rbi +2359 -0
  268. data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
  269. data/sorbet/rbi/gems/json@2.8.2.rbi +1901 -0
  270. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  271. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  272. data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
  273. data/sorbet/rbi/gems/loofah@2.23.1.rbi +1081 -0
  274. data/sorbet/rbi/gems/mail@2.8.1.rbi +9 -0
  275. data/sorbet/rbi/gems/marcel@1.0.4.rbi +9 -0
  276. data/sorbet/rbi/gems/method_source@1.1.0.rbi +304 -0
  277. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
  278. data/sorbet/rbi/gems/minitest@5.25.2.rbi +1547 -0
  279. data/sorbet/rbi/gems/net-imap@0.5.1.rbi +9 -0
  280. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
  281. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +292 -0
  282. data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +9 -0
  283. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  284. data/sorbet/rbi/gems/nio4r@2.7.4.rbi +9 -0
  285. data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
  286. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  287. data/sorbet/rbi/gems/parser@3.3.6.0.rbi +5519 -0
  288. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  289. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1151 -0
  290. data/sorbet/rbi/gems/pry@0.14.2.rbi +10076 -0
  291. data/sorbet/rbi/gems/psych@5.2.0.rbi +1785 -0
  292. data/sorbet/rbi/gems/racc@1.8.1.rbi +162 -0
  293. data/sorbet/rbi/gems/rack-session@2.0.0.rbi +727 -0
  294. data/sorbet/rbi/gems/rack-test@2.1.0.rbi +747 -0
  295. data/sorbet/rbi/gems/rack@3.1.8.rbi +4905 -0
  296. data/sorbet/rbi/gems/rackup@2.2.1.rbi +230 -0
  297. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +758 -0
  298. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +785 -0
  299. data/sorbet/rbi/gems/rails@8.0.0.rbi +9 -0
  300. data/sorbet/rbi/gems/railties@8.0.0.rbi +6287 -0
  301. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  302. data/sorbet/rbi/gems/rake@13.2.1.rbi +3091 -0
  303. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  304. data/sorbet/rbi/gems/rdoc@6.8.1.rbi +12572 -0
  305. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  306. data/sorbet/rbi/gems/reline@0.5.12.rbi +2416 -0
  307. data/sorbet/rbi/gems/rexml@3.3.9.rbi +4858 -0
  308. data/sorbet/rbi/gems/rspec-core@3.13.2.rbi +11287 -0
  309. data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +8183 -0
  310. data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +5341 -0
  311. data/sorbet/rbi/gems/rspec-support@3.13.1.rbi +1630 -0
  312. data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
  313. data/sorbet/rbi/gems/rubocop-ast@1.36.1.rbi +7303 -0
  314. data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +9 -0
  315. data/sorbet/rbi/gems/rubocop@1.65.1.rbi +58170 -0
  316. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  317. data/sorbet/rbi/gems/securerandom@0.3.2.rbi +395 -0
  318. data/sorbet/rbi/gems/simplecov-html@0.13.1.rbi +225 -0
  319. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
  320. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
  321. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  322. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
  323. data/sorbet/rbi/gems/standard-performance@1.4.0.rbi +9 -0
  324. data/sorbet/rbi/gems/standard@1.40.0.rbi +929 -0
  325. data/sorbet/rbi/gems/stringio@3.1.2.rbi +9 -0
  326. data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3597 -0
  327. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  328. data/sorbet/rbi/gems/timeout@0.4.2.rbi +151 -0
  329. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
  330. data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +66 -0
  331. data/sorbet/rbi/gems/uri@1.0.2.rbi +2377 -0
  332. data/sorbet/rbi/gems/useragent@0.16.10.rbi +9 -0
  333. data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +9 -0
  334. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
  335. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  336. data/sorbet/rbi/gems/yard@0.9.37.rbi +18504 -0
  337. data/sorbet/rbi/gems/zeitwerk@2.7.1.rbi +9 -0
  338. data/sorbet/tapioca/config.yml +13 -0
  339. data/sorbet/tapioca/require.rb +12 -0
  340. metadata +543 -0
@@ -0,0 +1,2416 @@
1
+ # typed: false
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `reline` gem.
5
+ # Please instead update this file by running `bin/tapioca gem reline`.
6
+
7
+
8
+ # source://reline//lib/reline/version.rb#1
9
+ module Reline
10
+ extend ::Forwardable
11
+ extend ::SingleForwardable
12
+
13
+ class << self
14
+ # source://reline//lib/reline.rb#486
15
+ def core; end
16
+
17
+ # source://reline//lib/reline.rb#482
18
+ def encoding_system_needs; end
19
+
20
+ # source://reline//lib/reline.rb#463
21
+ def insert_text(text); end
22
+
23
+ # source://reline//lib/reline.rb#506
24
+ def line_editor; end
25
+
26
+ # source://reline//lib/reline.rb#502
27
+ def ungetc(c); end
28
+ end
29
+ end
30
+
31
+ # source://reline//lib/reline/io/ansi.rb#4
32
+ class Reline::ANSI < ::Reline::IO
33
+ # @return [ANSI] a new instance of ANSI
34
+ #
35
+ # source://reline//lib/reline/io/ansi.rb#32
36
+ def initialize; end
37
+
38
+ # @return [Boolean]
39
+ #
40
+ # source://reline//lib/reline/io/ansi.rb#237
41
+ def both_tty?; end
42
+
43
+ # source://reline//lib/reline/io/ansi.rb#281
44
+ def clear_screen; end
45
+
46
+ # source://reline//lib/reline/io/ansi.rb#232
47
+ def cursor_pos; end
48
+
49
+ # source://reline//lib/reline/io/ansi.rb#304
50
+ def deprep(otio); end
51
+
52
+ # @return [Boolean]
53
+ #
54
+ # source://reline//lib/reline/io/ansi.rb#172
55
+ def empty_buffer?; end
56
+
57
+ # source://reline//lib/reline/io/ansi.rb#39
58
+ def encoding; end
59
+
60
+ # source://reline//lib/reline/io/ansi.rb#269
61
+ def erase_after_cursor; end
62
+
63
+ # source://reline//lib/reline/io/ansi.rb#194
64
+ def get_screen_size; end
65
+
66
+ # if the usage expects to wait indefinitely, use Float::INFINITY for timeout_second
67
+ #
68
+ # source://reline//lib/reline/io/ansi.rb#164
69
+ def getc(timeout_second); end
70
+
71
+ # source://reline//lib/reline/io/ansi.rb#261
72
+ def hide_cursor; end
73
+
74
+ # @return [Boolean]
75
+ #
76
+ # source://reline//lib/reline/io/ansi.rb#168
77
+ def in_pasting?; end
78
+
79
+ # source://reline//lib/reline/io/ansi.rb#133
80
+ def inner_getc(timeout_second); end
81
+
82
+ # source://reline//lib/reline/io/ansi.rb#117
83
+ def input=(val); end
84
+
85
+ # source://reline//lib/reline/io/ansi.rb#241
86
+ def move_cursor_column(x); end
87
+
88
+ # source://reline//lib/reline/io/ansi.rb#253
89
+ def move_cursor_down(x); end
90
+
91
+ # source://reline//lib/reline/io/ansi.rb#245
92
+ def move_cursor_up(x); end
93
+
94
+ # source://reline//lib/reline/io/ansi.rb#121
95
+ def output=(val); end
96
+
97
+ # source://reline//lib/reline/io/ansi.rb#297
98
+ def prep; end
99
+
100
+ # source://reline//lib/reline/io/ansi.rb#152
101
+ def read_bracketed_paste; end
102
+
103
+ # source://reline//lib/reline/io/ansi.rb#183
104
+ def retrieve_keybuffer; end
105
+
106
+ # This only works when the cursor is at the bottom of the scroll range
107
+ # For more details, see https://github.com/ruby/reline/pull/577#issuecomment-1646679623
108
+ #
109
+ # source://reline//lib/reline/io/ansi.rb#275
110
+ def scroll_down(x); end
111
+
112
+ # source://reline//lib/reline/io/ansi.rb#65
113
+ def set_bracketed_paste_key_bindings(config); end
114
+
115
+ # source://reline//lib/reline/io/ansi.rb#46
116
+ def set_default_key_bindings(config); end
117
+
118
+ # source://reline//lib/reline/io/ansi.rb#71
119
+ def set_default_key_bindings_ansi_cursor(config); end
120
+
121
+ # source://reline//lib/reline/io/ansi.rb#96
122
+ def set_default_key_bindings_comprehensive_list(config); end
123
+
124
+ # source://reline//lib/reline/io/ansi.rb#204
125
+ def set_screen_size(rows, columns); end
126
+
127
+ # source://reline//lib/reline/io/ansi.rb#286
128
+ def set_winch_handler(&handler); end
129
+
130
+ # source://reline//lib/reline/io/ansi.rb#265
131
+ def show_cursor; end
132
+
133
+ # source://reline//lib/reline/io/ansi.rb#179
134
+ def ungetc(c); end
135
+
136
+ # source://reline//lib/reline/io/ansi.rb#125
137
+ def with_raw_input; end
138
+
139
+ private
140
+
141
+ # source://reline//lib/reline/io/ansi.rb#211
142
+ def cursor_pos_internal(timeout:); end
143
+ end
144
+
145
+ # source://reline//lib/reline/io/ansi.rb#17
146
+ Reline::ANSI::ANSI_CURSOR_KEY_BINDINGS = T.let(T.unsafe(nil), Hash)
147
+
148
+ # source://reline//lib/reline/io/ansi.rb#5
149
+ Reline::ANSI::CAPNAME_KEY_BINDINGS = T.let(T.unsafe(nil), Hash)
150
+
151
+ # source://reline//lib/reline/io/ansi.rb#151
152
+ Reline::ANSI::END_BRACKETED_PASTE = T.let(T.unsafe(nil), String)
153
+
154
+ # source://reline//lib/reline/io/ansi.rb#150
155
+ Reline::ANSI::START_BRACKETED_PASTE = T.let(T.unsafe(nil), String)
156
+
157
+ # source://reline//lib/reline/config.rb#1
158
+ class Reline::Config
159
+ # @return [Config] a new instance of Config
160
+ #
161
+ # source://reline//lib/reline/config.rb#31
162
+ def initialize; end
163
+
164
+ # source://reline//lib/reline/config.rb#162
165
+ def add_default_key_binding(keystroke, target); end
166
+
167
+ # source://reline//lib/reline/config.rb#158
168
+ def add_default_key_binding_by_keymap(keymap, keystroke, target); end
169
+
170
+ # source://reline//lib/reline/config.rb#147
171
+ def add_oneshot_key_binding(keystroke, target); end
172
+
173
+ # Returns the value of attribute autocompletion.
174
+ #
175
+ # source://reline//lib/reline/config.rb#29
176
+ def autocompletion; end
177
+
178
+ # Sets the attribute autocompletion
179
+ #
180
+ # @param value the value to set the attribute autocompletion to.
181
+ #
182
+ # source://reline//lib/reline/config.rb#29
183
+ def autocompletion=(_arg0); end
184
+
185
+ # source://reline//lib/reline/config.rb#314
186
+ def bind_key(key, value); end
187
+
188
+ # source://reline//lib/reline/config.rb#247
189
+ def bind_variable(name, value, raw_value); end
190
+
191
+ # source://reline//lib/reline/config.rb#26
192
+ def completion_ignore_case; end
193
+
194
+ # source://reline//lib/reline/config.rb#26
195
+ def completion_ignore_case=(_arg0); end
196
+
197
+ # source://reline//lib/reline/config.rb#26
198
+ def convert_meta; end
199
+
200
+ # source://reline//lib/reline/config.rb#26
201
+ def convert_meta=(_arg0); end
202
+
203
+ # source://reline//lib/reline/config.rb#26
204
+ def disable_completion; end
205
+
206
+ # source://reline//lib/reline/config.rb#26
207
+ def disable_completion=(_arg0); end
208
+
209
+ # source://reline//lib/reline/config.rb#72
210
+ def editing_mode; end
211
+
212
+ # source://reline//lib/reline/config.rb#76
213
+ def editing_mode=(val); end
214
+
215
+ # @return [Boolean]
216
+ #
217
+ # source://reline//lib/reline/config.rb#80
218
+ def editing_mode_is?(*val); end
219
+
220
+ # source://reline//lib/reline/config.rb#26
221
+ def emacs_mode_string; end
222
+
223
+ # source://reline//lib/reline/config.rb#26
224
+ def emacs_mode_string=(_arg0); end
225
+
226
+ # source://reline//lib/reline/config.rb#26
227
+ def enable_bracketed_paste; end
228
+
229
+ # source://reline//lib/reline/config.rb#26
230
+ def enable_bracketed_paste=(_arg0); end
231
+
232
+ # source://reline//lib/reline/config.rb#212
233
+ def handle_directive(directive, file, no, if_stack); end
234
+
235
+ # source://reline//lib/reline/config.rb#26
236
+ def history_size; end
237
+
238
+ # source://reline//lib/reline/config.rb#26
239
+ def history_size=(_arg0); end
240
+
241
+ # source://reline//lib/reline/config.rb#92
242
+ def inputrc_path; end
243
+
244
+ # source://reline//lib/reline/config.rb#26
245
+ def isearch_terminators; end
246
+
247
+ # source://reline//lib/reline/config.rb#26
248
+ def isearch_terminators=(_arg0); end
249
+
250
+ # source://reline//lib/reline/config.rb#142
251
+ def key_bindings; end
252
+
253
+ # source://reline//lib/reline/config.rb#333
254
+ def key_notation_to_code(notation); end
255
+
256
+ # source://reline//lib/reline/config.rb#84
257
+ def keymap; end
258
+
259
+ # source://reline//lib/reline/config.rb#26
260
+ def keyseq_timeout; end
261
+
262
+ # source://reline//lib/reline/config.rb#26
263
+ def keyseq_timeout=(_arg0); end
264
+
265
+ # @return [Boolean]
266
+ #
267
+ # source://reline//lib/reline/config.rb#88
268
+ def loaded?; end
269
+
270
+ # source://reline//lib/reline/config.rb#319
271
+ def parse_key_binding(key, func_name); end
272
+
273
+ # source://reline//lib/reline/config.rb#359
274
+ def parse_keyseq(str); end
275
+
276
+ # source://reline//lib/reline/config.rb#122
277
+ def read(file = T.unsafe(nil)); end
278
+
279
+ # source://reline//lib/reline/config.rb#166
280
+ def read_lines(lines, file = T.unsafe(nil)); end
281
+
282
+ # source://reline//lib/reline/config.rb#365
283
+ def reload; end
284
+
285
+ # source://reline//lib/reline/config.rb#35
286
+ def reset; end
287
+
288
+ # source://reline//lib/reline/config.rb#154
289
+ def reset_oneshot_key_bindings; end
290
+
291
+ # source://reline//lib/reline/config.rb#42
292
+ def reset_variables; end
293
+
294
+ # source://reline//lib/reline/config.rb#309
295
+ def retrieve_string(str); end
296
+
297
+ # source://reline//lib/reline/config.rb#26
298
+ def show_all_if_ambiguous; end
299
+
300
+ # source://reline//lib/reline/config.rb#26
301
+ def show_all_if_ambiguous=(_arg0); end
302
+
303
+ # source://reline//lib/reline/config.rb#26
304
+ def show_mode_in_prompt; end
305
+
306
+ # source://reline//lib/reline/config.rb#26
307
+ def show_mode_in_prompt=(_arg0); end
308
+
309
+ # Returns the value of attribute test_mode.
310
+ #
311
+ # source://reline//lib/reline/config.rb#2
312
+ def test_mode; end
313
+
314
+ # source://reline//lib/reline/config.rb#26
315
+ def vi_cmd_mode_string; end
316
+
317
+ # source://reline//lib/reline/config.rb#26
318
+ def vi_cmd_mode_string=(_arg0); end
319
+
320
+ # source://reline//lib/reline/config.rb#26
321
+ def vi_ins_mode_string; end
322
+
323
+ # source://reline//lib/reline/config.rb#26
324
+ def vi_ins_mode_string=(_arg0); end
325
+
326
+ private
327
+
328
+ # source://reline//lib/reline/config.rb#118
329
+ def default_inputrc_path; end
330
+
331
+ # @return [Boolean]
332
+ #
333
+ # source://reline//lib/reline/config.rb#370
334
+ def seven_bit_encoding?(encoding); end
335
+ end
336
+
337
+ # source://reline//lib/reline/config.rb#6
338
+ class Reline::Config::InvalidInputrc < ::RuntimeError
339
+ # Returns the value of attribute file.
340
+ #
341
+ # source://reline//lib/reline/config.rb#7
342
+ def file; end
343
+
344
+ # Sets the attribute file
345
+ #
346
+ # @param value the value to set the attribute file to.
347
+ #
348
+ # source://reline//lib/reline/config.rb#7
349
+ def file=(_arg0); end
350
+
351
+ # Returns the value of attribute lineno.
352
+ #
353
+ # source://reline//lib/reline/config.rb#7
354
+ def lineno; end
355
+
356
+ # Sets the attribute lineno
357
+ #
358
+ # @param value the value to set the attribute lineno to.
359
+ #
360
+ # source://reline//lib/reline/config.rb#7
361
+ def lineno=(_arg0); end
362
+ end
363
+
364
+ # source://reline//lib/reline/config.rb#4
365
+ Reline::Config::KEYSEQ_PATTERN = T.let(T.unsafe(nil), Regexp)
366
+
367
+ # source://reline//lib/reline/config.rb#10
368
+ Reline::Config::VARIABLE_NAMES = T.let(T.unsafe(nil), Array)
369
+
370
+ # source://reline//lib/reline/config.rb#24
371
+ Reline::Config::VARIABLE_NAME_SYMBOLS = T.let(T.unsafe(nil), Array)
372
+
373
+ # source://reline//lib/reline.rb#38
374
+ class Reline::Core
375
+ extend ::Forwardable
376
+
377
+ # @return [Core] a new instance of Core
378
+ # @yield [_self]
379
+ # @yieldparam _self [Reline::Core] the object that the method was called on
380
+ #
381
+ # source://reline//lib/reline.rb#66
382
+ def initialize; end
383
+
384
+ # @raise [ArgumentError]
385
+ #
386
+ # source://reline//lib/reline.rb#160
387
+ def add_dialog_proc(name_sym, p, context = T.unsafe(nil)); end
388
+
389
+ # source://reline//lib/reline.rb#409
390
+ def ambiguous_width; end
391
+
392
+ # source://reline//lib/reline.rb#53
393
+ def auto_indent_proc; end
394
+
395
+ # @raise [ArgumentError]
396
+ #
397
+ # source://reline//lib/reline.rb#145
398
+ def auto_indent_proc=(p); end
399
+
400
+ # source://reline//lib/reline.rb#53
401
+ def basic_quote_characters; end
402
+
403
+ # source://reline//lib/reline.rb#102
404
+ def basic_quote_characters=(v); end
405
+
406
+ # source://reline//lib/reline.rb#53
407
+ def basic_word_break_characters; end
408
+
409
+ # source://reline//lib/reline.rb#94
410
+ def basic_word_break_characters=(v); end
411
+
412
+ # source://reline//lib/reline.rb#53
413
+ def completer_quote_characters; end
414
+
415
+ # source://reline//lib/reline.rb#106
416
+ def completer_quote_characters=(v); end
417
+
418
+ # source://reline//lib/reline.rb#53
419
+ def completer_word_break_characters; end
420
+
421
+ # source://reline//lib/reline.rb#98
422
+ def completer_word_break_characters=(v); end
423
+
424
+ # source://reline//lib/reline.rb#53
425
+ def completion_append_character; end
426
+
427
+ # source://reline//lib/reline.rb#82
428
+ def completion_append_character=(val); end
429
+
430
+ # source://reline//lib/reline.rb#122
431
+ def completion_case_fold; end
432
+
433
+ # source://reline//lib/reline.rb#118
434
+ def completion_case_fold=(v); end
435
+
436
+ # source://reline//lib/reline.rb#53
437
+ def completion_proc; end
438
+
439
+ # @raise [ArgumentError]
440
+ #
441
+ # source://reline//lib/reline.rb#130
442
+ def completion_proc=(p); end
443
+
444
+ # source://reline//lib/reline.rb#126
445
+ def completion_quote_character; end
446
+
447
+ # Returns the value of attribute config.
448
+ #
449
+ # source://reline//lib/reline.rb#55
450
+ def config; end
451
+
452
+ # Sets the attribute config
453
+ #
454
+ # @param value the value to set the attribute config to.
455
+ #
456
+ # source://reline//lib/reline.rb#55
457
+ def config=(_arg0); end
458
+
459
+ # source://reline//lib/reline.rb#170
460
+ def dialog_proc(name_sym); end
461
+
462
+ # source://reline//lib/reline.rb#53
463
+ def dig_perfect_match_proc; end
464
+
465
+ # @raise [ArgumentError]
466
+ #
467
+ # source://reline//lib/reline.rb#154
468
+ def dig_perfect_match_proc=(p); end
469
+
470
+ # source://reline//lib/reline.rb#194
471
+ def emacs_editing_mode; end
472
+
473
+ # @return [Boolean]
474
+ #
475
+ # source://reline//lib/reline.rb#203
476
+ def emacs_editing_mode?; end
477
+
478
+ # source://reline//lib/reline.rb#78
479
+ def encoding; end
480
+
481
+ # source://reline//lib/reline.rb#53
482
+ def filename_quote_characters; end
483
+
484
+ # source://reline//lib/reline.rb#110
485
+ def filename_quote_characters=(v); end
486
+
487
+ # source://reline//lib/reline.rb#207
488
+ def get_screen_size; end
489
+
490
+ # @raise [TypeError]
491
+ #
492
+ # source://reline//lib/reline.rb#174
493
+ def input=(val); end
494
+
495
+ # source://reline//lib/reline.rb#74
496
+ def io_gate; end
497
+
498
+ # Returns the value of attribute key_stroke.
499
+ #
500
+ # source://reline//lib/reline.rb#56
501
+ def key_stroke; end
502
+
503
+ # Sets the attribute key_stroke
504
+ #
505
+ # @param value the value to set the attribute key_stroke to.
506
+ #
507
+ # source://reline//lib/reline.rb#56
508
+ def key_stroke=(_arg0); end
509
+
510
+ # Returns the value of attribute last_incremental_search.
511
+ #
512
+ # source://reline//lib/reline.rb#58
513
+ def last_incremental_search; end
514
+
515
+ # Sets the attribute last_incremental_search
516
+ #
517
+ # @param value the value to set the attribute last_incremental_search to.
518
+ #
519
+ # source://reline//lib/reline.rb#58
520
+ def last_incremental_search=(_arg0); end
521
+
522
+ # Returns the value of attribute line_editor.
523
+ #
524
+ # source://reline//lib/reline.rb#57
525
+ def line_editor; end
526
+
527
+ # Sets the attribute line_editor
528
+ #
529
+ # @param value the value to set the attribute line_editor to.
530
+ #
531
+ # source://reline//lib/reline.rb#57
532
+ def line_editor=(_arg0); end
533
+
534
+ # Returns the value of attribute output.
535
+ #
536
+ # source://reline//lib/reline.rb#59
537
+ def output; end
538
+
539
+ # @raise [TypeError]
540
+ #
541
+ # source://reline//lib/reline.rb#181
542
+ def output=(val); end
543
+
544
+ # source://reline//lib/reline.rb#53
545
+ def output_modifier_proc; end
546
+
547
+ # @raise [ArgumentError]
548
+ #
549
+ # source://reline//lib/reline.rb#135
550
+ def output_modifier_proc=(p); end
551
+
552
+ # source://reline//lib/reline.rb#53
553
+ def pre_input_hook; end
554
+
555
+ # source://reline//lib/reline.rb#150
556
+ def pre_input_hook=(p); end
557
+
558
+ # source://reline//lib/reline.rb#53
559
+ def prompt_proc; end
560
+
561
+ # @raise [ArgumentError]
562
+ #
563
+ # source://reline//lib/reline.rb#140
564
+ def prompt_proc=(p); end
565
+
566
+ # source://reline//lib/reline.rb#276
567
+ def readline(prompt = T.unsafe(nil), add_hist = T.unsafe(nil)); end
568
+
569
+ # source://reline//lib/reline.rb#250
570
+ def readmultiline(prompt = T.unsafe(nil), add_hist = T.unsafe(nil), &confirm_multiline_termination); end
571
+
572
+ # source://reline//lib/reline.rb#53
573
+ def special_prefixes; end
574
+
575
+ # source://reline//lib/reline.rb#114
576
+ def special_prefixes=(v); end
577
+
578
+ # source://reline//lib/reline.rb#189
579
+ def vi_editing_mode; end
580
+
581
+ # @return [Boolean]
582
+ #
583
+ # source://reline//lib/reline.rb#199
584
+ def vi_editing_mode?; end
585
+
586
+ private
587
+
588
+ # source://reline//lib/reline.rb#293
589
+ def inner_readline(prompt, add_hist, multiline, &confirm_multiline_termination); end
590
+
591
+ # source://reline//lib/reline.rb#414
592
+ def may_req_ambiguous_char_width; end
593
+
594
+ # GNU Readline watis for "keyseq-timeout" milliseconds when the input is
595
+ # ambiguous whether it is matching or matched.
596
+ # If the next character does not arrive within the specified timeout, input
597
+ # is considered as matched.
598
+ # `ESC` is ambiguous because it can be a standalone ESC (matched) or part of
599
+ # `ESC char` or part of CSI sequence (matching).
600
+ #
601
+ # source://reline//lib/reline.rb#379
602
+ def read_io(keyseq_timeout, &block); end
603
+ end
604
+
605
+ # source://reline//lib/reline.rb#39
606
+ Reline::Core::ATTR_READER_NAMES = T.let(T.unsafe(nil), Array)
607
+
608
+ # source://reline//lib/reline.rb#248
609
+ Reline::DEFAULT_DIALOG_CONTEXT = T.let(T.unsafe(nil), Array)
610
+
611
+ # source://reline//lib/reline.rb#211
612
+ Reline::DEFAULT_DIALOG_PROC_AUTOCOMPLETE = T.let(T.unsafe(nil), Proc)
613
+
614
+ # source://reline//lib/reline/io/dumb.rb#3
615
+ class Reline::Dumb < ::Reline::IO
616
+ # @return [Dumb] a new instance of Dumb
617
+ #
618
+ # source://reline//lib/reline/io/dumb.rb#6
619
+ def initialize(encoding: T.unsafe(nil)); end
620
+
621
+ # source://reline//lib/reline/io/dumb.rb#90
622
+ def clear_screen; end
623
+
624
+ # source://reline//lib/reline/io/dumb.rb#65
625
+ def cursor_pos; end
626
+
627
+ # source://reline//lib/reline/io/dumb.rb#107
628
+ def deprep(otio); end
629
+
630
+ # @return [Boolean]
631
+ #
632
+ # source://reline//lib/reline/io/dumb.rb#14
633
+ def dumb?; end
634
+
635
+ # source://reline//lib/reline/io/dumb.rb#18
636
+ def encoding; end
637
+
638
+ # source://reline//lib/reline/io/dumb.rb#84
639
+ def erase_after_cursor; end
640
+
641
+ # source://reline//lib/reline/io/dumb.rb#61
642
+ def get_screen_size; end
643
+
644
+ # source://reline//lib/reline/io/dumb.rb#42
645
+ def getc(_timeout_second); end
646
+
647
+ # source://reline//lib/reline/io/dumb.rb#69
648
+ def hide_cursor; end
649
+
650
+ # @return [Boolean]
651
+ #
652
+ # source://reline//lib/reline/io/dumb.rb#100
653
+ def in_pasting?; end
654
+
655
+ # source://reline//lib/reline/io/dumb.rb#34
656
+ def input=(val); end
657
+
658
+ # source://reline//lib/reline/io/dumb.rb#75
659
+ def move_cursor_column(val); end
660
+
661
+ # source://reline//lib/reline/io/dumb.rb#81
662
+ def move_cursor_down(val); end
663
+
664
+ # source://reline//lib/reline/io/dumb.rb#78
665
+ def move_cursor_up(val); end
666
+
667
+ # source://reline//lib/reline/io/dumb.rb#104
668
+ def prep; end
669
+
670
+ # source://reline//lib/reline/io/dumb.rb#87
671
+ def scroll_down(val); end
672
+
673
+ # source://reline//lib/reline/io/dumb.rb#31
674
+ def set_default_key_bindings(_); end
675
+
676
+ # source://reline//lib/reline/io/dumb.rb#93
677
+ def set_screen_size(rows, columns); end
678
+
679
+ # source://reline//lib/reline/io/dumb.rb#97
680
+ def set_winch_handler(&handler); end
681
+
682
+ # source://reline//lib/reline/io/dumb.rb#72
683
+ def show_cursor; end
684
+
685
+ # source://reline//lib/reline/io/dumb.rb#57
686
+ def ungetc(c); end
687
+
688
+ # source://reline//lib/reline/io/dumb.rb#38
689
+ def with_raw_input; end
690
+ end
691
+
692
+ # Do not send color reset sequence
693
+ #
694
+ # source://reline//lib/reline/io/dumb.rb#4
695
+ Reline::Dumb::RESET_COLOR = T.let(T.unsafe(nil), String)
696
+
697
+ # NOTE: For making compatible with the rb-readline gem
698
+ #
699
+ # source://reline//lib/reline.rb#15
700
+ Reline::FILENAME_COMPLETION_PROC = T.let(T.unsafe(nil), T.untyped)
701
+
702
+ # source://reline//lib/reline/face.rb#3
703
+ class Reline::Face
704
+ class << self
705
+ # source://reline//lib/reline/face.rb#169
706
+ def [](name); end
707
+
708
+ # source://reline//lib/reline/face.rb#173
709
+ def config(name, &block); end
710
+
711
+ # source://reline//lib/reline/face.rb#178
712
+ def configs; end
713
+
714
+ # source://reline//lib/reline/face.rb#164
715
+ def force_truecolor; end
716
+
717
+ # source://reline//lib/reline/face.rb#182
718
+ def load_initial_configs; end
719
+
720
+ # source://reline//lib/reline/face.rb#195
721
+ def reset_to_initial_configs; end
722
+
723
+ # @return [Boolean]
724
+ #
725
+ # source://reline//lib/reline/face.rb#160
726
+ def truecolor?; end
727
+ end
728
+ end
729
+
730
+ # source://reline//lib/reline/face.rb#58
731
+ class Reline::Face::Config
732
+ # @return [Config] a new instance of Config
733
+ #
734
+ # source://reline//lib/reline/face.rb#62
735
+ def initialize(name, &block); end
736
+
737
+ # source://reline//lib/reline/face.rb#84
738
+ def [](name); end
739
+
740
+ # source://reline//lib/reline/face.rb#72
741
+ def define(name, **values); end
742
+
743
+ # Returns the value of attribute definition.
744
+ #
745
+ # source://reline//lib/reline/face.rb#70
746
+ def definition; end
747
+
748
+ # source://reline//lib/reline/face.rb#77
749
+ def reconfigure; end
750
+
751
+ private
752
+
753
+ # source://reline//lib/reline/face.rb#126
754
+ def format_to_sgr(ordered_values); end
755
+
756
+ # @return [Boolean]
757
+ #
758
+ # source://reline//lib/reline/face.rb#153
759
+ def rgb_expression?(color); end
760
+
761
+ # source://reline//lib/reline/face.rb#90
762
+ def sgr_rgb(key, value); end
763
+
764
+ # source://reline//lib/reline/face.rb#108
765
+ def sgr_rgb_256color(key, value); end
766
+
767
+ # source://reline//lib/reline/face.rb#99
768
+ def sgr_rgb_truecolor(key, value); end
769
+ end
770
+
771
+ # source://reline//lib/reline/face.rb#59
772
+ Reline::Face::Config::ESSENTIAL_DEFINE_NAMES = T.let(T.unsafe(nil), Array)
773
+
774
+ # source://reline//lib/reline/face.rb#60
775
+ Reline::Face::Config::RESET_SGR = T.let(T.unsafe(nil), String)
776
+
777
+ # source://reline//lib/reline/face.rb#4
778
+ Reline::Face::SGR_PARAMETERS = T.let(T.unsafe(nil), Hash)
779
+
780
+ # source://reline//lib/reline.rb#519
781
+ Reline::HISTORY = T.let(T.unsafe(nil), Reline::History)
782
+
783
+ # source://reline//lib/reline/history.rb#1
784
+ class Reline::History < ::Array
785
+ # @return [History] a new instance of History
786
+ #
787
+ # source://reline//lib/reline/history.rb#2
788
+ def initialize(config); end
789
+
790
+ # source://reline//lib/reline/history.rb#52
791
+ def <<(val); end
792
+
793
+ # source://reline//lib/reline/history.rb#15
794
+ def [](index); end
795
+
796
+ # source://reline//lib/reline/history.rb#20
797
+ def []=(index, val); end
798
+
799
+ # source://reline//lib/reline/history.rb#25
800
+ def concat(*val); end
801
+
802
+ # source://reline//lib/reline/history.rb#10
803
+ def delete_at(index); end
804
+
805
+ # source://reline//lib/reline/history.rb#31
806
+ def push(*val); end
807
+
808
+ # source://reline//lib/reline/history.rb#6
809
+ def to_s; end
810
+
811
+ private
812
+
813
+ # @raise [IndexError]
814
+ #
815
+ # source://reline//lib/reline/history.rb#62
816
+ def check_index(index); end
817
+ end
818
+
819
+ # source://reline//lib/reline/io.rb#3
820
+ class Reline::IO
821
+ # @return [Boolean]
822
+ #
823
+ # source://reline//lib/reline/io.rb#27
824
+ def dumb?; end
825
+
826
+ # source://reline//lib/reline/io.rb#35
827
+ def reset_color_sequence; end
828
+
829
+ # @return [Boolean]
830
+ #
831
+ # source://reline//lib/reline/io.rb#31
832
+ def win?; end
833
+
834
+ class << self
835
+ # source://reline//lib/reline/io.rb#6
836
+ def decide_io_gate; end
837
+ end
838
+ end
839
+
840
+ # source://reline//lib/reline/io.rb#4
841
+ Reline::IO::RESET_COLOR = T.let(T.unsafe(nil), String)
842
+
843
+ # source://reline//lib/reline.rb#512
844
+ Reline::IOGate = T.let(T.unsafe(nil), Reline::ANSI)
845
+
846
+ # source://reline//lib/reline.rb#20
847
+ class Reline::Key < ::Struct
848
+ # Returns the value of attribute char
849
+ #
850
+ # @return [Object] the current value of char
851
+ def char; end
852
+
853
+ # Sets the attribute char
854
+ #
855
+ # @param value [Object] the value to set the attribute char to.
856
+ # @return [Object] the newly set value
857
+ def char=(_); end
858
+
859
+ # Returns the value of attribute combined_char
860
+ #
861
+ # @return [Object] the current value of combined_char
862
+ def combined_char; end
863
+
864
+ # Sets the attribute combined_char
865
+ #
866
+ # @param value [Object] the value to set the attribute combined_char to.
867
+ # @return [Object] the newly set value
868
+ def combined_char=(_); end
869
+
870
+ # For dialog_proc `key.match?(dialog.name)`
871
+ #
872
+ # @return [Boolean]
873
+ #
874
+ # source://reline//lib/reline.rb#22
875
+ def match?(sym); end
876
+
877
+ # Returns the value of attribute with_meta
878
+ #
879
+ # @return [Object] the current value of with_meta
880
+ def with_meta; end
881
+
882
+ # Sets the attribute with_meta
883
+ #
884
+ # @param value [Object] the value to set the attribute with_meta to.
885
+ # @return [Object] the newly set value
886
+ def with_meta=(_); end
887
+
888
+ class << self
889
+ def [](*_arg0); end
890
+ def inspect; end
891
+ def keyword_init?; end
892
+ def members; end
893
+ def new(*_arg0); end
894
+ end
895
+ end
896
+
897
+ # source://reline//lib/reline/key_actor/base.rb#1
898
+ class Reline::KeyActor::Base
899
+ # @return [Base] a new instance of Base
900
+ #
901
+ # source://reline//lib/reline/key_actor/base.rb#2
902
+ def initialize(mapping = T.unsafe(nil)); end
903
+
904
+ # source://reline//lib/reline/key_actor/base.rb#12
905
+ def add(key, func); end
906
+
907
+ # source://reline//lib/reline/key_actor/base.rb#27
908
+ def clear; end
909
+
910
+ # source://reline//lib/reline/key_actor/base.rb#23
911
+ def get(key); end
912
+
913
+ # source://reline//lib/reline/key_actor/base.rb#8
914
+ def get_method(key); end
915
+
916
+ # @return [Boolean]
917
+ #
918
+ # source://reline//lib/reline/key_actor/base.rb#19
919
+ def matching?(key); end
920
+ end
921
+
922
+ # source://reline//lib/reline/key_actor/composite.rb#1
923
+ class Reline::KeyActor::Composite
924
+ # @return [Composite] a new instance of Composite
925
+ #
926
+ # source://reline//lib/reline/key_actor/composite.rb#2
927
+ def initialize(key_actors); end
928
+
929
+ # source://reline//lib/reline/key_actor/composite.rb#10
930
+ def get(key); end
931
+
932
+ # @return [Boolean]
933
+ #
934
+ # source://reline//lib/reline/key_actor/composite.rb#6
935
+ def matching?(key); end
936
+ end
937
+
938
+ # source://reline//lib/reline/key_actor/emacs.rb#2
939
+ Reline::KeyActor::EMACS_MAPPING = T.let(T.unsafe(nil), Array)
940
+
941
+ # source://reline//lib/reline/key_actor/vi_command.rb#2
942
+ Reline::KeyActor::VI_COMMAND_MAPPING = T.let(T.unsafe(nil), Array)
943
+
944
+ # source://reline//lib/reline/key_actor/vi_insert.rb#2
945
+ Reline::KeyActor::VI_INSERT_MAPPING = T.let(T.unsafe(nil), Array)
946
+
947
+ # source://reline//lib/reline/key_stroke.rb#1
948
+ class Reline::KeyStroke
949
+ # @return [KeyStroke] a new instance of KeyStroke
950
+ #
951
+ # source://reline//lib/reline/key_stroke.rb#8
952
+ def initialize(config, encoding); end
953
+
954
+ # Returns the value of attribute encoding.
955
+ #
956
+ # source://reline//lib/reline/key_stroke.rb#6
957
+ def encoding; end
958
+
959
+ # Sets the attribute encoding
960
+ #
961
+ # @param value the value to set the attribute encoding to.
962
+ #
963
+ # source://reline//lib/reline/key_stroke.rb#6
964
+ def encoding=(_arg0); end
965
+
966
+ # source://reline//lib/reline/key_stroke.rb#49
967
+ def expand(input); end
968
+
969
+ # source://reline//lib/reline/key_stroke.rb#22
970
+ def match_status(input); end
971
+
972
+ private
973
+
974
+ # source://reline//lib/reline/key_stroke.rb#117
975
+ def key_mapping; end
976
+
977
+ # returns match status of CSI/SS3 sequence and matched length
978
+ #
979
+ # source://reline//lib/reline/key_stroke.rb#81
980
+ def match_unknown_escape_sequence(input, vi_mode: T.unsafe(nil)); end
981
+ end
982
+
983
+ # source://reline//lib/reline/key_stroke.rb#4
984
+ Reline::KeyStroke::CSI_INTERMEDIATE_BYTES_RANGE = T.let(T.unsafe(nil), Range)
985
+
986
+ # source://reline//lib/reline/key_stroke.rb#3
987
+ Reline::KeyStroke::CSI_PARAMETER_BYTES_RANGE = T.let(T.unsafe(nil), Range)
988
+
989
+ # source://reline//lib/reline/key_stroke.rb#2
990
+ Reline::KeyStroke::ESC_BYTE = T.let(T.unsafe(nil), Integer)
991
+
992
+ # Input partially matches to a key sequence
993
+ #
994
+ # source://reline//lib/reline/key_stroke.rb#16
995
+ Reline::KeyStroke::MATCHED = T.let(T.unsafe(nil), Symbol)
996
+
997
+ # Input exactly matches to a key sequence
998
+ #
999
+ # source://reline//lib/reline/key_stroke.rb#14
1000
+ Reline::KeyStroke::MATCHING = T.let(T.unsafe(nil), Symbol)
1001
+
1002
+ # Input matches to a key sequence and the key sequence is a prefix of another key sequence
1003
+ #
1004
+ # source://reline//lib/reline/key_stroke.rb#18
1005
+ Reline::KeyStroke::MATCHING_MATCHED = T.let(T.unsafe(nil), Symbol)
1006
+
1007
+ # Input does not match to any key sequence
1008
+ #
1009
+ # source://reline//lib/reline/key_stroke.rb#20
1010
+ Reline::KeyStroke::UNMATCHED = T.let(T.unsafe(nil), Symbol)
1011
+
1012
+ # source://reline//lib/reline/kill_ring.rb#1
1013
+ class Reline::KillRing
1014
+ include ::Enumerable
1015
+
1016
+ # @return [KillRing] a new instance of KillRing
1017
+ #
1018
+ # source://reline//lib/reline/kill_ring.rb#61
1019
+ def initialize(max = T.unsafe(nil)); end
1020
+
1021
+ # source://reline//lib/reline/kill_ring.rb#68
1022
+ def append(string, before_p = T.unsafe(nil)); end
1023
+
1024
+ # source://reline//lib/reline/kill_ring.rb#116
1025
+ def each; end
1026
+
1027
+ # source://reline//lib/reline/kill_ring.rb#83
1028
+ def process; end
1029
+
1030
+ # source://reline//lib/reline/kill_ring.rb#96
1031
+ def yank; end
1032
+
1033
+ # source://reline//lib/reline/kill_ring.rb#106
1034
+ def yank_pop; end
1035
+ end
1036
+
1037
+ # source://reline//lib/reline/kill_ring.rb#21
1038
+ class Reline::KillRing::RingBuffer
1039
+ # @return [RingBuffer] a new instance of RingBuffer
1040
+ #
1041
+ # source://reline//lib/reline/kill_ring.rb#25
1042
+ def initialize(max = T.unsafe(nil)); end
1043
+
1044
+ # source://reline//lib/reline/kill_ring.rb#31
1045
+ def <<(point); end
1046
+
1047
+ # @return [Boolean]
1048
+ #
1049
+ # source://reline//lib/reline/kill_ring.rb#56
1050
+ def empty?; end
1051
+
1052
+ # Returns the value of attribute head.
1053
+ #
1054
+ # source://reline//lib/reline/kill_ring.rb#23
1055
+ def head; end
1056
+
1057
+ # Returns the value of attribute size.
1058
+ #
1059
+ # source://reline//lib/reline/kill_ring.rb#22
1060
+ def size; end
1061
+ end
1062
+
1063
+ # source://reline//lib/reline/kill_ring.rb#11
1064
+ class Reline::KillRing::RingPoint < ::Struct
1065
+ # @return [RingPoint] a new instance of RingPoint
1066
+ #
1067
+ # source://reline//lib/reline/kill_ring.rb#12
1068
+ def initialize(str); end
1069
+
1070
+ # source://reline//lib/reline/kill_ring.rb#16
1071
+ def ==(other); end
1072
+ end
1073
+
1074
+ # source://reline//lib/reline/kill_ring.rb#6
1075
+ Reline::KillRing::State::CONTINUED = T.let(T.unsafe(nil), Symbol)
1076
+
1077
+ # source://reline//lib/reline/kill_ring.rb#5
1078
+ Reline::KillRing::State::FRESH = T.let(T.unsafe(nil), Symbol)
1079
+
1080
+ # source://reline//lib/reline/kill_ring.rb#7
1081
+ Reline::KillRing::State::PROCESSED = T.let(T.unsafe(nil), Symbol)
1082
+
1083
+ # source://reline//lib/reline/kill_ring.rb#8
1084
+ Reline::KillRing::State::YANK = T.let(T.unsafe(nil), Symbol)
1085
+
1086
+ # source://reline//lib/reline/line_editor.rb#6
1087
+ class Reline::LineEditor
1088
+ # @return [LineEditor] a new instance of LineEditor
1089
+ #
1090
+ # source://reline//lib/reline/line_editor.rb#74
1091
+ def initialize(config); end
1092
+
1093
+ # source://reline//lib/reline/line_editor.rb#689
1094
+ def add_dialog_proc(name, p, context = T.unsafe(nil)); end
1095
+
1096
+ # Returns the value of attribute auto_indent_proc.
1097
+ #
1098
+ # source://reline//lib/reline/line_editor.rb#14
1099
+ def auto_indent_proc; end
1100
+
1101
+ # Sets the attribute auto_indent_proc
1102
+ #
1103
+ # @param value the value to set the attribute auto_indent_proc to.
1104
+ #
1105
+ # source://reline//lib/reline/line_editor.rb#14
1106
+ def auto_indent_proc=(_arg0); end
1107
+
1108
+ # TODO: Use "private alias_method" idiom after drop Ruby 2.5.
1109
+ #
1110
+ # source://reline//lib/reline/line_editor.rb#8
1111
+ def byte_pointer; end
1112
+
1113
+ # source://reline//lib/reline/line_editor.rb#1313
1114
+ def byte_pointer=(val); end
1115
+
1116
+ # source://reline//lib/reline/line_editor.rb#399
1117
+ def calculate_overlay_levels(overlay_levels); end
1118
+
1119
+ # source://reline//lib/reline/line_editor.rb#1139
1120
+ def call_completion_proc(pre, target, post, quote); end
1121
+
1122
+ # source://reline//lib/reline/line_editor.rb#1146
1123
+ def call_completion_proc_with_checking_args(pre, target, post); end
1124
+
1125
+ # source://reline//lib/reline/line_editor.rb#447
1126
+ def clear_dialogs; end
1127
+
1128
+ # Returns the value of attribute completion_append_character.
1129
+ #
1130
+ # source://reline//lib/reline/line_editor.rb#11
1131
+ def completion_append_character; end
1132
+
1133
+ # Sets the attribute completion_append_character
1134
+ #
1135
+ # @param value the value to set the attribute completion_append_character to.
1136
+ #
1137
+ # source://reline//lib/reline/line_editor.rb#11
1138
+ def completion_append_character=(_arg0); end
1139
+
1140
+ # Returns the value of attribute completion_proc.
1141
+ #
1142
+ # source://reline//lib/reline/line_editor.rb#10
1143
+ def completion_proc; end
1144
+
1145
+ # Sets the attribute completion_proc
1146
+ #
1147
+ # @param value the value to set the attribute completion_proc to.
1148
+ #
1149
+ # source://reline//lib/reline/line_editor.rb#10
1150
+ def completion_proc=(_arg0); end
1151
+
1152
+ # source://reline//lib/reline/line_editor.rb#1252
1153
+ def confirm_multiline_termination; end
1154
+
1155
+ # Returns the value of attribute confirm_multiline_termination_proc.
1156
+ #
1157
+ # source://reline//lib/reline/line_editor.rb#9
1158
+ def confirm_multiline_termination_proc; end
1159
+
1160
+ # Sets the attribute confirm_multiline_termination_proc
1161
+ #
1162
+ # @param value the value to set the attribute confirm_multiline_termination_proc to.
1163
+ #
1164
+ # source://reline//lib/reline/line_editor.rb#9
1165
+ def confirm_multiline_termination_proc=(_arg0); end
1166
+
1167
+ # source://reline//lib/reline/line_editor.rb#305
1168
+ def current_byte_pointer_cursor; end
1169
+
1170
+ # source://reline//lib/reline/line_editor.rb#1189
1171
+ def current_line; end
1172
+
1173
+ # source://reline//lib/reline/line_editor.rb#1279
1174
+ def delete_text(start = T.unsafe(nil), length = T.unsafe(nil)); end
1175
+
1176
+ # source://reline//lib/reline/line_editor.rb#871
1177
+ def dialog_proc_scope_completion_journey_data; end
1178
+
1179
+ # Returns the value of attribute dig_perfect_match_proc.
1180
+ #
1181
+ # source://reline//lib/reline/line_editor.rb#15
1182
+ def dig_perfect_match_proc; end
1183
+
1184
+ # Sets the attribute dig_perfect_match_proc
1185
+ #
1186
+ # @param value the value to set the attribute dig_perfect_match_proc to.
1187
+ #
1188
+ # source://reline//lib/reline/line_editor.rb#15
1189
+ def dig_perfect_match_proc=(_arg0); end
1190
+
1191
+ # source://reline//lib/reline/line_editor.rb#798
1192
+ def editing_mode; end
1193
+
1194
+ # source://reline//lib/reline/line_editor.rb#85
1195
+ def encoding; end
1196
+
1197
+ # @return [Boolean]
1198
+ #
1199
+ # source://reline//lib/reline/line_editor.rb#221
1200
+ def eof?; end
1201
+
1202
+ # source://reline//lib/reline/line_editor.rb#217
1203
+ def finalize; end
1204
+
1205
+ # source://reline//lib/reline/line_editor.rb#1333
1206
+ def finish; end
1207
+
1208
+ # @return [Boolean]
1209
+ #
1210
+ # source://reline//lib/reline/line_editor.rb#1329
1211
+ def finished?; end
1212
+
1213
+ # source://reline//lib/reline/line_editor.rb#169
1214
+ def handle_signal; end
1215
+
1216
+ # source://reline//lib/reline/line_editor.rb#1060
1217
+ def input_key(key); end
1218
+
1219
+ # source://reline//lib/reline/line_editor.rb#1257
1220
+ def insert_multiline_text(text); end
1221
+
1222
+ # source://reline//lib/reline/line_editor.rb#1269
1223
+ def insert_text(text); end
1224
+
1225
+ # source://reline//lib/reline/line_editor.rb#81
1226
+ def io_gate; end
1227
+
1228
+ # source://reline//lib/reline/line_editor.rb#1185
1229
+ def line; end
1230
+
1231
+ # source://reline//lib/reline/line_editor.rb#352
1232
+ def modified_lines; end
1233
+
1234
+ # source://reline//lib/reline/line_editor.rb#274
1235
+ def multiline_off; end
1236
+
1237
+ # source://reline//lib/reline/line_editor.rb#270
1238
+ def multiline_on; end
1239
+
1240
+ # Sets the attribute output
1241
+ #
1242
+ # @param value the value to set the attribute output to.
1243
+ #
1244
+ # source://reline//lib/reline/line_editor.rb#16
1245
+ def output=(_arg0); end
1246
+
1247
+ # Returns the value of attribute output_modifier_proc.
1248
+ #
1249
+ # source://reline//lib/reline/line_editor.rb#12
1250
+ def output_modifier_proc; end
1251
+
1252
+ # Sets the attribute output_modifier_proc
1253
+ #
1254
+ # @param value the value to set the attribute output_modifier_proc to.
1255
+ #
1256
+ # source://reline//lib/reline/line_editor.rb#12
1257
+ def output_modifier_proc=(_arg0); end
1258
+
1259
+ # source://reline//lib/reline/line_editor.rb#472
1260
+ def print_nomultiline_prompt; end
1261
+
1262
+ # source://reline//lib/reline/line_editor.rb#358
1263
+ def prompt_list; end
1264
+
1265
+ # Returns the value of attribute prompt_proc.
1266
+ #
1267
+ # source://reline//lib/reline/line_editor.rb#13
1268
+ def prompt_proc; end
1269
+
1270
+ # Sets the attribute prompt_proc
1271
+ #
1272
+ # @param value the value to set the attribute prompt_proc to.
1273
+ #
1274
+ # source://reline//lib/reline/line_editor.rb#13
1275
+ def prompt_proc=(_arg0); end
1276
+
1277
+ # source://reline//lib/reline/line_editor.rb#1110
1278
+ def push_input_lines; end
1279
+
1280
+ # source://reline//lib/reline/line_editor.rb#480
1281
+ def render; end
1282
+
1283
+ # source://reline//lib/reline/line_editor.rb#462
1284
+ def render_finished; end
1285
+
1286
+ # source://reline//lib/reline/line_editor.rb#407
1287
+ def render_line_differential(old_items, new_items); end
1288
+
1289
+ # source://reline//lib/reline/line_editor.rb#561
1290
+ def rerender; end
1291
+
1292
+ # source://reline//lib/reline/line_editor.rb#142
1293
+ def reset(prompt = T.unsafe(nil)); end
1294
+
1295
+ # source://reline//lib/reline/line_editor.rb#262
1296
+ def reset_line; end
1297
+
1298
+ # source://reline//lib/reline/line_editor.rb#225
1299
+ def reset_variables(prompt = T.unsafe(nil)); end
1300
+
1301
+ # source://reline//lib/reline/line_editor.rb#557
1302
+ def rest_height(wrapped_cursor_y); end
1303
+
1304
+ # source://reline//lib/reline/line_editor.rb#1216
1305
+ def retrieve_completion_block; end
1306
+
1307
+ # source://reline//lib/reline/line_editor.rb#1106
1308
+ def save_old_buffer; end
1309
+
1310
+ # source://reline//lib/reline/line_editor.rb#364
1311
+ def screen_height; end
1312
+
1313
+ # source://reline//lib/reline/line_editor.rb#372
1314
+ def screen_scroll_top; end
1315
+
1316
+ # source://reline//lib/reline/line_editor.rb#368
1317
+ def screen_width; end
1318
+
1319
+ # source://reline//lib/reline/line_editor.rb#1129
1320
+ def scroll_into_view; end
1321
+
1322
+ # source://reline//lib/reline/line_editor.rb#1193
1323
+ def set_current_line(line, byte_pointer = T.unsafe(nil)); end
1324
+
1325
+ # source://reline//lib/reline/line_editor.rb#1204
1326
+ def set_current_lines(lines, byte_pointer = T.unsafe(nil), line_index = T.unsafe(nil)); end
1327
+
1328
+ # source://reline//lib/reline/line_editor.rb#89
1329
+ def set_pasting_state(in_pasting); end
1330
+
1331
+ # source://reline//lib/reline/line_editor.rb#208
1332
+ def set_signal_handlers; end
1333
+
1334
+ # source://reline//lib/reline/line_editor.rb#1122
1335
+ def trim_input_lines; end
1336
+
1337
+ # source://reline//lib/reline/line_editor.rb#1050
1338
+ def update(key); end
1339
+
1340
+ # source://reline//lib/reline/line_editor.rb#454
1341
+ def update_dialogs(key = T.unsafe(nil)); end
1342
+
1343
+ # source://reline//lib/reline/line_editor.rb#553
1344
+ def upper_space_height(wrapped_cursor_y); end
1345
+
1346
+ # source://reline//lib/reline/line_editor.rb#1321
1347
+ def whole_buffer; end
1348
+
1349
+ # source://reline//lib/reline/line_editor.rb#1317
1350
+ def whole_lines; end
1351
+
1352
+ # source://reline//lib/reline/line_editor.rb#344
1353
+ def with_cache(key, *deps); end
1354
+
1355
+ # source://reline//lib/reline/line_editor.rb#945
1356
+ def wrap_method_call(method_symbol, method_obj, key, with_operator = T.unsafe(nil)); end
1357
+
1358
+ # Calculate cursor position in word wrapped content.
1359
+ #
1360
+ # source://reline//lib/reline/line_editor.rb#438
1361
+ def wrapped_cursor_position; end
1362
+
1363
+ # source://reline//lib/reline/line_editor.rb#376
1364
+ def wrapped_prompt_and_input_lines; end
1365
+
1366
+ private
1367
+
1368
+ # @return [Boolean]
1369
+ #
1370
+ # source://reline//lib/reline/line_editor.rb#935
1371
+ def argumentable?(method_obj); end
1372
+
1373
+ # source://reline//lib/reline/line_editor.rb#1489
1374
+ def backward_char(key, arg: T.unsafe(nil)); end
1375
+
1376
+ # source://reline//lib/reline/line_editor.rb#1759
1377
+ def backward_delete_char(key, arg: T.unsafe(nil)); end
1378
+
1379
+ # source://reline//lib/reline/line_editor.rb#1903
1380
+ def backward_kill_word(key); end
1381
+
1382
+ # source://reline//lib/reline/line_editor.rb#1885
1383
+ def backward_word(key); end
1384
+
1385
+ # source://reline//lib/reline/line_editor.rb#1506
1386
+ def beginning_of_line(key); end
1387
+
1388
+ # @return [Boolean]
1389
+ #
1390
+ # source://reline//lib/reline/line_editor.rb#1325
1391
+ def buffer_empty?; end
1392
+
1393
+ # source://reline//lib/reline/line_editor.rb#1344
1394
+ def byteinsert(str, byte_pointer, other); end
1395
+
1396
+ # source://reline//lib/reline/line_editor.rb#1338
1397
+ def byteslice!(str, byte_pointer, size); end
1398
+
1399
+ # source://reline//lib/reline/line_editor.rb#309
1400
+ def calculate_nearest_cursor(cursor); end
1401
+
1402
+ # source://reline//lib/reline/line_editor.rb#1351
1403
+ def calculate_width(str, allow_escape_code = T.unsafe(nil)); end
1404
+
1405
+ # source://reline//lib/reline/line_editor.rb#1943
1406
+ def capitalize_word(key); end
1407
+
1408
+ # source://reline//lib/reline/line_editor.rb#96
1409
+ def check_mode_string; end
1410
+
1411
+ # source://reline//lib/reline/line_editor.rb#110
1412
+ def check_multiline_prompt(buffer, mode_string); end
1413
+
1414
+ # source://reline//lib/reline/line_editor.rb#965
1415
+ def cleanup_waiting; end
1416
+
1417
+ # source://reline//lib/reline/line_editor.rb#548
1418
+ def clear_rendered_screen_cache; end
1419
+
1420
+ # source://reline//lib/reline/line_editor.rb#1869
1421
+ def clear_screen(key); end
1422
+
1423
+ # source://reline//lib/reline/line_editor.rb#1371
1424
+ def complete(_key); end
1425
+
1426
+ # source://reline//lib/reline/line_editor.rb#1389
1427
+ def completion_journey_move(direction); end
1428
+
1429
+ # source://reline//lib/reline/line_editor.rb#1405
1430
+ def completion_journey_up(_key); end
1431
+
1432
+ # source://reline//lib/reline/line_editor.rb#1989
1433
+ def copy_for_vi(text); end
1434
+
1435
+ # source://reline//lib/reline/line_editor.rb#1824
1436
+ def delete_char(key); end
1437
+
1438
+ # source://reline//lib/reline/line_editor.rb#1839
1439
+ def delete_char_or_list(key); end
1440
+
1441
+ # source://reline//lib/reline/line_editor.rb#700
1442
+ def dialog_range(dialog, dialog_y); end
1443
+
1444
+ # source://reline//lib/reline/line_editor.rb#1953
1445
+ def downcase_word(key); end
1446
+
1447
+ # source://reline//lib/reline/line_editor.rb#2242
1448
+ def ed_argument_digit(key); end
1449
+
1450
+ # source://reline//lib/reline/line_editor.rb#1869
1451
+ def ed_clear_screen(key); end
1452
+
1453
+ # source://reline//lib/reline/line_editor.rb#2188
1454
+ def ed_delete_next_char(key, arg: T.unsafe(nil)); end
1455
+
1456
+ # source://reline//lib/reline/line_editor.rb#2100
1457
+ def ed_delete_prev_char(key, arg: T.unsafe(nil)); end
1458
+
1459
+ # source://reline//lib/reline/line_editor.rb#1903
1460
+ def ed_delete_prev_word(key); end
1461
+
1462
+ # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters)
1463
+ # In insert mode, insert the input character left of the cursor
1464
+ # position. In replace mode, overwrite the character at the
1465
+ # cursor and move the cursor to the right by one character
1466
+ # position. Accept an argument to do this repeatedly. It is an
1467
+ # error if the input character is the NUL character (+Ctrl-@+).
1468
+ # Failure to enlarge the edit buffer also results in an error.
1469
+ # Editline:: +ed-digit+ (emacs: 0 to 9) If in argument input mode, append
1470
+ # the input digit to the argument being read. Otherwise, call
1471
+ # +ed-insert+. It is an error if the input character is not a
1472
+ # digit or if the existing argument is already greater than a
1473
+ # million.
1474
+ # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself.
1475
+ #
1476
+ # source://reline//lib/reline/line_editor.rb#1432
1477
+ def ed_digit(key); end
1478
+
1479
+ # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters)
1480
+ # In insert mode, insert the input character left of the cursor
1481
+ # position. In replace mode, overwrite the character at the
1482
+ # cursor and move the cursor to the right by one character
1483
+ # position. Accept an argument to do this repeatedly. It is an
1484
+ # error if the input character is the NUL character (+Ctrl-@+).
1485
+ # Failure to enlarge the edit buffer also results in an error.
1486
+ # Editline:: +ed-digit+ (emacs: 0 to 9) If in argument input mode, append
1487
+ # the input digit to the argument being read. Otherwise, call
1488
+ # +ed-insert+. It is an error if the input character is not a
1489
+ # digit or if the existing argument is already greater than a
1490
+ # million.
1491
+ # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself.
1492
+ #
1493
+ # source://reline//lib/reline/line_editor.rb#1432
1494
+ def ed_insert(key); end
1495
+
1496
+ # Editline:: +ed-kill-line+ (vi command: +D+, +Ctrl-K+; emacs: +Ctrl-K+,
1497
+ # +Ctrl-U+) + Kill from the cursor to the end of the line.
1498
+ # GNU Readline:: +kill-line+ (+C-k+) Kill the text from point to the end of
1499
+ # the line. With a negative numeric argument, kill backward
1500
+ # from the cursor to the beginning of the current line.
1501
+ #
1502
+ # source://reline//lib/reline/line_editor.rb#1780
1503
+ def ed_kill_line(key); end
1504
+
1505
+ # source://reline//lib/reline/line_editor.rb#1506
1506
+ def ed_move_to_beg(key); end
1507
+
1508
+ # source://reline//lib/reline/line_editor.rb#1512
1509
+ def ed_move_to_end(key); end
1510
+
1511
+ # source://reline//lib/reline/line_editor.rb#1730
1512
+ def ed_newline(key); end
1513
+
1514
+ # source://reline//lib/reline/line_editor.rb#1476
1515
+ def ed_next_char(key, arg: T.unsafe(nil)); end
1516
+
1517
+ # source://reline//lib/reline/line_editor.rb#1713
1518
+ def ed_next_history(key, arg: T.unsafe(nil)); end
1519
+
1520
+ # source://reline//lib/reline/line_editor.rb#1489
1521
+ def ed_prev_char(key, arg: T.unsafe(nil)); end
1522
+
1523
+ # source://reline//lib/reline/line_editor.rb#1696
1524
+ def ed_prev_history(key, arg: T.unsafe(nil)); end
1525
+
1526
+ # source://reline//lib/reline/line_editor.rb#1885
1527
+ def ed_prev_word(key); end
1528
+
1529
+ # source://reline//lib/reline/line_editor.rb#1460
1530
+ def ed_quoted_insert(str, arg: T.unsafe(nil)); end
1531
+
1532
+ # source://reline//lib/reline/line_editor.rb#1659
1533
+ def ed_search_next_history(key, arg: T.unsafe(nil)); end
1534
+
1535
+ # source://reline//lib/reline/line_editor.rb#1644
1536
+ def ed_search_prev_history(key, arg: T.unsafe(nil)); end
1537
+
1538
+ # source://reline//lib/reline/line_editor.rb#1913
1539
+ def ed_transpose_chars(key); end
1540
+
1541
+ # source://reline//lib/reline/line_editor.rb#1930
1542
+ def ed_transpose_words(key); end
1543
+
1544
+ # do nothing
1545
+ #
1546
+ # source://reline//lib/reline/line_editor.rb#1411
1547
+ def ed_unassigned(key); end
1548
+
1549
+ # source://reline//lib/reline/line_editor.rb#1943
1550
+ def em_capitol_case(key); end
1551
+
1552
+ # source://reline//lib/reline/line_editor.rb#1824
1553
+ def em_delete(key); end
1554
+
1555
+ # source://reline//lib/reline/line_editor.rb#1893
1556
+ def em_delete_next_word(key); end
1557
+
1558
+ # source://reline//lib/reline/line_editor.rb#1839
1559
+ def em_delete_or_list(key); end
1560
+
1561
+ # source://reline//lib/reline/line_editor.rb#1759
1562
+ def em_delete_prev_char(key, arg: T.unsafe(nil)); end
1563
+
1564
+ # source://reline//lib/reline/line_editor.rb#2404
1565
+ def em_exchange_mark(key); end
1566
+
1567
+ # Editline:: +em-kill-line+ (not bound) Delete the entire contents of the
1568
+ # edit buffer and save it to the cut buffer. +vi-kill-line-prev+
1569
+ # GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the
1570
+ # current line, no matter where point is.
1571
+ #
1572
+ # source://reline//lib/reline/line_editor.rb#1816
1573
+ def em_kill_line(key); end
1574
+
1575
+ # source://reline//lib/reline/line_editor.rb#1979
1576
+ def em_kill_region(key); end
1577
+
1578
+ # source://reline//lib/reline/line_editor.rb#1953
1579
+ def em_lower_case(key); end
1580
+
1581
+ # source://reline//lib/reline/line_editor.rb#1877
1582
+ def em_next_word(key); end
1583
+
1584
+ # source://reline//lib/reline/line_editor.rb#2399
1585
+ def em_set_mark(key); end
1586
+
1587
+ # source://reline//lib/reline/line_editor.rb#1966
1588
+ def em_upper_case(key); end
1589
+
1590
+ # source://reline//lib/reline/line_editor.rb#1853
1591
+ def em_yank(key); end
1592
+
1593
+ # source://reline//lib/reline/line_editor.rb#1859
1594
+ def em_yank_pop(key); end
1595
+
1596
+ # source://reline//lib/reline/line_editor.rb#2412
1597
+ def emacs_editing_mode(key); end
1598
+
1599
+ # source://reline//lib/reline/line_editor.rb#1512
1600
+ def end_of_line(key); end
1601
+
1602
+ # source://reline//lib/reline/line_editor.rb#2404
1603
+ def exchange_point_and_mark(key); end
1604
+
1605
+ # source://reline//lib/reline/line_editor.rb#806
1606
+ def filter_normalize_candidates(target, list); end
1607
+
1608
+ # source://reline//lib/reline/line_editor.rb#1476
1609
+ def forward_char(key, arg: T.unsafe(nil)); end
1610
+
1611
+ # source://reline//lib/reline/line_editor.rb#1629
1612
+ def forward_search_history(key); end
1613
+
1614
+ # source://reline//lib/reline/line_editor.rb#1877
1615
+ def forward_word(key); end
1616
+
1617
+ # source://reline//lib/reline/line_editor.rb#1517
1618
+ def generate_searcher(search_key); end
1619
+
1620
+ # source://reline//lib/reline/line_editor.rb#186
1621
+ def handle_interrupted; end
1622
+
1623
+ # source://reline//lib/reline/line_editor.rb#174
1624
+ def handle_resized; end
1625
+
1626
+ # source://reline//lib/reline/line_editor.rb#1644
1627
+ def history_search_backward(key, arg: T.unsafe(nil)); end
1628
+
1629
+ # source://reline//lib/reline/line_editor.rb#1659
1630
+ def history_search_forward(key, arg: T.unsafe(nil)); end
1631
+
1632
+ # @return [Boolean]
1633
+ #
1634
+ # source://reline//lib/reline/line_editor.rb#939
1635
+ def inclusive?(method_obj); end
1636
+
1637
+ # source://reline//lib/reline/line_editor.rb#1596
1638
+ def incremental_search_history(key); end
1639
+
1640
+ # source://reline//lib/reline/line_editor.rb#278
1641
+ def insert_new_line(cursor_line, next_line); end
1642
+
1643
+ # source://reline//lib/reline/line_editor.rb#1355
1644
+ def key_delete(key); end
1645
+
1646
+ # source://reline//lib/reline/line_editor.rb#1363
1647
+ def key_newline(key); end
1648
+
1649
+ # Editline:: +ed-kill-line+ (vi command: +D+, +Ctrl-K+; emacs: +Ctrl-K+,
1650
+ # +Ctrl-U+) + Kill from the cursor to the end of the line.
1651
+ # GNU Readline:: +kill-line+ (+C-k+) Kill the text from point to the end of
1652
+ # the line. With a negative numeric argument, kill backward
1653
+ # from the cursor to the beginning of the current line.
1654
+ #
1655
+ # source://reline//lib/reline/line_editor.rb#1780
1656
+ def kill_line(key); end
1657
+
1658
+ # Editline:: +em-kill-line+ (not bound) Delete the entire contents of the
1659
+ # edit buffer and save it to the cut buffer. +vi-kill-line-prev+
1660
+ # GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the
1661
+ # current line, no matter where point is.
1662
+ #
1663
+ # source://reline//lib/reline/line_editor.rb#1816
1664
+ def kill_whole_line(key); end
1665
+
1666
+ # source://reline//lib/reline/line_editor.rb#1893
1667
+ def kill_word(key); end
1668
+
1669
+ # source://reline//lib/reline/line_editor.rb#802
1670
+ def menu(list); end
1671
+
1672
+ # source://reline//lib/reline/line_editor.rb#1397
1673
+ def menu_complete(_key); end
1674
+
1675
+ # source://reline//lib/reline/line_editor.rb#1401
1676
+ def menu_complete_backward(_key); end
1677
+
1678
+ # source://reline//lib/reline/line_editor.rb#790
1679
+ def modify_lines(before, complete); end
1680
+
1681
+ # source://reline//lib/reline/line_editor.rb#884
1682
+ def move_completed_list(direction); end
1683
+
1684
+ # source://reline//lib/reline/line_editor.rb#1674
1685
+ def move_history(history_pointer, line:, cursor:); end
1686
+
1687
+ # source://reline//lib/reline/line_editor.rb#1713
1688
+ def next_history(key, arg: T.unsafe(nil)); end
1689
+
1690
+ # source://reline//lib/reline/line_editor.rb#1037
1691
+ def normal_char(key); end
1692
+
1693
+ # source://reline//lib/reline/line_editor.rb#829
1694
+ def perform_completion(preposing, target, postposing, quote, list); end
1695
+
1696
+ # source://reline//lib/reline/line_editor.rb#2440
1697
+ def prev_action_state_value(type); end
1698
+
1699
+ # source://reline//lib/reline/line_editor.rb#1696
1700
+ def previous_history(key, arg: T.unsafe(nil)); end
1701
+
1702
+ # source://reline//lib/reline/line_editor.rb#1168
1703
+ def process_auto_indent(line_index = T.unsafe(nil), cursor_dependent: T.unsafe(nil), add_newline: T.unsafe(nil)); end
1704
+
1705
+ # source://reline//lib/reline/line_editor.rb#1413
1706
+ def process_insert(force: T.unsafe(nil)); end
1707
+
1708
+ # source://reline//lib/reline/line_editor.rb#973
1709
+ def process_key(key, method_symbol); end
1710
+
1711
+ # source://reline//lib/reline/line_editor.rb#1460
1712
+ def quoted_insert(str, arg: T.unsafe(nil)); end
1713
+
1714
+ # source://reline//lib/reline/line_editor.rb#2448
1715
+ def re_read_init_file(_key); end
1716
+
1717
+ # source://reline//lib/reline/line_editor.rb#2430
1718
+ def redo(_key); end
1719
+
1720
+ # Reflects lines to be rendered and new cursor position to the screen
1721
+ # by calculating the difference from the previous render.
1722
+ #
1723
+ # source://reline//lib/reline/line_editor.rb#512
1724
+ def render_differential(new_lines, new_cursor_x, new_cursor_y); end
1725
+
1726
+ # source://reline//lib/reline/line_editor.rb#896
1727
+ def retrieve_completion_journey_state; end
1728
+
1729
+ # source://reline//lib/reline/line_editor.rb#1624
1730
+ def reverse_search_history(key); end
1731
+
1732
+ # source://reline//lib/reline/line_editor.rb#911
1733
+ def run_for_operators(key, method_symbol, &block); end
1734
+
1735
+ # source://reline//lib/reline/line_editor.rb#1634
1736
+ def search_history(prefix, pointer_range); end
1737
+
1738
+ # source://reline//lib/reline/line_editor.rb#2300
1739
+ def search_next_char(key, arg, need_prev_char: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1740
+
1741
+ # source://reline//lib/reline/line_editor.rb#2352
1742
+ def search_prev_char(key, arg, need_next_char = T.unsafe(nil)); end
1743
+
1744
+ # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters)
1745
+ # In insert mode, insert the input character left of the cursor
1746
+ # position. In replace mode, overwrite the character at the
1747
+ # cursor and move the cursor to the right by one character
1748
+ # position. Accept an argument to do this repeatedly. It is an
1749
+ # error if the input character is the NUL character (+Ctrl-@+).
1750
+ # Failure to enlarge the edit buffer also results in an error.
1751
+ # Editline:: +ed-digit+ (emacs: 0 to 9) If in argument input mode, append
1752
+ # the input digit to the argument being read. Otherwise, call
1753
+ # +ed-insert+. It is an error if the input character is not a
1754
+ # digit or if the existing argument is already greater than a
1755
+ # million.
1756
+ # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself.
1757
+ #
1758
+ # source://reline//lib/reline/line_editor.rb#1432
1759
+ def self_insert(key); end
1760
+
1761
+ # source://reline//lib/reline/line_editor.rb#2399
1762
+ def set_mark(key); end
1763
+
1764
+ # source://reline//lib/reline/line_editor.rb#2444
1765
+ def set_next_action_state(type, value); end
1766
+
1767
+ # source://reline//lib/reline/line_editor.rb#301
1768
+ def split_line_by_width(str, max_width, offset: T.unsafe(nil)); end
1769
+
1770
+ # source://reline//lib/reline/line_editor.rb#1913
1771
+ def transpose_chars(key); end
1772
+
1773
+ # source://reline//lib/reline/line_editor.rb#1930
1774
+ def transpose_words(key); end
1775
+
1776
+ # source://reline//lib/reline/line_editor.rb#2420
1777
+ def undo(_key); end
1778
+
1779
+ # Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the
1780
+ # beginning of the edit buffer to the cursor and save it to the
1781
+ # cut buffer.
1782
+ # GNU Readline:: +unix-line-discard+ (+C-u+) Kill backward from the cursor
1783
+ # to the beginning of the current line.
1784
+ #
1785
+ # source://reline//lib/reline/line_editor.rb#1803
1786
+ def unix_line_discard(key); end
1787
+
1788
+ # source://reline//lib/reline/line_editor.rb#1979
1789
+ def unix_word_rubout(key); end
1790
+
1791
+ # source://reline//lib/reline/line_editor.rb#1966
1792
+ def upcase_word(key); end
1793
+
1794
+ # source://reline//lib/reline/line_editor.rb#706
1795
+ def update_each_dialog(dialog, cursor_column, cursor_row, key = T.unsafe(nil)); end
1796
+
1797
+ # source://reline//lib/reline/line_editor.rb#1999
1798
+ def vi_add(key); end
1799
+
1800
+ # source://reline//lib/reline/line_editor.rb#2095
1801
+ def vi_add_at_eol(key); end
1802
+
1803
+ # source://reline//lib/reline/line_editor.rb#2114
1804
+ def vi_change_meta(key, arg: T.unsafe(nil)); end
1805
+
1806
+ # source://reline//lib/reline/line_editor.rb#2126
1807
+ def vi_change_meta_confirm(byte_pointer_diff); end
1808
+
1809
+ # Editline:: +vi_change_to_eol+ (vi command: +C+) + Kill and change from the cursor to the end of the line.
1810
+ #
1811
+ # source://reline//lib/reline/line_editor.rb#1792
1812
+ def vi_change_to_eol(key); end
1813
+
1814
+ # source://reline//lib/reline/line_editor.rb#2004
1815
+ def vi_command_mode(key); end
1816
+
1817
+ # source://reline//lib/reline/line_editor.rb#2132
1818
+ def vi_delete_meta(key, arg: T.unsafe(nil)); end
1819
+
1820
+ # source://reline//lib/reline/line_editor.rb#2143
1821
+ def vi_delete_meta_confirm(byte_pointer_diff); end
1822
+
1823
+ # source://reline//lib/reline/line_editor.rb#2076
1824
+ def vi_delete_prev_char(key); end
1825
+
1826
+ # source://reline//lib/reline/line_editor.rb#2416
1827
+ def vi_editing_mode(key); end
1828
+
1829
+ # source://reline//lib/reline/line_editor.rb#2061
1830
+ def vi_end_big_word(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1831
+
1832
+ # source://reline//lib/reline/line_editor.rb#2177
1833
+ def vi_end_of_transmission(key); end
1834
+
1835
+ # source://reline//lib/reline/line_editor.rb#2028
1836
+ def vi_end_word(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1837
+
1838
+ # source://reline//lib/reline/line_editor.rb#2177
1839
+ def vi_eof_maybe(key); end
1840
+
1841
+ # source://reline//lib/reline/line_editor.rb#1502
1842
+ def vi_first_print(key); end
1843
+
1844
+ # source://reline//lib/reline/line_editor.rb#2211
1845
+ def vi_histedit(key); end
1846
+
1847
+ # source://reline//lib/reline/line_editor.rb#1995
1848
+ def vi_insert(key); end
1849
+
1850
+ # source://reline//lib/reline/line_editor.rb#2090
1851
+ def vi_insert_at_bol(key); end
1852
+
1853
+ # source://reline//lib/reline/line_editor.rb#2390
1854
+ def vi_join_lines(key, arg: T.unsafe(nil)); end
1855
+
1856
+ # Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the
1857
+ # beginning of the edit buffer to the cursor and save it to the
1858
+ # cut buffer.
1859
+ # GNU Readline:: +unix-line-discard+ (+C-u+) Kill backward from the cursor
1860
+ # to the beginning of the current line.
1861
+ #
1862
+ # source://reline//lib/reline/line_editor.rb#1803
1863
+ def vi_kill_line_prev(key); end
1864
+
1865
+ # source://reline//lib/reline/line_editor.rb#2177
1866
+ def vi_list_or_eof(key); end
1867
+
1868
+ # source://reline//lib/reline/line_editor.rb#2004
1869
+ def vi_movement_mode(key); end
1870
+
1871
+ # source://reline//lib/reline/line_editor.rb#2043
1872
+ def vi_next_big_word(key, arg: T.unsafe(nil)); end
1873
+
1874
+ # source://reline//lib/reline/line_editor.rb#2292
1875
+ def vi_next_char(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1876
+
1877
+ # source://reline//lib/reline/line_editor.rb#2010
1878
+ def vi_next_word(key, arg: T.unsafe(nil)); end
1879
+
1880
+ # source://reline//lib/reline/line_editor.rb#2232
1881
+ def vi_paste_next(key, arg: T.unsafe(nil)); end
1882
+
1883
+ # source://reline//lib/reline/line_editor.rb#2223
1884
+ def vi_paste_prev(key, arg: T.unsafe(nil)); end
1885
+
1886
+ # source://reline//lib/reline/line_editor.rb#2052
1887
+ def vi_prev_big_word(key, arg: T.unsafe(nil)); end
1888
+
1889
+ # source://reline//lib/reline/line_editor.rb#2344
1890
+ def vi_prev_char(key, arg: T.unsafe(nil)); end
1891
+
1892
+ # source://reline//lib/reline/line_editor.rb#2019
1893
+ def vi_prev_word(key, arg: T.unsafe(nil)); end
1894
+
1895
+ # source://reline//lib/reline/line_editor.rb#2268
1896
+ def vi_replace_char(key, arg: T.unsafe(nil)); end
1897
+
1898
+ # source://reline//lib/reline/line_editor.rb#1629
1899
+ def vi_search_next(key); end
1900
+
1901
+ # source://reline//lib/reline/line_editor.rb#1624
1902
+ def vi_search_prev(key); end
1903
+
1904
+ # source://reline//lib/reline/line_editor.rb#2259
1905
+ def vi_to_column(key, arg: T.unsafe(nil)); end
1906
+
1907
+ # source://reline//lib/reline/line_editor.rb#2204
1908
+ def vi_to_history_line(key); end
1909
+
1910
+ # source://reline//lib/reline/line_editor.rb#2296
1911
+ def vi_to_next_char(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1912
+
1913
+ # source://reline//lib/reline/line_editor.rb#2348
1914
+ def vi_to_prev_char(key, arg: T.unsafe(nil)); end
1915
+
1916
+ # source://reline//lib/reline/line_editor.rb#2155
1917
+ def vi_yank(key, arg: T.unsafe(nil)); end
1918
+
1919
+ # source://reline//lib/reline/line_editor.rb#2166
1920
+ def vi_yank_confirm(byte_pointer_diff); end
1921
+
1922
+ # source://reline//lib/reline/line_editor.rb#1506
1923
+ def vi_zero(key); end
1924
+
1925
+ # source://reline//lib/reline/line_editor.rb#1853
1926
+ def yank(key); end
1927
+
1928
+ # source://reline//lib/reline/line_editor.rb#1859
1929
+ def yank_pop(key); end
1930
+ end
1931
+
1932
+ # source://reline//lib/reline/line_editor.rb#46
1933
+ class Reline::LineEditor::CompletionJourneyState < ::Struct
1934
+ # Returns the value of attribute line_index
1935
+ #
1936
+ # @return [Object] the current value of line_index
1937
+ def line_index; end
1938
+
1939
+ # Sets the attribute line_index
1940
+ #
1941
+ # @param value [Object] the value to set the attribute line_index to.
1942
+ # @return [Object] the newly set value
1943
+ def line_index=(_); end
1944
+
1945
+ # Returns the value of attribute list
1946
+ #
1947
+ # @return [Object] the current value of list
1948
+ def list; end
1949
+
1950
+ # Sets the attribute list
1951
+ #
1952
+ # @param value [Object] the value to set the attribute list to.
1953
+ # @return [Object] the newly set value
1954
+ def list=(_); end
1955
+
1956
+ # Returns the value of attribute pointer
1957
+ #
1958
+ # @return [Object] the current value of pointer
1959
+ def pointer; end
1960
+
1961
+ # Sets the attribute pointer
1962
+ #
1963
+ # @param value [Object] the value to set the attribute pointer to.
1964
+ # @return [Object] the newly set value
1965
+ def pointer=(_); end
1966
+
1967
+ # Returns the value of attribute post
1968
+ #
1969
+ # @return [Object] the current value of post
1970
+ def post; end
1971
+
1972
+ # Sets the attribute post
1973
+ #
1974
+ # @param value [Object] the value to set the attribute post to.
1975
+ # @return [Object] the newly set value
1976
+ def post=(_); end
1977
+
1978
+ # Returns the value of attribute pre
1979
+ #
1980
+ # @return [Object] the current value of pre
1981
+ def pre; end
1982
+
1983
+ # Sets the attribute pre
1984
+ #
1985
+ # @param value [Object] the value to set the attribute pre to.
1986
+ # @return [Object] the newly set value
1987
+ def pre=(_); end
1988
+
1989
+ # Returns the value of attribute target
1990
+ #
1991
+ # @return [Object] the current value of target
1992
+ def target; end
1993
+
1994
+ # Sets the attribute target
1995
+ #
1996
+ # @param value [Object] the value to set the attribute target to.
1997
+ # @return [Object] the newly set value
1998
+ def target=(_); end
1999
+
2000
+ class << self
2001
+ def [](*_arg0); end
2002
+ def inspect; end
2003
+ def keyword_init?; end
2004
+ def members; end
2005
+ def new(*_arg0); end
2006
+ end
2007
+ end
2008
+
2009
+ # source://reline//lib/reline/line_editor.rb#39
2010
+ Reline::LineEditor::CompletionState::MENU = T.let(T.unsafe(nil), Symbol)
2011
+
2012
+ # source://reline//lib/reline/line_editor.rb#40
2013
+ Reline::LineEditor::CompletionState::MENU_WITH_PERFECT_MATCH = T.let(T.unsafe(nil), Symbol)
2014
+
2015
+ # source://reline//lib/reline/line_editor.rb#38
2016
+ Reline::LineEditor::CompletionState::NORMAL = T.let(T.unsafe(nil), Symbol)
2017
+
2018
+ # source://reline//lib/reline/line_editor.rb#41
2019
+ Reline::LineEditor::CompletionState::PERFECT_MATCH = T.let(T.unsafe(nil), Symbol)
2020
+
2021
+ # source://reline//lib/reline/line_editor.rb#698
2022
+ Reline::LineEditor::DIALOG_DEFAULT_HEIGHT = T.let(T.unsafe(nil), Integer)
2023
+
2024
+ # source://reline//lib/reline/line_editor.rb#644
2025
+ class Reline::LineEditor::Dialog
2026
+ # @return [Dialog] a new instance of Dialog
2027
+ #
2028
+ # source://reline//lib/reline/line_editor.rb#648
2029
+ def initialize(name, config, proc_scope); end
2030
+
2031
+ # source://reline//lib/reline/line_editor.rb#672
2032
+ def call(key); end
2033
+
2034
+ # Returns the value of attribute column.
2035
+ #
2036
+ # source://reline//lib/reline/line_editor.rb#646
2037
+ def column; end
2038
+
2039
+ # Sets the attribute column
2040
+ #
2041
+ # @param value the value to set the attribute column to.
2042
+ #
2043
+ # source://reline//lib/reline/line_editor.rb#646
2044
+ def column=(_arg0); end
2045
+
2046
+ # Returns the value of attribute contents.
2047
+ #
2048
+ # source://reline//lib/reline/line_editor.rb#645
2049
+ def contents; end
2050
+
2051
+ # source://reline//lib/reline/line_editor.rb#665
2052
+ def contents=(contents); end
2053
+
2054
+ # Returns the value of attribute name.
2055
+ #
2056
+ # source://reline//lib/reline/line_editor.rb#645
2057
+ def name; end
2058
+
2059
+ # Returns the value of attribute pointer.
2060
+ #
2061
+ # source://reline//lib/reline/line_editor.rb#646
2062
+ def pointer; end
2063
+
2064
+ # Sets the attribute pointer
2065
+ #
2066
+ # @param value the value to set the attribute pointer to.
2067
+ #
2068
+ # source://reline//lib/reline/line_editor.rb#646
2069
+ def pointer=(_arg0); end
2070
+
2071
+ # Returns the value of attribute scroll_top.
2072
+ #
2073
+ # source://reline//lib/reline/line_editor.rb#646
2074
+ def scroll_top; end
2075
+
2076
+ # Sets the attribute scroll_top
2077
+ #
2078
+ # @param value the value to set the attribute scroll_top to.
2079
+ #
2080
+ # source://reline//lib/reline/line_editor.rb#646
2081
+ def scroll_top=(_arg0); end
2082
+
2083
+ # source://reline//lib/reline/line_editor.rb#657
2084
+ def set_cursor_pos(col, row); end
2085
+
2086
+ # Returns the value of attribute trap_key.
2087
+ #
2088
+ # source://reline//lib/reline/line_editor.rb#646
2089
+ def trap_key; end
2090
+
2091
+ # Sets the attribute trap_key
2092
+ #
2093
+ # @param value the value to set the attribute trap_key to.
2094
+ #
2095
+ # source://reline//lib/reline/line_editor.rb#646
2096
+ def trap_key=(_arg0); end
2097
+
2098
+ # Returns the value of attribute vertical_offset.
2099
+ #
2100
+ # source://reline//lib/reline/line_editor.rb#646
2101
+ def vertical_offset; end
2102
+
2103
+ # Sets the attribute vertical_offset
2104
+ #
2105
+ # @param value the value to set the attribute vertical_offset to.
2106
+ #
2107
+ # source://reline//lib/reline/line_editor.rb#646
2108
+ def vertical_offset=(_arg0); end
2109
+
2110
+ # Returns the value of attribute width.
2111
+ #
2112
+ # source://reline//lib/reline/line_editor.rb#645
2113
+ def width; end
2114
+
2115
+ # source://reline//lib/reline/line_editor.rb#661
2116
+ def width=(v); end
2117
+ end
2118
+
2119
+ # source://reline//lib/reline/line_editor.rb#565
2120
+ class Reline::LineEditor::DialogProcScope
2121
+ # @return [DialogProcScope] a new instance of DialogProcScope
2122
+ #
2123
+ # source://reline//lib/reline/line_editor.rb#568
2124
+ def initialize(line_editor, config, proc_to_exec, context); end
2125
+
2126
+ # source://reline//lib/reline/line_editor.rb#639
2127
+ def call; end
2128
+
2129
+ # source://reline//lib/reline/line_editor.rb#585
2130
+ def call_completion_proc_with_checking_args(pre, target, post); end
2131
+
2132
+ # source://reline//lib/reline/line_editor.rb#631
2133
+ def completion_journey_data; end
2134
+
2135
+ # source://reline//lib/reline/line_editor.rb#635
2136
+ def config; end
2137
+
2138
+ # source://reline//lib/reline/line_editor.rb#576
2139
+ def context; end
2140
+
2141
+ # source://reline//lib/reline/line_editor.rb#610
2142
+ def cursor_pos; end
2143
+
2144
+ # source://reline//lib/reline/line_editor.rb#593
2145
+ def dialog; end
2146
+
2147
+ # source://reline//lib/reline/line_editor.rb#614
2148
+ def just_cursor_moving; end
2149
+
2150
+ # source://reline//lib/reline/line_editor.rb#606
2151
+ def key; end
2152
+
2153
+ # source://reline//lib/reline/line_editor.rb#626
2154
+ def preferred_dialog_height; end
2155
+
2156
+ # source://reline//lib/reline/line_editor.rb#580
2157
+ def retrieve_completion_block(_unused = T.unsafe(nil)); end
2158
+
2159
+ # source://reline//lib/reline/line_editor.rb#622
2160
+ def screen_height; end
2161
+
2162
+ # source://reline//lib/reline/line_editor.rb#618
2163
+ def screen_width; end
2164
+
2165
+ # source://reline//lib/reline/line_editor.rb#597
2166
+ def set_cursor_pos(col, row); end
2167
+
2168
+ # source://reline//lib/reline/line_editor.rb#589
2169
+ def set_dialog(dialog); end
2170
+
2171
+ # source://reline//lib/reline/line_editor.rb#602
2172
+ def set_key(key); end
2173
+ end
2174
+
2175
+ # source://reline//lib/reline/line_editor.rb#566
2176
+ class Reline::LineEditor::DialogProcScope::CompletionJourneyData < ::Struct
2177
+ # Returns the value of attribute list
2178
+ #
2179
+ # @return [Object] the current value of list
2180
+ def list; end
2181
+
2182
+ # Sets the attribute list
2183
+ #
2184
+ # @param value [Object] the value to set the attribute list to.
2185
+ # @return [Object] the newly set value
2186
+ def list=(_); end
2187
+
2188
+ # Returns the value of attribute pointer
2189
+ #
2190
+ # @return [Object] the current value of pointer
2191
+ def pointer; end
2192
+
2193
+ # Sets the attribute pointer
2194
+ #
2195
+ # @param value [Object] the value to set the attribute pointer to.
2196
+ # @return [Object] the newly set value
2197
+ def pointer=(_); end
2198
+
2199
+ # Returns the value of attribute postposing
2200
+ #
2201
+ # @return [Object] the current value of postposing
2202
+ def postposing; end
2203
+
2204
+ # Sets the attribute postposing
2205
+ #
2206
+ # @param value [Object] the value to set the attribute postposing to.
2207
+ # @return [Object] the newly set value
2208
+ def postposing=(_); end
2209
+
2210
+ # Returns the value of attribute preposing
2211
+ #
2212
+ # @return [Object] the current value of preposing
2213
+ def preposing; end
2214
+
2215
+ # Sets the attribute preposing
2216
+ #
2217
+ # @param value [Object] the value to set the attribute preposing to.
2218
+ # @return [Object] the newly set value
2219
+ def preposing=(_); end
2220
+
2221
+ class << self
2222
+ def [](*_arg0); end
2223
+ def inspect; end
2224
+ def keyword_init?; end
2225
+ def members; end
2226
+ def new(*_arg0); end
2227
+ end
2228
+ end
2229
+
2230
+ # source://reline//lib/reline/line_editor.rb#1121
2231
+ Reline::LineEditor::MAX_INPUT_LINES = T.let(T.unsafe(nil), Integer)
2232
+
2233
+ # source://reline//lib/reline/line_editor.rb#72
2234
+ Reline::LineEditor::MINIMUM_SCROLLBAR_HEIGHT = T.let(T.unsafe(nil), Integer)
2235
+
2236
+ # source://reline//lib/reline/line_editor.rb#49
2237
+ class Reline::LineEditor::MenuInfo
2238
+ # @return [MenuInfo] a new instance of MenuInfo
2239
+ #
2240
+ # source://reline//lib/reline/line_editor.rb#52
2241
+ def initialize(list); end
2242
+
2243
+ # source://reline//lib/reline/line_editor.rb#56
2244
+ def lines(screen_width); end
2245
+
2246
+ # Returns the value of attribute list.
2247
+ #
2248
+ # source://reline//lib/reline/line_editor.rb#50
2249
+ def list; end
2250
+ end
2251
+
2252
+ # source://reline//lib/reline/line_editor.rb#47
2253
+ Reline::LineEditor::NullActionState = T.let(T.unsafe(nil), Array)
2254
+
2255
+ # source://reline//lib/reline/line_editor.rb#44
2256
+ class Reline::LineEditor::RenderedScreen < ::Struct
2257
+ # Returns the value of attribute base_y
2258
+ #
2259
+ # @return [Object] the current value of base_y
2260
+ def base_y; end
2261
+
2262
+ # Sets the attribute base_y
2263
+ #
2264
+ # @param value [Object] the value to set the attribute base_y to.
2265
+ # @return [Object] the newly set value
2266
+ def base_y=(_); end
2267
+
2268
+ # Returns the value of attribute cursor_y
2269
+ #
2270
+ # @return [Object] the current value of cursor_y
2271
+ def cursor_y; end
2272
+
2273
+ # Sets the attribute cursor_y
2274
+ #
2275
+ # @param value [Object] the value to set the attribute cursor_y to.
2276
+ # @return [Object] the newly set value
2277
+ def cursor_y=(_); end
2278
+
2279
+ # Returns the value of attribute lines
2280
+ #
2281
+ # @return [Object] the current value of lines
2282
+ def lines; end
2283
+
2284
+ # Sets the attribute lines
2285
+ #
2286
+ # @param value [Object] the value to set the attribute lines to.
2287
+ # @return [Object] the newly set value
2288
+ def lines=(_); end
2289
+
2290
+ class << self
2291
+ def [](*_arg0); end
2292
+ def inspect; end
2293
+ def keyword_init?; end
2294
+ def members; end
2295
+ def new(*_arg0); end
2296
+ end
2297
+ end
2298
+
2299
+ # source://reline//lib/reline/line_editor.rb#18
2300
+ Reline::LineEditor::VI_MOTIONS = T.let(T.unsafe(nil), Array)
2301
+
2302
+ # source://reline//lib/reline.rb#16
2303
+ Reline::USERNAME_COMPLETION_PROC = T.let(T.unsafe(nil), T.untyped)
2304
+
2305
+ # source://reline//lib/reline/unicode.rb#1
2306
+ class Reline::Unicode
2307
+ class << self
2308
+ # source://reline//lib/reline/unicode.rb#98
2309
+ def calculate_width(str, allow_escape_code = T.unsafe(nil)); end
2310
+
2311
+ # source://reline//lib/reline/unicode.rb#636
2312
+ def common_prefix(list, ignore_case: T.unsafe(nil)); end
2313
+
2314
+ # source://reline//lib/reline/unicode.rb#341
2315
+ def ed_transpose_words(line, byte_pointer); end
2316
+
2317
+ # source://reline//lib/reline/unicode.rb#307
2318
+ def em_backward_word(line, byte_pointer); end
2319
+
2320
+ # source://reline//lib/reline/unicode.rb#324
2321
+ def em_big_backward_word(line, byte_pointer); end
2322
+
2323
+ # source://reline//lib/reline/unicode.rb#264
2324
+ def em_forward_word(line, byte_pointer); end
2325
+
2326
+ # source://reline//lib/reline/unicode.rb#281
2327
+ def em_forward_word_with_capitalization(line, byte_pointer); end
2328
+
2329
+ # source://reline//lib/reline/unicode.rb#44
2330
+ def escape_for_print(str); end
2331
+
2332
+ # source://reline//lib/reline/unicode.rb#75
2333
+ def get_mbchar_width(mbchar); end
2334
+
2335
+ # source://reline//lib/reline/unicode.rb#250
2336
+ def get_next_mbchar_size(line, byte_pointer); end
2337
+
2338
+ # source://reline//lib/reline/unicode.rb#255
2339
+ def get_prev_mbchar_size(line, byte_pointer); end
2340
+
2341
+ # source://reline//lib/reline/unicode.rb#57
2342
+ def safe_encode(str, encoding); end
2343
+
2344
+ # This method is used by IRB
2345
+ #
2346
+ # source://reline//lib/reline/unicode.rb#125
2347
+ def split_by_width(str, max_width); end
2348
+
2349
+ # source://reline//lib/reline/unicode.rb#130
2350
+ def split_line_by_width(str, max_width, encoding = T.unsafe(nil), offset: T.unsafe(nil)); end
2351
+
2352
+ # source://reline//lib/reline/unicode.rb#172
2353
+ def strip_non_printing_start_end(prompt); end
2354
+
2355
+ # source://reline//lib/reline/unicode.rb#181
2356
+ def take_mbchar_range(str, start_col, width, cover_begin: T.unsafe(nil), cover_end: T.unsafe(nil), padding: T.unsafe(nil)); end
2357
+
2358
+ # Take a chunk of a String cut by width with escape sequences.
2359
+ #
2360
+ # source://reline//lib/reline/unicode.rb#177
2361
+ def take_range(str, start_col, max_width); end
2362
+
2363
+ # source://reline//lib/reline/unicode.rb#607
2364
+ def vi_backward_word(line, byte_pointer); end
2365
+
2366
+ # source://reline//lib/reline/unicode.rb#483
2367
+ def vi_big_backward_word(line, byte_pointer); end
2368
+
2369
+ # source://reline//lib/reline/unicode.rb#459
2370
+ def vi_big_forward_end_word(line, byte_pointer); end
2371
+
2372
+ # source://reline//lib/reline/unicode.rb#442
2373
+ def vi_big_forward_word(line, byte_pointer); end
2374
+
2375
+ # source://reline//lib/reline/unicode.rb#649
2376
+ def vi_first_print(line); end
2377
+
2378
+ # source://reline//lib/reline/unicode.rb#538
2379
+ def vi_forward_end_word(line, byte_pointer); end
2380
+
2381
+ # source://reline//lib/reline/unicode.rb#500
2382
+ def vi_forward_word(line, byte_pointer, drop_terminate_spaces = T.unsafe(nil)); end
2383
+ end
2384
+ end
2385
+
2386
+ # source://reline//lib/reline/unicode.rb#40
2387
+ Reline::Unicode::CSI_REGEXP = T.let(T.unsafe(nil), Regexp)
2388
+
2389
+ # source://reline//lib/reline/unicode/east_asian_width.rb#5
2390
+ Reline::Unicode::EastAsianWidth::CHUNK_LAST = T.let(T.unsafe(nil), Array)
2391
+
2392
+ # source://reline//lib/reline/unicode/east_asian_width.rb#5
2393
+ Reline::Unicode::EastAsianWidth::CHUNK_WIDTH = T.let(T.unsafe(nil), Array)
2394
+
2395
+ # C-? C-8
2396
+ #
2397
+ # source://reline//lib/reline/unicode.rb#36
2398
+ Reline::Unicode::EscapedChars = T.let(T.unsafe(nil), Array)
2399
+
2400
+ # source://reline//lib/reline/unicode.rb#2
2401
+ Reline::Unicode::EscapedPairs = T.let(T.unsafe(nil), Hash)
2402
+
2403
+ # source://reline//lib/reline/unicode.rb#39
2404
+ Reline::Unicode::NON_PRINTING_END = T.let(T.unsafe(nil), String)
2405
+
2406
+ # source://reline//lib/reline/unicode.rb#38
2407
+ Reline::Unicode::NON_PRINTING_START = T.let(T.unsafe(nil), String)
2408
+
2409
+ # source://reline//lib/reline/unicode.rb#41
2410
+ Reline::Unicode::OSC_REGEXP = T.let(T.unsafe(nil), Regexp)
2411
+
2412
+ # source://reline//lib/reline/unicode.rb#42
2413
+ Reline::Unicode::WIDTH_SCANNER = T.let(T.unsafe(nil), Regexp)
2414
+
2415
+ # source://reline//lib/reline/version.rb#2
2416
+ Reline::VERSION = T.let(T.unsafe(nil), String)