@ai-ecoverse/wasix-ruby 3.4.11-2 → 3.4.11-20
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.
- package/PRESTAGE.md +53 -16
- package/README.md +156 -0
- package/THIRD-PARTY-NOTICES.md +727 -0
- package/bin/bundle +1 -1
- package/bin/bundler +1 -1
- package/bin/erb +1 -1
- package/bin/gem +1 -1
- package/bin/irb +1 -1
- package/bin/rake +1 -1
- package/bin/{ruby.wasm → ruby} +0 -0
- package/lib/ruby/3.4.0/io/console/size.rb +23 -0
- package/lib/ruby/3.4.0/socket.rb +1790 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +38 -34
- package/lib/ruby/gems/3.4.0/cache/abbrev-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/base64-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/csv-3.3.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/drb-2.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/getoptlong-0.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/matrix-0.4.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/minitest-5.25.4.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/mutex_m-0.3.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-ftp-0.3.8.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-imap-0.5.15.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-pop-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-smtp-0.5.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/observer-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/power_assert-2.0.5.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/prime-0.1.3.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rake-13.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/repl_type_completor-0.1.9.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/resolv-replace-0.1.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rexml-3.4.4.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rinda-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rss-0.3.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/test-unit-3.6.7.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/typeprof-0.30.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle +29 -0
- package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundler +4 -0
- package/lib/ruby/gems/3.4.0/gems/erb-4.0.4.1/libexec/erb +164 -0
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/irb-1.14.3/exe/irb +9 -0
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/rdoc +43 -0
- package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/ri +12 -0
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/syntax_suggest-2.0.3/exe/syntax_suggest +7 -0
- package/lib/ruby/gems/3.4.0/specifications/abbrev-0.1.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/base64-0.2.0.gemspec +4 -3
- package/lib/ruby/gems/3.4.0/specifications/csv-3.3.2.gemspec +5 -3
- package/lib/ruby/gems/3.4.0/specifications/default/benchmark-0.4.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/bundler-2.6.9.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/cgi-0.4.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/date-3.4.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/delegate-0.4.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/did_you_mean-2.0.0.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/digest-3.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/english-0.8.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/erb-4.0.4.1.gemspec +29 -0
- package/lib/ruby/gems/3.4.0/specifications/default/error_highlight-0.7.0.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/etc-1.4.6.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/fcntl-1.2.0.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/fileutils-1.7.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/find-0.2.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/forwardable-1.3.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-console-0.8.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-nonblock-0.3.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-wait-0.3.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ipaddr-1.2.7.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/irb-1.14.3.gemspec +28 -0
- package/lib/ruby/gems/3.4.0/specifications/default/json-2.9.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/logger-1.6.4.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/net-http-0.6.0.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/net-protocol-0.2.2.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/open-uri-0.5.0.gemspec +27 -0
- package/lib/ruby/gems/3.4.0/specifications/default/open3-0.2.1.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/openssl-3.3.3.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/optparse-0.6.0.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ostruct-0.6.1.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pathname-0.4.0.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pp-0.6.2.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/prettyprint-0.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/prism-1.5.3.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pstore-0.2.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/psych-5.2.2.gemspec +30 -0
- package/lib/ruby/gems/3.4.0/specifications/default/rdoc-6.14.0.gemspec +30 -0
- package/lib/ruby/gems/3.4.0/specifications/default/readline-0.0.4.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/reline-0.6.0.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/resolv-0.7.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ruby2_keywords-0.0.5.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/securerandom-0.4.1.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/set-1.1.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/shellwords-0.2.2.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/singleton-0.3.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/stringio-3.1.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/strscan-3.1.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/syntax_suggest-2.0.3.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tempfile-0.3.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/time-0.4.1.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/timeout-0.4.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tmpdir-0.3.1.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tsort-0.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/un-0.3.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/uri-1.0.4.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/weakref-0.1.3.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/yaml-0.4.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/zlib-3.2.3.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/drb-2.2.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/getoptlong-0.2.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/matrix-0.4.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/minitest-5.25.4.gemspec +7 -5
- package/lib/ruby/gems/3.4.0/specifications/mutex_m-0.3.0.gemspec +4 -3
- package/lib/ruby/gems/3.4.0/specifications/net-ftp-0.3.8.gemspec +10 -4
- package/lib/ruby/gems/3.4.0/specifications/net-imap-0.5.15.gemspec +7 -5
- package/lib/ruby/gems/3.4.0/specifications/net-pop-0.1.2.gemspec +9 -4
- package/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.1.gemspec +9 -4
- package/lib/ruby/gems/3.4.0/specifications/observer-0.1.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/power_assert-2.0.5.gemspec +6 -4
- package/lib/ruby/gems/3.4.0/specifications/prime-0.1.3.gemspec +10 -4
- package/lib/ruby/gems/3.4.0/specifications/rake-13.2.1.gemspec +6 -4
- package/lib/ruby/gems/3.4.0/specifications/repl_type_completor-0.1.9.gemspec +6 -5
- package/lib/ruby/gems/3.4.0/specifications/resolv-replace-0.1.1.gemspec +6 -5
- package/lib/ruby/gems/3.4.0/specifications/rexml-3.4.4.gemspec +5 -3
- package/lib/ruby/gems/3.4.0/specifications/rinda-0.2.0.gemspec +8 -5
- package/lib/ruby/gems/3.4.0/specifications/rss-0.3.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/test-unit-3.6.7.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/typeprof-0.30.1.gemspec +7 -5
- package/package.json +60 -21
- package/lib/ruby/3.4.0/expect.rb +0 -71
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/abbrev.gemspec +0 -29
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/.bundled.bigdecimal-3.1.8.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +0 -56
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal-3.1.8.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -50
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +0 -90
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +0 -89
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +0 -232
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +0 -80
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +0 -185
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +0 -74
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +0 -40
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +0 -21
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/.bundled.debug-1.11.0.gemspec +0 -25
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +0 -573
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +0 -10
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +0 -996
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +0 -57
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +0 -23
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug-1.11.0.gemspec +0 -30
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug.gemspec +0 -33
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +0 -53
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +0 -556
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +0 -263
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +0 -123
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +0 -592
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +0 -224
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +0 -336
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +0 -190
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +0 -37
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +0 -115
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +0 -13
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +0 -15
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +0 -534
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +0 -1348
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +0 -1108
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +0 -2667
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +0 -150
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +0 -1457
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +0 -241
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +0 -9
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +0 -660
- package/lib/ruby/gems/3.4.0/gems/drb-2.2.1/drb.gemspec +0 -41
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/getoptlong.gemspec +0 -30
- package/lib/ruby/gems/3.4.0/gems/matrix-0.4.2/matrix.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/minitest-5.25.4/.autotest +0 -34
- package/lib/ruby/gems/3.4.0/gems/net-ftp-0.3.8/net-ftp.gemspec +0 -34
- package/lib/ruby/gems/3.4.0/gems/net-imap-0.5.15/net-imap.gemspec +0 -38
- package/lib/ruby/gems/3.4.0/gems/net-pop-0.1.2/net-pop.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/gems/net-smtp-0.5.1/net-smtp.gemspec +0 -31
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/.bundled.nkf-0.2.0.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +0 -5
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +0 -38
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +0 -14
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/setup +0 -8
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +0 -283
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf-0.2.0.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf.gemspec +0 -43
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/observer.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/gems/power_assert-2.0.5/power_assert.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/prime-0.1.3/prime.gemspec +0 -28
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/.bundled.racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +0 -22
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +0 -56
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +0 -846
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +0 -60
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +0 -5
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +0 -320
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +0 -218
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +0 -219
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +0 -99
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +0 -36
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +0 -348
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +0 -10
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +0 -125
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +0 -414
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/rake-13.2.1/rake.gemspec +0 -101
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.bundled.rbs-3.8.0.gemspec +0 -25
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.rubocop.yml +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +0 -22
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +0 -1854
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +0 -203
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +0 -415
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +0 -44
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +0 -311
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +0 -4062
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +0 -375
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +0 -150
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +0 -277
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +0 -220
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +0 -171
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +0 -786
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +0 -415
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +0 -981
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +0 -1371
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +0 -2405
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +0 -630
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +0 -673
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +0 -760
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +0 -376
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +0 -550
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +0 -2936
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +0 -331
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +0 -1151
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +0 -644
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +0 -184
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +0 -1861
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +0 -1413
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +0 -984
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +0 -70
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +0 -3402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +0 -3054
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +0 -207
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +0 -635
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +0 -729
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +0 -386
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +0 -1704
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +0 -209
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +0 -818
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +0 -190
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +0 -868
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +0 -2296
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +0 -1065
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +0 -1107
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +0 -531
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +0 -88
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +0 -1229
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +0 -1209
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +0 -293
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +0 -1928
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +0 -765
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +0 -176
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +0 -148
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +0 -1171
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +0 -294
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +0 -621
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +0 -3583
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +0 -667
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +0 -475
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +0 -1765
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +0 -1762
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +0 -477
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +0 -98
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +0 -329
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +0 -106
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +0 -192
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +0 -86
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +0 -57
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +0 -309
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +0 -167
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +0 -147
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +0 -905
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +0 -91
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +0 -72
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +0 -199
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +0 -400
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +0 -131
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +0 -8
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +0 -467
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +0 -39
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +0 -449
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +0 -225
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +0 -137
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +0 -67
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +0 -83
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +0 -356
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +0 -1223
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +0 -223
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +0 -32
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +0 -258
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +0 -16
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +0 -395
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +0 -620
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +0 -254
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +0 -841
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +0 -818
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +0 -173
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +0 -155
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +0 -600
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +0 -18
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +0 -138
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +0 -241
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +0 -141
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +0 -140
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +0 -99
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +0 -840
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +0 -641
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +0 -279
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +0 -667
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +0 -127
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +0 -219
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +0 -91
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +0 -198
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +0 -83
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +0 -201
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +0 -80
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +0 -30
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +0 -212
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +0 -84
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +0 -167
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +0 -433
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +0 -112
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +0 -126
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +0 -109
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +0 -1557
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +0 -176
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +0 -136
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +0 -341
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +0 -143
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +0 -182
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +0 -189
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +0 -71
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +0 -419
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +0 -93
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs-3.8.0.gemspec +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs.gemspec +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +0 -326
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +0 -266
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +0 -36
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +0 -317
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +0 -60
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +0 -102
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +0 -24
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +0 -30
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +0 -32
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +0 -44
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +0 -43
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +0 -74
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +0 -66
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +0 -46
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +0 -214
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +0 -267
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +0 -173
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +0 -165
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +0 -61
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +0 -277
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +0 -111
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +0 -65
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +0 -383
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +0 -258
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +0 -84
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +0 -146
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +0 -75
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +0 -182
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +0 -67
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +0 -85
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +0 -34
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +0 -35
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +0 -41
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +0 -37
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +0 -52
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +0 -98
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +0 -576
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +0 -154
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +0 -194
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +0 -136
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +0 -35
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +0 -51
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +0 -47
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +0 -127
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +0 -153
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +0 -793
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +0 -66
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +0 -355
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +0 -452
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +0 -1629
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +0 -119
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +0 -1285
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +0 -263
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +0 -3776
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +0 -1585
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +0 -616
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +0 -421
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +0 -184
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +0 -47
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +0 -343
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +0 -577
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +0 -532
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +0 -865
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +0 -1734
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +0 -268
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +0 -414
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +0 -428
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +0 -1914
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +0 -45
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +0 -796
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +0 -34
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +0 -42
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +0 -52
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +0 -590
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +0 -102
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +0 -259
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +0 -25
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +0 -64
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +0 -64
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +0 -46
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +0 -62
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +0 -129
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +0 -18
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +0 -69
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +0 -115
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +0 -354
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +0 -104
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +0 -5552
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +0 -55
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +0 -402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +0 -487
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +0 -217
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +0 -393
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +0 -147
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +0 -12113
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +0 -1725
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +0 -1406
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +0 -300
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +0 -383
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +0 -603
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +0 -402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +0 -51
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +0 -153
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +0 -117
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +0 -391
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +0 -97
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +0 -1830
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +0 -1648
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +0 -62
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +0 -229
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +0 -131
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +0 -666
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +0 -590
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +0 -2295
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +0 -4157
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +0 -192
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +0 -133
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +0 -169
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +0 -170
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +0 -567
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +0 -1627
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +0 -479
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +0 -432
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +0 -69
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +0 -409
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +0 -582
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +0 -118
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +0 -1108
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +0 -104
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +0 -230
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +0 -189
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +0 -1
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +0 -210
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +0 -156
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +0 -293
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +0 -180
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +0 -449
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +0 -200
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +0 -36
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +0 -122
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/resolv-replace.gemspec +0 -22
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/rinda.gemspec +0 -35
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/.bundled.syslog-0.2.0.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +0 -5
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +0 -41
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +0 -20
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +0 -14
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +0 -8
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +0 -209
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +0 -10
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog-0.2.0.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/typeprof-0.30.1/typeprof.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +0 -50
- package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +0 -33
- package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +0 -43
- package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +0 -49
- package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +0 -26
|
@@ -1,818 +0,0 @@
|
|
|
1
|
-
# <!-- rdoc-file=numeric.c -->
|
|
2
|
-
# Numeric is the class from which all higher-level numeric classes should
|
|
3
|
-
# inherit.
|
|
4
|
-
#
|
|
5
|
-
# Numeric allows instantiation of heap-allocated objects. Other core numeric
|
|
6
|
-
# classes such as Integer are implemented as immediates, which means that each
|
|
7
|
-
# Integer is a single immutable object which is always passed by value.
|
|
8
|
-
#
|
|
9
|
-
# a = 1
|
|
10
|
-
# 1.object_id == a.object_id #=> true
|
|
11
|
-
#
|
|
12
|
-
# There can only ever be one instance of the integer `1`, for example. Ruby
|
|
13
|
-
# ensures this by preventing instantiation. If duplication is attempted, the
|
|
14
|
-
# same instance is returned.
|
|
15
|
-
#
|
|
16
|
-
# Integer.new(1) #=> NoMethodError: undefined method `new' for Integer:Class
|
|
17
|
-
# 1.dup #=> 1
|
|
18
|
-
# 1.object_id == 1.dup.object_id #=> true
|
|
19
|
-
#
|
|
20
|
-
# For this reason, Numeric should be used when defining other numeric classes.
|
|
21
|
-
#
|
|
22
|
-
# Classes which inherit from Numeric must implement `coerce`, which returns a
|
|
23
|
-
# two-member Array containing an object that has been coerced into an instance
|
|
24
|
-
# of the new class and `self` (see #coerce).
|
|
25
|
-
#
|
|
26
|
-
# Inheriting classes should also implement arithmetic operator methods (`+`,
|
|
27
|
-
# `-`, `*` and `/`) and the `<=>` operator (see Comparable). These methods may
|
|
28
|
-
# rely on `coerce` to ensure interoperability with instances of other numeric
|
|
29
|
-
# classes.
|
|
30
|
-
#
|
|
31
|
-
# class Tally < Numeric
|
|
32
|
-
# def initialize(string)
|
|
33
|
-
# @string = string
|
|
34
|
-
# end
|
|
35
|
-
#
|
|
36
|
-
# def to_s
|
|
37
|
-
# @string
|
|
38
|
-
# end
|
|
39
|
-
#
|
|
40
|
-
# def to_i
|
|
41
|
-
# @string.size
|
|
42
|
-
# end
|
|
43
|
-
#
|
|
44
|
-
# def coerce(other)
|
|
45
|
-
# [self.class.new('|' * other.to_i), self]
|
|
46
|
-
# end
|
|
47
|
-
#
|
|
48
|
-
# def <=>(other)
|
|
49
|
-
# to_i <=> other.to_i
|
|
50
|
-
# end
|
|
51
|
-
#
|
|
52
|
-
# def +(other)
|
|
53
|
-
# self.class.new('|' * (to_i + other.to_i))
|
|
54
|
-
# end
|
|
55
|
-
#
|
|
56
|
-
# def -(other)
|
|
57
|
-
# self.class.new('|' * (to_i - other.to_i))
|
|
58
|
-
# end
|
|
59
|
-
#
|
|
60
|
-
# def *(other)
|
|
61
|
-
# self.class.new('|' * (to_i * other.to_i))
|
|
62
|
-
# end
|
|
63
|
-
#
|
|
64
|
-
# def /(other)
|
|
65
|
-
# self.class.new('|' * (to_i / other.to_i))
|
|
66
|
-
# end
|
|
67
|
-
# end
|
|
68
|
-
#
|
|
69
|
-
# tally = Tally.new('||')
|
|
70
|
-
# puts tally * 2 #=> "||||"
|
|
71
|
-
# puts tally > 1 #=> true
|
|
72
|
-
#
|
|
73
|
-
# ## What's Here
|
|
74
|
-
#
|
|
75
|
-
# First, what's elsewhere. Class Numeric:
|
|
76
|
-
#
|
|
77
|
-
# * Inherits from [class Object](rdoc-ref:Object@What-27s+Here).
|
|
78
|
-
# * Includes [module Comparable](rdoc-ref:Comparable@What-27s+Here).
|
|
79
|
-
#
|
|
80
|
-
# Here, class Numeric provides methods for:
|
|
81
|
-
#
|
|
82
|
-
# * [Querying](rdoc-ref:Numeric@Querying)
|
|
83
|
-
# * [Comparing](rdoc-ref:Numeric@Comparing)
|
|
84
|
-
# * [Converting](rdoc-ref:Numeric@Converting)
|
|
85
|
-
# * [Other](rdoc-ref:Numeric@Other)
|
|
86
|
-
#
|
|
87
|
-
# ### Querying
|
|
88
|
-
#
|
|
89
|
-
# * #finite?: Returns true unless `self` is infinite or not a number.
|
|
90
|
-
# * #infinite?: Returns -1, `nil` or +1, depending on whether `self` is
|
|
91
|
-
# `-Infinity<tt>, finite, or <tt>+Infinity`.
|
|
92
|
-
# * #integer?: Returns whether `self` is an integer.
|
|
93
|
-
# * #negative?: Returns whether `self` is negative.
|
|
94
|
-
# * #nonzero?: Returns whether `self` is not zero.
|
|
95
|
-
# * #positive?: Returns whether `self` is positive.
|
|
96
|
-
# * #real?: Returns whether `self` is a real value.
|
|
97
|
-
# * #zero?: Returns whether `self` is zero.
|
|
98
|
-
#
|
|
99
|
-
# ### Comparing
|
|
100
|
-
#
|
|
101
|
-
# * #<=>: Returns:
|
|
102
|
-
#
|
|
103
|
-
# * -1 if `self` is less than the given value.
|
|
104
|
-
# * 0 if `self` is equal to the given value.
|
|
105
|
-
# * 1 if `self` is greater than the given value.
|
|
106
|
-
# * `nil` if `self` and the given value are not comparable.
|
|
107
|
-
#
|
|
108
|
-
# * #eql?: Returns whether `self` and the given value have the same value and
|
|
109
|
-
# type.
|
|
110
|
-
#
|
|
111
|
-
# ### Converting
|
|
112
|
-
#
|
|
113
|
-
# * #% (aliased as #modulo): Returns the remainder of `self` divided by the
|
|
114
|
-
# given value.
|
|
115
|
-
# * #-@: Returns the value of `self`, negated.
|
|
116
|
-
# * #abs (aliased as #magnitude): Returns the absolute value of `self`.
|
|
117
|
-
# * #abs2: Returns the square of `self`.
|
|
118
|
-
# * #angle (aliased as #arg and #phase): Returns 0 if `self` is positive,
|
|
119
|
-
# Math::PI otherwise.
|
|
120
|
-
# * #ceil: Returns the smallest number greater than or equal to `self`, to a
|
|
121
|
-
# given precision.
|
|
122
|
-
# * #coerce: Returns array `[coerced_self, coerced_other]` for the given other
|
|
123
|
-
# value.
|
|
124
|
-
# * #conj (aliased as #conjugate): Returns the complex conjugate of `self`.
|
|
125
|
-
# * #denominator: Returns the denominator (always positive) of the Rational
|
|
126
|
-
# representation of `self`.
|
|
127
|
-
# * #div: Returns the value of `self` divided by the given value and converted
|
|
128
|
-
# to an integer.
|
|
129
|
-
# * #divmod: Returns array `[quotient, modulus]` resulting from dividing
|
|
130
|
-
# `self` the given divisor.
|
|
131
|
-
# * #fdiv: Returns the Float result of dividing `self` by the given divisor.
|
|
132
|
-
# * #floor: Returns the largest number less than or equal to `self`, to a
|
|
133
|
-
# given precision.
|
|
134
|
-
# * #i: Returns the Complex object `Complex(0, self)`. the given value.
|
|
135
|
-
# * #imaginary (aliased as #imag): Returns the imaginary part of the `self`.
|
|
136
|
-
# * #numerator: Returns the numerator of the Rational representation of
|
|
137
|
-
# `self`; has the same sign as `self`.
|
|
138
|
-
# * #polar: Returns the array `[self.abs, self.arg]`.
|
|
139
|
-
# * #quo: Returns the value of `self` divided by the given value.
|
|
140
|
-
# * #real: Returns the real part of `self`.
|
|
141
|
-
# * #rect (aliased as #rectangular): Returns the array `[self, 0]`.
|
|
142
|
-
# * #remainder: Returns `self-arg*(self/arg).truncate` for the given `arg`.
|
|
143
|
-
# * #round: Returns the value of `self` rounded to the nearest value for the
|
|
144
|
-
# given a precision.
|
|
145
|
-
# * #to_c: Returns the Complex representation of `self`.
|
|
146
|
-
# * #to_int: Returns the Integer representation of `self`, truncating if
|
|
147
|
-
# necessary.
|
|
148
|
-
# * #truncate: Returns `self` truncated (toward zero) to a given precision.
|
|
149
|
-
#
|
|
150
|
-
# ### Other
|
|
151
|
-
#
|
|
152
|
-
# * #clone: Returns `self`; does not allow freezing.
|
|
153
|
-
# * #dup (aliased as #+@): Returns `self`.
|
|
154
|
-
# * #step: Invokes the given block with the sequence of specified numbers.
|
|
155
|
-
#
|
|
156
|
-
class Numeric
|
|
157
|
-
include Comparable
|
|
158
|
-
|
|
159
|
-
# <!--
|
|
160
|
-
# rdoc-file=numeric.c
|
|
161
|
-
# - self % other -> real_numeric
|
|
162
|
-
# -->
|
|
163
|
-
# Returns `self` modulo `other` as a real number.
|
|
164
|
-
#
|
|
165
|
-
# Of the Core and Standard Library classes, only Rational uses this
|
|
166
|
-
# implementation.
|
|
167
|
-
#
|
|
168
|
-
# For Rational `r` and real number `n`, these expressions are equivalent:
|
|
169
|
-
#
|
|
170
|
-
# r % n
|
|
171
|
-
# r-n*(r/n).floor
|
|
172
|
-
# r.divmod(n)[1]
|
|
173
|
-
#
|
|
174
|
-
# See Numeric#divmod.
|
|
175
|
-
#
|
|
176
|
-
# Examples:
|
|
177
|
-
#
|
|
178
|
-
# r = Rational(1, 2) # => (1/2)
|
|
179
|
-
# r2 = Rational(2, 3) # => (2/3)
|
|
180
|
-
# r % r2 # => (1/2)
|
|
181
|
-
# r % 2 # => (1/2)
|
|
182
|
-
# r % 2.0 # => 0.5
|
|
183
|
-
#
|
|
184
|
-
# r = Rational(301,100) # => (301/100)
|
|
185
|
-
# r2 = Rational(7,5) # => (7/5)
|
|
186
|
-
# r % r2 # => (21/100)
|
|
187
|
-
# r % -r2 # => (-119/100)
|
|
188
|
-
# (-r) % r2 # => (119/100)
|
|
189
|
-
# (-r) %-r2 # => (-21/100)
|
|
190
|
-
#
|
|
191
|
-
def %: (Numeric) -> Numeric
|
|
192
|
-
|
|
193
|
-
# Performs addition: the class of the resulting object depends on the class of
|
|
194
|
-
# `numeric`.
|
|
195
|
-
#
|
|
196
|
-
def +: (Numeric) -> Numeric
|
|
197
|
-
|
|
198
|
-
# <!--
|
|
199
|
-
# rdoc-file=numeric.rb
|
|
200
|
-
# - +self -> self
|
|
201
|
-
# -->
|
|
202
|
-
# Returns `self`.
|
|
203
|
-
#
|
|
204
|
-
def +@: () -> Numeric
|
|
205
|
-
|
|
206
|
-
# Performs subtraction: the class of the resulting object depends on the class
|
|
207
|
-
# of `numeric`.
|
|
208
|
-
#
|
|
209
|
-
def -: (Numeric) -> Numeric
|
|
210
|
-
|
|
211
|
-
# <!--
|
|
212
|
-
# rdoc-file=numeric.c
|
|
213
|
-
# - -self -> numeric
|
|
214
|
-
# -->
|
|
215
|
-
# Unary Minus---Returns the receiver, negated.
|
|
216
|
-
#
|
|
217
|
-
def -@: () -> Numeric
|
|
218
|
-
|
|
219
|
-
# <!--
|
|
220
|
-
# rdoc-file=numeric.c
|
|
221
|
-
# - self <=> other -> zero or nil
|
|
222
|
-
# -->
|
|
223
|
-
# Returns zero if `self` is the same as `other`, `nil` otherwise.
|
|
224
|
-
#
|
|
225
|
-
# No subclass in the Ruby Core or Standard Library uses this implementation.
|
|
226
|
-
#
|
|
227
|
-
def <=>: (Numeric other) -> Integer
|
|
228
|
-
|
|
229
|
-
# <!--
|
|
230
|
-
# rdoc-file=numeric.c
|
|
231
|
-
# - abs -> numeric
|
|
232
|
-
# -->
|
|
233
|
-
# Returns the absolute value of `self`.
|
|
234
|
-
#
|
|
235
|
-
# 12.abs #=> 12
|
|
236
|
-
# (-34.56).abs #=> 34.56
|
|
237
|
-
# -34.56.abs #=> 34.56
|
|
238
|
-
#
|
|
239
|
-
def abs: () -> Numeric
|
|
240
|
-
|
|
241
|
-
# <!--
|
|
242
|
-
# rdoc-file=complex.c
|
|
243
|
-
# - abs2 -> real
|
|
244
|
-
# -->
|
|
245
|
-
# Returns the square of `self`.
|
|
246
|
-
#
|
|
247
|
-
def abs2: () -> Numeric
|
|
248
|
-
|
|
249
|
-
# <!-- rdoc-file=complex.c -->
|
|
250
|
-
# Returns zero if `self` is positive, Math::PI otherwise.
|
|
251
|
-
#
|
|
252
|
-
def angle: () -> Numeric
|
|
253
|
-
|
|
254
|
-
# <!--
|
|
255
|
-
# rdoc-file=complex.c
|
|
256
|
-
# - arg -> 0 or Math::PI
|
|
257
|
-
# -->
|
|
258
|
-
# Returns zero if `self` is positive, Math::PI otherwise.
|
|
259
|
-
#
|
|
260
|
-
alias arg angle
|
|
261
|
-
|
|
262
|
-
# <!--
|
|
263
|
-
# rdoc-file=numeric.c
|
|
264
|
-
# - ceil(ndigits = 0) -> float or integer
|
|
265
|
-
# -->
|
|
266
|
-
# Returns the smallest float or integer that is greater than or equal to `self`,
|
|
267
|
-
# as specified by the given `ndigits`, which must be an [integer-convertible
|
|
268
|
-
# object](rdoc-ref:implicit_conversion.rdoc@Integer-Convertible+Objects).
|
|
269
|
-
#
|
|
270
|
-
# Equivalent to `self.to_f.ceil(ndigits)`.
|
|
271
|
-
#
|
|
272
|
-
# Related: #floor, Float#ceil.
|
|
273
|
-
#
|
|
274
|
-
def ceil: () -> Integer
|
|
275
|
-
| (Integer digits) -> (Integer | Numeric)
|
|
276
|
-
|
|
277
|
-
# <!--
|
|
278
|
-
# rdoc-file=numeric.c
|
|
279
|
-
# - coerce(other) -> array
|
|
280
|
-
# -->
|
|
281
|
-
# Returns a 2-element array containing two numeric elements, formed from the two
|
|
282
|
-
# operands `self` and `other`, of a common compatible type.
|
|
283
|
-
#
|
|
284
|
-
# Of the Core and Standard Library classes, Integer, Rational, and Complex use
|
|
285
|
-
# this implementation.
|
|
286
|
-
#
|
|
287
|
-
# Examples:
|
|
288
|
-
#
|
|
289
|
-
# i = 2 # => 2
|
|
290
|
-
# i.coerce(3) # => [3, 2]
|
|
291
|
-
# i.coerce(3.0) # => [3.0, 2.0]
|
|
292
|
-
# i.coerce(Rational(1, 2)) # => [0.5, 2.0]
|
|
293
|
-
# i.coerce(Complex(3, 4)) # Raises RangeError.
|
|
294
|
-
#
|
|
295
|
-
# r = Rational(5, 2) # => (5/2)
|
|
296
|
-
# r.coerce(2) # => [(2/1), (5/2)]
|
|
297
|
-
# r.coerce(2.0) # => [2.0, 2.5]
|
|
298
|
-
# r.coerce(Rational(2, 3)) # => [(2/3), (5/2)]
|
|
299
|
-
# r.coerce(Complex(3, 4)) # => [(3+4i), ((5/2)+0i)]
|
|
300
|
-
#
|
|
301
|
-
# c = Complex(2, 3) # => (2+3i)
|
|
302
|
-
# c.coerce(2) # => [(2+0i), (2+3i)]
|
|
303
|
-
# c.coerce(2.0) # => [(2.0+0i), (2+3i)]
|
|
304
|
-
# c.coerce(Rational(1, 2)) # => [((1/2)+0i), (2+3i)]
|
|
305
|
-
# c.coerce(Complex(3, 4)) # => [(3+4i), (2+3i)]
|
|
306
|
-
#
|
|
307
|
-
# Raises an exception if any type conversion fails.
|
|
308
|
-
#
|
|
309
|
-
def coerce: (Numeric) -> [ Numeric, Numeric ]
|
|
310
|
-
|
|
311
|
-
# <!--
|
|
312
|
-
# rdoc-file=numeric.rb
|
|
313
|
-
# - conj()
|
|
314
|
-
# -->
|
|
315
|
-
#
|
|
316
|
-
def conj: () -> Numeric
|
|
317
|
-
|
|
318
|
-
# <!--
|
|
319
|
-
# rdoc-file=numeric.rb
|
|
320
|
-
# - conj -> self
|
|
321
|
-
# -->
|
|
322
|
-
# Returns `self`.
|
|
323
|
-
#
|
|
324
|
-
def conjugate: () -> Numeric
|
|
325
|
-
|
|
326
|
-
# <!--
|
|
327
|
-
# rdoc-file=rational.c
|
|
328
|
-
# - num.denominator -> integer
|
|
329
|
-
# -->
|
|
330
|
-
# Returns the denominator (always positive).
|
|
331
|
-
#
|
|
332
|
-
def denominator: () -> Integer
|
|
333
|
-
|
|
334
|
-
# <!--
|
|
335
|
-
# rdoc-file=numeric.c
|
|
336
|
-
# - div(other) -> integer
|
|
337
|
-
# -->
|
|
338
|
-
# Returns the quotient `self/other` as an integer (via `floor`), using method
|
|
339
|
-
# `/` in the derived class of `self`. (Numeric itself does not define method
|
|
340
|
-
# `/`.)
|
|
341
|
-
#
|
|
342
|
-
# Of the Core and Standard Library classes, Only Float and Rational use this
|
|
343
|
-
# implementation.
|
|
344
|
-
#
|
|
345
|
-
def div: (Numeric) -> Integer
|
|
346
|
-
|
|
347
|
-
# <!--
|
|
348
|
-
# rdoc-file=numeric.c
|
|
349
|
-
# - divmod(other) -> array
|
|
350
|
-
# -->
|
|
351
|
-
# Returns a 2-element array `[q, r]`, where
|
|
352
|
-
#
|
|
353
|
-
# q = (self/other).floor # Quotient
|
|
354
|
-
# r = self % other # Remainder
|
|
355
|
-
#
|
|
356
|
-
# Of the Core and Standard Library classes, only Rational uses this
|
|
357
|
-
# implementation.
|
|
358
|
-
#
|
|
359
|
-
# Examples:
|
|
360
|
-
#
|
|
361
|
-
# Rational(11, 1).divmod(4) # => [2, (3/1)]
|
|
362
|
-
# Rational(11, 1).divmod(-4) # => [-3, (-1/1)]
|
|
363
|
-
# Rational(-11, 1).divmod(4) # => [-3, (1/1)]
|
|
364
|
-
# Rational(-11, 1).divmod(-4) # => [2, (-3/1)]
|
|
365
|
-
#
|
|
366
|
-
# Rational(12, 1).divmod(4) # => [3, (0/1)]
|
|
367
|
-
# Rational(12, 1).divmod(-4) # => [-3, (0/1)]
|
|
368
|
-
# Rational(-12, 1).divmod(4) # => [-3, (0/1)]
|
|
369
|
-
# Rational(-12, 1).divmod(-4) # => [3, (0/1)]
|
|
370
|
-
#
|
|
371
|
-
# Rational(13, 1).divmod(4.0) # => [3, 1.0]
|
|
372
|
-
# Rational(13, 1).divmod(Rational(4, 11)) # => [35, (3/11)]
|
|
373
|
-
#
|
|
374
|
-
def divmod: (Numeric) -> [ Numeric, Numeric ]
|
|
375
|
-
|
|
376
|
-
# <!--
|
|
377
|
-
# rdoc-file=numeric.c
|
|
378
|
-
# - eql?(other) -> true or false
|
|
379
|
-
# -->
|
|
380
|
-
# Returns `true` if `self` and `other` are the same type and have equal values.
|
|
381
|
-
#
|
|
382
|
-
# Of the Core and Standard Library classes, only Integer, Rational, and Complex
|
|
383
|
-
# use this implementation.
|
|
384
|
-
#
|
|
385
|
-
# Examples:
|
|
386
|
-
#
|
|
387
|
-
# 1.eql?(1) # => true
|
|
388
|
-
# 1.eql?(1.0) # => false
|
|
389
|
-
# 1.eql?(Rational(1, 1)) # => false
|
|
390
|
-
# 1.eql?(Complex(1, 0)) # => false
|
|
391
|
-
#
|
|
392
|
-
# Method `eql?` is different from `==` in that `eql?` requires matching types,
|
|
393
|
-
# while `==` does not.
|
|
394
|
-
#
|
|
395
|
-
def eql?: (untyped) -> bool
|
|
396
|
-
|
|
397
|
-
# <!--
|
|
398
|
-
# rdoc-file=numeric.c
|
|
399
|
-
# - fdiv(other) -> float
|
|
400
|
-
# -->
|
|
401
|
-
# Returns the quotient `self/other` as a float, using method `/` in the derived
|
|
402
|
-
# class of `self`. (Numeric itself does not define method `/`.)
|
|
403
|
-
#
|
|
404
|
-
# Of the Core and Standard Library classes, only BigDecimal uses this
|
|
405
|
-
# implementation.
|
|
406
|
-
#
|
|
407
|
-
def fdiv: (Numeric) -> Numeric
|
|
408
|
-
|
|
409
|
-
# <!--
|
|
410
|
-
# rdoc-file=numeric.rb
|
|
411
|
-
# - finite? -> true or false
|
|
412
|
-
# -->
|
|
413
|
-
# Returns `true` if `self` is a finite number, `false` otherwise.
|
|
414
|
-
#
|
|
415
|
-
def finite?: () -> bool
|
|
416
|
-
|
|
417
|
-
# <!--
|
|
418
|
-
# rdoc-file=numeric.c
|
|
419
|
-
# - floor(ndigits = 0) -> float or integer
|
|
420
|
-
# -->
|
|
421
|
-
# Returns the largest float or integer that is less than or equal to `self`, as
|
|
422
|
-
# specified by the given `ndigits`, which must be an [integer-convertible
|
|
423
|
-
# object](rdoc-ref:implicit_conversion.rdoc@Integer-Convertible+Objects).
|
|
424
|
-
#
|
|
425
|
-
# Equivalent to `self.to_f.floor(ndigits)`.
|
|
426
|
-
#
|
|
427
|
-
# Related: #ceil, Float#floor.
|
|
428
|
-
#
|
|
429
|
-
def floor: () -> Integer
|
|
430
|
-
| (Integer digits) -> Numeric
|
|
431
|
-
|
|
432
|
-
# <!--
|
|
433
|
-
# rdoc-file=numeric.c
|
|
434
|
-
# - i -> complex
|
|
435
|
-
# -->
|
|
436
|
-
# Returns `Complex(0, self)`:
|
|
437
|
-
#
|
|
438
|
-
# 2.i # => (0+2i)
|
|
439
|
-
# -2.i # => (0-2i)
|
|
440
|
-
# 2.0.i # => (0+2.0i)
|
|
441
|
-
# Rational(1, 2).i # => (0+(1/2)*i)
|
|
442
|
-
# Complex(3, 4).i # Raises NoMethodError.
|
|
443
|
-
#
|
|
444
|
-
def i: () -> Complex
|
|
445
|
-
|
|
446
|
-
# <!--
|
|
447
|
-
# rdoc-file=numeric.rb
|
|
448
|
-
# - imag()
|
|
449
|
-
# -->
|
|
450
|
-
#
|
|
451
|
-
def imag: () -> Numeric
|
|
452
|
-
|
|
453
|
-
# <!--
|
|
454
|
-
# rdoc-file=numeric.rb
|
|
455
|
-
# - imag -> 0
|
|
456
|
-
# -->
|
|
457
|
-
# Returns zero.
|
|
458
|
-
#
|
|
459
|
-
def imaginary: () -> Numeric
|
|
460
|
-
|
|
461
|
-
# <!--
|
|
462
|
-
# rdoc-file=numeric.rb
|
|
463
|
-
# - infinite? -> -1, 1, or nil
|
|
464
|
-
# -->
|
|
465
|
-
# Returns `nil`, -1, or 1 depending on whether `self` is finite, `-Infinity`, or
|
|
466
|
-
# `+Infinity`.
|
|
467
|
-
#
|
|
468
|
-
def infinite?: () -> Integer?
|
|
469
|
-
|
|
470
|
-
# <!--
|
|
471
|
-
# rdoc-file=numeric.rb
|
|
472
|
-
# - integer? -> true or false
|
|
473
|
-
# -->
|
|
474
|
-
# Returns `true` if `self` is an Integer.
|
|
475
|
-
#
|
|
476
|
-
# 1.0.integer? # => false
|
|
477
|
-
# 1.integer? # => true
|
|
478
|
-
#
|
|
479
|
-
def integer?: () -> bool
|
|
480
|
-
|
|
481
|
-
# <!-- rdoc-file=numeric.c -->
|
|
482
|
-
# Returns the absolute value of `self`.
|
|
483
|
-
#
|
|
484
|
-
# 12.abs #=> 12
|
|
485
|
-
# (-34.56).abs #=> 34.56
|
|
486
|
-
# -34.56.abs #=> 34.56
|
|
487
|
-
#
|
|
488
|
-
alias magnitude abs
|
|
489
|
-
|
|
490
|
-
# <!-- rdoc-file=numeric.c -->
|
|
491
|
-
# Returns `self` modulo `other` as a real number.
|
|
492
|
-
#
|
|
493
|
-
# Of the Core and Standard Library classes, only Rational uses this
|
|
494
|
-
# implementation.
|
|
495
|
-
#
|
|
496
|
-
# For Rational `r` and real number `n`, these expressions are equivalent:
|
|
497
|
-
#
|
|
498
|
-
# r % n
|
|
499
|
-
# r-n*(r/n).floor
|
|
500
|
-
# r.divmod(n)[1]
|
|
501
|
-
#
|
|
502
|
-
# See Numeric#divmod.
|
|
503
|
-
#
|
|
504
|
-
# Examples:
|
|
505
|
-
#
|
|
506
|
-
# r = Rational(1, 2) # => (1/2)
|
|
507
|
-
# r2 = Rational(2, 3) # => (2/3)
|
|
508
|
-
# r % r2 # => (1/2)
|
|
509
|
-
# r % 2 # => (1/2)
|
|
510
|
-
# r % 2.0 # => 0.5
|
|
511
|
-
#
|
|
512
|
-
# r = Rational(301,100) # => (301/100)
|
|
513
|
-
# r2 = Rational(7,5) # => (7/5)
|
|
514
|
-
# r % r2 # => (21/100)
|
|
515
|
-
# r % -r2 # => (-119/100)
|
|
516
|
-
# (-r) % r2 # => (119/100)
|
|
517
|
-
# (-r) %-r2 # => (-21/100)
|
|
518
|
-
#
|
|
519
|
-
def modulo: (Numeric) -> Numeric
|
|
520
|
-
|
|
521
|
-
# <!--
|
|
522
|
-
# rdoc-file=numeric.c
|
|
523
|
-
# - negative? -> true or false
|
|
524
|
-
# -->
|
|
525
|
-
# Returns `true` if `self` is less than 0, `false` otherwise.
|
|
526
|
-
#
|
|
527
|
-
def negative?: () -> bool
|
|
528
|
-
|
|
529
|
-
# <!--
|
|
530
|
-
# rdoc-file=numeric.c
|
|
531
|
-
# - nonzero? -> self or nil
|
|
532
|
-
# -->
|
|
533
|
-
# Returns +self+ if +self+ is not a zero value, +nil+ otherwise;
|
|
534
|
-
# uses method <tt>zero?</tt> for the evaluation.
|
|
535
|
-
#
|
|
536
|
-
# The returned +self+ allows the method to be chained:
|
|
537
|
-
#
|
|
538
|
-
# a = %w[z Bb bB bb BB a aA Aa AA A]
|
|
539
|
-
# a.sort {|a, b| (a.downcase <=> b.downcase).nonzero? || a <=> b }
|
|
540
|
-
# # => ["A", "a", "AA", "Aa", "aA", "BB", "Bb", "bB", "bb", "z"]
|
|
541
|
-
#
|
|
542
|
-
# Of the Core and Standard Library classes,
|
|
543
|
-
# Integer, Float, Rational, and Complex use this implementation.
|
|
544
|
-
#
|
|
545
|
-
# Related: #zero?
|
|
546
|
-
#
|
|
547
|
-
def nonzero?: () -> self?
|
|
548
|
-
|
|
549
|
-
# <!--
|
|
550
|
-
# rdoc-file=rational.c
|
|
551
|
-
# - num.numerator -> integer
|
|
552
|
-
# -->
|
|
553
|
-
# Returns the numerator.
|
|
554
|
-
#
|
|
555
|
-
def numerator: () -> Numeric
|
|
556
|
-
|
|
557
|
-
# <!-- rdoc-file=complex.c -->
|
|
558
|
-
# Returns zero if `self` is positive, Math::PI otherwise.
|
|
559
|
-
#
|
|
560
|
-
alias phase angle
|
|
561
|
-
|
|
562
|
-
# <!--
|
|
563
|
-
# rdoc-file=complex.c
|
|
564
|
-
# - polar -> array
|
|
565
|
-
# -->
|
|
566
|
-
# Returns array `[self.abs, self.arg]`.
|
|
567
|
-
#
|
|
568
|
-
def polar: () -> [ Numeric, Numeric ]
|
|
569
|
-
|
|
570
|
-
# <!--
|
|
571
|
-
# rdoc-file=numeric.c
|
|
572
|
-
# - positive? -> true or false
|
|
573
|
-
# -->
|
|
574
|
-
# Returns `true` if `self` is greater than 0, `false` otherwise.
|
|
575
|
-
#
|
|
576
|
-
def positive?: () -> bool
|
|
577
|
-
|
|
578
|
-
# <!--
|
|
579
|
-
# rdoc-file=rational.c
|
|
580
|
-
# - num.quo(int_or_rat) -> rat
|
|
581
|
-
# - num.quo(flo) -> flo
|
|
582
|
-
# -->
|
|
583
|
-
# Returns the most exact division (rational for integers, float for floats).
|
|
584
|
-
#
|
|
585
|
-
def quo: (Numeric) -> Numeric
|
|
586
|
-
|
|
587
|
-
# <!--
|
|
588
|
-
# rdoc-file=numeric.rb
|
|
589
|
-
# - real -> self
|
|
590
|
-
# -->
|
|
591
|
-
# Returns `self`.
|
|
592
|
-
#
|
|
593
|
-
def real: () -> Numeric
|
|
594
|
-
|
|
595
|
-
# <!--
|
|
596
|
-
# rdoc-file=numeric.rb
|
|
597
|
-
# - real? -> true or false
|
|
598
|
-
# -->
|
|
599
|
-
# Returns `true` if `self` is a real number (i.e. not Complex).
|
|
600
|
-
#
|
|
601
|
-
def real?: () -> bool
|
|
602
|
-
|
|
603
|
-
# <!-- rdoc-file=complex.c -->
|
|
604
|
-
# Returns array `[self, 0]`.
|
|
605
|
-
#
|
|
606
|
-
def rect: () -> [ Numeric, Numeric ]
|
|
607
|
-
|
|
608
|
-
# <!--
|
|
609
|
-
# rdoc-file=complex.c
|
|
610
|
-
# - rect -> array
|
|
611
|
-
# -->
|
|
612
|
-
# Returns array `[self, 0]`.
|
|
613
|
-
#
|
|
614
|
-
alias rectangular rect
|
|
615
|
-
|
|
616
|
-
# <!--
|
|
617
|
-
# rdoc-file=numeric.c
|
|
618
|
-
# - remainder(other) -> real_number
|
|
619
|
-
# -->
|
|
620
|
-
# Returns the remainder after dividing `self` by `other`.
|
|
621
|
-
#
|
|
622
|
-
# Of the Core and Standard Library classes, only Float and Rational use this
|
|
623
|
-
# implementation.
|
|
624
|
-
#
|
|
625
|
-
# Examples:
|
|
626
|
-
#
|
|
627
|
-
# 11.0.remainder(4) # => 3.0
|
|
628
|
-
# 11.0.remainder(-4) # => 3.0
|
|
629
|
-
# -11.0.remainder(4) # => -3.0
|
|
630
|
-
# -11.0.remainder(-4) # => -3.0
|
|
631
|
-
#
|
|
632
|
-
# 12.0.remainder(4) # => 0.0
|
|
633
|
-
# 12.0.remainder(-4) # => 0.0
|
|
634
|
-
# -12.0.remainder(4) # => -0.0
|
|
635
|
-
# -12.0.remainder(-4) # => -0.0
|
|
636
|
-
#
|
|
637
|
-
# 13.0.remainder(4.0) # => 1.0
|
|
638
|
-
# 13.0.remainder(Rational(4, 1)) # => 1.0
|
|
639
|
-
#
|
|
640
|
-
# Rational(13, 1).remainder(4) # => (1/1)
|
|
641
|
-
# Rational(13, 1).remainder(-4) # => (1/1)
|
|
642
|
-
# Rational(-13, 1).remainder(4) # => (-1/1)
|
|
643
|
-
# Rational(-13, 1).remainder(-4) # => (-1/1)
|
|
644
|
-
#
|
|
645
|
-
def remainder: (Numeric) -> Numeric
|
|
646
|
-
|
|
647
|
-
# <!--
|
|
648
|
-
# rdoc-file=numeric.c
|
|
649
|
-
# - round(digits = 0) -> integer or float
|
|
650
|
-
# -->
|
|
651
|
-
# Returns `self` rounded to the nearest value with a precision of `digits`
|
|
652
|
-
# decimal digits.
|
|
653
|
-
#
|
|
654
|
-
# Numeric implements this by converting `self` to a Float and invoking
|
|
655
|
-
# Float#round.
|
|
656
|
-
#
|
|
657
|
-
def round: () -> Integer
|
|
658
|
-
| (Integer digits) -> Numeric
|
|
659
|
-
|
|
660
|
-
# <!--
|
|
661
|
-
# rdoc-file=numeric.c
|
|
662
|
-
# - step(to = nil, by = 1) {|n| ... } -> self
|
|
663
|
-
# - step(to = nil, by = 1) -> enumerator
|
|
664
|
-
# - step(to = nil, by: 1) {|n| ... } -> self
|
|
665
|
-
# - step(to = nil, by: 1) -> enumerator
|
|
666
|
-
# - step(by: 1, to: ) {|n| ... } -> self
|
|
667
|
-
# - step(by: 1, to: ) -> enumerator
|
|
668
|
-
# - step(by: , to: nil) {|n| ... } -> self
|
|
669
|
-
# - step(by: , to: nil) -> enumerator
|
|
670
|
-
# -->
|
|
671
|
-
# Generates a sequence of numbers; with a block given, traverses the sequence.
|
|
672
|
-
#
|
|
673
|
-
# Of the Core and Standard Library classes, Integer, Float, and Rational use
|
|
674
|
-
# this implementation.
|
|
675
|
-
#
|
|
676
|
-
# A quick example:
|
|
677
|
-
#
|
|
678
|
-
# squares = []
|
|
679
|
-
# 1.step(by: 2, to: 10) {|i| squares.push(i*i) }
|
|
680
|
-
# squares # => [1, 9, 25, 49, 81]
|
|
681
|
-
#
|
|
682
|
-
# The generated sequence:
|
|
683
|
-
#
|
|
684
|
-
# * Begins with `self`.
|
|
685
|
-
# * Continues at intervals of `by` (which may not be zero).
|
|
686
|
-
# * Ends with the last number that is within or equal to `to`; that is, less
|
|
687
|
-
# than or equal to `to` if `by` is positive, greater than or equal to `to`
|
|
688
|
-
# if `by` is negative. If `to` is `nil`, the sequence is of infinite length.
|
|
689
|
-
#
|
|
690
|
-
# If a block is given, calls the block with each number in the sequence; returns
|
|
691
|
-
# `self`. If no block is given, returns an Enumerator::ArithmeticSequence.
|
|
692
|
-
#
|
|
693
|
-
# **Keyword Arguments**
|
|
694
|
-
#
|
|
695
|
-
# With keyword arguments `by` and `to`, their values (or defaults) determine the
|
|
696
|
-
# step and limit:
|
|
697
|
-
#
|
|
698
|
-
# # Both keywords given.
|
|
699
|
-
# squares = []
|
|
700
|
-
# 4.step(by: 2, to: 10) {|i| squares.push(i*i) } # => 4
|
|
701
|
-
# squares # => [16, 36, 64, 100]
|
|
702
|
-
# cubes = []
|
|
703
|
-
# 3.step(by: -1.5, to: -3) {|i| cubes.push(i*i*i) } # => 3
|
|
704
|
-
# cubes # => [27.0, 3.375, 0.0, -3.375, -27.0]
|
|
705
|
-
# squares = []
|
|
706
|
-
# 1.2.step(by: 0.2, to: 2.0) {|f| squares.push(f*f) }
|
|
707
|
-
# squares # => [1.44, 1.9599999999999997, 2.5600000000000005, 3.24, 4.0]
|
|
708
|
-
#
|
|
709
|
-
# squares = []
|
|
710
|
-
# Rational(6/5).step(by: 0.2, to: 2.0) {|r| squares.push(r*r) }
|
|
711
|
-
# squares # => [1.0, 1.44, 1.9599999999999997, 2.5600000000000005, 3.24, 4.0]
|
|
712
|
-
#
|
|
713
|
-
# # Only keyword to given.
|
|
714
|
-
# squares = []
|
|
715
|
-
# 4.step(to: 10) {|i| squares.push(i*i) } # => 4
|
|
716
|
-
# squares # => [16, 25, 36, 49, 64, 81, 100]
|
|
717
|
-
# # Only by given.
|
|
718
|
-
#
|
|
719
|
-
# # Only keyword by given
|
|
720
|
-
# squares = []
|
|
721
|
-
# 4.step(by:2) {|i| squares.push(i*i); break if i > 10 }
|
|
722
|
-
# squares # => [16, 36, 64, 100, 144]
|
|
723
|
-
#
|
|
724
|
-
# # No block given.
|
|
725
|
-
# e = 3.step(by: -1.5, to: -3) # => (3.step(by: -1.5, to: -3))
|
|
726
|
-
# e.class # => Enumerator::ArithmeticSequence
|
|
727
|
-
#
|
|
728
|
-
# **Positional Arguments**
|
|
729
|
-
#
|
|
730
|
-
# With optional positional arguments `to` and `by`, their values (or defaults)
|
|
731
|
-
# determine the step and limit:
|
|
732
|
-
#
|
|
733
|
-
# squares = []
|
|
734
|
-
# 4.step(10, 2) {|i| squares.push(i*i) } # => 4
|
|
735
|
-
# squares # => [16, 36, 64, 100]
|
|
736
|
-
# squares = []
|
|
737
|
-
# 4.step(10) {|i| squares.push(i*i) }
|
|
738
|
-
# squares # => [16, 25, 36, 49, 64, 81, 100]
|
|
739
|
-
# squares = []
|
|
740
|
-
# 4.step {|i| squares.push(i*i); break if i > 10 } # => nil
|
|
741
|
-
# squares # => [16, 25, 36, 49, 64, 81, 100, 121]
|
|
742
|
-
#
|
|
743
|
-
# **Implementation Notes**
|
|
744
|
-
#
|
|
745
|
-
# If all the arguments are integers, the loop operates using an integer counter.
|
|
746
|
-
#
|
|
747
|
-
# If any of the arguments are floating point numbers, all are converted to
|
|
748
|
-
# floats, and the loop is executed *floor(n + n*Float::EPSILON) + 1* times,
|
|
749
|
-
# where *n = (limit - self)/step*.
|
|
750
|
-
#
|
|
751
|
-
def step: (?Numeric limit, ?Numeric step) { (Numeric) -> void } -> self
|
|
752
|
-
| (?Numeric limit, ?Numeric step) -> Enumerator[Numeric, self]
|
|
753
|
-
| (?by: Numeric, ?to: Numeric) { (Numeric) -> void } -> self
|
|
754
|
-
| (?by: Numeric, ?to: Numeric) -> Enumerator[Numeric, self]
|
|
755
|
-
|
|
756
|
-
# <!--
|
|
757
|
-
# rdoc-file=complex.c
|
|
758
|
-
# - to_c -> complex
|
|
759
|
-
# -->
|
|
760
|
-
# Returns `self` as a Complex object.
|
|
761
|
-
#
|
|
762
|
-
def to_c: () -> Complex
|
|
763
|
-
|
|
764
|
-
# <!--
|
|
765
|
-
# rdoc-file=numeric.c
|
|
766
|
-
# - to_int -> integer
|
|
767
|
-
# -->
|
|
768
|
-
# Returns `self` as an integer; converts using method `to_i` in the derived
|
|
769
|
-
# class.
|
|
770
|
-
#
|
|
771
|
-
# Of the Core and Standard Library classes, only Rational and Complex use this
|
|
772
|
-
# implementation.
|
|
773
|
-
#
|
|
774
|
-
# Examples:
|
|
775
|
-
#
|
|
776
|
-
# Rational(1, 2).to_int # => 0
|
|
777
|
-
# Rational(2, 1).to_int # => 2
|
|
778
|
-
# Complex(2, 0).to_int # => 2
|
|
779
|
-
# Complex(2, 1).to_int # Raises RangeError (non-zero imaginary part)
|
|
780
|
-
#
|
|
781
|
-
def to_int: () -> Integer
|
|
782
|
-
|
|
783
|
-
# <!--
|
|
784
|
-
# rdoc-file=numeric.c
|
|
785
|
-
# - truncate(digits = 0) -> integer or float
|
|
786
|
-
# -->
|
|
787
|
-
# Returns `self` truncated (toward zero) to a precision of `digits` decimal
|
|
788
|
-
# digits.
|
|
789
|
-
#
|
|
790
|
-
# Numeric implements this by converting `self` to a Float and invoking
|
|
791
|
-
# Float#truncate.
|
|
792
|
-
#
|
|
793
|
-
def truncate: () -> Integer
|
|
794
|
-
| (Integer ndigits) -> (Integer | Numeric)
|
|
795
|
-
|
|
796
|
-
# <!--
|
|
797
|
-
# rdoc-file=numeric.c
|
|
798
|
-
# - zero? -> true or false
|
|
799
|
-
# -->
|
|
800
|
-
# Returns `true` if `zero` has a zero value, `false` otherwise.
|
|
801
|
-
#
|
|
802
|
-
# Of the Core and Standard Library classes, only Rational and Complex use this
|
|
803
|
-
# implementation.
|
|
804
|
-
#
|
|
805
|
-
def zero?: () -> bool
|
|
806
|
-
|
|
807
|
-
# <!--
|
|
808
|
-
# rdoc-file=numeric.c
|
|
809
|
-
# - clone(freeze: true) -> self
|
|
810
|
-
# -->
|
|
811
|
-
# Returns `self`.
|
|
812
|
-
#
|
|
813
|
-
# Raises an exception if the value for `freeze` is neither `true` nor `nil`.
|
|
814
|
-
#
|
|
815
|
-
# Related: Numeric#dup.
|
|
816
|
-
#
|
|
817
|
-
def clone: (?freeze: true?) -> self
|
|
818
|
-
end
|