From c3f899c243801487ccbc2f572781bf15ff47bee4 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 6 Nov 2026 16:56:45 +1300 Subject: [PATCH 1/6] Update the gems and test against the latest Rails releases A wide bundle update, which takes crass to 1.0.8 for GHSA-pq4g-8rxf-4g29. CI's Rails matrix moves to 7.2.4, 8.0.5.2 and 8.1.4.1, and ruby/setup-ruby to v1.335.0. Rails 8.0.5.2 and 8.1.4.1 have four-part versions, so the docs test that reads the matrix accepts them. LogStruct::SemanticLogger::Logger's signature now uses T::Module, which sorbet-runtime first has in 0.6.12698, so the gemspec requires that version. --- .github/workflows/deploy-docs.yml | 2 +- .github/workflows/rails-main.yml | 2 +- .github/workflows/release.yml | 6 +- .github/workflows/test.yml | 20 +- DEVELOPMENT.md | 2 +- Gemfile | 2 +- Gemfile.lock | 455 ++++++++++++---------- Taskfile.rails.yml | 8 +- docs/lib/__tests__/gemspec-parser.test.ts | 2 +- lib/log_struct/semantic_logger/logger.rb | 2 +- logstruct.gemspec | 2 +- rails_test_app/create_app.rb | 6 +- 12 files changed, 276 insertions(+), 233 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 4eb5bb3d..81954f26 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -49,7 +49,7 @@ jobs: persist-credentials: false - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '.ruby-version' bundler-cache: true diff --git a/.github/workflows/rails-main.yml b/.github/workflows/rails-main.yml index 93857791..3f5a2026 100644 --- a/.github/workflows/rails-main.yml +++ b/.github/workflows/rails-main.yml @@ -23,7 +23,7 @@ jobs: run: rm -f Gemfile.lock .ruby-version - name: Setup Ruby 4.0.1 - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '4.0.1' bundler-cache: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0bd10ef7..84d71126 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -114,7 +114,7 @@ jobs: # No bundler cache in release jobs: a cache is shared with other runs, and gem build needs no bundle - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '.ruby-version' @@ -171,7 +171,7 @@ jobs: name: gem - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: ruby @@ -196,7 +196,7 @@ jobs: # No bundler cache in release jobs: a cache is shared with other runs - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '.ruby-version' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index efa723e9..0d4744c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: persist-credentials: false - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '.ruby-version' # Install all gems (both test and development) @@ -107,7 +107,7 @@ jobs: persist-credentials: false - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '.ruby-version' bundler-cache: true @@ -134,7 +134,7 @@ jobs: persist-credentials: false - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '.ruby-version' bundler-cache: true @@ -183,7 +183,7 @@ jobs: persist-credentials: false - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '.ruby-version' bundler-cache: true @@ -242,7 +242,7 @@ jobs: run: rm -f Gemfile.lock - name: Setup Ruby 4.0.1 - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '4.0.1' bundler-cache: true @@ -297,15 +297,15 @@ jobs: - name: 'Ruby 3.4 / Rails 7.2' ruby: '3.4' - rails: '7.2.3' + rails: '7.2.4' - name: 'Ruby 3.4 / Rails 8.0' ruby: '3.4' - rails: '8.0.4' + rails: '8.0.5.2' - name: 'Ruby 4.0 / Rails 8.1' ruby: '4.0.1' - rails: '8.1.2' + rails: '8.1.4.1' # NOTE: Latest Ruby/Rails is tested in the 'pilot' job above with coverage. @@ -325,7 +325,7 @@ jobs: run: rm -f Gemfile.lock - name: Setup Ruby ${{ matrix.ruby }} - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true @@ -346,7 +346,7 @@ jobs: persist-credentials: false - name: Setup Ruby - uses: ruby/setup-ruby@651ff0d62c5c79bed6d53ec518387aae20e72c1a # v1.329.0 + uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0 with: ruby-version: '.ruby-version' diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index eabf678b..7c77cfeb 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -112,7 +112,7 @@ And you always need to check for any third-party gems that are not part of Rails - Ensure all tests pass before submitting a pull request - Regular tests: `scripts/test.rb` - Rails integration tests: `scripts/rails_tests.sh` -- You can specify Rails version for integration tests: `RAILS_VERSION=7.2.3 scripts/rails_tests.sh` +- You can specify Rails version for integration tests: `RAILS_VERSION=7.2.4 scripts/rails_tests.sh` - Run `task ci` before submitting changes, and `cd docs && pnpm check` for changes to the docs site. ## Working with Sorbet and Tapioca diff --git a/Gemfile b/Gemfile index aca235c9..5ce2befb 100644 --- a/Gemfile +++ b/Gemfile @@ -34,7 +34,7 @@ gem "sorbet-typescript" # Essential testing gems that don't have Ruby version restrictions group :test do - gem "dalli", "~> 3.2.13" + gem "dalli", "~> 3.2.15" gem "bundler-audit", require: false gem "minitest", "~> 5.20" gem "minitest-reporters", "~> 1.6" diff --git a/Gemfile.lock b/Gemfile.lock index a06716b8..16c5907b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,34 +8,34 @@ PATH lograge (>= 0.11) railties (>= 7.1) semantic_logger (~> 4.15) - sorbet-runtime (>= 0.5) + sorbet-runtime (>= 0.6.12698) GEM remote: https://rubygems.org/ specs: - actioncable (8.0.5.1) - actionpack (= 8.0.5.1) - activesupport (= 8.0.5.1) + actioncable (8.0.5.2) + actionpack (= 8.0.5.2) + activesupport (= 8.0.5.2) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (8.0.5.1) - actionpack (= 8.0.5.1) - activejob (= 8.0.5.1) - activerecord (= 8.0.5.1) - activestorage (= 8.0.5.1) - activesupport (= 8.0.5.1) + actionmailbox (8.0.5.2) + actionpack (= 8.0.5.2) + activejob (= 8.0.5.2) + activerecord (= 8.0.5.2) + activestorage (= 8.0.5.2) + activesupport (= 8.0.5.2) mail (>= 2.8.0) - actionmailer (8.0.5.1) - actionpack (= 8.0.5.1) - actionview (= 8.0.5.1) - activejob (= 8.0.5.1) - activesupport (= 8.0.5.1) + actionmailer (8.0.5.2) + actionpack (= 8.0.5.2) + actionview (= 8.0.5.2) + activejob (= 8.0.5.2) + activesupport (= 8.0.5.2) mail (>= 2.8.0) rails-dom-testing (~> 2.2) - actionpack (8.0.5.1) - actionview (= 8.0.5.1) - activesupport (= 8.0.5.1) + actionpack (8.0.5.2) + actionview (= 8.0.5.2) + activesupport (= 8.0.5.2) nokogiri (>= 1.8.5) rack (>= 2.2.4) rack-session (>= 1.0.1) @@ -43,40 +43,40 @@ GEM rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (8.0.5.1) - actionpack (= 8.0.5.1) - activerecord (= 8.0.5.1) - activestorage (= 8.0.5.1) - activesupport (= 8.0.5.1) + actiontext (8.0.5.2) + actionpack (= 8.0.5.2) + activerecord (= 8.0.5.2) + activestorage (= 8.0.5.2) + activesupport (= 8.0.5.2) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (8.0.5.1) - activesupport (= 8.0.5.1) + actionview (8.0.5.2) + activesupport (= 8.0.5.2) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) - active_model_serializers (0.10.15) + rails-html-sanitizer (~> 1.6, >= 1.7.2) + active_model_serializers (0.10.16) actionpack (>= 4.1) activemodel (>= 4.1) case_transform (>= 0.2) jsonapi-renderer (>= 0.1.1.beta1, < 0.3) - activejob (8.0.5.1) - activesupport (= 8.0.5.1) + activejob (8.0.5.2) + activesupport (= 8.0.5.2) globalid (>= 0.3.6) - activemodel (8.0.5.1) - activesupport (= 8.0.5.1) - activerecord (8.0.5.1) - activemodel (= 8.0.5.1) - activesupport (= 8.0.5.1) + activemodel (8.0.5.2) + activesupport (= 8.0.5.2) + activerecord (8.0.5.2) + activemodel (= 8.0.5.2) + activesupport (= 8.0.5.2) timeout (>= 0.4.0) - activestorage (8.0.5.1) - actionpack (= 8.0.5.1) - activejob (= 8.0.5.1) - activerecord (= 8.0.5.1) - activesupport (= 8.0.5.1) + activestorage (8.0.5.2) + actionpack (= 8.0.5.2) + activejob (= 8.0.5.2) + activerecord (= 8.0.5.2) + activesupport (= 8.0.5.2) marcel (~> 1.0) - activesupport (8.0.5.1) + activesupport (8.0.5.2) base64 benchmark (>= 0.3) bigdecimal @@ -89,20 +89,21 @@ GEM securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) uri (>= 0.13.1) - addressable (2.9.0) + addressable (2.9.2) public_suffix (>= 2.0.2, < 8.0) - ahoy_matey (5.4.0) - activesupport (>= 7.1) + ahoy_matey (5.5.0) + activesupport (>= 7.2) + cgi device_detector (>= 1) safely_block (>= 0.4) - amazing_print (1.7.2) - ansi (1.5.0) - ast (2.4.2) + amazing_print (3.0.0) + ansi (1.6.0) + ast (2.4.3) backport (1.2.0) - base64 (0.2.0) - benchmark (0.4.0) - bigdecimal (3.1.9) - bugsnag (6.27.1) + base64 (0.3.0) + benchmark (0.5.0) + bigdecimal (4.1.3) + bugsnag (6.30.0) concurrent-ruby (~> 1.0) builder (3.3.0) bundler-audit (0.9.3) @@ -117,165 +118,175 @@ GEM ssrf_filter (~> 1.0) case_transform (0.2) activesupport + cgi (0.5.2) climate_control (1.2.0) + commander (5.0.0) + highline (~> 3.0.0) concurrent-ruby (1.3.8) - connection_pool (2.5.0) + connection_pool (3.0.2) content_disposition (1.0.0) - crass (1.0.7) - dalli (3.2.13) + crass (1.0.8) + dalli (3.2.15) logger - date (3.4.1) - debug (1.10.0) + date (3.6.0) + debug (1.11.1) irb (~> 1.10) reline (>= 0.3.8) device_detector (1.1.3) - diff-lcs (1.6.0) + diff-lcs (1.6.2) docile (1.4.1) - dotenv (3.1.8) - dotenv-rails (3.1.8) - dotenv (= 3.1.8) + dotenv (3.2.0) + dotenv-rails (3.2.0) + dotenv (= 3.2.0) railties (>= 6.1) - down (5.4.2) + down (5.6.2) addressable (~> 2.8) - drb (2.2.1) + base64 (~> 0.3) + drb (2.2.3) + erb (6.0.7) erubi (1.13.1) - ffi (1.17.1-aarch64-linux-gnu) - ffi (1.17.1-aarch64-linux-musl) - ffi (1.17.1-arm64-darwin) - ffi (1.17.1-x86_64-darwin) - ffi (1.17.1-x86_64-linux-gnu) - ffi (1.17.1-x86_64-linux-musl) - globalid (1.2.1) + ffi (1.17.4-aarch64-linux-gnu) + ffi (1.17.4-aarch64-linux-musl) + ffi (1.17.4-arm64-darwin) + ffi (1.17.4-x86_64-darwin) + ffi (1.17.4-x86_64-linux-gnu) + ffi (1.17.4-x86_64-linux-musl) + globalid (1.4.0) activesupport (>= 6.1) hana (1.3.7) - honeybadger (5.26.4) + highline (3.0.1) + honeybadger (5.30.0) logger ostruct - i18n (1.14.7) + i18n (1.15.2) concurrent-ruby (~> 1.0) - image_processing (1.14.0) - mini_magick (>= 4.9.5, < 6) - ruby-vips (>= 2.0.17, < 3) - io-console (0.8.0) - irb (1.15.1) + image_processing (2.2.0) + io-console (0.9.5) + irb (1.18.0) pp (>= 0.6.0) + prism (>= 1.3.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - jaro_winkler (1.6.0) + jaro_winkler (1.7.0) json (2.21.2) - json_schemer (2.4.0) + json_schemer (2.5.0) bigdecimal hana (~> 1.3) regexp_parser (~> 2.0) simpleidn (~> 0.2) jsonapi-renderer (0.2.2) - kramdown (2.5.1) - rexml (>= 3.3.9) + kramdown (2.5.2) + rexml (>= 3.4.4) kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - language_server-protocol (3.17.0.4) + language_server-protocol (3.17.0.6) lint_roller (1.1.0) - listen (3.9.0) + listen (3.10.1) + logger rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - logger (1.6.6) - lograge (0.14.0) + logger (1.7.0) + lograge (0.15.1) actionpack (>= 4) activesupport (>= 4) + logger railties (>= 4) request_store (~> 1.0) - loofah (2.25.2) + loofah (2.25.3) crass (~> 1.0.2) - nokogiri (>= 1.12.0) + nokogiri (>= 1.19.5) mail (2.9.1) logger mini_mime (>= 0.1.1) net-imap net-pop net-smtp - marcel (1.0.4) - mini_magick (5.2.0) - benchmark - logger + marcel (1.2.1) mini_mime (1.1.5) - minitest (5.25.4) - minitest-reporters (1.7.1) + minitest (5.27.0) + minitest-reporters (1.8.0) ansi builder - minitest (>= 5.0) + minitest (>= 5.0, < 7) ruby-progressbar mutex_m (0.3.0) - net-imap (0.5.15) + net-imap (0.6.8) date net-protocol net-pop (0.1.2) net-protocol - net-protocol (0.2.2) + net-protocol (0.4.0) timeout - net-smtp (0.5.1) + net-smtp (0.5.2) net-protocol netrc (0.11.0) - nio4r (2.7.4) - nokogiri (1.19.4-aarch64-linux-gnu) + nio4r (2.7.5) + nokogiri (1.19.7-aarch64-linux-gnu) racc (~> 1.4) - nokogiri (1.19.4-aarch64-linux-musl) + nokogiri (1.19.7-aarch64-linux-musl) racc (~> 1.4) - nokogiri (1.19.4-arm64-darwin) + nokogiri (1.19.7-arm64-darwin) racc (~> 1.4) - nokogiri (1.19.4-x86_64-darwin) + nokogiri (1.19.7-x86_64-darwin) racc (~> 1.4) - nokogiri (1.19.4-x86_64-linux-gnu) + nokogiri (1.19.7-x86_64-linux-gnu) racc (~> 1.4) - nokogiri (1.19.4-x86_64-linux-musl) + nokogiri (1.19.7-x86_64-linux-musl) racc (~> 1.4) observer (0.1.2) - openssl (3.3.2) - ostruct (0.6.1) - parallel (1.26.3) - parser (3.3.7.1) + open3 (0.2.1) + openssl (4.0.2) + ostruct (0.6.3) + parallel (2.3.0) + parlour (9.1.2) + commander (~> 5.0) + parser + rainbow (~> 3.0) + sorbet-runtime (>= 0.5) + parser (3.3.13.0) ast (~> 2.4.1) racc - pp (0.6.2) + pp (0.6.4) prettyprint - prettyprint (0.2.0) - prism (1.3.0) - psych (5.2.3) + prettyprint (0.2.1) + prism (1.9.0) + psych (5.5.0) date stringio - public_suffix (6.0.1) + public_suffix (7.0.5) racc (1.8.1) - rack (3.2.7) + rack (3.2.8) rack-session (2.1.2) base64 (>= 0.1.0) rack (>= 3.0.0) - rack-test (2.2.0) + rack-test (2.3.0) rack (>= 1.3) - rackup (2.2.1) + rackup (2.3.1) rack (>= 3) - rails (8.0.5.1) - actioncable (= 8.0.5.1) - actionmailbox (= 8.0.5.1) - actionmailer (= 8.0.5.1) - actionpack (= 8.0.5.1) - actiontext (= 8.0.5.1) - actionview (= 8.0.5.1) - activejob (= 8.0.5.1) - activemodel (= 8.0.5.1) - activerecord (= 8.0.5.1) - activestorage (= 8.0.5.1) - activesupport (= 8.0.5.1) + rails (8.0.5.2) + actioncable (= 8.0.5.2) + actionmailbox (= 8.0.5.2) + actionmailer (= 8.0.5.2) + actionpack (= 8.0.5.2) + actiontext (= 8.0.5.2) + actionview (= 8.0.5.2) + activejob (= 8.0.5.2) + activemodel (= 8.0.5.2) + activerecord (= 8.0.5.2) + activestorage (= 8.0.5.2) + activesupport (= 8.0.5.2) bundler (>= 1.15.0) - railties (= 8.0.5.1) - rails-dom-testing (2.2.0) + railties (= 8.0.5.2) + rails-dom-testing (2.3.0) activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.7.1) - loofah (~> 2.25, >= 2.25.2) + rails-html-sanitizer (1.7.2) + loofah (~> 2.25, >= 2.25.3) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) - railties (8.0.5.1) - actionpack (= 8.0.5.1) - activesupport (= 8.0.5.1) + railties (8.0.5.2) + actionpack (= 8.0.5.2) + activesupport (= 8.0.5.2) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) @@ -283,68 +294,81 @@ GEM tsort (>= 0.2) zeitwerk (~> 2.6) rainbow (3.1.1) - rake (13.2.1) + rake (13.4.2) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rbi (0.2.4) + rbi (0.5.0) prism (~> 1.0) - sorbet-runtime (>= 0.5.9204) - rbs (3.8.1) + rbs (>= 4.0.1) + rbs (4.2.0) logger - rdoc (6.12.0) + prism (>= 1.6.0) + tsort + rdoc (7.2.0) + erb psych (>= 4.0.0) + tsort redcarpet (3.6.1) - redis-client (0.24.0) + redis-client (0.31.0) connection_pool - regexp_parser (2.10.0) - reline (0.6.0) + regexp_parser (2.13.1) + reline (0.7.0) io-console (~> 0.5) request_store (1.7.0) rack (>= 1.4) - reverse_markdown (3.0.0) + require-hooks (0.5.1) + reverse_markdown (3.0.2) nokogiri rexml (3.4.4) - rollbar (3.6.1) - rubocop (1.71.2) - json (~> 2.3) - language_server-protocol (>= 3.17.0) - parallel (~> 1.10) + rollbar (3.8.0) + rubocop (1.91.0) + json (>= 2.3) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.1.0) + parallel (>= 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.38.0, < 2.0) + rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.38.1) - parser (>= 3.3.1.0) + rubocop-ast (1.50.0) + parser (>= 3.3.7.2) + prism (~> 1.7) rubocop-inflector (1.0.0) activesupport rubocop rubocop-rspec - rubocop-minitest (0.37.0) + rubocop-minitest (0.41.0) lint_roller (~> 1.1) - rubocop (>= 1.61, < 2.0) + rubocop (>= 1.89.0, < 2.0) rubocop-ast (>= 1.38.0, < 2.0) - rubocop-performance (1.23.1) - rubocop (>= 1.48.1, < 2.0) - rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rspec (3.4.0) - rubocop (~> 1.61) - rubocop-sorbet (0.8.9) - rubocop (>= 1) + rubocop-performance (1.26.1) + lint_roller (~> 1.1) + rubocop (>= 1.75.0, < 2.0) + rubocop-ast (>= 1.47.1, < 2.0) + rubocop-rspec (3.10.2) + lint_roller (~> 1.1) + regexp_parser (>= 2.0) + rubocop (~> 1.86, >= 1.86.2) + rubocop-sorbet (0.17.2) + rbi (~> 0.4, >= 0.4.3) + rbs (>= 4.1.1) + spoom (~> 1.8) ruby-progressbar (1.13.0) - ruby-vips (2.2.3) - ffi (~> 1.12) - logger - safely_block (0.5.0) + rubydex (0.4.4-aarch64-linux) + rubydex (0.4.4-arm64-darwin) + rubydex (0.4.4-x86_64-darwin) + rubydex (0.4.4-x86_64-linux) + safely_block (1.0.0) securerandom (0.4.1) - semantic_logger (4.17.0) + semantic_logger (4.18.0) concurrent-ruby (~> 1.0) - sentry-ruby (5.22.4) + sentry-ruby (5.28.1) bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) - shrine (3.6.0) + shrine (3.10.2) content_disposition (~> 1.0) down (~> 5.1) sidekiq (7.3.9) @@ -357,82 +381,99 @@ GEM docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) - simplecov-html (0.13.1) + simplecov-html (0.13.2) simplecov-json (0.2.3) json simplecov simplecov_json_formatter (0.1.4) - simpleidn (0.2.3) - solargraph (0.52.0) + simpleidn (0.3.0) + solargraph (0.62.1) + ast (~> 2.4.3) backport (~> 1.2) - benchmark - bundler (~> 2.0) + benchmark (~> 0.4) + bundler (>= 2.0) diff-lcs (~> 1.4) - jaro_winkler (~> 1.6) + jaro_winkler (~> 1.6, >= 1.6.1) kramdown (~> 2.3) kramdown-parser-gfm (~> 1.1) logger (~> 1.6) observer (~> 0.1) + open3 (~> 0.2.1) ostruct (~> 0.6) parser (~> 3.0) - rbs (~> 3.0) - reverse_markdown (>= 2.0, < 4) - rubocop (~> 1.38) + prism (~> 1.4) + rbs (>= 3.10.4) + rdoc (~> 7.0) + reverse_markdown (~> 3.0) + rubocop (~> 1.76) + sord (~> 7.0) thor (~> 1.0) tilt (~> 2.0) yard (~> 0.9, >= 0.9.24) + yard-activesupport-concern (~> 0.0) yard-solargraph (~> 0.1) - sorbet (0.5.11888) - sorbet-static (= 0.5.11888) - sorbet-runtime (0.5.11888) - sorbet-static (0.5.11888-aarch64-linux) - sorbet-static (0.5.11888-universal-darwin) - sorbet-static (0.5.11888-x86_64-linux) - sorbet-static-and-runtime (0.5.11888) - sorbet (= 0.5.11888) - sorbet-runtime (= 0.5.11888) + sorbet (0.6.13635) + sorbet-static (= 0.6.13635) + sorbet-runtime (0.6.13635) + sorbet-static (0.6.13635-aarch64-linux) + sorbet-static (0.6.13635-universal-darwin) + sorbet-static (0.6.13635-x86_64-linux) + sorbet-static-and-runtime (0.6.13635) + sorbet (= 0.6.13635) + sorbet-runtime (= 0.6.13635) sorbet-typescript (0.1.1) sorbet-runtime (>= 0.5) thor (>= 1.3) - spoom (1.5.4) + sord (7.1.0) + commander (~> 5.0) + parlour (~> 9.1) + parser + rbs (>= 3.0, < 5) + sorbet-runtime + yard + spoom (1.8.13) erubi (>= 1.10.0) prism (>= 0.28.0) - rbi (>= 0.2.3) + rbi (>= 0.4.2) + rbs (>= 4.0.0.dev.5) + rexml (>= 3.2.6) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) - ssrf_filter (1.2.0) - standard (1.45.0) + ssrf_filter (1.6.0) + standard (1.57.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.71.0) + rubocop (~> 1.91.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.6) + standard-performance (~> 1.8) standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - standard-performance (1.6.0) + standard-performance (1.9.0) lint_roller (~> 1.1) - rubocop-performance (~> 1.23.0) - stringio (3.1.5) - tapioca (0.16.11) + rubocop-performance (~> 1.26.0) + stringio (3.2.0) + tapioca (0.20.0) benchmark bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) - rbi (~> 0.2) - sorbet-static-and-runtime (>= 0.5.11087) - spoom (>= 1.2.0) + rbi (>= 0.4.1) + require-hooks (>= 0.2.2) + rubydex (>= 0.1.0.beta10) + sorbet-static-and-runtime (>= 0.6.12698) + spoom (>= 1.7.16) thor (>= 1.2.0) - yard-sorbet - thor (1.4.0) - tilt (2.6.0) - timeout (0.4.3) + tsort + thor (1.5.0) + tilt (2.9.0) + timeout (0.6.1) tsort (0.2.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (3.1.4) - unicode-emoji (~> 4.0, >= 4.0.4) - unicode-emoji (4.0.4) + unicode-display_width (3.3.0) + unicode-emoji (~> 4.3) + unicode-emoji (4.3.0) uri (1.1.2) useragent (0.16.11) websocket-driver (0.8.2) @@ -440,12 +481,14 @@ GEM websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) yard (0.9.45) + yard-activesupport-concern (0.0.1) + yard (>= 0.8) yard-solargraph (0.1.0) yard (~> 0.9) yard-sorbet (0.9.0) sorbet-runtime yard - zeitwerk (2.7.2) + zeitwerk (2.8.3) PLATFORMS aarch64-linux @@ -467,7 +510,7 @@ DEPENDENCIES bundler-audit carrierwave (~> 3.0) climate_control (~> 1.2) - dalli (~> 3.2.13) + dalli (~> 3.2.15) debug dotenv-rails (~> 3.1) drb diff --git a/Taskfile.rails.yml b/Taskfile.rails.yml index 4c5a7b4e..f38ffb88 100644 --- a/Taskfile.rails.yml +++ b/Taskfile.rails.yml @@ -16,9 +16,9 @@ tasks: - cmd: RAILS_VERSION={{.RAILS_VERSION}} FORCE_RECREATE=true ./scripts/rails_tests.sh test:matrix: - desc: Run Rails integration tests for supported versions (7.1.6, 7.2.3, 8.0.4, 8.1.2) + desc: Run Rails integration tests for supported versions (7.1.6, 7.2.4, 8.0.5.2, 8.1.4.1) cmds: - RAILS_VERSION=7.1.6 ./scripts/rails_tests.sh - - RAILS_VERSION=7.2.3 ./scripts/rails_tests.sh - - RAILS_VERSION=8.0.4 ./scripts/rails_tests.sh - - RAILS_VERSION=8.1.2 ./scripts/rails_tests.sh + - RAILS_VERSION=7.2.4 ./scripts/rails_tests.sh + - RAILS_VERSION=8.0.5.2 ./scripts/rails_tests.sh + - RAILS_VERSION=8.1.4.1 ./scripts/rails_tests.sh diff --git a/docs/lib/__tests__/gemspec-parser.test.ts b/docs/lib/__tests__/gemspec-parser.test.ts index 9d9c783e..7e10c96d 100644 --- a/docs/lib/__tests__/gemspec-parser.test.ts +++ b/docs/lib/__tests__/gemspec-parser.test.ts @@ -58,7 +58,7 @@ describe('parseCiCombinations', () => { expect(combinations).toHaveLength(matrixEntries.length + 1); for (const combination of combinations) { expect(combination.ruby).toMatch(/^\d+\.\d+(\.\d+)?$/); - expect(combination.rails).toMatch(/^(\d+\.\d+\.\d+|main)$/); + expect(combination.rails).toMatch(/^(\d+\.\d+\.\d+(\.\d+)?|main)$/); } // The pilot job tests Rails' main branch (RAILS_VERSION "latest") expect(combinations[combinations.length - 1].rails).toBe('main'); diff --git a/lib/log_struct/semantic_logger/logger.rb b/lib/log_struct/semantic_logger/logger.rb index 4864a49e..ec93d415 100644 --- a/lib/log_struct/semantic_logger/logger.rb +++ b/lib/log_struct/semantic_logger/logger.rb @@ -26,7 +26,7 @@ module SemanticLogger class Logger < ::SemanticLogger::Logger extend T::Sig - sig { params(name: T.any(String, Symbol, Module, T::Class[T.anything]), level: T.nilable(Symbol), filter: T.untyped).void } + sig { params(name: T.any(String, Symbol, T::Module[T.anything]), level: T.nilable(Symbol), filter: T.untyped).void } def initialize(name = "Application", level: nil, filter: nil) # SemanticLogger::Logger expects positional arguments, not named arguments super(name, level, filter) diff --git a/logstruct.gemspec b/logstruct.gemspec index 5d6aa1dd..07247b39 100644 --- a/logstruct.gemspec +++ b/logstruct.gemspec @@ -45,7 +45,7 @@ Gem::Specification.new do |spec| spec.add_dependency "lograge", ">= 0.11" spec.add_dependency "railties", ">= 7.1" spec.add_dependency "semantic_logger", "~> 4.15" - spec.add_dependency "sorbet-runtime", ">= 0.5" + spec.add_dependency "sorbet-runtime", ">= 0.6.12698" # Optional integrations spec.add_development_dependency "bugsnag", "~> 6.26" diff --git a/rails_test_app/create_app.rb b/rails_test_app/create_app.rb index 01d3bb1f..237fed82 100755 --- a/rails_test_app/create_app.rb +++ b/rails_test_app/create_app.rb @@ -15,11 +15,11 @@ when "7.1" "7.1.6" # Updated by update_rails_versions script when "7.2" - "7.2.3" # Updated by update_rails_versions script + "7.2.4" # Updated by update_rails_versions script when "8.0" - "8.0.4" # Updated by update_rails_versions script + "8.0.5.2" # Updated by update_rails_versions script when "8.1" - "8.1.2" # Updated by update_rails_versions script + "8.1.4.1" # Updated by update_rails_versions script else raise "Unrecognized Rails version #{rails_version}" end From 408c1b516eb4aab106a585bb7c5a1bb67279a628 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 6 Nov 2026 16:56:53 +1300 Subject: [PATCH 2/6] Regenerate the Sorbet RBIs for the updated gems Generated by Tapioca, apart from the small changes it needed: - Tapioca 0.20 no longer loads minitest/mock unless it's required. - Zeitwerk is no longer excluded, because the code that uses it needs its types. - BroadcastLogger#tagged is delegated through method_missing, so it's declared in the overrides. --- sorbet/rbi/annotations/actionmailer.rbi | 5 + sorbet/rbi/annotations/actionpack.rbi | 22 + sorbet/rbi/annotations/activejob.rbi | 18 + sorbet/rbi/annotations/activemodel.rbi | 30 + sorbet/rbi/annotations/activerecord.rbi | 69 + sorbet/rbi/annotations/activesupport.rbi | 77 +- sorbet/rbi/annotations/i18n.rbi | 40 + sorbet/rbi/annotations/railties.rbi | 43 +- ...le@8.0.5.1.rbi => actioncable@8.0.5.2.rbi} | 1424 +- sorbet/rbi/gems/actionmailbox@8.0.5.1.rbi | 1968 -- sorbet/rbi/gems/actionmailbox@8.0.5.2.rbi | 985 + ...r@8.0.5.1.rbi => actionmailer@8.0.5.2.rbi} | 894 +- ...ack@8.0.5.1.rbi => actionpack@8.0.5.2.rbi} | 8829 +++---- sorbet/rbi/gems/actiontext@8.0.5.1.rbi | 1897 -- sorbet/rbi/gems/actiontext@8.0.5.2.rbi | 1386 ++ ...iew@8.0.5.1.rbi => actionview@8.0.5.2.rbi} | 5853 ++--- .../gems/active_model_serializers@0.10.15.rbi | 5029 ---- .../gems/active_model_serializers@0.10.16.rbi | 3786 +++ ...ejob@8.0.5.1.rbi => activejob@8.0.5.2.rbi} | 1022 +- ...el@8.0.5.1.rbi => activemodel@8.0.5.2.rbi} | 2301 +- ...d@8.0.5.1.rbi => activerecord@8.0.5.2.rbi} | 18984 +++++++--------- sorbet/rbi/gems/activestorage@8.0.5.1.rbi | 3880 ---- sorbet/rbi/gems/activestorage@8.0.5.2.rbi | 2345 ++ ...@8.0.5.1.rbi => activesupport@8.0.5.2.rbi} | 8657 +++---- ...ssable@2.9.0.rbi => addressable@2.9.2.rbi} | 1339 +- sorbet/rbi/gems/ahoy_matey@5.4.0.rbi | 717 - sorbet/rbi/gems/ahoy_matey@5.5.0.rbi | 663 + sorbet/rbi/gems/amazing_print@1.7.2.rbi | 1010 - sorbet/rbi/gems/amazing_print@3.0.0.rbi | 942 + .../gems/{ansi@1.5.0.rbi => ansi@1.6.0.rbi} | 423 +- .../{base64@0.2.0.rbi => base64@0.3.0.rbi} | 118 +- ...enchmark@0.4.0.rbi => benchmark@0.5.0.rbi} | 247 +- sorbet/rbi/gems/bigdecimal@3.1.9.rbi | 78 - sorbet/rbi/gems/bigdecimal@4.1.3.rbi | 478 + ...{bugsnag@6.27.1.rbi => bugsnag@6.30.0.rbi} | 1761 +- sorbet/rbi/gems/cgi@0.5.2.rbi | 3238 +++ sorbet/rbi/gems/connection_pool@2.5.0.rbi | 317 - sorbet/rbi/gems/connection_pool@3.0.2.rbi | 342 + .../{dalli@3.2.13.rbi => dalli@3.2.15.rbi} | 1495 +- sorbet/rbi/gems/date@3.4.1.rbi | 75 - sorbet/rbi/gems/date@3.6.0.rbi | 391 + ...rails@3.1.8.rbi => dotenv-rails@3.2.0.rbi} | 0 .../{dotenv@3.1.8.rbi => dotenv@3.2.0.rbi} | 216 +- .../gems/{down@5.4.2.rbi => down@5.6.2.rbi} | 0 .../rbi/gems/{drb@2.2.1.rbi => drb@2.2.3.rbi} | 923 +- sorbet/rbi/gems/erb@6.0.7.rbi | 1580 ++ sorbet/rbi/gems/ffi@1.17.1.rbi | 2178 -- sorbet/rbi/gems/ffi@1.17.4.rbi | 9 + ...{globalid@1.2.1.rbi => globalid@1.4.0.rbi} | 457 +- sorbet/rbi/gems/honeybadger@5.26.4.rbi | 5359 ----- sorbet/rbi/gems/honeybadger@5.30.0.rbi | 4223 ++++ .../gems/{i18n@1.14.7.rbi => i18n@1.15.2.rbi} | 1344 +- sorbet/rbi/gems/image_processing@1.14.0.rbi | 591 - sorbet/rbi/gems/image_processing@2.2.0.rbi | 250 + ...console@0.8.0.rbi => io-console@0.9.5.rbi} | 0 sorbet/rbi/gems/json_schemer@2.4.0.rbi | 2706 --- sorbet/rbi/gems/json_schemer@2.5.0.rbi | 2493 ++ sorbet/rbi/gems/listen@3.10.1.rbi | 1076 + sorbet/rbi/gems/listen@3.9.0.rbi | 1206 - .../{logger@1.6.6.rbi => logger@1.7.0.rbi} | 286 +- sorbet/rbi/gems/lograge@0.14.0.rbi | 551 - sorbet/rbi/gems/lograge@0.15.1.rbi | 553 + .../{loofah@2.25.2.rbi => loofah@2.25.3.rbi} | 601 +- .../{marcel@1.0.4.rbi => marcel@1.2.1.rbi} | 115 +- sorbet/rbi/gems/mini_magick@5.2.0.rbi | 1135 - sorbet/rbi/gems/minitest-reporters@1.7.1.rbi | 1064 - sorbet/rbi/gems/minitest-reporters@1.8.0.rbi | 965 + ...initest@5.25.4.rbi => minitest@5.27.0.rbi} | 1212 +- ...net-imap@0.5.15.rbi => net-imap@0.6.8.rbi} | 6029 ++--- sorbet/rbi/gems/net-protocol@0.2.2.rbi | 292 - sorbet/rbi/gems/net-protocol@0.4.0.rbi | 275 + ...{net-smtp@0.5.1.rbi => net-smtp@0.5.2.rbi} | 485 +- .../gems/{nio4r@2.7.4.rbi => nio4r@2.7.5.rbi} | 162 +- ...okogiri@1.19.4.rbi => nokogiri@1.19.7.rbi} | 2976 ++- sorbet/rbi/gems/openssl@3.3.2.rbi | 2199 -- sorbet/rbi/gems/openssl@4.0.2.rbi | 4369 ++++ .../{ostruct@0.6.1.rbi => ostruct@0.6.3.rbi} | 230 +- .../rbi/gems/{pp@0.6.2.rbi => pp@0.6.4.rbi} | 97 +- ...yprint@0.2.0.rbi => prettyprint@0.2.1.rbi} | 133 +- .../gems/{psych@5.2.3.rbi => psych@5.5.0.rbi} | 1067 +- ...ffix@6.0.1.rbi => public_suffix@7.0.5.rbi} | 384 +- ...ack-test@2.2.0.rbi => rack-test@2.3.0.rbi} | 355 +- .../gems/{rack@3.2.7.rbi => rack@3.2.8.rbi} | 2447 +- .../{rackup@2.2.1.rbi => rackup@2.3.1.rbi} | 97 +- ...@2.2.0.rbi => rails-dom-testing@2.3.0.rbi} | 421 +- ...7.1.rbi => rails-html-sanitizer@1.7.2.rbi} | 398 +- .../{rails@8.0.5.1.rbi => rails@8.0.5.2.rbi} | 0 ...lties@8.0.5.1.rbi => railties@8.0.5.2.rbi} | 3570 ++- .../gems/{rake@13.2.1.rbi => rake@13.4.2.rbi} | 1655 +- sorbet/rbi/gems/redis-client@0.24.0.rbi | 1358 -- sorbet/rbi/gems/redis-client@0.31.0.rbi | 1286 ++ sorbet/rbi/gems/regexp_parser@2.10.0.rbi | 3795 --- sorbet/rbi/gems/regexp_parser@2.13.1.rbi | 3500 +++ sorbet/rbi/gems/reline@0.6.0.rbi | 9 - sorbet/rbi/gems/reline@0.7.0.rbi | 2449 ++ sorbet/rbi/gems/rollbar@3.6.1.rbi | 3250 --- sorbet/rbi/gems/rollbar@3.8.0.rbi | 2302 ++ sorbet/rbi/gems/ruby-vips@2.2.3.rbi | 3452 --- sorbet/rbi/gems/safely_block@0.5.0.rbi | 94 - sorbet/rbi/gems/safely_block@1.0.0.rbi | 64 + ...@4.17.0.rbi => semantic_logger@4.18.0.rbi} | 2175 +- ...ruby@5.22.4.rbi => sentry-ruby@5.28.1.rbi} | 4566 ++-- .../{shrine@3.6.0.rbi => shrine@3.10.2.rbi} | 446 +- sorbet/rbi/gems/simplecov-html@0.13.1.rbi | 225 - sorbet/rbi/gems/simplecov-html@0.13.2.rbi | 90 + sorbet/rbi/gems/ssrf_filter@1.2.0.rbi | 99 - sorbet/rbi/gems/ssrf_filter@1.6.0.rbi | 119 + ...{stringio@3.1.5.rbi => stringio@3.2.0.rbi} | 0 .../gems/{thor@1.4.0.rbi => thor@1.5.0.rbi} | 1945 +- sorbet/rbi/gems/timeout@0.4.3.rbi | 157 - sorbet/rbi/gems/timeout@0.6.1.rbi | 203 + sorbet/rbi/gems/zeitwerk@2.8.3.rbi | 1178 + sorbet/rbi/overrides/active_support.rbi | 6 + sorbet/tapioca/config.yml | 1 - sorbet/tapioca/require.rb | 1 + 115 files changed, 79540 insertions(+), 95142 deletions(-) create mode 100644 sorbet/rbi/annotations/i18n.rbi rename sorbet/rbi/gems/{actioncable@8.0.5.1.rbi => actioncable@8.0.5.2.rbi} (57%) delete mode 100644 sorbet/rbi/gems/actionmailbox@8.0.5.1.rbi create mode 100644 sorbet/rbi/gems/actionmailbox@8.0.5.2.rbi rename sorbet/rbi/gems/{actionmailer@8.0.5.1.rbi => actionmailer@8.0.5.2.rbi} (71%) rename sorbet/rbi/gems/{actionpack@8.0.5.1.rbi => actionpack@8.0.5.2.rbi} (62%) delete mode 100644 sorbet/rbi/gems/actiontext@8.0.5.1.rbi create mode 100644 sorbet/rbi/gems/actiontext@8.0.5.2.rbi rename sorbet/rbi/gems/{actionview@8.0.5.1.rbi => actionview@8.0.5.2.rbi} (71%) delete mode 100644 sorbet/rbi/gems/active_model_serializers@0.10.15.rbi create mode 100644 sorbet/rbi/gems/active_model_serializers@0.10.16.rbi rename sorbet/rbi/gems/{activejob@8.0.5.1.rbi => activejob@8.0.5.2.rbi} (68%) rename sorbet/rbi/gems/{activemodel@8.0.5.1.rbi => activemodel@8.0.5.2.rbi} (70%) rename sorbet/rbi/gems/{activerecord@8.0.5.1.rbi => activerecord@8.0.5.2.rbi} (61%) delete mode 100644 sorbet/rbi/gems/activestorage@8.0.5.1.rbi create mode 100644 sorbet/rbi/gems/activestorage@8.0.5.2.rbi rename sorbet/rbi/gems/{activesupport@8.0.5.1.rbi => activesupport@8.0.5.2.rbi} (63%) rename sorbet/rbi/gems/{addressable@2.9.0.rbi => addressable@2.9.2.rbi} (59%) delete mode 100644 sorbet/rbi/gems/ahoy_matey@5.4.0.rbi create mode 100644 sorbet/rbi/gems/ahoy_matey@5.5.0.rbi delete mode 100644 sorbet/rbi/gems/amazing_print@1.7.2.rbi create mode 100644 sorbet/rbi/gems/amazing_print@3.0.0.rbi rename sorbet/rbi/gems/{ansi@1.5.0.rbi => ansi@1.6.0.rbi} (57%) rename sorbet/rbi/gems/{base64@0.2.0.rbi => base64@0.3.0.rbi} (86%) rename sorbet/rbi/gems/{benchmark@0.4.0.rbi => benchmark@0.5.0.rbi} (65%) delete mode 100644 sorbet/rbi/gems/bigdecimal@3.1.9.rbi create mode 100644 sorbet/rbi/gems/bigdecimal@4.1.3.rbi rename sorbet/rbi/gems/{bugsnag@6.27.1.rbi => bugsnag@6.30.0.rbi} (61%) create mode 100644 sorbet/rbi/gems/cgi@0.5.2.rbi delete mode 100644 sorbet/rbi/gems/connection_pool@2.5.0.rbi create mode 100644 sorbet/rbi/gems/connection_pool@3.0.2.rbi rename sorbet/rbi/gems/{dalli@3.2.13.rbi => dalli@3.2.15.rbi} (59%) delete mode 100644 sorbet/rbi/gems/date@3.4.1.rbi create mode 100644 sorbet/rbi/gems/date@3.6.0.rbi rename sorbet/rbi/gems/{dotenv-rails@3.1.8.rbi => dotenv-rails@3.2.0.rbi} (100%) rename sorbet/rbi/gems/{dotenv@3.1.8.rbi => dotenv@3.2.0.rbi} (59%) rename sorbet/rbi/gems/{down@5.4.2.rbi => down@5.6.2.rbi} (100%) rename sorbet/rbi/gems/{drb@2.2.1.rbi => drb@2.2.3.rbi} (56%) create mode 100644 sorbet/rbi/gems/erb@6.0.7.rbi delete mode 100644 sorbet/rbi/gems/ffi@1.17.1.rbi create mode 100644 sorbet/rbi/gems/ffi@1.17.4.rbi rename sorbet/rbi/gems/{globalid@1.2.1.rbi => globalid@1.4.0.rbi} (59%) delete mode 100644 sorbet/rbi/gems/honeybadger@5.26.4.rbi create mode 100644 sorbet/rbi/gems/honeybadger@5.30.0.rbi rename sorbet/rbi/gems/{i18n@1.14.7.rbi => i18n@1.15.2.rbi} (63%) delete mode 100644 sorbet/rbi/gems/image_processing@1.14.0.rbi create mode 100644 sorbet/rbi/gems/image_processing@2.2.0.rbi rename sorbet/rbi/gems/{io-console@0.8.0.rbi => io-console@0.9.5.rbi} (100%) delete mode 100644 sorbet/rbi/gems/json_schemer@2.4.0.rbi create mode 100644 sorbet/rbi/gems/json_schemer@2.5.0.rbi create mode 100644 sorbet/rbi/gems/listen@3.10.1.rbi delete mode 100644 sorbet/rbi/gems/listen@3.9.0.rbi rename sorbet/rbi/gems/{logger@1.6.6.rbi => logger@1.7.0.rbi} (83%) delete mode 100644 sorbet/rbi/gems/lograge@0.14.0.rbi create mode 100644 sorbet/rbi/gems/lograge@0.15.1.rbi rename sorbet/rbi/gems/{loofah@2.25.2.rbi => loofah@2.25.3.rbi} (67%) rename sorbet/rbi/gems/{marcel@1.0.4.rbi => marcel@1.2.1.rbi} (63%) delete mode 100644 sorbet/rbi/gems/mini_magick@5.2.0.rbi delete mode 100644 sorbet/rbi/gems/minitest-reporters@1.7.1.rbi create mode 100644 sorbet/rbi/gems/minitest-reporters@1.8.0.rbi rename sorbet/rbi/gems/{minitest@5.25.4.rbi => minitest@5.27.0.rbi} (52%) rename sorbet/rbi/gems/{net-imap@0.5.15.rbi => net-imap@0.6.8.rbi} (72%) delete mode 100644 sorbet/rbi/gems/net-protocol@0.2.2.rbi create mode 100644 sorbet/rbi/gems/net-protocol@0.4.0.rbi rename sorbet/rbi/gems/{net-smtp@0.5.1.rbi => net-smtp@0.5.2.rbi} (68%) rename sorbet/rbi/gems/{nio4r@2.7.4.rbi => nio4r@2.7.5.rbi} (71%) rename sorbet/rbi/gems/{nokogiri@1.19.4.rbi => nokogiri@1.19.7.rbi} (74%) delete mode 100644 sorbet/rbi/gems/openssl@3.3.2.rbi create mode 100644 sorbet/rbi/gems/openssl@4.0.2.rbi rename sorbet/rbi/gems/{ostruct@0.6.1.rbi => ostruct@0.6.3.rbi} (66%) rename sorbet/rbi/gems/{pp@0.6.2.rbi => pp@0.6.4.rbi} (85%) rename sorbet/rbi/gems/{prettyprint@0.2.0.rbi => prettyprint@0.2.1.rbi} (82%) rename sorbet/rbi/gems/{psych@5.2.3.rbi => psych@5.5.0.rbi} (69%) rename sorbet/rbi/gems/{public_suffix@6.0.1.rbi => public_suffix@7.0.5.rbi} (71%) rename sorbet/rbi/gems/{rack-test@2.2.0.rbi => rack-test@2.3.0.rbi} (65%) rename sorbet/rbi/gems/{rack@3.2.7.rbi => rack@3.2.8.rbi} (66%) rename sorbet/rbi/gems/{rackup@2.2.1.rbi => rackup@2.3.1.rbi} (68%) rename sorbet/rbi/gems/{rails-dom-testing@2.2.0.rbi => rails-dom-testing@2.3.0.rbi} (50%) rename sorbet/rbi/gems/{rails-html-sanitizer@1.7.1.rbi => rails-html-sanitizer@1.7.2.rbi} (54%) rename sorbet/rbi/gems/{rails@8.0.5.1.rbi => rails@8.0.5.2.rbi} (100%) rename sorbet/rbi/gems/{railties@8.0.5.1.rbi => railties@8.0.5.2.rbi} (55%) rename sorbet/rbi/gems/{rake@13.2.1.rbi => rake@13.4.2.rbi} (61%) delete mode 100644 sorbet/rbi/gems/redis-client@0.24.0.rbi create mode 100644 sorbet/rbi/gems/redis-client@0.31.0.rbi delete mode 100644 sorbet/rbi/gems/regexp_parser@2.10.0.rbi create mode 100644 sorbet/rbi/gems/regexp_parser@2.13.1.rbi delete mode 100644 sorbet/rbi/gems/reline@0.6.0.rbi create mode 100644 sorbet/rbi/gems/reline@0.7.0.rbi delete mode 100644 sorbet/rbi/gems/rollbar@3.6.1.rbi create mode 100644 sorbet/rbi/gems/rollbar@3.8.0.rbi delete mode 100644 sorbet/rbi/gems/ruby-vips@2.2.3.rbi delete mode 100644 sorbet/rbi/gems/safely_block@0.5.0.rbi create mode 100644 sorbet/rbi/gems/safely_block@1.0.0.rbi rename sorbet/rbi/gems/{semantic_logger@4.17.0.rbi => semantic_logger@4.18.0.rbi} (59%) rename sorbet/rbi/gems/{sentry-ruby@5.22.4.rbi => sentry-ruby@5.28.1.rbi} (50%) rename sorbet/rbi/gems/{shrine@3.6.0.rbi => shrine@3.10.2.rbi} (69%) delete mode 100644 sorbet/rbi/gems/simplecov-html@0.13.1.rbi create mode 100644 sorbet/rbi/gems/simplecov-html@0.13.2.rbi delete mode 100644 sorbet/rbi/gems/ssrf_filter@1.2.0.rbi create mode 100644 sorbet/rbi/gems/ssrf_filter@1.6.0.rbi rename sorbet/rbi/gems/{stringio@3.1.5.rbi => stringio@3.2.0.rbi} (100%) rename sorbet/rbi/gems/{thor@1.4.0.rbi => thor@1.5.0.rbi} (65%) delete mode 100644 sorbet/rbi/gems/timeout@0.4.3.rbi create mode 100644 sorbet/rbi/gems/timeout@0.6.1.rbi create mode 100644 sorbet/rbi/gems/zeitwerk@2.8.3.rbi diff --git a/sorbet/rbi/annotations/actionmailer.rbi b/sorbet/rbi/annotations/actionmailer.rbi index 3d2771df..4b4d708b 100644 --- a/sorbet/rbi/annotations/actionmailer.rbi +++ b/sorbet/rbi/annotations/actionmailer.rbi @@ -8,3 +8,8 @@ class ActionMailer::Base sig { params(headers: T.untyped, block: T.nilable(T.proc.params(arg0: ActionMailer::Collector).void)).returns(Mail::Message) } def mail(headers = nil, &block); end end + +module ActionMailer::TestHelper + sig { params(block: T.proc.void).returns(T::Array[Mail::Message]) } + def capture_emails(&block); end +end diff --git a/sorbet/rbi/annotations/actionpack.rbi b/sorbet/rbi/annotations/actionpack.rbi index 09b36816..4af55bf5 100644 --- a/sorbet/rbi/annotations/actionpack.rbi +++ b/sorbet/rbi/annotations/actionpack.rbi @@ -8,6 +8,17 @@ class ActionController::API MODULES = T.let(T.unsafe(nil), T::Array[T.untyped]) end +# @version >= 5.2.0 +module ActionController::ContentSecurityPolicy::ClassMethods + # @shim: required to declare T.attached_class + extend T::Generic + + has_attached_class! :out + + sig { params(enabled: T.untyped, options: T.untyped, block: T.nilable(T.proc.bind(T.attached_class).params(policy: ActionDispatch::ContentSecurityPolicy).void)).void } + def content_security_policy(enabled = true, **options, &block); end +end + module ActionController::Flash::ClassMethods sig { params(types: Symbol).void } def add_flash_types(*types); end @@ -203,6 +214,17 @@ class ActionController::Parameters def self.permit_all_parameters=(obj); end end +# @version >= 6.1.0 +module ActionController::PermissionsPolicy::ClassMethods + # @shim: required to declare T.attached_class + extend T::Generic + + has_attached_class! :out + + sig { params(options: T.untyped, block: T.nilable(T.proc.bind(T.attached_class).params(policy: ActionDispatch::PermissionsPolicy).void)).void } + def permissions_policy(**options, &block); end +end + module ActionController::RequestForgeryProtection sig { returns(T::Boolean) } def protect_against_forgery?; end diff --git a/sorbet/rbi/annotations/activejob.rbi b/sorbet/rbi/annotations/activejob.rbi index 1cd82adb..ae939e7d 100644 --- a/sorbet/rbi/annotations/activejob.rbi +++ b/sorbet/rbi/annotations/activejob.rbi @@ -42,3 +42,21 @@ class ActiveJob::Base sig { params(priority: T.untyped, block: T.nilable(T.proc.bind(T.attached_class).returns(T.untyped))).void } def self.queue_with_priority(priority = nil, &block); end end + +module ActiveJob::TestHelper + sig { params(number: Integer, only: T.untyped, except: T.untyped, queue: T.nilable(T.any(String, Symbol)), block: T.nilable(T.proc.void)).returns(TrueClass) } + def assert_enqueued_jobs(number, only: nil, except: nil, queue: nil, &block); end + + sig { params(only: T.untyped, except: T.untyped, queue: T.nilable(T.any(String, Symbol)), block: T.nilable(T.proc.void)).returns(TrueClass) } + def assert_no_enqueued_jobs(only: nil, except: nil, queue: nil, &block); end + + sig { params(number: Integer, only: T.untyped, except: T.untyped, queue: T.nilable(T.any(String, Symbol)), block: T.nilable(T.proc.void)).returns(TrueClass) } + def assert_performed_jobs(number, only: nil, except: nil, queue: nil, &block); end + + sig { params(only: T.untyped, except: T.untyped, queue: T.nilable(T.any(String, Symbol)), block: T.nilable(T.proc.void)).returns(TrueClass) } + def assert_no_performed_jobs(only: nil, except: nil, queue: nil, &block); end + + sig { params(only: T.untyped, except: T.untyped, queue: T.nilable(T.any(String, Symbol)), at: T.untyped).returns(Integer) } + sig { type_parameters(:Block).params(only: T.untyped, except: T.untyped, queue: T.nilable(T.any(String, Symbol)), at: T.untyped, block: T.proc.returns(T.type_parameter(:Block))).returns(T.type_parameter(:Block)) } + def perform_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil, &block); end +end diff --git a/sorbet/rbi/annotations/activemodel.rbi b/sorbet/rbi/annotations/activemodel.rbi index 1e1a6424..90efab49 100644 --- a/sorbet/rbi/annotations/activemodel.rbi +++ b/sorbet/rbi/annotations/activemodel.rbi @@ -4,6 +4,36 @@ # This file was pulled from a central RBI files repository. # Please run `bin/tapioca annotations` to update it. +module ActiveModel::Attributes + sig { returns(T::Array[String]) } + def attribute_names; end + + sig { returns(T::Hash[String, T.untyped]) } + def attributes; end +end + +module ActiveModel::Attributes::ClassMethods + sig { returns(T::Array[String]) } + def attribute_names; end +end + +module ActiveModel::Dirty + sig { returns(T::Array[String]) } + def changed; end + + sig { returns(T::Boolean) } + def changed?; end + + sig { returns(ActiveSupport::HashWithIndifferentAccess) } + def changed_attributes; end + + sig { returns(ActiveSupport::HashWithIndifferentAccess) } + def changes; end + + sig { returns(ActiveSupport::HashWithIndifferentAccess) } + def previous_changes; end +end + class ActiveModel::Errors Elem = type_member { { fixed: ActiveModel::Error } } diff --git a/sorbet/rbi/annotations/activerecord.rbi b/sorbet/rbi/annotations/activerecord.rbi index 41badc22..bc9102b1 100644 --- a/sorbet/rbi/annotations/activerecord.rbi +++ b/sorbet/rbi/annotations/activerecord.rbi @@ -4,6 +4,31 @@ # This file was pulled from a central RBI files repository. # Please run `bin/tapioca annotations` to update it. +module ActiveRecord::AttributeMethods::ClassMethods + sig { returns(T::Array[String]) } + def attribute_names; end +end + +module ActiveRecord::AttributeMethods::Dirty + sig { returns(ActiveSupport::HashWithIndifferentAccess) } + def attributes_in_database; end + + sig { returns(T::Array[String]) } + def changed_attribute_names_to_save; end + + sig { returns(ActiveSupport::HashWithIndifferentAccess) } + def changes_to_save; end + + sig { returns(T::Boolean) } + def has_changes_to_save?; end + + sig { returns(ActiveSupport::HashWithIndifferentAccess) } + def saved_changes; end + + sig { returns(T::Boolean) } + def saved_changes?; end +end + class ActiveRecord::Schema sig { params(info: T::Hash[T.untyped, T.untyped], blk: T.proc.bind(ActiveRecord::Schema).void).void } def self.define(info = nil, &blk); end @@ -17,6 +42,27 @@ class ActiveRecord::Migration include ActiveRecord::ConnectionAdapters::DatabaseStatements end +# @version >= 7.2.0 +module ActiveRecord::Assertions::QueryAssertions + sig { type_parameters(:R).params(count: T.nilable(Integer), include_schema: T::Boolean, block: T.proc.returns(T.type_parameter(:R))).returns(T.type_parameter(:R)) } + def assert_queries_count(count = nil, include_schema: false, &block); end + + sig { type_parameters(:R).params(include_schema: T::Boolean, block: T.proc.returns(T.type_parameter(:R))).returns(T.type_parameter(:R)) } + def assert_no_queries(include_schema: false, &block); end + + sig { type_parameters(:R).params(match: T.any(String, Regexp), count: T.nilable(Integer), include_schema: T::Boolean, block: T.proc.returns(T.type_parameter(:R))).returns(T.type_parameter(:R)) } + def assert_queries_match(match, count: nil, include_schema: false, &block); end + + sig { type_parameters(:R).params(match: T.any(String, Regexp), include_schema: T::Boolean, block: T.proc.returns(T.type_parameter(:R))).returns(T.type_parameter(:R)) } + def assert_no_queries_match(match, include_schema: false, &block); end +end + +# @version >= 7.2.0 +class ActiveSupport::TestCase + # @shim: Rails includes query assertions into ActiveSupport::TestCase from rails/test_help when ActiveRecord is loaded. + include ActiveRecord::Assertions::QueryAssertions +end + class ActiveRecord::Base sig { returns(FalseClass) } def blank?; end @@ -101,3 +147,26 @@ module ActiveRecord::Core sig { params(comparison_object: T.anything).returns(T::Boolean) } def ==(comparison_object); end end + +module ActiveRecord::Persistence + sig { type_parameters(:Klass).params(klass: T::Class[T.type_parameter(:Klass)]).returns(T.type_parameter(:Klass)) } + def becomes(klass); end + + sig { type_parameters(:Klass).params(klass: T::Class[T.type_parameter(:Klass)]).returns(T.type_parameter(:Klass)) } + def becomes!(klass); end + + sig { returns(T::Boolean) } + def destroyed?; end + + sig { returns(T::Boolean) } + def new_record?; end + + sig { returns(T::Boolean) } + def persisted?; end + + sig { returns(T::Boolean) } + def previously_new_record?; end + + sig { returns(T::Boolean) } + def previously_persisted?; end +end diff --git a/sorbet/rbi/annotations/activesupport.rbi b/sorbet/rbi/annotations/activesupport.rbi index d6779e3f..2b1ac7af 100644 --- a/sorbet/rbi/annotations/activesupport.rbi +++ b/sorbet/rbi/annotations/activesupport.rbi @@ -9,6 +9,19 @@ module ActiveSupport::Testing::Declarative def test(name, &block); end end +module ActiveSupport::Concern + sig { params(base: T.untyped, block: T.nilable(T.proc.bind(T.untyped).void)).void } + def included(base = nil, &block); end + + # @version >= 6.1.0 + sig { params(base: T.untyped, block: T.nilable(T.proc.bind(T.untyped).void)).void } + def prepended(base = nil, &block); end + + # @version >= 4.2.0 + sig { params(class_methods_module_definition: T.nilable(T.proc.bind(T.untyped).void)).void } + def class_methods(&class_methods_module_definition); end +end + class ActiveSupport::EnvironmentInquirer sig { returns(T::Boolean) } def development?; end @@ -21,7 +34,38 @@ class ActiveSupport::EnvironmentInquirer # @method_missing: delegated to String through ActiveSupport::StringInquirer sig { returns(T::Boolean) } - def staging?; end + def local?; end +end + +class ActiveSupport::HashWithIndifferentAccess < Hash + K = type_member { {fixed: T.any(String, Symbol)} } + V = type_member { {fixed: T.untyped} } + Elem = type_member { {fixed: T.untyped} } + + sig { returns(ActiveSupport::HashWithIndifferentAccess) } + def with_indifferent_access; end + + sig { type_parameters(:V2, :ConflictRes).params(other_hash: T::Hash[T.untyped, T.type_parameter(:V2)], block: T.nilable( + T.proc.params( + key: String, + old_val: T.untyped, + new_val: T.type_parameter(:V2), + ).returns(T.type_parameter(:ConflictRes)) + )).returns(ActiveSupport::HashWithIndifferentAccess) } + def deep_merge(other_hash, &block); end + + sig { type_parameters(:V2, :ConflictRes).params(other_hash: T::Hash[T.untyped, T.type_parameter(:V2)], block: T.nilable( + T.proc.params( + key: String, + old_val: T.untyped, + new_val: T.type_parameter(:V2), + ).returns(T.type_parameter(:ConflictRes)) + )).returns(ActiveSupport::HashWithIndifferentAccess) } + def deep_merge!(other_hash, &block); end + + # @version >= 7.2 + sig { params(other: T.untyped).returns(T::Boolean) } + def deep_merge?(other); end end module ActiveSupport::Testing::SetupAndTeardown::ClassMethods @@ -92,6 +136,31 @@ class Hash # @version >= 6.1.0 sig { returns(T.self_type) } def compact_blank; end + + sig { returns(ActiveSupport::HashWithIndifferentAccess) } + def with_indifferent_access; end + + sig { type_parameters(:K2, :V2, :ConflictRes).params(other_hash: T::Hash[T.type_parameter(:K2), T.type_parameter(:V2)], block: T.nilable( + T.proc.params( + key: T.any(K, T.type_parameter(:K2)), + old_val: V, + new_val: T.type_parameter(:V2), + ).returns(T.type_parameter(:ConflictRes)) + )).returns(T::Hash[T.any(K, T.type_parameter(:K2)), T.any(V, T.type_parameter(:V2), T.type_parameter(:ConflictRes))]) } + def deep_merge(other_hash, &block); end + + sig { type_parameters(:K2, :V2, :ConflictRes).params(other_hash: T::Hash[T.type_parameter(:K2), T.type_parameter(:V2)], block: T.nilable( + T.proc.params( + key: T.any(K, T.type_parameter(:K2)), + old_val: V, + new_val: T.type_parameter(:V2), + ).returns(T.type_parameter(:ConflictRes)) + )).returns(T::Hash[T.any(K, T.type_parameter(:K2)), T.any(V, T.type_parameter(:V2), T.type_parameter(:ConflictRes))]) } + def deep_merge!(other_hash, &block); end + + # @version >= 7.2 + sig { params(other: T.untyped).returns(T::Boolean) } + def deep_merge?(other); end end class Array @@ -493,3 +562,9 @@ module ActiveSupport::Testing::Assertions sig { type_parameters(:TResult).params(expression: T.any(Proc, Kernel), message: Kernel, from: T.anything, to: T.anything, block: T.proc.returns(T.type_parameter(:TResult))).returns(T.type_parameter(:TResult)) } def assert_changes(expression, message = T.unsafe(nil), from: T.unsafe(nil), to: T.unsafe(nil), &block); end end + +module ActiveSupport::Testing::ErrorReporterAssertions + # @version >= 7.1.0.rc1 + sig { params(error_class: T.class_of(Exception), block: T.proc.void).returns(ActiveSupport::Testing::ErrorReporterAssertions::ErrorCollector::Report) } + def assert_error_reported(error_class = T.unsafe(nil), &block); end +end diff --git a/sorbet/rbi/annotations/i18n.rbi b/sorbet/rbi/annotations/i18n.rbi new file mode 100644 index 00000000..2de3719d --- /dev/null +++ b/sorbet/rbi/annotations/i18n.rbi @@ -0,0 +1,40 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This file was pulled from a central RBI files repository. +# Please run `bin/tapioca annotations` to update it. + +module I18n::Base + # A list set through `#available_locales=` is symbolized on the way in, but the + # fallback to `backend.available_locales` is returned as the backend built it, + # and a custom backend is free to hand back strings. + sig { returns(T::Array[T.any(String, Symbol)]) } + def available_locales; end + + sig { params(value: T.nilable(T.any(String, Symbol, T::Array[T.any(String, Symbol)]))).returns(T.nilable(T.any(String, Symbol, T::Array[T.any(String, Symbol)]))) } + def available_locales=(value); end + + sig { returns(Symbol) } + def default_locale; end + + sig { params(value: T.nilable(T.any(String, Symbol))).returns(T.nilable(T.any(String, Symbol))) } + def default_locale=(value); end + + sig { returns(String) } + def default_separator; end + + sig { params(value: String).returns(String) } + def default_separator=(value); end + + sig { returns(T::Boolean) } + def enforce_available_locales; end + + sig { params(value: T::Boolean).returns(T::Boolean) } + def enforce_available_locales=(value); end + + sig { returns(T.any(Symbol, FalseClass)) } + def locale; end + + sig { params(value: T.nilable(T.any(String, Symbol, FalseClass))).returns(T.nilable(T.any(String, Symbol, FalseClass))) } + def locale=(value); end +end diff --git a/sorbet/rbi/annotations/railties.rbi b/sorbet/rbi/annotations/railties.rbi index cec2842d..218bf0c9 100644 --- a/sorbet/rbi/annotations/railties.rbi +++ b/sorbet/rbi/annotations/railties.rbi @@ -9,6 +9,9 @@ module Rails sig { returns(Rails::Application) } def application; end + sig { returns(Rails::Autoloaders) } + def autoloaders; end + sig { returns(ActiveSupport::BacktraceCleaner) } def backtrace_cleaner; end @@ -21,7 +24,8 @@ module Rails sig { returns(ActiveSupport::ErrorReporter) } def error; end - sig { returns(ActiveSupport::Logger) } + # @version >= 7.1.0.rc1 + sig { returns(ActiveSupport::BroadcastLogger) } def logger; end sig { returns(Pathname) } @@ -45,14 +49,49 @@ class Rails::Application < ::Rails::Engine def config; end end +class Rails::Autoloaders + Elem = type_member(:out) { { fixed: Zeitwerk::Loader } } + + sig { params(block: T.proc.params(arg0: Elem).returns(T.untyped)).returns(T.untyped) } + def each(&block); end + + sig { returns(Zeitwerk::Loader) } + def main; end + + sig { returns(Zeitwerk::Loader) } + def once; end +end + class Rails::Engine < ::Rails::Railtie - sig { params(block: T.untyped).returns(ActionDispatch::Routing::RouteSet) } + class << self + # @shim: delegated to the instance using `method_missing` + sig { void } + def load_seed; end + + # @shim: delegated to the instance using `method_missing` + sig { returns(Pathname) } + def root; end + + # @shim: delegated to the instance using `method_missing` + sig { params(block: T.nilable(T.proc.bind(ActionDispatch::Routing::Mapper).void)).returns(ActionDispatch::Routing::RouteSet) } + def routes(&block); end + end + + sig { void } + def load_seed; end + + sig { params(block: T.nilable(T.proc.bind(ActionDispatch::Routing::Mapper).void)).returns(ActionDispatch::Routing::RouteSet) } def routes(&block); end end class Rails::Railtie sig { params(block: T.proc.bind(Rails::Railtie).void).void } def configure(&block); end + + class << self + sig { params(block: T.proc.bind(Rake::DSL).params(app: Rails::Application).void).void } + def rake_tasks(&block); end + end end class Rails::Railtie::Configuration diff --git a/sorbet/rbi/gems/actioncable@8.0.5.1.rbi b/sorbet/rbi/gems/actioncable@8.0.5.2.rbi similarity index 57% rename from sorbet/rbi/gems/actioncable@8.0.5.1.rbi rename to sorbet/rbi/gems/actioncable@8.0.5.2.rbi index 2e335a1d..0c39d5e9 100644 --- a/sorbet/rbi/gems/actioncable@8.0.5.1.rbi +++ b/sorbet/rbi/gems/actioncable@8.0.5.2.rbi @@ -7,38 +7,39 @@ # :markup: markdown # :include: ../README.md +# :markup: markdown # -# source://actioncable//lib/action_cable.rb#54 +# pkg:gem/actioncable#lib/action_cable.rb:54 module ActionCable private # Singleton instance of the server # - # source://actioncable//lib/action_cable.rb#77 + # pkg:gem/actioncable#lib/action_cable.rb:77 def server; end class << self - # source://actioncable//lib/action_cable/deprecator.rb#6 + # pkg:gem/actioncable#lib/action_cable/deprecator.rb:6 def deprecator; end # Returns the currently loaded version of Action Cable as a `Gem::Version`. # - # source://actioncable//lib/action_cable/gem_version.rb#7 + # pkg:gem/actioncable#lib/action_cable/gem_version.rb:7 def gem_version; end # Singleton instance of the server # - # source://actioncable//lib/action_cable.rb#77 + # pkg:gem/actioncable#lib/action_cable.rb:77 def server; end # Returns the currently loaded version of Action Cable as a `Gem::Version`. # - # source://actioncable//lib/action_cable/version.rb#9 + # pkg:gem/actioncable#lib/action_cable/version.rb:9 def version; end end end -# source://actioncable//lib/action_cable/channel/base.rb#9 +# pkg:gem/actioncable#lib/action_cable/channel/base.rb:9 module ActionCable::Channel; end # # Action Cable Channel Base @@ -141,7 +142,7 @@ module ActionCable::Channel; end # not have access to the chat room. On the client-side, the `Channel#rejected` # callback will get invoked when the server rejects the subscription request. # -# source://actioncable//lib/action_cable/channel/base.rb#109 +# pkg:gem/actioncable#lib/action_cable/channel/base.rb:109 class ActionCable::Channel::Base include ::ActiveSupport::Callbacks include ::ActionCable::Channel::Callbacks @@ -158,173 +159,155 @@ class ActionCable::Channel::Base extend ::ActionCable::Channel::Broadcasting::ClassMethods extend ::ActiveSupport::Rescuable::ClassMethods - # @return [Base] a new instance of Base - # - # source://actioncable//lib/action_cable/channel/base.rb#155 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def initialize(connection, identifier, params = T.unsafe(nil)); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def _run_subscribe_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def _run_unsubscribe_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def _subscribe_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def _unsubscribe_callbacks; end - # Returns the value of attribute connection. - # - # source://actioncable//lib/action_cable/channel/base.rb#117 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:117 def connection; end - # Returns the value of attribute identifier. - # - # source://actioncable//lib/action_cable/channel/base.rb#117 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:117 def identifier; end - # source://actioncable//lib/action_cable/channel/base.rb#118 - def logger(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:118 + def logger(*, **, &); end - # Returns the value of attribute params. - # - # source://actioncable//lib/action_cable/channel/base.rb#117 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:117 def params; end # Extract the action name from the passed data and process it via the channel. # The process will ensure that the action requested is a public method on the # channel declared by the user (so not one of the callbacks like #subscribed). # - # source://actioncable//lib/action_cable/channel/base.rb#176 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def perform_action(data); end - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#11 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:111 def periodic_timers=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:115 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:115 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:115 def rescue_handlers?; end # This method is called after subscription has been added to the connection and # confirms or rejects the subscription. # - # source://actioncable//lib/action_cable/channel/base.rb#191 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def subscribe_to_channel; end # Called by the cable connection when it's cut, so the channel has a chance to # cleanup with callbacks. This method is not intended to be called directly by # the user. Instead, override the #unsubscribed callback. # - # source://actioncable//lib/action_cable/channel/base.rb#203 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def unsubscribe_from_channel; end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/channel/base.rb#210 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def unsubscribed?; end private - # source://actioncable//lib/action_cable/channel/base.rb#298 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def action_signature(action, data); end - # source://actioncable//lib/action_cable/channel/base.rb#250 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def defer_subscription_confirmation!; end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/channel/base.rb#254 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def defer_subscription_confirmation?; end - # source://actioncable//lib/action_cable/channel/base.rb#270 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def delegate_connection_identifiers; end - # source://actioncable//lib/action_cable/channel/base.rb#286 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def dispatch_action(action, data); end - # source://actioncable//lib/action_cable/channel/base.rb#244 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def ensure_confirmation_sent; end - # source://actioncable//lib/action_cable/channel/base.rb#278 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def extract_action(data); end - # source://actioncable//lib/action_cable/channel/base.rb#309 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def parameter_filter; end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/channel/base.rb#282 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def processable_action?(action); end - # source://actioncable//lib/action_cable/channel/base.rb#262 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def reject; end - # source://actioncable//lib/action_cable/channel/base.rb#324 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def reject_subscription; end # Called once a consumer has become a subscriber of the channel. Usually the # place to set up any streams you want this channel to be sending to the # subscriber. # - # source://actioncable//lib/action_cable/channel/base.rb#218 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def subscribed; end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/channel/base.rb#258 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def subscription_confirmation_sent?; end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/channel/base.rb#266 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def subscription_rejected?; end # Transmit a hash of data to the subscriber. The hash will automatically be # wrapped in a JSON envelope with the proper channel identifier marked as the # recipient. # - # source://actioncable//lib/action_cable/channel/base.rb#231 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def transmit(data, via: T.unsafe(nil)); end - # source://actioncable//lib/action_cable/channel/base.rb#313 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def transmit_subscription_confirmation; end - # source://actioncable//lib/action_cable/channel/base.rb#329 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def transmit_subscription_rejection; end # Called once a consumer has cut its cable connection. Can be used for cleaning # up connections or marking users as offline or the like. # - # source://actioncable//lib/action_cable/channel/base.rb#224 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:150 def unsubscribed; end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def __callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def _subscribe_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def _subscribe_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def _unsubscribe_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def _unsubscribe_callbacks=(value); end # A list of method names that should be considered actions. This includes all @@ -335,79 +318,79 @@ class ActionCable::Channel::Base # #### Returns # * `Set` - A set of all methods that should be considered actions. # - # source://actioncable//lib/action_cable/channel/base.rb#128 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:128 def action_methods; end - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#11 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:111 def periodic_timers; end - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#11 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:111 def periodic_timers=(value); end - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#11 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:111 def periodic_timers?; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:115 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:115 def rescue_handlers=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:115 def rescue_handlers?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:110 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:111 def __class_attr_periodic_timers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:111 def __class_attr_periodic_timers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:115 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:115 def __class_attr_rescue_handlers=(new_value); end # action_methods are cached and there is sometimes need to refresh them. # ::clear_action_methods! allows you to do that, so next time you run # action_methods, they will be recalculated. # - # source://actioncable//lib/action_cable/channel/base.rb#144 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:144 def clear_action_methods!; end # Refresh the cached action_methods when a new action_method is added. # - # source://actioncable//lib/action_cable/channel/base.rb#149 + # pkg:gem/actioncable#lib/action_cable/channel/base.rb:149 def method_added(name); end end end -# source://actioncable//lib/action_cable/channel/broadcasting.rb#9 +# pkg:gem/actioncable#lib/action_cable/channel/broadcasting.rb:9 module ActionCable::Channel::Broadcasting extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionCable::Channel::Broadcasting::ClassMethods - # source://actioncable//lib/action_cable/channel/broadcasting.rb#45 + # pkg:gem/actioncable#lib/action_cable/channel/broadcasting.rb:45 def broadcast_to(model, message); end - # source://actioncable//lib/action_cable/channel/broadcasting.rb#41 + # pkg:gem/actioncable#lib/action_cable/channel/broadcasting.rb:41 def broadcasting_for(model); end end -# source://actioncable//lib/action_cable/channel/broadcasting.rb#12 +# pkg:gem/actioncable#lib/action_cable/channel/broadcasting.rb:12 module ActionCable::Channel::Broadcasting::ClassMethods # Broadcast a hash to a unique broadcasting for this `model` in this channel. # - # source://actioncable//lib/action_cable/channel/broadcasting.rb#14 + # pkg:gem/actioncable#lib/action_cable/channel/broadcasting.rb:14 def broadcast_to(model, message); end # Returns a unique broadcasting identifier for this `model` in this channel: @@ -417,12 +400,12 @@ module ActionCable::Channel::Broadcasting::ClassMethods # You can pass any object as a target (e.g. Active Record model), and it would # be serialized into a string under the hood. # - # source://actioncable//lib/action_cable/channel/broadcasting.rb#24 + # pkg:gem/actioncable#lib/action_cable/channel/broadcasting.rb:24 def broadcasting_for(model); end private - # source://actioncable//lib/action_cable/channel/broadcasting.rb#29 + # pkg:gem/actioncable#lib/action_cable/channel/broadcasting.rb:29 def serialize_broadcasting(object); end end @@ -455,7 +438,7 @@ end # end # end # -# source://actioncable//lib/action_cable/channel/callbacks.rb#38 +# pkg:gem/actioncable#lib/action_cable/channel/callbacks.rb:38 module ActionCable::Channel::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -476,7 +459,7 @@ module ActionCable::Channel::Callbacks end end -# source://actioncable//lib/action_cable/channel/callbacks.rb#47 +# pkg:gem/actioncable#lib/action_cable/channel/callbacks.rb:47 module ActionCable::Channel::Callbacks::ClassMethods # This callback will be triggered after the Base#subscribed method is called, # even if the subscription was rejected with the Base#reject method. @@ -486,30 +469,22 @@ module ActionCable::Channel::Callbacks::ClassMethods # # after_subscribe :my_method, unless: :subscription_rejected? # - # source://actioncable//lib/action_cable/channel/callbacks.rb#60 + # pkg:gem/actioncable#lib/action_cable/channel/callbacks.rb:60 def after_subscribe(*methods, &block); end - # source://actioncable//lib/action_cable/channel/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/channel/callbacks.rb:69 def after_unsubscribe(*methods, &block); end - # source://actioncable//lib/action_cable/channel/callbacks.rb#48 + # pkg:gem/actioncable#lib/action_cable/channel/callbacks.rb:48 def before_subscribe(*methods, &block); end - # source://actioncable//lib/action_cable/channel/callbacks.rb#65 + # pkg:gem/actioncable#lib/action_cable/channel/callbacks.rb:65 def before_unsubscribe(*methods, &block); end - # This callback will be triggered after the Base#subscribed method is called, - # even if the subscription was rejected with the Base#reject method. - # - # To trigger the callback only on successful subscriptions, use the - # Base#subscription_rejected? method: - # - # after_subscribe :my_method, unless: :subscription_rejected? - # - # source://actioncable//lib/action_cable/channel/callbacks.rb#60 + # pkg:gem/actioncable#lib/action_cable/channel/callbacks.rb:63 def on_subscribe(*methods, &block); end - # source://actioncable//lib/action_cable/channel/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/channel/callbacks.rb:72 def on_unsubscribe(*methods, &block); end end @@ -518,99 +493,81 @@ end # Stub `stream_from` to track streams for the channel. Add public aliases for # `subscription_confirmation_sent?` and `subscription_rejected?`. # -# source://actioncable//lib/action_cable/channel/test_case.rb#24 +# pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:24 module ActionCable::Channel::ChannelStub - # @return [Boolean] - # - # source://actioncable//lib/action_cable/channel/test_case.rb#25 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:25 def confirmed?; end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/channel/test_case.rb#29 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:29 def rejected?; end # Make periodic timers no-op # - # source://actioncable//lib/action_cable/channel/test_case.rb#46 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:46 def start_periodic_timers; end - # source://actioncable//lib/action_cable/channel/test_case.rb#37 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:37 def stop_all_streams; end - # Make periodic timers no-op - # - # source://actioncable//lib/action_cable/channel/test_case.rb#46 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:47 def stop_periodic_timers; end - # source://actioncable//lib/action_cable/channel/test_case.rb#33 - def stream_from(broadcasting, *_arg1); end + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:33 + def stream_from(broadcasting, *); end - # source://actioncable//lib/action_cable/channel/test_case.rb#41 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:41 def streams; end end -# source://actioncable//lib/action_cable/channel/test_case.rb#50 +# pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:50 class ActionCable::Channel::ConnectionStub - # @return [ConnectionStub] a new instance of ConnectionStub - # - # source://actioncable//lib/action_cable/channel/test_case.rb#55 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:55 def initialize(identifiers = T.unsafe(nil)); end - # source://actioncable//lib/action_cable/channel/test_case.rb#53 - def config(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:53 + def config(*, **, &); end - # source://actioncable//lib/action_cable/channel/test_case.rb#72 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:72 def connection_identifier; end - # Returns the value of attribute identifiers. - # - # source://actioncable//lib/action_cable/channel/test_case.rb#51 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:51 def identifiers; end - # Returns the value of attribute logger. - # - # source://actioncable//lib/action_cable/channel/test_case.rb#51 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:51 def logger; end - # source://actioncable//lib/action_cable/channel/test_case.rb#53 - def pubsub(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:53 + def pubsub(*, **, &); end - # Returns the value of attribute server. - # - # source://actioncable//lib/action_cable/channel/test_case.rb#51 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:51 def server; end - # Returns the value of attribute subscriptions. - # - # source://actioncable//lib/action_cable/channel/test_case.rb#51 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:51 def subscriptions; end - # Returns the value of attribute transmissions. - # - # source://actioncable//lib/action_cable/channel/test_case.rb#51 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:51 def transmissions; end - # source://actioncable//lib/action_cable/channel/test_case.rb#68 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:68 def transmit(cable_message); end private - # source://actioncable//lib/action_cable/channel/test_case.rb#77 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:77 def connection_gid(ids); end end -# source://actioncable//lib/action_cable/channel/naming.rb#7 +# pkg:gem/actioncable#lib/action_cable/channel/naming.rb:7 module ActionCable::Channel::Naming extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionCable::Channel::Naming::ClassMethods - # source://actioncable//lib/action_cable/channel/naming.rb#23 + # pkg:gem/actioncable#lib/action_cable/channel/naming.rb:23 def channel_name; end end -# source://actioncable//lib/action_cable/channel/naming.rb#10 +# pkg:gem/actioncable#lib/action_cable/channel/naming.rb:10 module ActionCable::Channel::Naming::ClassMethods # Returns the name of the channel, underscored, without the `Channel` ending. If # the channel is in a namespace, then the namespaces are represented by single @@ -620,19 +577,17 @@ module ActionCable::Channel::Naming::ClassMethods # Chats::AppearancesChannel.channel_name # => 'chats:appearances' # FooChats::BarAppearancesChannel.channel_name # => 'foo_chats:bar_appearances' # - # source://actioncable//lib/action_cable/channel/naming.rb#18 + # pkg:gem/actioncable#lib/action_cable/channel/naming.rb:18 def channel_name; end end -# source://actioncable//lib/action_cable/channel/test_case.rb#12 +# pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:12 class ActionCable::Channel::NonInferrableChannelError < ::StandardError - # @return [NonInferrableChannelError] a new instance of NonInferrableChannelError - # - # source://actioncable//lib/action_cable/channel/test_case.rb#13 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:13 def initialize(name); end end -# source://actioncable//lib/action_cable/channel/periodic_timers.rb#7 +# pkg:gem/actioncable#lib/action_cable/channel/periodic_timers.rb:7 module ActionCable::Channel::PeriodicTimers extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -642,16 +597,16 @@ module ActionCable::Channel::PeriodicTimers private - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#56 + # pkg:gem/actioncable#lib/action_cable/channel/periodic_timers.rb:56 def active_periodic_timers; end - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#66 + # pkg:gem/actioncable#lib/action_cable/channel/periodic_timers.rb:66 def start_periodic_timer(callback, every:); end - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#60 + # pkg:gem/actioncable#lib/action_cable/channel/periodic_timers.rb:60 def start_periodic_timers; end - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#72 + # pkg:gem/actioncable#lib/action_cable/channel/periodic_timers.rb:72 def stop_periodic_timers; end module GeneratedClassMethods @@ -665,7 +620,7 @@ module ActionCable::Channel::PeriodicTimers end end -# source://actioncable//lib/action_cable/channel/periodic_timers.rb#17 +# pkg:gem/actioncable#lib/action_cable/channel/periodic_timers.rb:17 module ActionCable::Channel::PeriodicTimers::ClassMethods # Periodically performs a task on the channel, like updating an online user # counter, polling a backend for new status messages, sending regular @@ -680,7 +635,7 @@ module ActionCable::Channel::PeriodicTimers::ClassMethods # transmit action: :update_count, count: current_count # end # - # source://actioncable//lib/action_cable/channel/periodic_timers.rb#31 + # pkg:gem/actioncable#lib/action_cable/channel/periodic_timers.rb:31 def periodically(callback_or_method_name = T.unsafe(nil), every:, &block); end end @@ -755,26 +710,26 @@ end # # You can stop streaming from all broadcasts by calling #stop_all_streams. # -# source://actioncable//lib/action_cable/channel/streams.rb#77 +# pkg:gem/actioncable#lib/action_cable/channel/streams.rb:77 module ActionCable::Channel::Streams extend ::ActiveSupport::Concern - # source://actioncable//lib/action_cable/channel/streams.rb#155 - def pubsub(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:155 + def pubsub(*, **, &); end # Unsubscribes all streams associated with this channel from the pubsub queue. # - # source://actioncable//lib/action_cable/channel/streams.rb#137 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:137 def stop_all_streams; end # Unsubscribes streams for the `model`. # - # source://actioncable//lib/action_cable/channel/streams.rb#132 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:132 def stop_stream_for(model); end # Unsubscribes streams from the named `broadcasting`. # - # source://actioncable//lib/action_cable/channel/streams.rb#123 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:123 def stop_stream_from(broadcasting); end # Start streaming the pubsub queue for the `model` in this channel. Optionally, @@ -785,7 +740,7 @@ module ActionCable::Channel::Streams # the callback. Defaults to `coder: nil` which does no decoding, passes raw # messages. # - # source://actioncable//lib/action_cable/channel/streams.rb#118 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:118 def stream_for(model, callback = T.unsafe(nil), coder: T.unsafe(nil), &block); end # Start streaming from the named `broadcasting` pubsub queue. Optionally, you @@ -795,13 +750,13 @@ module ActionCable::Channel::Streams # callback. Defaults to `coder: nil` which does no decoding, passes raw # messages. # - # source://actioncable//lib/action_cable/channel/streams.rb#90 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:90 def stream_from(broadcasting, callback = T.unsafe(nil), coder: T.unsafe(nil), &block); end # Calls stream_for with the given `model` if it's present to start streaming, # otherwise rejects the subscription. # - # source://actioncable//lib/action_cable/channel/streams.rb#146 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:146 def stream_or_reject_for(model); end private @@ -815,13 +770,13 @@ module ActionCable::Channel::Streams # no-op when pubsub and connection are both JSON-encoded. Then we can skip # decode+encode if we're just proxying messages. # - # source://actioncable//lib/action_cable/channel/streams.rb#191 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:191 def default_stream_handler(broadcasting, coder:); end - # source://actioncable//lib/action_cable/channel/streams.rb#212 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:212 def identity_handler; end - # source://actioncable//lib/action_cable/channel/streams.rb#196 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:196 def stream_decoder(handler = T.unsafe(nil), coder:); end # May be overridden to add instrumentation, logging, specialized error handling, @@ -829,19 +784,19 @@ module ActionCable::Channel::Streams # # TODO: Tests demonstrating this. # - # source://actioncable//lib/action_cable/channel/streams.rb#175 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:175 def stream_handler(broadcasting, user_handler, coder: T.unsafe(nil)); end - # source://actioncable//lib/action_cable/channel/streams.rb#204 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:204 def stream_transmitter(handler = T.unsafe(nil), broadcasting:); end - # source://actioncable//lib/action_cable/channel/streams.rb#157 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:157 def streams; end # Always wrap the outermost handler to invoke the user handler on the worker # pool rather than blocking the event loop. # - # source://actioncable//lib/action_cable/channel/streams.rb#163 + # pkg:gem/actioncable#lib/action_cable/channel/streams.rb:163 def worker_pool_stream_handler(broadcasting, user_handler, coder: T.unsafe(nil)); end end @@ -903,14 +858,11 @@ end # instance methods for use in the tests: # # connection -# : An ActionCable::Channel::ConnectionStub, representing the current HTTP # connection. # # subscription -# : An instance of the current channel, created when you call `subscribe`. # # transmissions -# : A list of all messages that have been transmitted into the channel. # # # ## Channel is automatically inferred @@ -948,7 +900,7 @@ end # end # end # -# source://actioncable//lib/action_cable/channel/test_case.rb#190 +# pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:190 class ActionCable::Channel::TestCase < ::ActiveSupport::TestCase include ::ActiveSupport::Testing::ConstantLookup include ::ActionCable::TestHelper @@ -956,42 +908,42 @@ class ActionCable::Channel::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionCable::Channel::TestCase::Behavior::ClassMethods - # source://actioncable//lib/action_cable/channel/test_case.rb#200 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:200 def _channel_class; end - # source://actioncable//lib/action_cable/channel/test_case.rb#200 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:200 def _channel_class=(_arg0); end - # source://actioncable//lib/action_cable/channel/test_case.rb#200 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:200 def _channel_class?; end - # source://actioncable//lib/action_cable/channel/test_case.rb#202 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:202 def connection; end - # source://actioncable//lib/action_cable/channel/test_case.rb#202 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:202 def subscription; end class << self - # source://actioncable//lib/action_cable/channel/test_case.rb#200 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:200 def _channel_class; end - # source://actioncable//lib/action_cable/channel/test_case.rb#200 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:200 def _channel_class=(value); end - # source://actioncable//lib/action_cable/channel/test_case.rb#200 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:200 def _channel_class?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:200 def __class_attr__channel_class; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:200 def __class_attr__channel_class=(new_value); end end end -# source://actioncable//lib/action_cable/channel/test_case.rb#191 +# pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:191 module ActionCable::Channel::TestCase::Behavior include ::ActionCable::TestHelper extend ::ActiveSupport::Concern @@ -1002,12 +954,12 @@ module ActionCable::Channel::TestCase::Behavior mixes_in_class_methods ::ActiveSupport::Testing::ConstantLookup::ClassMethods mixes_in_class_methods ::ActionCable::Channel::TestCase::Behavior::ClassMethods - # source://actioncable//lib/action_cable/channel/test_case.rb#282 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:282 def assert_broadcast_on(stream_or_object, *args); end # Enhance TestHelper assertions to handle non-String broadcastings # - # source://actioncable//lib/action_cable/channel/test_case.rb#278 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:278 def assert_broadcasts(stream_or_object, *args); end # Asserts that the specified stream has not been started. @@ -1017,7 +969,7 @@ module ActionCable::Channel::TestCase::Behavior # assert_has_no_stream 'messages' # end # - # source://actioncable//lib/action_cable/channel/test_case.rb#326 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:326 def assert_has_no_stream(stream); end # Asserts that the specified stream for a model has not started. @@ -1027,7 +979,7 @@ module ActionCable::Channel::TestCase::Behavior # assert_has_no_stream_for User.find(42) # end # - # source://actioncable//lib/action_cable/channel/test_case.rb#337 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:337 def assert_has_no_stream_for(object); end # Asserts that the specified stream has been started. @@ -1037,7 +989,7 @@ module ActionCable::Channel::TestCase::Behavior # assert_has_stream 'messages' # end # - # source://actioncable//lib/action_cable/channel/test_case.rb#304 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:304 def assert_has_stream(stream); end # Asserts that the specified stream for a model has started. @@ -1047,7 +999,7 @@ module ActionCable::Channel::TestCase::Behavior # assert_has_stream_for User.find(42) # end # - # source://actioncable//lib/action_cable/channel/test_case.rb#315 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:315 def assert_has_stream_for(object); end # Asserts that no streams have been started. @@ -1057,14 +1009,14 @@ module ActionCable::Channel::TestCase::Behavior # assert_no_streams # end # - # source://actioncable//lib/action_cable/channel/test_case.rb#293 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:293 def assert_no_streams; end # Perform action on a channel. # # NOTE: Must be subscribed. # - # source://actioncable//lib/action_cable/channel/test_case.rb#266 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:266 def perform(action, data = T.unsafe(nil)); end # Set up test connection with the specified identifiers: @@ -1075,31 +1027,31 @@ module ActionCable::Channel::TestCase::Behavior # # stub_connection(user: users[:john], token: 'my-secret-token') # - # source://actioncable//lib/action_cable/channel/test_case.rb#243 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:243 def stub_connection(identifiers = T.unsafe(nil)); end # Subscribe to the channel under test. Optionally pass subscription parameters # as a Hash. # - # source://actioncable//lib/action_cable/channel/test_case.rb#249 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:249 def subscribe(params = T.unsafe(nil)); end # Returns messages transmitted into channel # - # source://actioncable//lib/action_cable/channel/test_case.rb#272 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:272 def transmissions; end # Unsubscribe the subscription under test. # - # source://actioncable//lib/action_cable/channel/test_case.rb#258 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:258 def unsubscribe; end private - # source://actioncable//lib/action_cable/channel/test_case.rb#346 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:346 def broadcasting_for(stream_or_object); end - # source://actioncable//lib/action_cable/channel/test_case.rb#342 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:342 def check_subscribed!; end module GeneratedClassMethods @@ -1115,27 +1067,25 @@ module ActionCable::Channel::TestCase::Behavior end end -# source://actioncable//lib/action_cable/channel/test_case.rb#197 +# pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:197 ActionCable::Channel::TestCase::Behavior::CHANNEL_IDENTIFIER = T.let(T.unsafe(nil), String) -# source://actioncable//lib/action_cable/channel/test_case.rb#207 +# pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:207 module ActionCable::Channel::TestCase::Behavior::ClassMethods - # source://actioncable//lib/action_cable/channel/test_case.rb#219 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:219 def channel_class; end - # @raise [NonInferrableChannelError] - # - # source://actioncable//lib/action_cable/channel/test_case.rb#227 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:227 def determine_default_channel(name); end - # source://actioncable//lib/action_cable/channel/test_case.rb#208 + # pkg:gem/actioncable#lib/action_cable/channel/test_case.rb:208 def tests(channel); end end -# source://actioncable//lib/action_cable/connection/identification.rb#6 +# pkg:gem/actioncable#lib/action_cable/connection/identification.rb:6 module ActionCable::Connection; end -# source://actioncable//lib/action_cable/connection/test_case.rb#22 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:22 module ActionCable::Connection::Assertions # Asserts that the connection is rejected (via # `reject_unauthorized_connection`). @@ -1143,22 +1093,20 @@ module ActionCable::Connection::Assertions # # Asserts that connection without user_id fails # assert_reject_connection { connect params: { user_id: '' } } # - # source://actioncable//lib/action_cable/connection/test_case.rb#28 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:28 def assert_reject_connection(&block); end end -# source://actioncable//lib/action_cable/connection/authorization.rb#7 +# pkg:gem/actioncable#lib/action_cable/connection/authorization.rb:7 module ActionCable::Connection::Authorization # Closes the WebSocket connection if it is open and returns an "unauthorized" # reason. # - # @raise [UnauthorizedError] - # - # source://actioncable//lib/action_cable/connection/authorization.rb#12 + # pkg:gem/actioncable#lib/action_cable/connection/authorization.rb:12 def reject_unauthorized_connection; end end -# source://actioncable//lib/action_cable/connection/authorization.rb#8 +# pkg:gem/actioncable#lib/action_cable/connection/authorization.rb:8 class ActionCable::Connection::Authorization::UnauthorizedError < ::StandardError; end # # Action Cable Connection Base @@ -1209,7 +1157,7 @@ class ActionCable::Connection::Authorization::UnauthorizedError < ::StandardErro # # Pretty simple, eh? # -# source://actioncable//lib/action_cable/connection/base.rb#57 +# pkg:gem/actioncable#lib/action_cable/connection/base.rb:57 class ActionCable::Connection::Base include ::ActionCable::Connection::Identification include ::ActionCable::Connection::InternalChannel @@ -1223,72 +1171,66 @@ class ActionCable::Connection::Base extend ::ActionCable::Connection::Callbacks::ClassMethods extend ::ActiveSupport::Rescuable::ClassMethods - # @return [Base] a new instance of Base - # - # source://actioncable//lib/action_cable/connection/base.rb#67 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:67 def initialize(server, env, coder: T.unsafe(nil)); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def _command_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def _run_command_callbacks(&block); end - # source://actioncable//lib/action_cable/connection/base.rb#147 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:147 def beat; end # Close the WebSocket connection. # - # source://actioncable//lib/action_cable/connection/base.rb#120 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:120 def close(reason: T.unsafe(nil), reconnect: T.unsafe(nil)); end - # source://actioncable//lib/action_cable/connection/base.rb#65 - def config(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:65 + def config(*, **, &); end - # source://actioncable//lib/action_cable/connection/base.rb#101 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:101 def dispatch_websocket_message(websocket_message); end - # Returns the value of attribute env. - # - # source://actioncable//lib/action_cable/connection/base.rb#64 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:64 def env; end - # source://actioncable//lib/action_cable/connection/base.rb#65 - def event_loop(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:65 + def event_loop(*, **, &); end - # source://actioncable//lib/action_cable/connection/base.rb#109 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:109 def handle_channel_command(payload); end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:58 def identifiers; end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:58 def identifiers=(_arg0); end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:58 def identifiers?; end - # source://actioncable//lib/action_cable/connection/base.rb#168 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:168 def inspect; end - # Returns the value of attribute logger. - # - # source://actioncable//lib/action_cable/connection/base.rb#64 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:64 def logger; end - # source://actioncable//lib/action_cable/connection/base.rb#164 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:164 def on_close(reason, code); end - # source://actioncable//lib/action_cable/connection/base.rb#159 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:159 def on_error(message); end - # source://actioncable//lib/action_cable/connection/base.rb#155 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:155 def on_message(message); end - # source://actioncable//lib/action_cable/connection/base.rb#151 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:151 def on_open; end # Called by the server when a new WebSocket connection is established. This @@ -1296,180 +1238,166 @@ class ActionCable::Connection::Base # should not be called directly -- instead rely upon on the #connect (and # #disconnect) callbacks. # - # source://actioncable//lib/action_cable/connection/base.rb#85 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:85 def process; end - # Returns the value of attribute protocol. - # - # source://actioncable//lib/action_cable/connection/base.rb#64 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:64 def protocol; end - # source://actioncable//lib/action_cable/connection/base.rb#65 - def pubsub(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:65 + def pubsub(*, **, &); end # Decodes WebSocket messages and dispatches them to subscribed channels. # WebSocket message transfer encoding is always JSON. # - # source://actioncable//lib/action_cable/connection/base.rb#97 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:97 def receive(websocket_message); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:62 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:62 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:62 def rescue_handlers?; end # Invoke a method on the connection asynchronously through the pool of thread # workers. # - # source://actioncable//lib/action_cable/connection/base.rb#131 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:131 def send_async(method, *arguments); end - # Returns the value of attribute server. - # - # source://actioncable//lib/action_cable/connection/base.rb#64 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:64 def server; end # Return a basic hash of statistics for the connection keyed with `identifier`, # `started_at`, `subscriptions`, and `request_id`. This can be returned by a # health check against the connection. # - # source://actioncable//lib/action_cable/connection/base.rb#138 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:138 def statistics; end - # Returns the value of attribute subscriptions. - # - # source://actioncable//lib/action_cable/connection/base.rb#64 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:64 def subscriptions; end - # source://actioncable//lib/action_cable/connection/base.rb#115 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:115 def transmit(cable_message); end - # Returns the value of attribute worker_pool. - # - # source://actioncable//lib/action_cable/connection/base.rb#64 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:64 def worker_pool; end private - # @return [Boolean] - # - # source://actioncable//lib/action_cable/connection/base.rb#228 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:228 def allow_request_origin?; end # The cookies of the request that initiated the WebSocket connection. Useful for # performing authorization checks. # - # source://actioncable//lib/action_cable/connection/base.rb#187 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:187 def cookies; end - # source://actioncable//lib/action_cable/connection/base.rb#195 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:195 def decode(websocket_message); end - # source://actioncable//lib/action_cable/connection/base.rb#191 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:191 def encode(cable_message); end - # source://actioncable//lib/action_cable/connection/base.rb#271 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:271 def finished_request_message; end - # source://actioncable//lib/action_cable/connection/base.rb#211 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:211 def handle_close; end - # source://actioncable//lib/action_cable/connection/base.rb#199 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:199 def handle_open; end - # source://actioncable//lib/action_cable/connection/base.rb#279 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:279 def invalid_request_message; end - # Returns the value of attribute message_buffer. - # - # source://actioncable//lib/action_cable/connection/base.rb#174 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:174 def message_buffer; end # Tags are declared in the server but computed in the connection. This allows us # per-connection tailored tags. # - # source://actioncable//lib/action_cable/connection/base.rb#257 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:257 def new_tagged_logger; end # The request that initiated the WebSocket connection is available here. This # gives access to the environment, cookies, etc. # - # source://actioncable//lib/action_cable/connection/base.rb#178 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:178 def request; end - # source://actioncable//lib/action_cable/connection/base.rb#247 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:247 def respond_to_invalid_request; end - # source://actioncable//lib/action_cable/connection/base.rb#242 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:242 def respond_to_successful_request; end - # source://actioncable//lib/action_cable/connection/base.rb#222 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:222 def send_welcome_message; end - # source://actioncable//lib/action_cable/connection/base.rb#262 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:262 def started_request_message; end - # source://actioncable//lib/action_cable/connection/base.rb#285 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:285 def successful_request_message; end - # Returns the value of attribute websocket. - # - # source://actioncable//lib/action_cable/connection/base.rb#173 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:173 def websocket; end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def __callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def _command_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def _command_callbacks=(value); end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:58 def identifiers; end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:58 def identifiers=(value); end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:58 def identifiers?; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:62 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:62 def rescue_handlers=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:62 def rescue_handlers?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:61 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:58 def __class_attr_identifiers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:58 def __class_attr_identifiers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:62 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/connection/base.rb:62 def __class_attr_rescue_handlers=(new_value); end end end @@ -1499,7 +1427,7 @@ end # end # end # -# source://actioncable//lib/action_cable/connection/callbacks.rb#34 +# pkg:gem/actioncable#lib/action_cable/connection/callbacks.rb:34 module ActionCable::Connection::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1520,105 +1448,100 @@ module ActionCable::Connection::Callbacks end end -# source://actioncable//lib/action_cable/connection/callbacks.rb#42 +# pkg:gem/actioncable#lib/action_cable/connection/callbacks.rb:42 module ActionCable::Connection::Callbacks::ClassMethods - # source://actioncable//lib/action_cable/connection/callbacks.rb#47 + # pkg:gem/actioncable#lib/action_cable/connection/callbacks.rb:47 def after_command(*methods, &block); end - # source://actioncable//lib/action_cable/connection/callbacks.rb#51 + # pkg:gem/actioncable#lib/action_cable/connection/callbacks.rb:51 def around_command(*methods, &block); end - # source://actioncable//lib/action_cable/connection/callbacks.rb#43 + # pkg:gem/actioncable#lib/action_cable/connection/callbacks.rb:43 def before_command(*methods, &block); end end -# source://actioncable//lib/action_cable/connection/client_socket.rb#13 +# -- +# This class is heavily based on faye-websocket-ruby +# +# Copyright (c) 2010-2015 James Coglan +# +# pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:13 class ActionCable::Connection::ClientSocket - # @return [ClientSocket] a new instance of ClientSocket - # - # source://actioncable//lib/action_cable/connection/client_socket.rb#36 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:36 def initialize(env, event_target, event_loop, protocols); end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/connection/client_socket.rb#114 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:114 def alive?; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#110 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:110 def client_gone; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#92 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:92 def close(code = T.unsafe(nil), reason = T.unsafe(nil)); end - # Returns the value of attribute env. - # - # source://actioncable//lib/action_cable/connection/client_socket.rb#34 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:34 def env; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#106 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:106 def parse(data); end - # source://actioncable//lib/action_cable/connection/client_socket.rb#118 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:118 def protocol; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#71 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:71 def rack_response; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#59 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:59 def start_driver; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#82 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:82 def transmit(message); end - # Returns the value of attribute url. - # - # source://actioncable//lib/action_cable/connection/client_socket.rb#34 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:34 def url; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#76 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:76 def write(data); end private - # source://actioncable//lib/action_cable/connection/client_socket.rb#142 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:142 def begin_close(reason, code); end - # source://actioncable//lib/action_cable/connection/client_socket.rb#136 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:136 def emit_error(message); end - # source://actioncable//lib/action_cable/connection/client_socket.rb#151 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:151 def finalize_close; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#123 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:123 def open; end - # source://actioncable//lib/action_cable/connection/client_socket.rb#130 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:130 def receive_message(data); end class << self - # source://actioncable//lib/action_cable/connection/client_socket.rb#14 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:14 def determine_url(env); end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/connection/client_socket.rb#19 + # pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:19 def secure_request?(env); end end end -# source://actioncable//lib/action_cable/connection/client_socket.rb#32 +# pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:32 ActionCable::Connection::ClientSocket::CLOSED = T.let(T.unsafe(nil), Integer) -# source://actioncable//lib/action_cable/connection/client_socket.rb#31 +# pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:31 ActionCable::Connection::ClientSocket::CLOSING = T.let(T.unsafe(nil), Integer) -# source://actioncable//lib/action_cable/connection/client_socket.rb#29 +# pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:29 ActionCable::Connection::ClientSocket::CONNECTING = T.let(T.unsafe(nil), Integer) -# source://actioncable//lib/action_cable/connection/client_socket.rb#30 +# pkg:gem/actioncable#lib/action_cable/connection/client_socket.rb:30 ActionCable::Connection::ClientSocket::OPEN = T.let(T.unsafe(nil), Integer) -# source://actioncable//lib/action_cable/connection/identification.rb#7 +# pkg:gem/actioncable#lib/action_cable/connection/identification.rb:7 module ActionCable::Connection::Identification extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1629,12 +1552,12 @@ module ActionCable::Connection::Identification # Return a single connection identifier that combines the value of all the # registered identifiers into a single gid. # - # source://actioncable//lib/action_cable/connection/identification.rb#29 + # pkg:gem/actioncable#lib/action_cable/connection/identification.rb:29 def connection_identifier; end private - # source://actioncable//lib/action_cable/connection/identification.rb#38 + # pkg:gem/actioncable#lib/action_cable/connection/identification.rb:38 def connection_gid(ids); end module GeneratedClassMethods @@ -1650,7 +1573,7 @@ module ActionCable::Connection::Identification end end -# source://actioncable//lib/action_cable/connection/identification.rb#14 +# pkg:gem/actioncable#lib/action_cable/connection/identification.rb:14 module ActionCable::Connection::Identification::ClassMethods # Mark a key as being a connection identifier index that can then be used to # find the specific connection again later. Common identifiers are current_user @@ -1659,7 +1582,7 @@ module ActionCable::Connection::Identification::ClassMethods # Note that anything marked as an identifier will automatically create a # delegate by the same name on any channel instances created off the connection. # - # source://actioncable//lib/action_cable/connection/identification.rb#21 + # pkg:gem/actioncable#lib/action_cable/connection/identification.rb:21 def identified_by(*identifiers); end end @@ -1668,149 +1591,138 @@ end # Makes it possible for the RemoteConnection to disconnect a specific # connection. # -# source://actioncable//lib/action_cable/connection/internal_channel.rb#11 +# pkg:gem/actioncable#lib/action_cable/connection/internal_channel.rb:11 module ActionCable::Connection::InternalChannel extend ::ActiveSupport::Concern private - # source://actioncable//lib/action_cable/connection/internal_channel.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/internal_channel.rb:15 def internal_channel; end - # source://actioncable//lib/action_cable/connection/internal_channel.rb#36 + # pkg:gem/actioncable#lib/action_cable/connection/internal_channel.rb:36 def process_internal_message(message); end - # source://actioncable//lib/action_cable/connection/internal_channel.rb#19 + # pkg:gem/actioncable#lib/action_cable/connection/internal_channel.rb:19 def subscribe_to_internal_channel; end - # source://actioncable//lib/action_cable/connection/internal_channel.rb#30 + # pkg:gem/actioncable#lib/action_cable/connection/internal_channel.rb:30 def unsubscribe_from_internal_channel; end end # Allows us to buffer messages received from the WebSocket before the Connection # has been fully initialized, and is ready to receive them. # -# source://actioncable//lib/action_cable/connection/message_buffer.rb#9 +# pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:9 class ActionCable::Connection::MessageBuffer - # @return [MessageBuffer] a new instance of MessageBuffer - # - # source://actioncable//lib/action_cable/connection/message_buffer.rb#10 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:10 def initialize(connection); end - # source://actioncable//lib/action_cable/connection/message_buffer.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:15 def append(message); end - # source://actioncable//lib/action_cable/connection/message_buffer.rb#31 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:31 def process!; end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/connection/message_buffer.rb#27 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:27 def processing?; end private - # source://actioncable//lib/action_cable/connection/message_buffer.rb#48 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:48 def buffer(message); end - # Returns the value of attribute buffered_messages. - # - # source://actioncable//lib/action_cable/connection/message_buffer.rb#38 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:38 def buffered_messages; end - # Returns the value of attribute connection. - # - # source://actioncable//lib/action_cable/connection/message_buffer.rb#37 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:37 def connection; end - # source://actioncable//lib/action_cable/connection/message_buffer.rb#44 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:44 def receive(message); end - # source://actioncable//lib/action_cable/connection/message_buffer.rb#52 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:52 def receive_buffered_messages; end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/connection/message_buffer.rb#40 + # pkg:gem/actioncable#lib/action_cable/connection/message_buffer.rb:40 def valid?(message); end end -# source://actioncable//lib/action_cable/connection/test_case.rb#14 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:14 class ActionCable::Connection::NonInferrableConnectionError < ::StandardError - # @return [NonInferrableConnectionError] a new instance of NonInferrableConnectionError - # - # source://actioncable//lib/action_cable/connection/test_case.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:15 def initialize(name); end end -# source://actioncable//lib/action_cable/connection/stream.rb#11 +# -- +# This class is heavily based on faye-websocket-ruby +# +# Copyright (c) 2010-2015 James Coglan +# +# pkg:gem/actioncable#lib/action_cable/connection/stream.rb:11 class ActionCable::Connection::Stream - # @return [Stream] a new instance of Stream - # - # source://actioncable//lib/action_cable/connection/stream.rb#12 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:12 def initialize(event_loop, socket); end - # source://actioncable//lib/action_cable/connection/stream.rb#28 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:28 def close; end - # source://actioncable//lib/action_cable/connection/stream.rb#24 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:24 def each(&callback); end - # source://actioncable//lib/action_cable/connection/stream.rb#72 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:72 def flush_write_buffer; end - # source://actioncable//lib/action_cable/connection/stream.rb#98 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:98 def hijack_rack_socket; end - # source://actioncable//lib/action_cable/connection/stream.rb#94 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:94 def receive(data); end - # source://actioncable//lib/action_cable/connection/stream.rb#33 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:33 def shutdown; end - # source://actioncable//lib/action_cable/connection/stream.rb#37 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:37 def write(data); end private - # source://actioncable//lib/action_cable/connection/stream.rb#110 + # pkg:gem/actioncable#lib/action_cable/connection/stream.rb:110 def clean_rack_hijack; end end -# source://actioncable//lib/action_cable/connection/stream_event_loop.rb#9 +# pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:9 class ActionCable::Connection::StreamEventLoop - # @return [StreamEventLoop] a new instance of StreamEventLoop - # - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#10 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:10 def initialize; end - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#30 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:30 def attach(io, stream); end - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#38 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:38 def detach(io, stream); end - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#23 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:23 def post(task = T.unsafe(nil), &block); end - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#56 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:56 def stop; end - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#19 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:19 def timer(interval, &block); end - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#47 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:47 def writes_pending(io); end private - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#86 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:86 def run; end - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#62 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:62 def spawn; end - # source://actioncable//lib/action_cable/connection/stream_event_loop.rb#82 + # pkg:gem/actioncable#lib/action_cable/connection/stream_event_loop.rb:82 def wakeup; end end @@ -1820,50 +1732,44 @@ end # connection. Responsible for routing incoming commands that arrive on the # connection to the proper channel. # -# source://actioncable//lib/action_cable/connection/subscriptions.rb#14 +# pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:14 class ActionCable::Connection::Subscriptions - # @return [Subscriptions] a new instance of Subscriptions - # - # source://actioncable//lib/action_cable/connection/subscriptions.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:15 def initialize(connection); end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#33 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:33 def add(data); end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#20 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:20 def execute_command(data); end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#64 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:64 def identifiers; end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#74 - def logger(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:74 + def logger(*, **, &); end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#60 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:60 def perform_action(data); end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#50 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:50 def remove(data); end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#55 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:55 def remove_subscription(subscription); end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#68 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:68 def unsubscribe_from_all; end private - # Returns the value of attribute connection. - # - # source://actioncable//lib/action_cable/connection/subscriptions.rb#73 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:73 def connection; end - # source://actioncable//lib/action_cable/connection/subscriptions.rb#76 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:76 def find(data); end - # Returns the value of attribute subscriptions. - # - # source://actioncable//lib/action_cable/connection/subscriptions.rb#73 + # pkg:gem/actioncable#lib/action_cable/connection/subscriptions.rb:73 def subscriptions; end end @@ -1874,45 +1780,41 @@ end # as that logger will reset the tags between requests. The connection is # long-lived, so it needs its own set of tags for its independent duration. # -# source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#13 +# pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:13 class ActionCable::Connection::TaggedLoggerProxy - # @return [TaggedLoggerProxy] a new instance of TaggedLoggerProxy - # - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#16 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:16 def initialize(logger, tags:); end - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#21 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:21 def add_tags(*tags); end - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#36 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:36 def debug(message = T.unsafe(nil), &block); end - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#36 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:36 def error(message = T.unsafe(nil), &block); end - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#36 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:36 def fatal(message = T.unsafe(nil), &block); end - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#36 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:36 def info(message = T.unsafe(nil), &block); end - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#26 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:26 def tag(logger, &block); end - # Returns the value of attribute tags. - # - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#14 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:14 def tags; end - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#36 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:36 def unknown(message = T.unsafe(nil), &block); end - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#36 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:36 def warn(message = T.unsafe(nil), &block); end private - # source://actioncable//lib/action_cable/connection/tagged_logger_proxy.rb#42 + # pkg:gem/actioncable#lib/action_cable/connection/tagged_logger_proxy.rb:42 def log(type, message, &block); end end @@ -1985,7 +1887,7 @@ end # tests ApplicationCable::Connection # end # -# source://actioncable//lib/action_cable/connection/test_case.rb#138 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:138 class ActionCable::Connection::TestCase < ::ActiveSupport::TestCase include ::ActiveSupport::Testing::ConstantLookup include ::ActionCable::Connection::Assertions @@ -1993,39 +1895,39 @@ class ActionCable::Connection::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionCable::Connection::TestCase::Behavior::ClassMethods - # source://actioncable//lib/action_cable/connection/test_case.rb#148 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:148 def _connection_class; end - # source://actioncable//lib/action_cable/connection/test_case.rb#148 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:148 def _connection_class=(_arg0); end - # source://actioncable//lib/action_cable/connection/test_case.rb#148 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:148 def _connection_class?; end - # source://actioncable//lib/action_cable/connection/test_case.rb#150 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:150 def connection; end class << self - # source://actioncable//lib/action_cable/connection/test_case.rb#148 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:148 def _connection_class; end - # source://actioncable//lib/action_cable/connection/test_case.rb#148 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:148 def _connection_class=(value); end - # source://actioncable//lib/action_cable/connection/test_case.rb#148 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:148 def _connection_class?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:148 def __class_attr__connection_class; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:148 def __class_attr__connection_class=(new_value); end end end -# source://actioncable//lib/action_cable/connection/test_case.rb#139 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:139 module ActionCable::Connection::TestCase::Behavior include ::ActionCable::Connection::Assertions extend ::ActiveSupport::Concern @@ -2045,20 +1947,20 @@ module ActionCable::Connection::TestCase::Behavior # * session – session data (Hash) # * env – additional Rack env configuration (Hash) # - # source://actioncable//lib/action_cable/connection/test_case.rb#192 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:192 def connect(path = T.unsafe(nil), **request_params); end - # source://actioncable//lib/action_cable/connection/test_case.rb#212 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:212 def cookies; end # Exert #disconnect on the connection under test. # - # source://actioncable//lib/action_cable/connection/test_case.rb#205 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:205 def disconnect; end private - # source://actioncable//lib/action_cable/connection/test_case.rb#217 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:217 def build_test_request(path, params: T.unsafe(nil), headers: T.unsafe(nil), session: T.unsafe(nil), env: T.unsafe(nil)); end module GeneratedClassMethods @@ -2074,36 +1976,30 @@ module ActionCable::Connection::TestCase::Behavior end end -# source://actioncable//lib/action_cable/connection/test_case.rb#155 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:155 module ActionCable::Connection::TestCase::Behavior::ClassMethods - # source://actioncable//lib/action_cable/connection/test_case.rb#167 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:167 def connection_class; end - # @raise [NonInferrableConnectionError] - # - # source://actioncable//lib/action_cable/connection/test_case.rb#175 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:175 def determine_default_connection(name); end - # source://actioncable//lib/action_cable/connection/test_case.rb#156 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:156 def tests(connection); end end -# source://actioncable//lib/action_cable/connection/test_case.rb#142 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:142 ActionCable::Connection::TestCase::Behavior::DEFAULT_PATH = T.let(T.unsafe(nil), String) -# source://actioncable//lib/action_cable/connection/test_case.rb#57 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:57 module ActionCable::Connection::TestConnection - # source://actioncable//lib/action_cable/connection/test_case.rb#60 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:60 def initialize(request); end - # Returns the value of attribute logger. - # - # source://actioncable//lib/action_cable/connection/test_case.rb#58 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:58 def logger; end - # Returns the value of attribute request. - # - # source://actioncable//lib/action_cable/connection/test_case.rb#58 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:58 def request; end end @@ -2111,45 +2007,33 @@ end # but we want to make sure that users test against the correct types of cookies # (i.e. signed or encrypted or plain) # -# source://actioncable//lib/action_cable/connection/test_case.rb#43 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:43 class ActionCable::Connection::TestCookieJar < ::ActionCable::Connection::TestCookies - # source://actioncable//lib/action_cable/connection/test_case.rb#48 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:48 def encrypted; end - # source://actioncable//lib/action_cable/connection/test_case.rb#44 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:44 def signed; end end -# source://actioncable//lib/action_cable/connection/test_case.rb#33 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:33 class ActionCable::Connection::TestCookies < ::ActiveSupport::HashWithIndifferentAccess - # source://actioncable//lib/action_cable/connection/test_case.rb#34 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:34 def []=(name, options); end end -# source://actioncable//lib/action_cable/connection/test_case.rb#53 +# pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:53 class ActionCable::Connection::TestRequest < ::ActionDispatch::TestRequest - # Returns the value of attribute cookie_jar. - # - # source://actioncable//lib/action_cable/connection/test_case.rb#54 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:54 def cookie_jar; end - # Sets the attribute cookie_jar - # - # @param value the value to set the attribute cookie_jar to. - # - # source://actioncable//lib/action_cable/connection/test_case.rb#54 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:54 def cookie_jar=(_arg0); end - # Returns the value of attribute session. - # - # source://actioncable//lib/action_cable/connection/test_case.rb#54 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:54 def session; end - # Sets the attribute session - # - # @param value the value to set the attribute session to. - # - # source://actioncable//lib/action_cable/connection/test_case.rb#54 + # pkg:gem/actioncable#lib/action_cable/connection/test_case.rb:54 def session=(_arg0); end end @@ -2157,60 +2041,42 @@ end # # Wrap the real socket to minimize the externally-presented API # -# source://actioncable//lib/action_cable/connection/web_socket.rb#12 +# pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:12 class ActionCable::Connection::WebSocket - # @return [WebSocket] a new instance of WebSocket - # - # source://actioncable//lib/action_cable/connection/web_socket.rb#13 + # pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:13 def initialize(env, event_target, event_loop, protocols: T.unsafe(nil)); end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/connection/web_socket.rb#21 + # pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:21 def alive?; end - # source://actioncable//lib/action_cable/connection/web_socket.rb#29 - def close(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:29 + def close(*, **, &); end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/connection/web_socket.rb#17 + # pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:17 def possible?; end - # source://actioncable//lib/action_cable/connection/web_socket.rb#33 + # pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:33 def protocol; end - # source://actioncable//lib/action_cable/connection/web_socket.rb#37 + # pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:37 def rack_response; end - # source://actioncable//lib/action_cable/connection/web_socket.rb#25 - def transmit(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:25 + def transmit(*, **, &); end private - # Returns the value of attribute websocket. - # - # source://actioncable//lib/action_cable/connection/web_socket.rb#42 + # pkg:gem/actioncable#lib/action_cable/connection/web_socket.rb:42 def websocket; end end -# source://actioncable//lib/action_cable/engine.rb#10 -class ActionCable::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end +# pkg:gem/actioncable#lib/action_cable/engine.rb:10 +class ActionCable::Engine < ::Rails::Engine; end -# source://actioncable//lib/action_cable/helpers/action_cable_helper.rb#6 +# pkg:gem/actioncable#lib/action_cable/helpers/action_cable_helper.rb:6 module ActionCable::Helpers; end -# source://actioncable//lib/action_cable/helpers/action_cable_helper.rb#7 +# pkg:gem/actioncable#lib/action_cable/helpers/action_cable_helper.rb:7 module ActionCable::Helpers::ActionCableHelper # Returns an "action-cable-url" meta tag with the value of the URL specified in # your configuration. Ensure this is above your JavaScript tag: @@ -2240,11 +2106,11 @@ module ActionCable::Helpers::ActionCableHelper # <%= action_cable_meta_tag %> would render: # => # - # source://actioncable//lib/action_cable/helpers/action_cable_helper.rb#36 + # pkg:gem/actioncable#lib/action_cable/helpers/action_cable_helper.rb:36 def action_cable_meta_tag; end end -# source://actioncable//lib/action_cable.rb#58 +# pkg:gem/actioncable#lib/action_cable.rb:58 ActionCable::INTERNAL = T.let(T.unsafe(nil), Hash) # # Action Cable Remote Connections @@ -2271,19 +2137,15 @@ ActionCable::INTERNAL = T.let(T.unsafe(nil), Hash) # # ActionCable.server.remote_connections.where(current_user: User.find(1)).disconnect(reconnect: false) # -# source://actioncable//lib/action_cable/remote_connections.rb#31 +# pkg:gem/actioncable#lib/action_cable/remote_connections.rb:31 class ActionCable::RemoteConnections - # @return [RemoteConnections] a new instance of RemoteConnections - # - # source://actioncable//lib/action_cable/remote_connections.rb#34 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:34 def initialize(server); end - # Returns the value of attribute server. - # - # source://actioncable//lib/action_cable/remote_connections.rb#32 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:32 def server; end - # source://actioncable//lib/action_cable/remote_connections.rb#38 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:38 def where(identifier); end end @@ -2293,74 +2155,66 @@ end # `ActionCable.server.remote_connections.where(*)`. Exists solely for the # purpose of calling #disconnect on that connection. # -# source://actioncable//lib/action_cable/remote_connections.rb#47 +# pkg:gem/actioncable#lib/action_cable/remote_connections.rb:47 class ActionCable::RemoteConnections::RemoteConnection include ::ActionCable::Connection::InternalChannel include ::ActionCable::Connection::Identification extend ::ActionCable::Connection::Identification::ClassMethods - # @return [RemoteConnection] a new instance of RemoteConnection - # - # source://actioncable//lib/action_cable/remote_connections.rb#52 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:52 def initialize(server, ids); end # Uses the internal channel to disconnect the connection. # - # source://actioncable//lib/action_cable/remote_connections.rb#58 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:58 def disconnect(reconnect: T.unsafe(nil)); end - # source://actioncable//lib/action_cable/remote_connections.rb#63 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:50 def identifiers; end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:50 def identifiers=(_arg0); end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:50 def identifiers?; end protected - # Returns the value of attribute server. - # - # source://actioncable//lib/action_cable/remote_connections.rb#68 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:68 def server; end private - # @raise [InvalidIdentifiersError] - # - # source://actioncable//lib/action_cable/remote_connections.rb#71 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:71 def set_identifier_instance_vars(ids); end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/remote_connections.rb#76 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:76 def valid_identifiers?(ids); end class << self - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:50 def identifiers; end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:50 def identifiers=(value); end - # source://actioncable//lib/action_cable/connection/identification.rb#11 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:50 def identifiers?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:50 def __class_attr_identifiers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/remote_connections.rb:50 def __class_attr_identifiers=(new_value); end end end -# source://actioncable//lib/action_cable/remote_connections.rb#48 +# pkg:gem/actioncable#lib/action_cable/remote_connections.rb:48 class ActionCable::RemoteConnections::RemoteConnection::InvalidIdentifiersError < ::StandardError; end -# source://actioncable//lib/action_cable/server/base.rb#8 +# pkg:gem/actioncable#lib/action_cable/server/base.rb:8 module ActionCable::Server; end # # Action Cable Server Base @@ -2373,60 +2227,54 @@ module ActionCable::Server; end # Also, this is the server instance used for broadcasting. See Broadcasting for # more information. # -# source://actioncable//lib/action_cable/server/base.rb#18 +# pkg:gem/actioncable#lib/action_cable/server/base.rb:18 class ActionCable::Server::Base include ::ActionCable::Server::Broadcasting include ::ActionCable::Server::Connections - # @return [Base] a new instance of Base - # - # source://actioncable//lib/action_cable/server/base.rb#31 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:31 def initialize(config: T.unsafe(nil)); end # Called by Rack to set up the server. # - # source://actioncable//lib/action_cable/server/base.rb#38 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:38 def call(env); end - # Returns the value of attribute config. - # - # source://actioncable//lib/action_cable/server/base.rb#24 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:24 def config; end # All of the identifiers applied to the connection class associated with this # server. # - # source://actioncable//lib/action_cable/server/base.rb#102 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:102 def connection_identifiers; end # Disconnect all the connections identified by `identifiers` on this server or # any others via RemoteConnections. # - # source://actioncable//lib/action_cable/server/base.rb#46 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:46 def disconnect(identifiers); end - # source://actioncable//lib/action_cable/server/base.rb#71 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:71 def event_loop; end - # source://actioncable//lib/action_cable/server/base.rb#27 - def logger(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/server/base.rb:27 + def logger(*, **, &); end - # Returns the value of attribute mutex. - # - # source://actioncable//lib/action_cable/server/base.rb#29 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:29 def mutex; end # Adapter used for all streams/broadcasting. # - # source://actioncable//lib/action_cable/server/base.rb#96 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:96 def pubsub; end # Gateway to RemoteConnections. See that class for details. # - # source://actioncable//lib/action_cable/server/base.rb#67 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:67 def remote_connections; end - # source://actioncable//lib/action_cable/server/base.rb#50 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:50 def restart; end # The worker pool is where we run connection callbacks and channel actions. We @@ -2446,17 +2294,17 @@ class ActionCable::Server::Base # connections. Use a smaller worker pool or a larger database connection pool # instead. # - # source://actioncable//lib/action_cable/server/base.rb#91 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:91 def worker_pool; end class << self - # source://actioncable//lib/action_cable/server/base.rb#22 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:22 def config; end - # source://actioncable//lib/action_cable/server/base.rb#22 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:22 def config=(val); end - # source://actioncable//lib/action_cable/server/base.rb#26 + # pkg:gem/actioncable#lib/action_cable/server/base.rb:26 def logger; end end end @@ -2483,45 +2331,37 @@ end # received: (data) -> # new Notification data['title'], body: data['body'] # -# source://actioncable//lib/action_cable/server/broadcasting.rb#28 +# pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:28 module ActionCable::Server::Broadcasting # Broadcast a hash directly to a named `broadcasting`. This will later be JSON # encoded. # - # source://actioncable//lib/action_cable/server/broadcasting.rb#31 + # pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:31 def broadcast(broadcasting, message, coder: T.unsafe(nil)); end # Returns a broadcaster for a named `broadcasting` that can be reused. Useful # when you have an object that may need multiple spots to transmit to a specific # broadcasting over and over. # - # source://actioncable//lib/action_cable/server/broadcasting.rb#38 + # pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:38 def broadcaster_for(broadcasting, coder: T.unsafe(nil)); end end -# source://actioncable//lib/action_cable/server/broadcasting.rb#43 +# pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:43 class ActionCable::Server::Broadcasting::Broadcaster - # @return [Broadcaster] a new instance of Broadcaster - # - # source://actioncable//lib/action_cable/server/broadcasting.rb#46 + # pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:46 def initialize(server, broadcasting, coder:); end - # source://actioncable//lib/action_cable/server/broadcasting.rb#50 + # pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:50 def broadcast(message); end - # Returns the value of attribute broadcasting. - # - # source://actioncable//lib/action_cable/server/broadcasting.rb#44 + # pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:44 def broadcasting; end - # Returns the value of attribute coder. - # - # source://actioncable//lib/action_cable/server/broadcasting.rb#44 + # pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:44 def coder; end - # Returns the value of attribute server. - # - # source://actioncable//lib/action_cable/server/broadcasting.rb#44 + # pkg:gem/actioncable#lib/action_cable/server/broadcasting.rb:44 def server; end end @@ -2531,186 +2371,100 @@ end # ActionCable.server.config, which allows you to tweak Action Cable # configuration in a Rails config initializer. # -# source://actioncable//lib/action_cable/server/configuration.rb#14 +# pkg:gem/actioncable#lib/action_cable/server/configuration.rb:14 class ActionCable::Server::Configuration - # @return [Configuration] a new instance of Configuration - # - # source://actioncable//lib/action_cable/server/configuration.rb#22 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:22 def initialize; end - # Returns the value of attribute allow_same_origin_as_host. - # - # source://actioncable//lib/action_cable/server/configuration.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:17 def allow_same_origin_as_host; end - # Sets the attribute allow_same_origin_as_host - # - # @param value the value to set the attribute allow_same_origin_as_host to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:17 def allow_same_origin_as_host=(_arg0); end - # Returns the value of attribute allowed_request_origins. - # - # source://actioncable//lib/action_cable/server/configuration.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:17 def allowed_request_origins; end - # Sets the attribute allowed_request_origins - # - # @param value the value to set the attribute allowed_request_origins to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:17 def allowed_request_origins=(_arg0); end - # Returns the value of attribute cable. - # - # source://actioncable//lib/action_cable/server/configuration.rb#18 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:18 def cable; end - # Sets the attribute cable - # - # @param value the value to set the attribute cable to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#18 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:18 def cable=(_arg0); end - # Returns the value of attribute connection_class. - # - # source://actioncable//lib/action_cable/server/configuration.rb#16 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:16 def connection_class; end - # Sets the attribute connection_class - # - # @param value the value to set the attribute connection_class to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#16 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:16 def connection_class=(_arg0); end - # Returns the value of attribute disable_request_forgery_protection. - # - # source://actioncable//lib/action_cable/server/configuration.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:17 def disable_request_forgery_protection; end - # Sets the attribute disable_request_forgery_protection - # - # @param value the value to set the attribute disable_request_forgery_protection to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:17 def disable_request_forgery_protection=(_arg0); end - # Returns the value of attribute filter_parameters. - # - # source://actioncable//lib/action_cable/server/configuration.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:17 def filter_parameters; end - # Sets the attribute filter_parameters - # - # @param value the value to set the attribute filter_parameters to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:17 def filter_parameters=(_arg0); end - # Returns the value of attribute health_check_application. - # - # source://actioncable//lib/action_cable/server/configuration.rb#20 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:20 def health_check_application; end - # Sets the attribute health_check_application - # - # @param value the value to set the attribute health_check_application to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#20 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:20 def health_check_application=(_arg0); end - # Returns the value of attribute health_check_path. - # - # source://actioncable//lib/action_cable/server/configuration.rb#20 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:20 def health_check_path; end - # Sets the attribute health_check_path - # - # @param value the value to set the attribute health_check_path to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#20 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:20 def health_check_path=(_arg0); end - # Returns the value of attribute log_tags. - # - # source://actioncable//lib/action_cable/server/configuration.rb#15 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:15 def log_tags; end - # Sets the attribute log_tags - # - # @param value the value to set the attribute log_tags to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#15 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:15 def log_tags=(_arg0); end - # Returns the value of attribute logger. - # - # source://actioncable//lib/action_cable/server/configuration.rb#15 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:15 def logger; end - # Sets the attribute logger - # - # @param value the value to set the attribute logger to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#15 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:15 def logger=(_arg0); end - # Returns the value of attribute mount_path. - # - # source://actioncable//lib/action_cable/server/configuration.rb#18 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:18 def mount_path; end - # Sets the attribute mount_path - # - # @param value the value to set the attribute mount_path to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#18 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:18 def mount_path=(_arg0); end - # Returns the value of attribute precompile_assets. - # - # source://actioncable//lib/action_cable/server/configuration.rb#19 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:19 def precompile_assets; end - # Sets the attribute precompile_assets - # - # @param value the value to set the attribute precompile_assets to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#19 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:19 def precompile_assets=(_arg0); end # Returns constant of subscription adapter specified in config/cable.yml. If the # adapter cannot be found, this will default to the Redis adapter. Also makes # sure proper dependencies are required. # - # source://actioncable//lib/action_cable/server/configuration.rb#40 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:40 def pubsub_adapter; end - # Returns the value of attribute url. - # - # source://actioncable//lib/action_cable/server/configuration.rb#18 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:18 def url; end - # Sets the attribute url - # - # @param value the value to set the attribute url to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#18 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:18 def url=(_arg0); end - # Returns the value of attribute worker_pool_size. - # - # source://actioncable//lib/action_cable/server/configuration.rb#16 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:16 def worker_pool_size; end - # Sets the attribute worker_pool_size - # - # @param value the value to set the attribute worker_pool_size to. - # - # source://actioncable//lib/action_cable/server/configuration.rb#16 + # pkg:gem/actioncable#lib/action_cable/server/configuration.rb:16 def worker_pool_size=(_arg0); end end @@ -2721,18 +2475,18 @@ end # you can't use this collection as a full list of all of the connections # established against your application. Instead, use RemoteConnections for that. # -# source://actioncable//lib/action_cable/server/connections.rb#13 +# pkg:gem/actioncable#lib/action_cable/server/connections.rb:13 module ActionCable::Server::Connections - # source://actioncable//lib/action_cable/server/connections.rb#20 + # pkg:gem/actioncable#lib/action_cable/server/connections.rb:20 def add_connection(connection); end - # source://actioncable//lib/action_cable/server/connections.rb#16 + # pkg:gem/actioncable#lib/action_cable/server/connections.rb:16 def connections; end - # source://actioncable//lib/action_cable/server/connections.rb#39 + # pkg:gem/actioncable#lib/action_cable/server/connections.rb:39 def open_connections_statistics; end - # source://actioncable//lib/action_cable/server/connections.rb#24 + # pkg:gem/actioncable#lib/action_cable/server/connections.rb:24 def remove_connection(connection); end # WebSocket connection implementations differ on when they'll mark a connection @@ -2741,248 +2495,222 @@ module ActionCable::Server::Connections # second heartbeat runs on all connections. If the beat fails, we automatically # disconnect. # - # source://actioncable//lib/action_cable/server/connections.rb#33 + # pkg:gem/actioncable#lib/action_cable/server/connections.rb:33 def setup_heartbeat_timer; end end -# source://actioncable//lib/action_cable/server/connections.rb#14 +# pkg:gem/actioncable#lib/action_cable/server/connections.rb:14 ActionCable::Server::Connections::BEAT_INTERVAL = T.let(T.unsafe(nil), Integer) # Worker used by Server.send_async to do connection work in threads. # -# source://actioncable//lib/action_cable/server/worker.rb#12 +# pkg:gem/actioncable#lib/action_cable/server/worker.rb:12 class ActionCable::Server::Worker include ::ActiveSupport::Callbacks include ::ActionCable::Server::Worker::ActiveRecordConnectionManagement extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker - # @return [Worker] a new instance of Worker - # - # source://actioncable//lib/action_cable/server/worker.rb#21 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:21 def initialize(max_size: T.unsafe(nil)); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:13 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:16 def _run_work_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:16 def _work_callbacks; end - # source://actioncable//lib/action_cable/server/worker.rb#48 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:48 def async_exec(receiver, *args, connection:, &block); end - # source://actioncable//lib/action_cable/server/worker.rb#52 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:52 def async_invoke(receiver, method, *args, connection: T.unsafe(nil), &block); end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:15 def connection; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:15 def connection=(obj); end - # Returns the value of attribute executor. - # - # source://actioncable//lib/action_cable/server/worker.rb#19 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:19 def executor; end # Stop processing work: any work that has not already started running will be # discarded from the queue # - # source://actioncable//lib/action_cable/server/worker.rb#32 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:32 def halt; end - # source://actioncable//lib/action_cable/server/worker.rb#58 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:58 def invoke(receiver, method, *args, connection:, &block); end - # @return [Boolean] - # - # source://actioncable//lib/action_cable/server/worker.rb#36 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:36 def stopping?; end - # source://actioncable//lib/action_cable/server/worker.rb#40 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:40 def work(connection, &block); end private - # source://actioncable//lib/action_cable/server/worker.rb#70 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:70 def logger; end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:13 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:13 def __callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:16 def _work_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:16 def _work_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:15 def connection; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:15 def connection=(obj); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:13 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/worker.rb:13 def __class_attr___callbacks=(new_value); end end end -# source://actioncable//lib/action_cable/server/worker/active_record_connection_management.rb#8 +# pkg:gem/actioncable#lib/action_cable/server/worker/active_record_connection_management.rb:8 module ActionCable::Server::Worker::ActiveRecordConnectionManagement extend ::ActiveSupport::Concern - # source://actioncable//lib/action_cable/server/worker/active_record_connection_management.rb#17 + # pkg:gem/actioncable#lib/action_cable/server/worker/active_record_connection_management.rb:17 def with_database_connections(&block); end end -# source://actioncable//lib/action_cable/subscription_adapter/async.rb#6 +# pkg:gem/actioncable#lib/action_cable/subscription_adapter/async.rb:6 module ActionCable::SubscriptionAdapter; end -# source://actioncable//lib/action_cable/subscription_adapter/async.rb#7 +# pkg:gem/actioncable#lib/action_cable/subscription_adapter/async.rb:7 class ActionCable::SubscriptionAdapter::Async < ::ActionCable::SubscriptionAdapter::Inline private - # source://actioncable//lib/action_cable/subscription_adapter/async.rb#9 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/async.rb:9 def new_subscriber_map; end end -# source://actioncable//lib/action_cable/subscription_adapter/async.rb#13 +# pkg:gem/actioncable#lib/action_cable/subscription_adapter/async.rb:13 class ActionCable::SubscriptionAdapter::Async::AsyncSubscriberMap < ::ActionCable::SubscriptionAdapter::SubscriberMap - # @return [AsyncSubscriberMap] a new instance of AsyncSubscriberMap - # - # source://actioncable//lib/action_cable/subscription_adapter/async.rb#14 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/async.rb:14 def initialize(event_loop); end - # source://actioncable//lib/action_cable/subscription_adapter/async.rb#19 - def add_subscriber(*_arg0); end + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/async.rb:19 + def add_subscriber(*); end - # source://actioncable//lib/action_cable/subscription_adapter/async.rb#23 - def invoke_callback(*_arg0); end + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/async.rb:23 + def invoke_callback(*); end end -# source://actioncable//lib/action_cable/subscription_adapter/base.rb#7 +# pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:7 class ActionCable::SubscriptionAdapter::Base - # @return [Base] a new instance of Base - # - # source://actioncable//lib/action_cable/subscription_adapter/base.rb#10 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:10 def initialize(server); end - # @raise [NotImplementedError] - # - # source://actioncable//lib/action_cable/subscription_adapter/base.rb#15 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:15 def broadcast(channel, payload); end - # source://actioncable//lib/action_cable/subscription_adapter/base.rb#31 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:31 def identifier; end - # Returns the value of attribute logger. - # - # source://actioncable//lib/action_cable/subscription_adapter/base.rb#8 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:8 def logger; end - # Returns the value of attribute server. - # - # source://actioncable//lib/action_cable/subscription_adapter/base.rb#8 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:8 def server; end - # @raise [NotImplementedError] - # - # source://actioncable//lib/action_cable/subscription_adapter/base.rb#27 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:27 def shutdown; end - # @raise [NotImplementedError] - # - # source://actioncable//lib/action_cable/subscription_adapter/base.rb#19 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:19 def subscribe(channel, message_callback, success_callback = T.unsafe(nil)); end - # @raise [NotImplementedError] - # - # source://actioncable//lib/action_cable/subscription_adapter/base.rb#23 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/base.rb:23 def unsubscribe(channel, message_callback); end end -# source://actioncable//lib/action_cable/subscription_adapter/channel_prefix.rb#7 +# pkg:gem/actioncable#lib/action_cable/subscription_adapter/channel_prefix.rb:7 module ActionCable::SubscriptionAdapter::ChannelPrefix - # source://actioncable//lib/action_cable/subscription_adapter/channel_prefix.rb#8 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/channel_prefix.rb:8 def broadcast(channel, payload); end - # source://actioncable//lib/action_cable/subscription_adapter/channel_prefix.rb#13 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/channel_prefix.rb:13 def subscribe(channel, callback, success_callback = T.unsafe(nil)); end - # source://actioncable//lib/action_cable/subscription_adapter/channel_prefix.rb#18 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/channel_prefix.rb:18 def unsubscribe(channel, callback); end private # Returns the channel name, including channel_prefix specified in cable.yml # - # source://actioncable//lib/action_cable/subscription_adapter/channel_prefix.rb#25 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/channel_prefix.rb:25 def channel_with_prefix(channel); end end -# source://actioncable//lib/action_cable/subscription_adapter/inline.rb#7 +# pkg:gem/actioncable#lib/action_cable/subscription_adapter/inline.rb:7 class ActionCable::SubscriptionAdapter::Inline < ::ActionCable::SubscriptionAdapter::Base - # @return [Inline] a new instance of Inline - # - # source://actioncable//lib/action_cable/subscription_adapter/inline.rb#8 - def initialize(*_arg0); end + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/inline.rb:8 + def initialize(*); end - # source://actioncable//lib/action_cable/subscription_adapter/inline.rb#13 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/inline.rb:13 def broadcast(channel, payload); end - # source://actioncable//lib/action_cable/subscription_adapter/inline.rb#25 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/inline.rb:25 def shutdown; end - # source://actioncable//lib/action_cable/subscription_adapter/inline.rb#17 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/inline.rb:17 def subscribe(channel, callback, success_callback = T.unsafe(nil)); end - # source://actioncable//lib/action_cable/subscription_adapter/inline.rb#21 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/inline.rb:21 def unsubscribe(channel, callback); end private - # source://actioncable//lib/action_cable/subscription_adapter/inline.rb#34 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/inline.rb:34 def new_subscriber_map; end - # source://actioncable//lib/action_cable/subscription_adapter/inline.rb#30 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/inline.rb:30 def subscriber_map; end end -# source://actioncable//lib/action_cable/subscription_adapter/subscriber_map.rb#7 +# pkg:gem/actioncable#lib/action_cable/subscription_adapter/subscriber_map.rb:7 class ActionCable::SubscriptionAdapter::SubscriberMap - # @return [SubscriberMap] a new instance of SubscriberMap - # - # source://actioncable//lib/action_cable/subscription_adapter/subscriber_map.rb#8 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/subscriber_map.rb:8 def initialize; end - # source://actioncable//lib/action_cable/subscription_adapter/subscriber_map.rb#49 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/subscriber_map.rb:49 def add_channel(channel, on_success); end - # source://actioncable//lib/action_cable/subscription_adapter/subscriber_map.rb#13 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/subscriber_map.rb:13 def add_subscriber(channel, subscriber, on_success); end - # source://actioncable//lib/action_cable/subscription_adapter/subscriber_map.rb#38 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/subscriber_map.rb:38 def broadcast(channel, message); end - # source://actioncable//lib/action_cable/subscription_adapter/subscriber_map.rb#56 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/subscriber_map.rb:56 def invoke_callback(callback, message); end - # source://actioncable//lib/action_cable/subscription_adapter/subscriber_map.rb#53 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/subscriber_map.rb:53 def remove_channel(channel); end - # source://actioncable//lib/action_cable/subscription_adapter/subscriber_map.rb#27 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/subscriber_map.rb:27 def remove_subscriber(channel, subscriber); end end @@ -2997,36 +2725,36 @@ end # NOTE: `Test` adapter extends the `ActionCable::SubscriptionAdapter::Async` # adapter, so it could be used in system tests too. # -# source://actioncable//lib/action_cable/subscription_adapter/test.rb#17 +# pkg:gem/actioncable#lib/action_cable/subscription_adapter/test.rb:17 class ActionCable::SubscriptionAdapter::Test < ::ActionCable::SubscriptionAdapter::Async - # source://actioncable//lib/action_cable/subscription_adapter/test.rb#18 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/test.rb:18 def broadcast(channel, payload); end - # source://actioncable//lib/action_cable/subscription_adapter/test.rb#23 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/test.rb:23 def broadcasts(channel); end - # source://actioncable//lib/action_cable/subscription_adapter/test.rb#31 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/test.rb:31 def clear; end - # source://actioncable//lib/action_cable/subscription_adapter/test.rb#27 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/test.rb:27 def clear_messages(channel); end private - # source://actioncable//lib/action_cable/subscription_adapter/test.rb#36 + # pkg:gem/actioncable#lib/action_cable/subscription_adapter/test.rb:36 def channels_data; end end -# source://actioncable//lib/action_cable/test_case.rb#8 +# pkg:gem/actioncable#lib/action_cable/test_case.rb:8 class ActionCable::TestCase < ::ActiveSupport::TestCase include ::ActionCable::TestHelper end # Provides helper methods for testing Action Cable broadcasting # -# source://actioncable//lib/action_cable/test_helper.rb#7 +# pkg:gem/actioncable#lib/action_cable/test_helper.rb:7 module ActionCable::TestHelper - # source://actioncable//lib/action_cable/test_helper.rb#18 + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:18 def after_teardown; end # Asserts that the specified message has been sent to the stream. @@ -3045,7 +2773,7 @@ module ActionCable::TestHelper # end # end # - # source://actioncable//lib/action_cable/test_helper.rb#116 + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:116 def assert_broadcast_on(stream, data, &block); end # Asserts that the number of broadcasted messages to the stream matches the @@ -3073,7 +2801,7 @@ module ActionCable::TestHelper # end # end # - # source://actioncable//lib/action_cable/test_helper.rb#48 + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:48 def assert_broadcasts(stream, number, &block); end # Asserts that no messages have been sent to the stream. @@ -3096,14 +2824,14 @@ module ActionCable::TestHelper # # assert_broadcasts 'messages', 0, &block # - # source://actioncable//lib/action_cable/test_helper.rb#80 + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:80 def assert_no_broadcasts(stream, &block); end - # source://actioncable//lib/action_cable/test_helper.rb#8 + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:8 def before_setup; end - # source://actioncable//lib/action_cable/test_helper.rb#146 - def broadcasts(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:146 + def broadcasts(*, **, &); end # Returns the messages that are broadcasted in the block. # @@ -3117,35 +2845,35 @@ module ActionCable::TestHelper # assert_equal({ text: 'how are you?' }, messages.last) # end # - # source://actioncable//lib/action_cable/test_helper.rb#96 + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:96 def capture_broadcasts(stream, &block); end - # source://actioncable//lib/action_cable/test_helper.rb#146 - def clear_messages(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:146 + def clear_messages(*, **, &); end - # source://actioncable//lib/action_cable/test_helper.rb#142 + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:142 def pubsub_adapter; end private - # source://actioncable//lib/action_cable/test_helper.rb#149 + # pkg:gem/actioncable#lib/action_cable/test_helper.rb:149 def new_broadcasts_from(current_messages, stream, assertion, &block); end end -# source://actioncable//lib/action_cable/gem_version.rb#11 +# pkg:gem/actioncable#lib/action_cable/gem_version.rb:11 module ActionCable::VERSION; end -# source://actioncable//lib/action_cable/gem_version.rb#12 +# pkg:gem/actioncable#lib/action_cable/gem_version.rb:12 ActionCable::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://actioncable//lib/action_cable/gem_version.rb#13 +# pkg:gem/actioncable#lib/action_cable/gem_version.rb:13 ActionCable::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://actioncable//lib/action_cable/gem_version.rb#15 +# pkg:gem/actioncable#lib/action_cable/gem_version.rb:15 ActionCable::VERSION::PRE = T.let(T.unsafe(nil), String) -# source://actioncable//lib/action_cable/gem_version.rb#17 +# pkg:gem/actioncable#lib/action_cable/gem_version.rb:17 ActionCable::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://actioncable//lib/action_cable/gem_version.rb#14 +# pkg:gem/actioncable#lib/action_cable/gem_version.rb:14 ActionCable::VERSION::TINY = T.let(T.unsafe(nil), Integer) diff --git a/sorbet/rbi/gems/actionmailbox@8.0.5.1.rbi b/sorbet/rbi/gems/actionmailbox@8.0.5.1.rbi deleted file mode 100644 index 74b1f63d..00000000 --- a/sorbet/rbi/gems/actionmailbox@8.0.5.1.rbi +++ /dev/null @@ -1,1968 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `actionmailbox` gem. -# Please instead update this file by running `bin/tapioca gem actionmailbox`. - - -# :markup: markdown -# :include: ../README.md -# -# source://actionmailbox//lib/action_mailbox/gem_version.rb#3 -module ActionMailbox - extend ::ActiveSupport::Autoload - - # source://actionmailbox//lib/action_mailbox.rb#22 - def incinerate; end - - # source://actionmailbox//lib/action_mailbox.rb#22 - def incinerate=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#23 - def incinerate_after; end - - # source://actionmailbox//lib/action_mailbox.rb#23 - def incinerate_after=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#20 - def ingress; end - - # source://actionmailbox//lib/action_mailbox.rb#20 - def ingress=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#21 - def logger; end - - # source://actionmailbox//lib/action_mailbox.rb#21 - def logger=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#24 - def queues; end - - # source://actionmailbox//lib/action_mailbox.rb#24 - def queues=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#25 - def storage_service; end - - # source://actionmailbox//lib/action_mailbox.rb#25 - def storage_service=(val); end - - class << self - # source://actionmailbox//lib/action_mailbox/deprecator.rb#4 - def deprecator; end - - # Returns the currently loaded version of Action Mailbox as a +Gem::Version+. - # - # source://actionmailbox//lib/action_mailbox/gem_version.rb#5 - def gem_version; end - - # source://actionmailbox//lib/action_mailbox.rb#22 - def incinerate; end - - # source://actionmailbox//lib/action_mailbox.rb#22 - def incinerate=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#23 - def incinerate_after; end - - # source://actionmailbox//lib/action_mailbox.rb#23 - def incinerate_after=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#20 - def ingress; end - - # source://actionmailbox//lib/action_mailbox.rb#20 - def ingress=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#21 - def logger; end - - # source://actionmailbox//lib/action_mailbox.rb#21 - def logger=(val); end - - # source://actionmailbox//lib/action_mailbox.rb#24 - def queues; end - - # source://actionmailbox//lib/action_mailbox.rb#24 - def queues=(val); end - - # source://railties/8.0.5.1/lib/rails/engine.rb#413 - def railtie_helpers_paths; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#396 - def railtie_namespace; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#417 - def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - - # source://actionmailbox//lib/action_mailbox.rb#25 - def storage_service; end - - # source://actionmailbox//lib/action_mailbox.rb#25 - def storage_service=(val); end - - # source://railties/8.0.5.1/lib/rails/engine.rb#402 - def table_name_prefix; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#409 - def use_relative_model_naming?; end - - # Returns the currently loaded version of Action Mailbox as a +Gem::Version+. - # - # source://actionmailbox//lib/action_mailbox/version.rb#7 - def version; end - end -end - -# = Action Mailbox \Base -# -# The base class for all application mailboxes. Not intended to be inherited from directly. Inherit from -# +ApplicationMailbox+ instead, as that's where the app-specific routing is configured. This routing -# is specified in the following ways: -# -# class ApplicationMailbox < ActionMailbox::Base -# # Any of the recipients of the mail (whether to, cc, bcc) are matched against the regexp. -# routing /^replies@/i => :replies -# -# # Any of the recipients of the mail (whether to, cc, bcc) needs to be an exact match for the string. -# routing "help@example.com" => :help -# -# # Any callable (proc, lambda, etc) object is passed the inbound_email record and is a match if true. -# routing ->(inbound_email) { inbound_email.mail.to.size > 2 } => :multiple_recipients -# -# # Any object responding to #match? is called with the inbound_email record as an argument. Match if true. -# routing CustomAddress.new => :custom -# -# # Any inbound_email that has not been already matched will be sent to the BackstopMailbox. -# routing :all => :backstop -# end -# -# Application mailboxes need to override the #process method, which is invoked by the framework after -# callbacks have been run. The callbacks available are: +before_processing+, +after_processing+, and -# +around_processing+. The primary use case is to ensure that certain preconditions to processing are fulfilled -# using +before_processing+ callbacks. -# -# If a precondition fails to be met, you can halt the processing using the +#bounced!+ method, -# which will silently prevent any further processing, but not actually send out any bounce notice. You -# can also pair this behavior with the invocation of an Action Mailer class responsible for sending out -# an actual bounce email. This is done using the #bounce_with method, which takes the mail object returned -# by an Action Mailer method, like so: -# -# class ForwardsMailbox < ApplicationMailbox -# before_processing :ensure_sender_is_a_user -# -# private -# def ensure_sender_is_a_user -# unless User.exist?(email_address: mail.from) -# bounce_with UserRequiredMailer.missing(inbound_email) -# end -# end -# end -# -# During the processing of the inbound email, the status will be tracked. Before processing begins, -# the email will normally have the +pending+ status. Once processing begins, just before callbacks -# and the #process method is called, the status is changed to +processing+. If processing is allowed to -# complete, the status is changed to +delivered+. If a bounce is triggered, then +bounced+. If an unhandled -# exception is bubbled up, then +failed+. -# -# Exceptions can be handled at the class level using the familiar -# ActiveSupport::Rescuable approach: -# -# class ForwardsMailbox < ApplicationMailbox -# rescue_from(ApplicationSpecificVerificationError) { bounced! } -# end -# -# source://actionmailbox//lib/action_mailbox/base.rb#66 -class ActionMailbox::Base - include ::ActiveSupport::Rescuable - include ::ActionMailbox::Routing - include ::ActiveSupport::Callbacks - include ::ActionMailbox::Callbacks - extend ::ActiveSupport::Rescuable::ClassMethods - extend ::ActionMailbox::Routing::ClassMethods - extend ::ActiveSupport::Callbacks::ClassMethods - extend ::ActiveSupport::DescendantsTracker - extend ::ActionMailbox::Callbacks::ClassMethods - - # @return [Base] a new instance of Base - # - # source://actionmailbox//lib/action_mailbox/base.rb#79 - def initialize(inbound_email); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _process_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_process_callbacks(&block); end - - # Immediately sends the given +message+ and changes the inbound email's status to +:bounced+. - # - # source://actionmailbox//lib/action_mailbox/base.rb#111 - def bounce_now_with(message); end - - # Enqueues the given +message+ for delivery and changes the inbound email's status to +:bounced+. - # - # source://actionmailbox//lib/action_mailbox/base.rb#105 - def bounce_with(message); end - - # source://actionmailbox//lib/action_mailbox/base.rb#71 - def bounced!(*_arg0, **_arg1, &_arg2); end - - # source://actionmailbox//lib/action_mailbox/base.rb#71 - def delivered!(*_arg0, **_arg1, &_arg2); end - - # @return [Boolean] - # - # source://actionmailbox//lib/action_mailbox/base.rb#100 - def finished_processing?; end - - # Returns the value of attribute inbound_email. - # - # source://actionmailbox//lib/action_mailbox/base.rb#70 - def inbound_email; end - - # source://actionmailbox//lib/action_mailbox/base.rb#73 - def logger(&_arg0); end - - # source://actionmailbox//lib/action_mailbox/base.rb#71 - def mail(*_arg0, **_arg1, &_arg2); end - - # source://actionmailbox//lib/action_mailbox/base.rb#83 - def perform_processing; end - - # source://actionmailbox//lib/action_mailbox/base.rb#96 - def process; end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers=(_arg0); end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - # source://actionmailbox//lib/action_mailbox/routing.rb#9 - def router; end - - # source://actionmailbox//lib/action_mailbox/routing.rb#9 - def router=(val); end - - private - - # source://actionmailbox//lib/action_mailbox/base.rb#117 - def instrumentation_payload; end - - # source://actionmailbox//lib/action_mailbox/base.rb#124 - def track_status_of_inbound_email; end - - class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _process_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _process_callbacks=(value); end - - # source://actionmailbox//lib/action_mailbox/base.rb#75 - def receive(inbound_email); end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - # source://actionmailbox//lib/action_mailbox/routing.rb#9 - def router; end - - # source://actionmailbox//lib/action_mailbox/routing.rb#9 - def router=(val); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -class ActionMailbox::BaseController < ::ActionController::Base - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def authenticate_by_password; end - def ensure_configured; end - def ingress_name; end - def password; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -# = Action Mailbox \Callbacks -# -# Defines the callbacks related to processing. -# -# source://actionmailbox//lib/action_mailbox/callbacks.rb#9 -module ActionMailbox::Callbacks - extend ::ActiveSupport::Concern - include GeneratedInstanceMethods - include ::ActiveSupport::Callbacks - - mixes_in_class_methods GeneratedClassMethods - mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods - mixes_in_class_methods ::ActiveSupport::DescendantsTracker - mixes_in_class_methods ::ActionMailbox::Callbacks::ClassMethods - - module GeneratedClassMethods - def __callbacks; end - def __callbacks=(value); end - end - - module GeneratedInstanceMethods - def __callbacks; end - end -end - -# source://actionmailbox//lib/action_mailbox/callbacks.rb#0 -module ActionMailbox::Callbacks::ClassMethods - # source://actionmailbox//lib/action_mailbox/callbacks.rb#27 - def after_processing(*methods, &block); end - - # source://actionmailbox//lib/action_mailbox/callbacks.rb#31 - def around_processing(*methods, &block); end - - # source://actionmailbox//lib/action_mailbox/callbacks.rb#23 - def before_processing(*methods, &block); end -end - -# source://actionmailbox//lib/action_mailbox/callbacks.rb#13 -ActionMailbox::Callbacks::TERMINATOR = T.let(T.unsafe(nil), Proc) - -# source://actionmailbox//lib/action_mailbox/engine.rb#12 -class ActionMailbox::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end - -class ActionMailbox::InboundEmail < ::ActionMailbox::Record - include ::ActionMailbox::InboundEmail::GeneratedAttributeMethods - include ::ActionMailbox::InboundEmail::GeneratedAssociationMethods - include ::ActionMailbox::InboundEmail::Routable - include ::ActionMailbox::InboundEmail::MessageId - include ::ActionMailbox::InboundEmail::Incineratable - extend ::ActionMailbox::InboundEmail::MessageId::ClassMethods - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_raw_email_attachment(*args); end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_raw_email_blob(*args); end - - def instrumentation_payload; end - def mail; end - def processed?; end - def source; end - - class << self - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def bounced(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def delivered(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def failed(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def not_bounced(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def not_delivered(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def not_failed(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def not_pending(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def not_processing(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def pending(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def processing(*args, **_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/enum.rb#233 - def statuses; end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def with_attached_raw_email(*args, **_arg1); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_attachment_reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_attachment_reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - end -end - -module ActionMailbox::InboundEmail::GeneratedAssociationMethods - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#32 - def build_raw_email_attachment(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#32 - def build_raw_email_blob(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#36 - def create_raw_email_attachment(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#40 - def create_raw_email_attachment!(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#36 - def create_raw_email_blob(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#40 - def create_raw_email_blob!(*args, &block); end - - # source://activestorage/8.0.5.1/lib/active_storage/attached/model.rb#113 - def raw_email; end - - # source://activestorage/8.0.5.1/lib/active_storage/attached/model.rb#118 - def raw_email=(attachable); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def raw_email_attachment; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def raw_email_attachment=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def raw_email_blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def raw_email_blob=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#19 - def reload_raw_email_attachment; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#19 - def reload_raw_email_blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#23 - def reset_raw_email_attachment; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#23 - def reset_raw_email_blob; end -end - -module ActionMailbox::InboundEmail::GeneratedAttributeMethods; end - -module ActionMailbox::InboundEmail::Incineratable - extend ::ActiveSupport::Concern - - def incinerate; end - def incinerate_later; end -end - -class ActionMailbox::InboundEmail::Incineratable::Incineration - def initialize(inbound_email); end - - def run; end - - private - - def due?; end - def processed?; end -end - -module ActionMailbox::InboundEmail::MessageId - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActionMailbox::InboundEmail::MessageId::ClassMethods -end - -module ActionMailbox::InboundEmail::MessageId::ClassMethods - def create_and_extract_message_id!(source, **options); end - - private - - def create_and_upload_raw_email!(source); end - def extract_message_id(source); end - def generate_missing_message_id(message_checksum); end -end - -module ActionMailbox::InboundEmail::Routable - extend ::ActiveSupport::Concern - - def route; end - def route_later; end -end - -class ActionMailbox::IncinerationJob < ::ActiveJob::Base - def perform(inbound_email); end - - class << self - def schedule(inbound_email); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -module ActionMailbox::Ingresses; end -module ActionMailbox::Ingresses::Mailgun; end - -class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ::ActionMailbox::BaseController - def create; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def authenticate; end - def authenticated?; end - def key; end - def mail; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class ActionMailbox::Ingresses::Mailgun::InboundEmailsController::Authenticator - def initialize(key:, timestamp:, token:, signature:); end - - def authenticated?; end - def key; end - def signature; end - def timestamp; end - def token; end - - private - - def expected_signature; end - def recent?; end - def signed?; end -end - -module ActionMailbox::Ingresses::Mandrill; end - -class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ::ActionMailbox::BaseController - def create; end - def health_check; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def authenticate; end - def authenticated?; end - def events; end - def key; end - def raw_emails; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class ActionMailbox::Ingresses::Mandrill::InboundEmailsController::Authenticator - def initialize(request, key); end - - def authenticated?; end - def key; end - def request; end - - private - - def expected_signature; end - def given_signature; end - def message; end -end - -module ActionMailbox::Ingresses::Postmark; end - -class ActionMailbox::Ingresses::Postmark::InboundEmailsController < ::ActionMailbox::BaseController - def create; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def mail; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -module ActionMailbox::Ingresses::Relay; end - -class ActionMailbox::Ingresses::Relay::InboundEmailsController < ::ActionMailbox::BaseController - def create; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def require_valid_rfc822_message; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -module ActionMailbox::Ingresses::Sendgrid; end - -class ActionMailbox::Ingresses::Sendgrid::InboundEmailsController < ::ActionMailbox::BaseController - def create; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def envelope; end - def mail; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class ActionMailbox::Record < ::ActiveRecord::Base - include ::ActionMailbox::Record::GeneratedAttributeMethods - include ::ActionMailbox::Record::GeneratedAssociationMethods - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - end -end - -module ActionMailbox::Record::GeneratedAssociationMethods; end -module ActionMailbox::Record::GeneratedAttributeMethods; end - -# = Action Mailbox \Router -# -# Encapsulates the routes that live on the ApplicationMailbox and performs the actual routing when -# an inbound_email is received. -# -# source://actionmailbox//lib/action_mailbox/router.rb#8 -class ActionMailbox::Router - # @return [Router] a new instance of Router - # - # source://actionmailbox//lib/action_mailbox/router.rb#11 - def initialize; end - - # source://actionmailbox//lib/action_mailbox/router.rb#21 - def add_route(address, to:); end - - # source://actionmailbox//lib/action_mailbox/router.rb#15 - def add_routes(routes); end - - # source://actionmailbox//lib/action_mailbox/router.rb#35 - def mailbox_for(inbound_email); end - - # source://actionmailbox//lib/action_mailbox/router.rb#25 - def route(inbound_email); end - - private - - # Returns the value of attribute routes. - # - # source://actionmailbox//lib/action_mailbox/router.rb#40 - def routes; end -end - -# source://actionmailbox//lib/action_mailbox/router/route.rb#7 -class ActionMailbox::Router::Route - # source://actionmailbox//lib/action_mailbox/router/route.rb#10 - def initialize(address, to:); end - - # source://actionmailbox//lib/action_mailbox/router/route.rb#8 - def address; end - - # source://actionmailbox//lib/action_mailbox/router/route.rb#31 - def mailbox_class; end - - # source://actionmailbox//lib/action_mailbox/router/route.rb#8 - def mailbox_name; end - - # source://actionmailbox//lib/action_mailbox/router/route.rb#16 - def match?(inbound_email); end - - private - - # source://actionmailbox//lib/action_mailbox/router/route.rb#36 - def ensure_valid_address; end -end - -# source://actionmailbox//lib/action_mailbox/router.rb#9 -class ActionMailbox::Router::RoutingError < ::StandardError; end - -# See ActionMailbox::Base for how to specify routing. -# -# source://actionmailbox//lib/action_mailbox/routing.rb#5 -module ActionMailbox::Routing - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActionMailbox::Routing::ClassMethods -end - -# source://actionmailbox//lib/action_mailbox/routing.rb#0 -module ActionMailbox::Routing::ClassMethods - # source://actionmailbox//lib/action_mailbox/routing.rb#21 - def mailbox_for(inbound_email); end - - # source://actionmailbox//lib/action_mailbox/routing.rb#17 - def route(inbound_email); end - - # source://actionmailbox//lib/action_mailbox/routing.rb#13 - def routing(routes); end -end - -class ActionMailbox::RoutingJob < ::ActiveJob::Base - def perform(inbound_email); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - end -end - -# source://actionmailbox//lib/action_mailbox/test_case.rb#7 -class ActionMailbox::TestCase < ::ActiveSupport::TestCase - include ::ActionMailbox::TestHelper -end - -# source://actionmailbox//lib/action_mailbox/test_helper.rb#6 -module ActionMailbox::TestHelper - # Create an InboundEmail record using an eml fixture in the format of message/rfc822 - # referenced with +fixture_name+ located in +test/fixtures/files/fixture_name+. - # - # source://actionmailbox//lib/action_mailbox/test_helper.rb#9 - def create_inbound_email_from_fixture(fixture_name, status: T.unsafe(nil)); end - - # Creates an InboundEmail by specifying through options or a block. - # - # ==== Options - # - # * :status - The +status+ to set for the created InboundEmail. - # For possible statuses, see its documentation. - # - # ==== Creating a simple email - # - # When you only need to set basic fields like +from+, +to+, +subject+, and - # +body+, you can pass them directly as options. - # - # create_inbound_email_from_mail(from: "david@loudthinking.com", subject: "Hello!") - # - # ==== Creating a multi-part email - # - # When you need to create a more intricate email, like a multi-part email - # that contains both a plaintext version and an HTML version, you can pass a - # block. - # - # create_inbound_email_from_mail do - # to "David Heinemeier Hansson " - # from "Bilbo Baggins " - # subject "Come down to the Shire!" - # - # text_part do - # body "Please join us for a party at Bag End" - # end - # - # html_part do - # body "

Please join us for a party at Bag End

" - # end - # end - # - # As with +Mail.new+, you can also use a block parameter to define the parts - # of the message: - # - # create_inbound_email_from_mail do |mail| - # mail.to "David Heinemeier Hansson " - # mail.from "Bilbo Baggins " - # mail.subject "Come down to the Shire!" - # - # mail.text_part do |part| - # part.body "Please join us for a party at Bag End" - # end - # - # mail.html_part do |part| - # part.body "

Please join us for a party at Bag End

" - # end - # end - # - # source://actionmailbox//lib/action_mailbox/test_helper.rb#63 - def create_inbound_email_from_mail(status: T.unsafe(nil), **mail_options, &block); end - - # Create an InboundEmail using the raw rfc822 +source+ as text. - # - # source://actionmailbox//lib/action_mailbox/test_helper.rb#72 - def create_inbound_email_from_source(source, status: T.unsafe(nil)); end - - # Create an InboundEmail from fixture using the same arguments as create_inbound_email_from_fixture - # and immediately route it to processing. - # - # source://actionmailbox//lib/action_mailbox/test_helper.rb#79 - def receive_inbound_email_from_fixture(*args); end - - # Create an InboundEmail using the same options or block as - # create_inbound_email_from_mail, then immediately route it for processing. - # - # source://actionmailbox//lib/action_mailbox/test_helper.rb#85 - def receive_inbound_email_from_mail(**kwargs, &block); end - - # Create an InboundEmail using the same arguments as create_inbound_email_from_source and immediately route it - # to processing. - # - # source://actionmailbox//lib/action_mailbox/test_helper.rb#91 - def receive_inbound_email_from_source(*args); end -end - -# source://actionmailbox//lib/action_mailbox/gem_version.rb#9 -module ActionMailbox::VERSION; end - -# source://actionmailbox//lib/action_mailbox/gem_version.rb#10 -ActionMailbox::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) - -# source://actionmailbox//lib/action_mailbox/gem_version.rb#11 -ActionMailbox::VERSION::MINOR = T.let(T.unsafe(nil), Integer) - -# source://actionmailbox//lib/action_mailbox/gem_version.rb#13 -ActionMailbox::VERSION::PRE = T.let(T.unsafe(nil), String) - -# source://actionmailbox//lib/action_mailbox/gem_version.rb#15 -ActionMailbox::VERSION::STRING = T.let(T.unsafe(nil), String) - -# source://actionmailbox//lib/action_mailbox/gem_version.rb#12 -ActionMailbox::VERSION::TINY = T.let(T.unsafe(nil), Integer) - -# source://actionmailbox//lib/action_mailbox/mail_ext/address_equality.rb#3 -module Mail - class << self - # source://mail/2.9.1/lib/mail/mail.rb#163 - def all(*args, &block); end - - # source://mail/2.9.1/lib/mail/mail.rb#183 - def connection(&block); end - - # source://mail/2.9.1/lib/mail/mail.rb#98 - def defaults(&block); end - - # source://mail/2.9.1/lib/mail/mail.rb#174 - def delete_all(*args, &block); end - - # source://mail/2.9.1/lib/mail/mail.rb#131 - def deliver(*args, &block); end - - # source://mail/2.9.1/lib/mail/mail.rb#240 - def delivery_interceptors; end - - # source://mail/2.9.1/lib/mail/mail.rb#103 - def delivery_method; end - - # source://mail/2.9.1/lib/mail.rb#35 - def eager_autoload!; end - - # source://mail/2.9.1/lib/mail/mail.rb#139 - def find(*args, &block); end - - # source://mail/2.9.1/lib/mail/mail.rb#145 - def find_and_delete(*args, &block); end - - # source://mail/2.9.1/lib/mail/mail.rb#151 - def first(*args, &block); end - - # source://actionmailbox//lib/action_mailbox/mail_ext/from_source.rb#4 - def from_source(source); end - - # source://mail/2.9.1/lib/mail/mail.rb#233 - def inform_interceptors(mail); end - - # source://mail/2.9.1/lib/mail/mail.rb#227 - def inform_observers(mail); end - - # source://mail/2.9.1/lib/mail/mail.rb#157 - def last(*args, &block); end - - # source://mail/2.9.1/lib/mail/mail.rb#50 - def new(*args, &block); end - - # source://mail/2.9.1/lib/mail/mail.rb#248 - def random_tag; end - - # source://mail/2.9.1/lib/mail/mail.rb#168 - def read(filename); end - - # source://mail/2.9.1/lib/mail/mail.rb#179 - def read_from_string(mail_as_string); end - - # source://mail/2.9.1/lib/mail.rb#23 - def register_autoload(name, path); end - - # source://mail/2.9.1/lib/mail/mail.rb#215 - def register_interceptor(interceptor); end - - # source://mail/2.9.1/lib/mail/mail.rb#196 - def register_observer(observer); end - - # source://mail/2.9.1/lib/mail/mail.rb#108 - def retriever_method; end - - # source://mail/2.9.1/lib/mail/mail.rb#257 - def something_random; end - - # source://mail/2.9.1/lib/mail/mail.rb#261 - def uniq; end - - # source://mail/2.9.1/lib/mail/mail.rb#223 - def unregister_interceptor(interceptor); end - - # source://mail/2.9.1/lib/mail/mail.rb#204 - def unregister_observer(observer); end - end -end - -# source://actionmailbox//lib/action_mailbox/mail_ext/address_equality.rb#4 -class Mail::Address - # source://mail/2.9.1/lib/mail/elements/address.rb#25 - def initialize(value = T.unsafe(nil)); end - - # source://actionmailbox//lib/action_mailbox/mail_ext/address_equality.rb#5 - def ==(other_address); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#65 - def address(output_type = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#79 - def address=(value); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#132 - def comments; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#173 - def decoded; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#87 - def display_name(output_type = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#99 - def display_name=(str); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#118 - def domain(output_type = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#169 - def encoded; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#47 - def format(output_type = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#177 - def group; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#164 - def inspect; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#108 - def local(output_type = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#147 - def name; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#36 - def raw; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#156 - def to_s; end - - private - - # source://mail/2.9.1/lib/mail/elements/address.rb#237 - def format_comments; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#254 - def get_comments; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#218 - def get_display_name; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#250 - def get_domain; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#246 - def get_local; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#227 - def get_name; end - - # source://mail/2.9.1/lib/mail/elements/address.rb#183 - def parse(value = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#198 - def strip_all_comments(string); end - - # source://mail/2.9.1/lib/mail/elements/address.rb#207 - def strip_domain_comments(value); end - - class << self - # source://actionmailbox//lib/action_mailbox/mail_ext/address_wrapping.rb#5 - def wrap(address); end - end -end - -# source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#4 -class Mail::Message - # source://mail/2.9.1/lib/mail/message.rb#107 - def initialize(*args, &block); end - - # source://mail/2.9.1/lib/mail/message.rb#334 - def <=>(other); end - - # source://mail/2.9.1/lib/mail/message.rb#377 - def ==(other); end - - # source://mail/2.9.1/lib/mail/message.rb#1341 - def [](name); end - - # source://mail/2.9.1/lib/mail/message.rb#1323 - def []=(name, value); end - - # source://mail/2.9.1/lib/mail/message.rb#1565 - def action; end - - # source://mail/2.9.1/lib/mail/message.rb#1479 - def add_charset; end - - # source://mail/2.9.1/lib/mail/message.rb#1494 - def add_content_transfer_encoding; end - - # source://mail/2.9.1/lib/mail/message.rb#1472 - def add_content_type; end - - # source://mail/2.9.1/lib/mail/message.rb#1455 - def add_date(date_val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1764 - def add_file(values); end - - # source://mail/2.9.1/lib/mail/message.rb#1445 - def add_message_id(msg_id_val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1465 - def add_mime_version(ver_val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1708 - def add_part(part); end - - # source://mail/2.9.1/lib/mail/message.rb#1934 - def all_parts; end - - # source://mail/2.9.1/lib/mail/message.rb#1925 - def attachment; end - - # source://mail/2.9.1/lib/mail/message.rb#1920 - def attachment?; end - - # source://mail/2.9.1/lib/mail/message.rb#1633 - def attachments; end - - # source://mail/2.9.1/lib/mail/message.rb#507 - def bcc(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#519 - def bcc=(val); end - - # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#21 - def bcc_addresses; end - - # source://mail/2.9.1/lib/mail/message.rb#1313 - def bcc_addrs; end - - # source://mail/2.9.1/lib/mail/message.rb#1258 - def body(value = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1244 - def body=(value); end - - # source://mail/2.9.1/lib/mail/message.rb#1267 - def body_encoding(value = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1275 - def body_encoding=(value); end - - # source://mail/2.9.1/lib/mail/message.rb#1561 - def bounced?; end - - # source://mail/2.9.1/lib/mail/message.rb#1590 - def boundary; end - - # source://mail/2.9.1/lib/mail/message.rb#548 - def cc(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#560 - def cc=(val); end - - # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#17 - def cc_addresses; end - - # source://mail/2.9.1/lib/mail/message.rb#1307 - def cc_addrs; end - - # source://mail/2.9.1/lib/mail/message.rb#1504 - def charset; end - - # source://mail/2.9.1/lib/mail/message.rb#1513 - def charset=(value); end - - # source://mail/2.9.1/lib/mail/message.rb#564 - def comments(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#568 - def comments=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#572 - def content_description(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#576 - def content_description=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#580 - def content_disposition(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#584 - def content_disposition=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#588 - def content_id(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#592 - def content_id=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#596 - def content_location(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#600 - def content_location=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#604 - def content_transfer_encoding(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#608 - def content_transfer_encoding=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#612 - def content_type(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#616 - def content_type=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1530 - def content_type_parameters; end - - # source://mail/2.9.1/lib/mail/message.rb#1780 - def convert_to_multipart; end - - # source://mail/2.9.1/lib/mail/message.rb#620 - def date(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#624 - def date=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1914 - def decode_body; end - - # source://mail/2.9.1/lib/mail/message.rb#1893 - def decoded; end - - # source://mail/2.9.1/lib/mail/message.rb#1211 - def default(sym, val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#250 - def deliver; end - - # source://mail/2.9.1/lib/mail/message.rb#267 - def deliver!; end - - # source://mail/2.9.1/lib/mail/message.rb#199 - def delivery_handler; end - - # source://mail/2.9.1/lib/mail/message.rb#199 - def delivery_handler=(_arg0); end - - # source://mail/2.9.1/lib/mail/message.rb#274 - def delivery_method(method = T.unsafe(nil), settings = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1550 - def delivery_status_part; end - - # source://mail/2.9.1/lib/mail/message.rb#1545 - def delivery_status_report?; end - - # source://mail/2.9.1/lib/mail/message.rb#1289 - def destinations; end - - # source://mail/2.9.1/lib/mail/message.rb#1577 - def diagnostic_code; end - - # source://mail/2.9.1/lib/mail/message.rb#1810 - def encoded; end - - # source://mail/2.9.1/lib/mail/message.rb#425 - def envelope_date; end - - # source://mail/2.9.1/lib/mail/message.rb#421 - def envelope_from; end - - # source://mail/2.9.1/lib/mail/message.rb#1573 - def error_status; end - - # source://mail/2.9.1/lib/mail/message.rb#478 - def errors; end - - # source://mail/2.9.1/lib/mail/message.rb#1930 - def filename; end - - # source://mail/2.9.1/lib/mail/message.rb#1569 - def final_recipient; end - - # source://mail/2.9.1/lib/mail/message.rb#1938 - def find_first_mime_type(mt); end - - # source://mail/2.9.1/lib/mail/message.rb#665 - def from(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#677 - def from=(val); end - - # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#5 - def from_address; end - - # source://mail/2.9.1/lib/mail/message.rb#1295 - def from_addrs; end - - # source://mail/2.9.1/lib/mail/message.rb#1637 - def has_attachments?; end - - # source://mail/2.9.1/lib/mail/message.rb#1430 - def has_charset?; end - - # source://mail/2.9.1/lib/mail/message.rb#1435 - def has_content_transfer_encoding?; end - - # source://mail/2.9.1/lib/mail/message.rb#1425 - def has_content_type?; end - - # source://mail/2.9.1/lib/mail/message.rb#1415 - def has_date?; end - - # source://mail/2.9.1/lib/mail/message.rb#1409 - def has_message_id?; end - - # source://mail/2.9.1/lib/mail/message.rb#1421 - def has_mime_version?; end - - # source://mail/2.9.1/lib/mail/message.rb#450 - def header(value = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#435 - def header=(value); end - - # source://mail/2.9.1/lib/mail/message.rb#1403 - def header_fields; end - - # source://mail/2.9.1/lib/mail/message.rb#455 - def headers(hash = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1642 - def html_part(&block); end - - # source://mail/2.9.1/lib/mail/message.rb#1662 - def html_part=(msg); end - - # source://mail/2.9.1/lib/mail/message.rb#681 - def in_reply_to(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#685 - def in_reply_to=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#240 - def inform_interceptors; end - - # source://mail/2.9.1/lib/mail/message.rb#236 - def inform_observers; end - - # source://mail/2.9.1/lib/mail/message.rb#1880 - def inspect; end - - # source://mail/2.9.1/lib/mail/message.rb#1884 - def inspect_structure; end - - # source://mail/2.9.1/lib/mail/message.rb#1967 - def is_marked_for_delete?; end - - # source://mail/2.9.1/lib/mail/message.rb#689 - def keywords(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#693 - def keywords=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1520 - def main_type; end - - # source://mail/2.9.1/lib/mail/message.rb#1954 - def mark_for_delete=(value = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#710 - def message_id(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#719 - def message_id=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1384 - def method_missing(name, *args, &block); end - - # source://mail/2.9.1/lib/mail/message.rb#1499 - def mime_type; end - - # source://mail/2.9.1/lib/mail/message.rb#736 - def mime_version(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#746 - def mime_version=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1535 - def multipart?; end - - # source://mail/2.9.1/lib/mail/message.rb#1540 - def multipart_report?; end - - # source://mail/2.9.1/lib/mail/message.rb#1729 - def part(params = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1595 - def parts; end - - # source://mail/2.9.1/lib/mail/message.rb#223 - def perform_deliveries; end - - # source://mail/2.9.1/lib/mail/message.rb#223 - def perform_deliveries=(_arg0); end - - # source://mail/2.9.1/lib/mail/message.rb#230 - def raise_delivery_errors; end - - # source://mail/2.9.1/lib/mail/message.rb#230 - def raise_delivery_errors=(_arg0); end - - # source://mail/2.9.1/lib/mail/message.rb#417 - def raw_envelope; end - - # source://mail/2.9.1/lib/mail/message.rb#404 - def raw_source; end - - # source://mail/2.9.1/lib/mail/message.rb#1906 - def read; end - - # source://mail/2.9.1/lib/mail/message.rb#1798 - def ready_to_send!; end - - # source://mail/2.9.1/lib/mail/message.rb#750 - def received(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#758 - def received=(val); end - - # source://actionmailbox//lib/action_mailbox/mail_ext/recipients.rb#5 - def recipients; end - - # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#9 - def recipients_addresses; end - - # source://mail/2.9.1/lib/mail/message.rb#762 - def references(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#766 - def references=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1581 - def remote_mta; end - - # source://mail/2.9.1/lib/mail/message.rb#282 - def reply(*args, &block); end - - # source://mail/2.9.1/lib/mail/message.rb#795 - def reply_to(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#807 - def reply_to=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#836 - def resent_bcc(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#848 - def resent_bcc=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#877 - def resent_cc(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#889 - def resent_cc=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#893 - def resent_date(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#897 - def resent_date=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#926 - def resent_from(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#938 - def resent_from=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#942 - def resent_message_id(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#946 - def resent_message_id=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#965 - def resent_sender(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#975 - def resent_sender=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1004 - def resent_to(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1016 - def resent_to=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1585 - def retryable?; end - - # source://mail/2.9.1/lib/mail/message.rb#1021 - def return_path(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1026 - def return_path=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1044 - def sender(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1054 - def sender=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#409 - def set_envelope(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1946 - def skip_deletion; end - - # source://mail/2.9.1/lib/mail/message.rb#1074 - def smtp_envelope_from(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1088 - def smtp_envelope_from=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1107 - def smtp_envelope_to(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1124 - def smtp_envelope_to=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1525 - def sub_type; end - - # source://mail/2.9.1/lib/mail/message.rb#1149 - def subject(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1159 - def subject=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1971 - def text?; end - - # source://mail/2.9.1/lib/mail/message.rb#1651 - def text_part(&block); end - - # source://mail/2.9.1/lib/mail/message.rb#1686 - def text_part=(msg); end - - # source://mail/2.9.1/lib/mail/message.rb#1188 - def to(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#1200 - def to=(val); end - - # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#13 - def to_addresses; end - - # source://mail/2.9.1/lib/mail/message.rb#1301 - def to_addrs; end - - # source://mail/2.9.1/lib/mail/message.rb#1876 - def to_s; end - - # source://mail/2.9.1/lib/mail/message.rb#1830 - def to_yaml(opts = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#628 - def transport_encoding(val = T.unsafe(nil)); end - - # source://mail/2.9.1/lib/mail/message.rb#636 - def transport_encoding=(val); end - - # source://mail/2.9.1/lib/mail/message.rb#1818 - def without_attachments!; end - - # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#29 - def x_forwarded_to_addresses; end - - # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#25 - def x_original_to_addresses; end - - private - - # source://mail/2.9.1/lib/mail/message.rb#2074 - def add_boundary; end - - # source://mail/2.9.1/lib/mail/message.rb#2039 - def add_encoding_to_body; end - - # source://mail/2.9.1/lib/mail/message.rb#2069 - def add_multipart_alternate_header; end - - # source://mail/2.9.1/lib/mail/message.rb#2082 - def add_multipart_mixed_header; end - - # source://mail/2.9.1/lib/mail/message.rb#2055 - def add_required_fields; end - - # source://mail/2.9.1/lib/mail/message.rb#2063 - def add_required_message_fields; end - - # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#34 - def address_list(obj); end - - # source://mail/2.9.1/lib/mail/message.rb#2032 - def allowed_encodings; end - - # source://mail/2.9.1/lib/mail/message.rb#1997 - def body_lazy(value); end - - # source://mail/2.9.1/lib/mail/message.rb#2155 - def decode_body_as_text; end - - # source://mail/2.9.1/lib/mail/message.rb#2145 - def do_delivery; end - - # source://mail/2.9.1/lib/mail/message.rb#2127 - def find_attachment; end - - # source://mail/2.9.1/lib/mail/message.rb#2045 - def identify_and_set_transfer_encoding; end - - # source://mail/2.9.1/lib/mail/message.rb#2089 - def init_with_hash(hash); end - - # source://mail/2.9.1/lib/mail/message.rb#2119 - def init_with_string(string); end - - # source://mail/2.9.1/lib/mail/message.rb#391 - def initialize_copy(original); end - - # source://mail/2.9.1/lib/mail/message.rb#1986 - def parse_message; end - - # source://mail/2.9.1/lib/mail/message.rb#2012 - def process_body_raw; end - - # source://mail/2.9.1/lib/mail/message.rb#1992 - def raw_source=(value); end - - # source://mail/2.9.1/lib/mail/message.rb#2028 - def separate_parts; end - - # source://mail/2.9.1/lib/mail/message.rb#2020 - def set_envelope_header; end - - class << self - # source://mail/2.9.1/lib/mail/message.rb#232 - def default_charset; end - - # source://mail/2.9.1/lib/mail/message.rb#233 - def default_charset=(charset); end - - # source://mail/2.9.1/lib/mail/message.rb#1872 - def from_hash(hash); end - - # source://mail/2.9.1/lib/mail/message.rb#1850 - def from_yaml(str); end - end -end - -module Rails - class << self - # source://railties/8.0.5.1/lib/rails.rb#44 - def app_class; end - - # source://railties/8.0.5.1/lib/rails.rb#44 - def app_class=(_arg0); end - - # source://railties/8.0.5.1/lib/rails.rb#45 - def application; end - - # source://railties/8.0.5.1/lib/rails.rb#43 - def application=(_arg0); end - - # source://railties/8.0.5.1/lib/rails.rb#126 - def autoloaders; end - - # source://railties/8.0.5.1/lib/rails.rb#56 - def backtrace_cleaner; end - - # source://railties/8.0.5.1/lib/rails.rb#44 - def cache; end - - # source://railties/8.0.5.1/lib/rails.rb#44 - def cache=(_arg0); end - - # source://railties/8.0.5.1/lib/rails.rb#52 - def configuration; end - - # source://railties/8.0.5.1/lib/rails/deprecator.rb#4 - def deprecator; end - - # source://railties/8.0.5.1/lib/rails.rb#75 - def env; end - - # source://railties/8.0.5.1/lib/rails.rb#82 - def env=(environment); end - - # source://railties/8.0.5.1/lib/rails.rb#93 - def error; end - - # source://railties/8.0.5.1/lib/rails/gem_version.rb#5 - def gem_version; end - - # source://railties/8.0.5.1/lib/rails.rb#106 - def groups(*groups); end - - # source://railties/8.0.5.1/lib/rails.rb#49 - def initialize!(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.5.1/lib/rails.rb#49 - def initialized?(*_arg0, **_arg1, &_arg2); end - - # source://railties/8.0.5.1/lib/rails.rb#44 - def logger; end - - # source://railties/8.0.5.1/lib/rails.rb#44 - def logger=(_arg0); end - - # source://railties/8.0.5.1/lib/rails.rb#122 - def public_path; end - - # source://railties/8.0.5.1/lib/rails.rb#65 - def root; end - - # source://railties/8.0.5.1/lib/rails/version.rb#7 - def version; end - end -end - -module Rails::Conductor; end -module Rails::Conductor::ActionMailbox; end -module Rails::Conductor::ActionMailbox::InboundEmails; end - -class Rails::Conductor::ActionMailbox::InboundEmails::SourcesController < ::Rails::Conductor::BaseController - def create; end - def new; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class Rails::Conductor::ActionMailbox::InboundEmailsController < ::Rails::Conductor::BaseController - def create; end - def index; end - def new; end - def show; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def create_inbound_email(mail); end - def mail_params; end - def new_mail; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class Rails::Conductor::ActionMailbox::IncineratesController < ::Rails::Conductor::BaseController - def create; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class Rails::Conductor::ActionMailbox::ReroutesController < ::Rails::Conductor::BaseController - def create; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def reroute(inbound_email); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class Rails::Conductor::BaseController < ::ActionController::Base - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def ensure_development_env; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__layout; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__layout=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__layout_conditions; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__layout_conditions=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end diff --git a/sorbet/rbi/gems/actionmailbox@8.0.5.2.rbi b/sorbet/rbi/gems/actionmailbox@8.0.5.2.rbi new file mode 100644 index 00000000..1e1d7604 --- /dev/null +++ b/sorbet/rbi/gems/actionmailbox@8.0.5.2.rbi @@ -0,0 +1,985 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `actionmailbox` gem. +# Please instead update this file by running `bin/tapioca gem actionmailbox`. + + +# :markup: markdown +# :include: ../README.md +# +# pkg:gem/actionmailbox#lib/action_mailbox/gem_version.rb:3 +module ActionMailbox + extend ::ActiveSupport::Autoload + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:22 + def incinerate; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:22 + def incinerate=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:23 + def incinerate_after; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:23 + def incinerate_after=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:20 + def ingress; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:20 + def ingress=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:21 + def logger; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:21 + def logger=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:24 + def queues; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:24 + def queues=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:25 + def storage_service; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:25 + def storage_service=(val); end + + class << self + # pkg:gem/actionmailbox#lib/action_mailbox/deprecator.rb:4 + def deprecator; end + + # Returns the currently loaded version of Action Mailbox as a +Gem::Version+. + # + # pkg:gem/actionmailbox#lib/action_mailbox/gem_version.rb:5 + def gem_version; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:22 + def incinerate; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:22 + def incinerate=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:23 + def incinerate_after; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:23 + def incinerate_after=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:20 + def ingress; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:20 + def ingress=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:21 + def logger; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:21 + def logger=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:24 + def queues; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:24 + def queues=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox/engine.rb:13 + def railtie_helpers_paths; end + + # pkg:gem/actionmailbox#lib/action_mailbox/engine.rb:13 + def railtie_namespace; end + + # pkg:gem/actionmailbox#lib/action_mailbox/engine.rb:13 + def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:25 + def storage_service; end + + # pkg:gem/actionmailbox#lib/action_mailbox.rb:25 + def storage_service=(val); end + + # pkg:gem/actionmailbox#lib/action_mailbox/engine.rb:13 + def table_name_prefix; end + + # pkg:gem/actionmailbox#lib/action_mailbox/engine.rb:13 + def use_relative_model_naming?; end + + # Returns the currently loaded version of Action Mailbox as a +Gem::Version+. + # + # pkg:gem/actionmailbox#lib/action_mailbox/version.rb:7 + def version; end + end +end + +# = Action Mailbox \Base +# +# The base class for all application mailboxes. Not intended to be inherited from directly. Inherit from +# +ApplicationMailbox+ instead, as that's where the app-specific routing is configured. This routing +# is specified in the following ways: +# +# class ApplicationMailbox < ActionMailbox::Base +# # Any of the recipients of the mail (whether to, cc, bcc) are matched against the regexp. +# routing /^replies@/i => :replies +# +# # Any of the recipients of the mail (whether to, cc, bcc) needs to be an exact match for the string. +# routing "help@example.com" => :help +# +# # Any callable (proc, lambda, etc) object is passed the inbound_email record and is a match if true. +# routing ->(inbound_email) { inbound_email.mail.to.size > 2 } => :multiple_recipients +# +# # Any object responding to #match? is called with the inbound_email record as an argument. Match if true. +# routing CustomAddress.new => :custom +# +# # Any inbound_email that has not been already matched will be sent to the BackstopMailbox. +# routing :all => :backstop +# end +# +# Application mailboxes need to override the #process method, which is invoked by the framework after +# callbacks have been run. The callbacks available are: +before_processing+, +after_processing+, and +# +around_processing+. The primary use case is to ensure that certain preconditions to processing are fulfilled +# using +before_processing+ callbacks. +# +# If a precondition fails to be met, you can halt the processing using the +#bounced!+ method, +# which will silently prevent any further processing, but not actually send out any bounce notice. You +# can also pair this behavior with the invocation of an Action Mailer class responsible for sending out +# an actual bounce email. This is done using the #bounce_with method, which takes the mail object returned +# by an Action Mailer method, like so: +# +# class ForwardsMailbox < ApplicationMailbox +# before_processing :ensure_sender_is_a_user +# +# private +# def ensure_sender_is_a_user +# unless User.exist?(email_address: mail.from) +# bounce_with UserRequiredMailer.missing(inbound_email) +# end +# end +# end +# +# During the processing of the inbound email, the status will be tracked. Before processing begins, +# the email will normally have the +pending+ status. Once processing begins, just before callbacks +# and the #process method is called, the status is changed to +processing+. If processing is allowed to +# complete, the status is changed to +delivered+. If a bounce is triggered, then +bounced+. If an unhandled +# exception is bubbled up, then +failed+. +# +# Exceptions can be handled at the class level using the familiar +# ActiveSupport::Rescuable approach: +# +# class ForwardsMailbox < ApplicationMailbox +# rescue_from(ApplicationSpecificVerificationError) { bounced! } +# end +# +# pkg:gem/actionmailbox#lib/action_mailbox/base.rb:66 +class ActionMailbox::Base + include ::ActiveSupport::Rescuable + include ::ActionMailbox::Routing + include ::ActiveSupport::Callbacks + include ::ActionMailbox::Callbacks + extend ::ActiveSupport::Rescuable::ClassMethods + extend ::ActionMailbox::Routing::ClassMethods + extend ::ActiveSupport::Callbacks::ClassMethods + extend ::ActiveSupport::DescendantsTracker + extend ::ActionMailbox::Callbacks::ClassMethods + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:79 + def initialize(inbound_email); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def __callbacks; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def _process_callbacks; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def _run_process_callbacks(&block); end + + # Immediately sends the given +message+ and changes the inbound email's status to +:bounced+. + # + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:111 + def bounce_now_with(message); end + + # Enqueues the given +message+ for delivery and changes the inbound email's status to +:bounced+. + # + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:105 + def bounce_with(message); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:71 + def bounced!(*, **, &); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:71 + def delivered!(*, **, &); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:100 + def finished_processing?; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:70 + def inbound_email; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:73 + def logger(&); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:71 + def mail(*, **, &); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:83 + def perform_processing; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:96 + def process; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:67 + def rescue_handlers; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:67 + def rescue_handlers=(_arg0); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:67 + def rescue_handlers?; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def router; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def router=(val); end + + private + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:117 + def instrumentation_payload; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:124 + def track_status_of_inbound_email; end + + class << self + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def __callbacks; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def __callbacks=(value); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def _process_callbacks; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def _process_callbacks=(value); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:75 + def receive(inbound_email); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:67 + def rescue_handlers; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:67 + def rescue_handlers=(value); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:67 + def rescue_handlers?; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def router; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def router=(val); end + + private + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def __class_attr___callbacks; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:68 + def __class_attr___callbacks=(new_value); end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:67 + def __class_attr_rescue_handlers; end + + # pkg:gem/actionmailbox#lib/action_mailbox/base.rb:67 + def __class_attr_rescue_handlers=(new_value); end + end +end + +class ActionMailbox::BaseController < ::ActionController::Base + private + + def _layout(lookup_context, formats, keys); end + def authenticate_by_password; end + def ensure_configured; end + def ingress_name; end + def password; end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +# = Action Mailbox \Callbacks +# +# Defines the callbacks related to processing. +# +# pkg:gem/actionmailbox#lib/action_mailbox/callbacks.rb:9 +module ActionMailbox::Callbacks + extend ::ActiveSupport::Concern + include GeneratedInstanceMethods + include ::ActiveSupport::Callbacks + + mixes_in_class_methods GeneratedClassMethods + mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods + mixes_in_class_methods ::ActiveSupport::DescendantsTracker + mixes_in_class_methods ::ActionMailbox::Callbacks::ClassMethods + + module GeneratedClassMethods + def __callbacks; end + def __callbacks=(value); end + end + + module GeneratedInstanceMethods + def __callbacks; end + end +end + +# pkg:gem/actionmailbox#lib/action_mailbox/callbacks.rb:22 +module ActionMailbox::Callbacks::ClassMethods + # pkg:gem/actionmailbox#lib/action_mailbox/callbacks.rb:27 + def after_processing(*methods, &block); end + + # pkg:gem/actionmailbox#lib/action_mailbox/callbacks.rb:31 + def around_processing(*methods, &block); end + + # pkg:gem/actionmailbox#lib/action_mailbox/callbacks.rb:23 + def before_processing(*methods, &block); end +end + +# pkg:gem/actionmailbox#lib/action_mailbox/callbacks.rb:13 +ActionMailbox::Callbacks::TERMINATOR = T.let(T.unsafe(nil), Proc) + +# pkg:gem/actionmailbox#lib/action_mailbox/engine.rb:12 +class ActionMailbox::Engine < ::Rails::Engine; end + +class ActionMailbox::InboundEmail < ::ActionMailbox::Record + include ::ActionMailbox::InboundEmail::GeneratedAttributeMethods + include ::ActionMailbox::InboundEmail::GeneratedAssociationMethods + include ::ActionMailbox::InboundEmail::Routable + include ::ActionMailbox::InboundEmail::MessageId + include ::ActionMailbox::InboundEmail::Incineratable + extend ::ActionMailbox::InboundEmail::MessageId::ClassMethods + + def autosave_associated_records_for_raw_email_attachment(*args); end + def autosave_associated_records_for_raw_email_blob(*args); end + def instrumentation_payload; end + def mail; end + def processed?; end + def source; end + + class << self + def bounced(*args, **); end + def delivered(*args, **); end + def failed(*args, **); end + def not_bounced(*args, **); end + def not_delivered(*args, **); end + def not_failed(*args, **); end + def not_pending(*args, **); end + def not_processing(*args, **); end + def pending(*args, **); end + def processing(*args, **); end + def statuses; end + def with_attached_raw_email(*args, **); end + + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr__reflections; end + def __class_attr__reflections=(new_value); end + def __class_attr__validators; end + def __class_attr__validators=(new_value); end + def __class_attr_attachment_reflections; end + def __class_attr_attachment_reflections=(new_value); end + def __class_attr_defined_enums; end + def __class_attr_defined_enums=(new_value); end + end +end + +module ActionMailbox::InboundEmail::GeneratedAssociationMethods + def build_raw_email_attachment(*args, &block); end + def build_raw_email_blob(*args, &block); end + def create_raw_email_attachment(*args, &block); end + def create_raw_email_attachment!(*args, &block); end + def create_raw_email_blob(*args, &block); end + def create_raw_email_blob!(*args, &block); end + def raw_email; end + def raw_email=(attachable); end + def raw_email_attachment; end + def raw_email_attachment=(value); end + def raw_email_blob; end + def raw_email_blob=(value); end + def reload_raw_email_attachment; end + def reload_raw_email_blob; end + def reset_raw_email_attachment; end + def reset_raw_email_blob; end +end + +module ActionMailbox::InboundEmail::GeneratedAttributeMethods; end + +module ActionMailbox::InboundEmail::Incineratable + extend ::ActiveSupport::Concern + + def incinerate; end + def incinerate_later; end +end + +class ActionMailbox::InboundEmail::Incineratable::Incineration + def initialize(inbound_email); end + + def run; end + + private + + def due?; end + def processed?; end +end + +module ActionMailbox::InboundEmail::MessageId + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActionMailbox::InboundEmail::MessageId::ClassMethods +end + +module ActionMailbox::InboundEmail::MessageId::ClassMethods + def create_and_extract_message_id!(source, **options); end + + private + + def create_and_upload_raw_email!(source); end + def extract_message_id(source); end + def generate_missing_message_id(message_checksum); end +end + +module ActionMailbox::InboundEmail::Routable + extend ::ActiveSupport::Concern + + def route; end + def route_later; end +end + +class ActionMailbox::IncinerationJob < ::ActiveJob::Base + def perform(inbound_email); end + + class << self + def schedule(inbound_email); end + + private + + def __class_attr_queue_name; end + def __class_attr_queue_name=(new_value); end + def __class_attr_rescue_handlers; end + def __class_attr_rescue_handlers=(new_value); end + end +end + +module ActionMailbox::Ingresses; end +module ActionMailbox::Ingresses::Mailgun; end + +class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ::ActionMailbox::BaseController + def create; end + + private + + def _layout(lookup_context, formats, keys); end + def authenticate; end + def authenticated?; end + def key; end + def mail; end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class ActionMailbox::Ingresses::Mailgun::InboundEmailsController::Authenticator + def initialize(key:, timestamp:, token:, signature:); end + + def authenticated?; end + def key; end + def signature; end + def timestamp; end + def token; end + + private + + def expected_signature; end + def recent?; end + def signed?; end +end + +module ActionMailbox::Ingresses::Mandrill; end + +class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ::ActionMailbox::BaseController + def create; end + def health_check; end + + private + + def _layout(lookup_context, formats, keys); end + def authenticate; end + def authenticated?; end + def events; end + def key; end + def raw_emails; end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class ActionMailbox::Ingresses::Mandrill::InboundEmailsController::Authenticator + def initialize(request, key); end + + def authenticated?; end + def key; end + def request; end + + private + + def expected_signature; end + def given_signature; end + def message; end +end + +module ActionMailbox::Ingresses::Postmark; end + +class ActionMailbox::Ingresses::Postmark::InboundEmailsController < ::ActionMailbox::BaseController + def create; end + + private + + def _layout(lookup_context, formats, keys); end + def mail; end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +module ActionMailbox::Ingresses::Relay; end + +class ActionMailbox::Ingresses::Relay::InboundEmailsController < ::ActionMailbox::BaseController + def create; end + + private + + def _layout(lookup_context, formats, keys); end + def require_valid_rfc822_message; end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +module ActionMailbox::Ingresses::Sendgrid; end + +class ActionMailbox::Ingresses::Sendgrid::InboundEmailsController < ::ActionMailbox::BaseController + def create; end + + private + + def _layout(lookup_context, formats, keys); end + def envelope; end + def mail; end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class ActionMailbox::Record < ::ActiveRecord::Base + include ::ActionMailbox::Record::GeneratedAttributeMethods + include ::ActionMailbox::Record::GeneratedAssociationMethods + + class << self + private + + def __class_attr__validators; end + def __class_attr__validators=(new_value); end + def __class_attr_defined_enums; end + def __class_attr_defined_enums=(new_value); end + end +end + +module ActionMailbox::Record::GeneratedAssociationMethods; end +module ActionMailbox::Record::GeneratedAttributeMethods; end + +# = Action Mailbox \Router +# +# Encapsulates the routes that live on the ApplicationMailbox and performs the actual routing when +# an inbound_email is received. +# +# pkg:gem/actionmailbox#lib/action_mailbox/router.rb:8 +class ActionMailbox::Router + # pkg:gem/actionmailbox#lib/action_mailbox/router.rb:11 + def initialize; end + + # pkg:gem/actionmailbox#lib/action_mailbox/router.rb:21 + def add_route(address, to:); end + + # pkg:gem/actionmailbox#lib/action_mailbox/router.rb:15 + def add_routes(routes); end + + # pkg:gem/actionmailbox#lib/action_mailbox/router.rb:35 + def mailbox_for(inbound_email); end + + # pkg:gem/actionmailbox#lib/action_mailbox/router.rb:25 + def route(inbound_email); end + + private + + # pkg:gem/actionmailbox#lib/action_mailbox/router.rb:40 + def routes; end +end + +# Encapsulates a route, which can then be matched against an inbound_email and provide a lookup of the matching +# mailbox class. See examples for the different route addresses and how to use them in the ActionMailbox::Base +# documentation. +# +# pkg:gem/actionmailbox#lib/action_mailbox/router/route.rb:7 +class ActionMailbox::Router::Route + # pkg:gem/actionmailbox#lib/action_mailbox/router/route.rb:10 + def initialize(address, to:); end + + # pkg:gem/actionmailbox#lib/action_mailbox/router/route.rb:8 + def address; end + + # pkg:gem/actionmailbox#lib/action_mailbox/router/route.rb:31 + def mailbox_class; end + + # pkg:gem/actionmailbox#lib/action_mailbox/router/route.rb:8 + def mailbox_name; end + + # pkg:gem/actionmailbox#lib/action_mailbox/router/route.rb:16 + def match?(inbound_email); end + + private + + # pkg:gem/actionmailbox#lib/action_mailbox/router/route.rb:36 + def ensure_valid_address; end +end + +# pkg:gem/actionmailbox#lib/action_mailbox/router.rb:9 +class ActionMailbox::Router::RoutingError < ::StandardError; end + +# See ActionMailbox::Base for how to specify routing. +# +# pkg:gem/actionmailbox#lib/action_mailbox/routing.rb:5 +module ActionMailbox::Routing + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActionMailbox::Routing::ClassMethods +end + +# pkg:gem/actionmailbox#lib/action_mailbox/routing.rb:12 +module ActionMailbox::Routing::ClassMethods + # pkg:gem/actionmailbox#lib/action_mailbox/routing.rb:21 + def mailbox_for(inbound_email); end + + # pkg:gem/actionmailbox#lib/action_mailbox/routing.rb:17 + def route(inbound_email); end + + # pkg:gem/actionmailbox#lib/action_mailbox/routing.rb:13 + def routing(routes); end +end + +class ActionMailbox::RoutingJob < ::ActiveJob::Base + def perform(inbound_email); end + + class << self + private + + def __class_attr_queue_name; end + def __class_attr_queue_name=(new_value); end + end +end + +# pkg:gem/actionmailbox#lib/action_mailbox/test_case.rb:7 +class ActionMailbox::TestCase < ::ActiveSupport::TestCase + include ::ActionMailbox::TestHelper +end + +# pkg:gem/actionmailbox#lib/action_mailbox/test_helper.rb:6 +module ActionMailbox::TestHelper + # Create an InboundEmail record using an eml fixture in the format of message/rfc822 + # referenced with +fixture_name+ located in +test/fixtures/files/fixture_name+. + # + # pkg:gem/actionmailbox#lib/action_mailbox/test_helper.rb:9 + def create_inbound_email_from_fixture(fixture_name, status: T.unsafe(nil)); end + + # Creates an InboundEmail by specifying through options or a block. + # + # ==== Options + # + # * :status - The +status+ to set for the created InboundEmail. + # For possible statuses, see its documentation. + # + # ==== Creating a simple email + # + # When you only need to set basic fields like +from+, +to+, +subject+, and + # +body+, you can pass them directly as options. + # + # create_inbound_email_from_mail(from: "david@loudthinking.com", subject: "Hello!") + # + # ==== Creating a multi-part email + # + # When you need to create a more intricate email, like a multi-part email + # that contains both a plaintext version and an HTML version, you can pass a + # block. + # + # create_inbound_email_from_mail do + # to "David Heinemeier Hansson " + # from "Bilbo Baggins " + # subject "Come down to the Shire!" + # + # text_part do + # body "Please join us for a party at Bag End" + # end + # + # html_part do + # body "

Please join us for a party at Bag End

" + # end + # end + # + # As with +Mail.new+, you can also use a block parameter to define the parts + # of the message: + # + # create_inbound_email_from_mail do |mail| + # mail.to "David Heinemeier Hansson " + # mail.from "Bilbo Baggins " + # mail.subject "Come down to the Shire!" + # + # mail.text_part do |part| + # part.body "Please join us for a party at Bag End" + # end + # + # mail.html_part do |part| + # part.body "

Please join us for a party at Bag End

" + # end + # end + # + # pkg:gem/actionmailbox#lib/action_mailbox/test_helper.rb:63 + def create_inbound_email_from_mail(status: T.unsafe(nil), **mail_options, &block); end + + # Create an InboundEmail using the raw rfc822 +source+ as text. + # + # pkg:gem/actionmailbox#lib/action_mailbox/test_helper.rb:72 + def create_inbound_email_from_source(source, status: T.unsafe(nil)); end + + # Create an InboundEmail from fixture using the same arguments as create_inbound_email_from_fixture + # and immediately route it to processing. + # + # pkg:gem/actionmailbox#lib/action_mailbox/test_helper.rb:79 + def receive_inbound_email_from_fixture(*args); end + + # Create an InboundEmail using the same options or block as + # create_inbound_email_from_mail, then immediately route it for processing. + # + # pkg:gem/actionmailbox#lib/action_mailbox/test_helper.rb:85 + def receive_inbound_email_from_mail(**kwargs, &block); end + + # Create an InboundEmail using the same arguments as create_inbound_email_from_source and immediately route it + # to processing. + # + # pkg:gem/actionmailbox#lib/action_mailbox/test_helper.rb:91 + def receive_inbound_email_from_source(*args); end +end + +# pkg:gem/actionmailbox#lib/action_mailbox/gem_version.rb:9 +module ActionMailbox::VERSION; end + +# pkg:gem/actionmailbox#lib/action_mailbox/gem_version.rb:10 +ActionMailbox::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) + +# pkg:gem/actionmailbox#lib/action_mailbox/gem_version.rb:11 +ActionMailbox::VERSION::MINOR = T.let(T.unsafe(nil), Integer) + +# pkg:gem/actionmailbox#lib/action_mailbox/gem_version.rb:13 +ActionMailbox::VERSION::PRE = T.let(T.unsafe(nil), String) + +# pkg:gem/actionmailbox#lib/action_mailbox/gem_version.rb:15 +ActionMailbox::VERSION::STRING = T.let(T.unsafe(nil), String) + +# pkg:gem/actionmailbox#lib/action_mailbox/gem_version.rb:12 +ActionMailbox::VERSION::TINY = T.let(T.unsafe(nil), Integer) + +# pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/address_equality.rb:3 +module Mail + class << self + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/from_source.rb:4 + def from_source(source); end + end +end + +# pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/address_equality.rb:4 +class Mail::Address + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/address_equality.rb:5 + def ==(other_address); end + + class << self + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/address_wrapping.rb:5 + def wrap(address); end + end +end + +# pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:4 +class Mail::Message + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:21 + def bcc_addresses; end + + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:17 + def cc_addresses; end + + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:5 + def from_address; end + + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/recipients.rb:5 + def recipients; end + + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:9 + def recipients_addresses; end + + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:13 + def to_addresses; end + + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:29 + def x_forwarded_to_addresses; end + + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:25 + def x_original_to_addresses; end + + private + + # pkg:gem/actionmailbox#lib/action_mailbox/mail_ext/addresses.rb:34 + def address_list(obj); end +end + +module Rails; end +module Rails::Conductor; end +module Rails::Conductor::ActionMailbox; end +module Rails::Conductor::ActionMailbox::InboundEmails; end + +class Rails::Conductor::ActionMailbox::InboundEmails::SourcesController < ::Rails::Conductor::BaseController + def create; end + def new; end + + private + + def _layout(lookup_context, formats, keys); end + + class << self + private + + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class Rails::Conductor::ActionMailbox::InboundEmailsController < ::Rails::Conductor::BaseController + def create; end + def index; end + def new; end + def show; end + + private + + def _layout(lookup_context, formats, keys); end + def create_inbound_email(mail); end + def mail_params; end + def new_mail; end + + class << self + private + + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class Rails::Conductor::ActionMailbox::IncineratesController < ::Rails::Conductor::BaseController + def create; end + + private + + def _layout(lookup_context, formats, keys); end + + class << self + private + + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class Rails::Conductor::ActionMailbox::ReroutesController < ::Rails::Conductor::BaseController + def create; end + + private + + def _layout(lookup_context, formats, keys); end + def reroute(inbound_email); end + + class << self + private + + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class Rails::Conductor::BaseController < ::ActionController::Base + private + + def _layout(lookup_context, formats, keys); end + def ensure_development_env; end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr__layout; end + def __class_attr__layout=(new_value); end + def __class_attr__layout_conditions; end + def __class_attr__layout_conditions=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end diff --git a/sorbet/rbi/gems/actionmailer@8.0.5.1.rbi b/sorbet/rbi/gems/actionmailer@8.0.5.2.rbi similarity index 71% rename from sorbet/rbi/gems/actionmailer@8.0.5.1.rbi rename to sorbet/rbi/gems/actionmailer@8.0.5.2.rbi index 9b34b411..91bad8c2 100644 --- a/sorbet/rbi/gems/actionmailer@8.0.5.1.rbi +++ b/sorbet/rbi/gems/actionmailer@8.0.5.2.rbi @@ -7,26 +7,26 @@ # :include: ../README.rdoc # -# source://actionmailer//lib/action_mailer/gem_version.rb#3 +# pkg:gem/actionmailer#lib/action_mailer/gem_version.rb:3 module ActionMailer extend ::ActiveSupport::Autoload class << self - # source://actionmailer//lib/action_mailer/deprecator.rb#4 + # pkg:gem/actionmailer#lib/action_mailer/deprecator.rb:4 def deprecator; end - # source://actionmailer//lib/action_mailer.rb#61 + # pkg:gem/actionmailer#lib/action_mailer.rb:61 def eager_load!; end # Returns the currently loaded version of Action Mailer as a +Gem::Version+. # - # source://actionmailer//lib/action_mailer/gem_version.rb#5 + # pkg:gem/actionmailer#lib/action_mailer/gem_version.rb:5 def gem_version; end # Returns the currently loaded version of Action Mailer as a # +Gem::Version+. # - # source://actionmailer//lib/action_mailer/version.rb#8 + # pkg:gem/actionmailer#lib/action_mailer/version.rb:8 def version; end end end @@ -494,9 +494,7 @@ end # * deliver_later_queue_name - The queue name used by deliver_later with the default # delivery_job. Mailers can set this to use a custom queue name. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionmailer//lib/action_mailer/base.rb#476 +# pkg:gem/actionmailer#lib/action_mailer/base.rb:476 class ActionMailer::Base < ::AbstractController::Base include ::ActionMailer::Callbacks include ::ActiveSupport::Callbacks @@ -538,60 +536,58 @@ class ActionMailer::Base < ::AbstractController::Base extend ::ActionView::Rendering::ClassMethods extend ::ActionView::Layouts::ClassMethods - # @return [Base] a new instance of Base - # - # source://actionmailer//lib/action_mailer/base.rb#638 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:638 def initialize; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def _deliver_callbacks; end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def _helper_methods; end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def _helper_methods=(_arg0); end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def _helper_methods?; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout_conditions; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout_conditions?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:493 def _process_action_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def _run_deliver_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:493 def _run_process_action_callbacks(&block); end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def _view_cache_dependencies; end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def _view_cache_dependencies=(_arg0); end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def _view_cache_dependencies?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def asset_host; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def asset_host=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def assets_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def assets_dir=(value); end # Allows you to add attachments to an email, like so: @@ -623,95 +619,95 @@ class ActionMailer::Base < ::AbstractController::Base # # or by index # mail.attachments[0] # => Mail::Part (first attachment) # - # source://actionmailer//lib/action_mailer/base.rb#755 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:755 def attachments; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def default_asset_host_protocol; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def default_asset_host_protocol=(value); end - # source://actionmailer//lib/action_mailer/base.rb#502 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:502 def default_params; end - # source://actionmailer//lib/action_mailer/base.rb#502 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:502 def default_params=(_arg0); end - # source://actionmailer//lib/action_mailer/base.rb#502 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:502 def default_params?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def default_static_extension; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def default_static_extension=(value); end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def deliver_later_queue_name; end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def deliver_later_queue_name=(_arg0); end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def deliver_later_queue_name?; end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#8 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def delivery_job; end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#8 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def delivery_job=(_arg0); end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#8 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def delivery_job?; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#19 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_method; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#19 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_method=(_arg0); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#19 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_method?; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_methods; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_methods=(_arg0); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_methods?; end # Returns an email in the format "Name ". # # If the name is a blank string, it returns just the address. # - # source://actionmailer//lib/action_mailer/base.rb#679 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:679 def email_address_with_name(address, name); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def enable_fragment_cache_logging; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def enable_fragment_cache_logging=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def file_settings; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def file_settings=(_arg0); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def file_settings?; end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def fragment_cache_keys; end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def fragment_cache_keys=(_arg0); end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def fragment_cache_keys?; end # Allows you to pass random and unusual headers to the new +Mail::Message+ @@ -749,19 +745,19 @@ class ActionMailer::Base < ::AbstractController::Base # +nil+ in order to reset the value otherwise another field will be added # for the same header. # - # source://actionmailer//lib/action_mailer/base.rb#717 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:717 def headers(args = T.unsafe(nil)); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def javascripts_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def javascripts_dir=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:489 def logger; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:489 def logger=(value); end # The main method that creates the message and renders the email templates. There are @@ -853,142 +849,140 @@ class ActionMailer::Base < ::AbstractController::Base # format.html # end # - # source://actionmailer//lib/action_mailer/base.rb#864 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:864 def mail(headers = T.unsafe(nil), &block); end # Returns the name of the mailer object. # - # source://actionmailer//lib/action_mailer/base.rb#672 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:672 def mailer_name; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:636 def message; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:636 def message=(_arg0); end - # source://actionmailer//lib/action_mailer/parameterized.rb#95 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:481 def params; end - # source://actionmailer//lib/action_mailer/parameterized.rb#93 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:481 def params=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def perform_caching; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def perform_caching=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#16 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def perform_deliveries; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#16 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def perform_deliveries=(val); end - # source://actionmailer//lib/action_mailer/preview.rb#25 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def preview_interceptors; end - # source://actionmailer//lib/action_mailer/preview.rb#14 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def preview_paths; end - # source://actionmailer//lib/action_mailer/base.rb#644 - def process(method_name, *args, **_arg2); end + # pkg:gem/actionmailer#lib/action_mailer/base.rb:644 + def process(method_name, *args, **); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def raise_delivery_errors; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def raise_delivery_errors=(val); end - # source://actionpack/8.0.5.1/lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:493 def raise_on_missing_callback_actions; end - # source://actionpack/8.0.5.1/lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:493 def raise_on_missing_callback_actions=(val); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def relative_url_root; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def relative_url_root=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:480 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:480 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:480 def rescue_handlers?; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def sendmail_settings; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def sendmail_settings=(_arg0); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def sendmail_settings?; end - # source://actionmailer//lib/action_mailer/preview.rb#22 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def show_previews; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def smtp_settings; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def smtp_settings=(_arg0); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def smtp_settings?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def stylesheets_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def stylesheets_dir=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def test_settings; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def test_settings=(_arg0); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def test_settings?; end private - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout(lookup_context, formats, keys); end - # source://actionmailer//lib/action_mailer/base.rb#1065 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:1065 def _protected_ivars; end - # source://actionmailer//lib/action_mailer/base.rb#941 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:941 def apply_defaults(headers); end - # source://actionmailer//lib/action_mailer/base.rb#961 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:961 def assign_headers_to_message(message, headers); end - # source://actionmailer//lib/action_mailer/base.rb#967 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:967 def collect_responses(headers, &block); end - # @yield [collector] - # - # source://actionmailer//lib/action_mailer/base.rb#977 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:977 def collect_responses_from_block(headers); end - # source://actionmailer//lib/action_mailer/base.rb#991 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:991 def collect_responses_from_templates(headers); end - # source://actionmailer//lib/action_mailer/base.rb#984 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:984 def collect_responses_from_text(headers); end - # source://actionmailer//lib/action_mailer/base.rb#951 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:951 def compute_default(value); end - # source://actionmailer//lib/action_mailer/base.rb#1034 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:1034 def create_parts_from_responses(m, responses); end # Translates the +subject+ using \Rails I18n class under [mailer_scope, action_name] scope. @@ -996,21 +990,21 @@ class ActionMailer::Base < ::AbstractController::Base # humanized version of the action_name. # If the subject has interpolations, you can pass them through the +interpolations+ parameter. # - # source://actionmailer//lib/action_mailer/base.rb#931 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:931 def default_i18n_subject(interpolations = T.unsafe(nil)); end - # source://actionmailer//lib/action_mailer/base.rb#1004 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:1004 def each_template(paths, name, &block); end - # source://actionmailer//lib/action_mailer/base.rb#1047 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:1047 def insert_part(container, response, charset); end - # source://actionmailer//lib/action_mailer/base.rb#1061 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:1061 def instrument_name; end # This and #instrument_name is for caching instrument # - # source://actionmailer//lib/action_mailer/base.rb#1054 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:1054 def instrument_payload(key); end # Used by #mail to set the content type of the message. @@ -1023,139 +1017,132 @@ class ActionMailer::Base < ::AbstractController::Base # attachments, or the message is multipart, then the default content type is # used. # - # source://actionmailer//lib/action_mailer/base.rb#909 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:909 def set_content_type(m, user_content_type, class_default); end - # source://actionmailer//lib/action_mailer/base.rb#1013 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:1013 def wrap_inline_attachments(message); end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def __callbacks=(value); end - # source://actionmailer//lib/action_mailer/form_builder.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:483 def _default_form_builder; end - # source://actionmailer//lib/action_mailer/form_builder.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:483 def _default_form_builder=(value); end - # source://actionmailer//lib/action_mailer/form_builder.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:483 def _default_form_builder?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def _deliver_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def _deliver_callbacks=(value); end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def _helper_methods; end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def _helper_methods=(value); end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def _helper_methods?; end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def _helpers; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#211 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#211 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout=(value); end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#211 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout?; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout_conditions; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout_conditions=(value); end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def _layout_conditions?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:493 def _process_action_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:493 def _process_action_callbacks=(value); end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def _view_cache_dependencies; end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def _view_cache_dependencies=(value); end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def _view_cache_dependencies?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def asset_host; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def asset_host=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def assets_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def assets_dir=(value); end - # Returns the name of the current mailer. This method is also being used as a path for a view lookup. - # If this is an anonymous mailer, this method will return +anonymous+ instead. - # - # source://actionmailer//lib/action_mailer/base.rb#570 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:575 def controller_path; end # Allows to set defaults through app configuration: # # config.action_mailer.default_options = { from: "no-reply@example.org" } # - # source://actionmailer//lib/action_mailer/base.rb#580 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:580 def default(value = T.unsafe(nil)); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def default_asset_host_protocol; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def default_asset_host_protocol=(value); end - # Allows to set defaults through app configuration: - # - # config.action_mailer.default_options = { from: "no-reply@example.org" } - # - # source://actionmailer//lib/action_mailer/base.rb#580 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:584 def default_options=(value = T.unsafe(nil)); end - # source://actionmailer//lib/action_mailer/base.rb#502 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:502 def default_params; end - # source://actionmailer//lib/action_mailer/base.rb#502 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:502 def default_params=(value); end - # source://actionmailer//lib/action_mailer/base.rb#502 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:502 def default_params?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def default_static_extension; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def default_static_extension=(value); end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def deliver_later_queue_name; end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def deliver_later_queue_name=(value); end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#9 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def deliver_later_queue_name?; end # Wraps an email delivery inside of ActiveSupport::Notifications instrumentation. @@ -1165,405 +1152,400 @@ class ActionMailer::Base < ::AbstractController::Base # calling +deliver_mail+ directly and passing a +Mail::Message+ will do # nothing except tell the logger you sent the email. # - # source://actionmailer//lib/action_mailer/base.rb#592 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:592 def deliver_mail(mail); end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#8 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def delivery_job; end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#8 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def delivery_job=(value); end - # source://actionmailer//lib/action_mailer/queued_delivery.rb#8 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def delivery_job?; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#19 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_method; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#19 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_method=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#19 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_method?; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_methods; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_methods=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def delivery_methods?; end # Returns an email in the format "Name ". # # If the name is a blank string, it returns just the address. # - # source://actionmailer//lib/action_mailer/base.rb#602 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:602 def email_address_with_name(address, name); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def enable_fragment_cache_logging; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def enable_fragment_cache_logging=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def file_settings; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def file_settings=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def file_settings?; end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def fragment_cache_keys; end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def fragment_cache_keys=(value); end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def fragment_cache_keys?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def javascripts_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def javascripts_dir=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:489 def logger; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:489 def logger=(value); end # Returns the name of the current mailer. This method is also being used as a path for a view lookup. # If this is an anonymous mailer, this method will return +anonymous+ instead. + # Allows to set the name of current mailer. # - # source://actionmailer//lib/action_mailer/base.rb#570 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:570 def mailer_name; end + # Returns the name of the current mailer. This method is also being used as a path for a view lookup. + # If this is an anonymous mailer, this method will return +anonymous+ instead. # Allows to set the name of current mailer. # - # source://actionmailer//lib/action_mailer/base.rb#574 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:574 def mailer_name=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def perform_caching; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def perform_caching=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#16 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def perform_deliveries; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#16 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def perform_deliveries=(val); end - # source://actionmailer//lib/action_mailer/preview.rb#25 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def preview_interceptors; end - # source://actionmailer//lib/action_mailer/preview.rb#25 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def preview_interceptors=(val); end - # source://actionmailer//lib/action_mailer/preview.rb#14 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def preview_paths; end - # source://actionmailer//lib/action_mailer/preview.rb#14 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def preview_paths=(val); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def raise_delivery_errors; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def raise_delivery_errors=(val); end - # source://actionpack/8.0.5.1/lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:493 def raise_on_missing_callback_actions; end - # source://actionpack/8.0.5.1/lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:493 def raise_on_missing_callback_actions=(val); end # Register an Interceptor which will be called before mail is sent. # Either a class, string, or symbol can be passed in as the Interceptor. # If a string or symbol is passed in it will be camelized and constantized. # - # source://actionmailer//lib/action_mailer/base.rb#547 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:547 def register_interceptor(interceptor); end # Register one or more Interceptors which will be called before mail is sent. # - # source://actionmailer//lib/action_mailer/base.rb#521 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:521 def register_interceptors(*interceptors); end # Register an Observer which will be notified when mail is delivered. # Either a class, string, or symbol can be passed in as the Observer. # If a string or symbol is passed in it will be camelized and constantized. # - # source://actionmailer//lib/action_mailer/base.rb#533 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:533 def register_observer(observer); end # Register one or more Observers which will be notified when mail is delivered. # - # source://actionmailer//lib/action_mailer/base.rb#511 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:511 def register_observers(*observers); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def relative_url_root; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def relative_url_root=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:480 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:480 def rescue_handlers=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:480 def rescue_handlers?; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def sendmail_settings; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def sendmail_settings=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def sendmail_settings?; end - # source://actionmailer//lib/action_mailer/preview.rb#22 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def show_previews; end - # source://actionmailer//lib/action_mailer/preview.rb#22 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:482 def show_previews=(val); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def smtp_settings; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def smtp_settings=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def smtp_settings?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def stylesheets_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:492 def stylesheets_dir=(value); end # Emails do not support relative path links. # - # @return [Boolean] - # - # source://actionmailer//lib/action_mailer/base.rb#937 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:937 def supports_path?; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def test_settings; end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def test_settings=(value); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#52 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def test_settings?; end # Unregister a previously registered Interceptor. # Either a class, string, or symbol can be passed in as the Interceptor. # If a string or symbol is passed in it will be camelized and constantized. # - # source://actionmailer//lib/action_mailer/base.rb#554 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:554 def unregister_interceptor(interceptor); end # Unregister one or more previously registered Interceptors. # - # source://actionmailer//lib/action_mailer/base.rb#526 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:526 def unregister_interceptors(*interceptors); end # Unregister a previously registered Observer. # Either a class, string, or symbol can be passed in as the Observer. # If a string or symbol is passed in it will be camelized and constantized. # - # source://actionmailer//lib/action_mailer/base.rb#540 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:540 def unregister_observer(observer); end # Unregister one or more previously registered Observers. # - # source://actionmailer//lib/action_mailer/base.rb#516 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:516 def unregister_observers(*observers); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:477 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:483 def __class_attr__default_form_builder; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:483 def __class_attr__default_form_builder=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def __class_attr__helper_methods; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:490 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def __class_attr__layout; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def __class_attr__layout_conditions; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:496 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def __class_attr__view_cache_dependencies; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def __class_attr__view_cache_dependencies=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:502 def __class_attr_default_params; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:502 def __class_attr_default_params=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def __class_attr_deliver_later_queue_name; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def __class_attr_deliver_later_queue_name=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def __class_attr_delivery_job; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:479 def __class_attr_delivery_job=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_delivery_method; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_delivery_method=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_delivery_methods; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_delivery_methods=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_file_settings; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_file_settings=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def __class_attr_fragment_cache_keys; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 def __class_attr_fragment_cache_keys=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:480 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:480 def __class_attr_rescue_handlers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_sendmail_settings; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_sendmail_settings=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_smtp_settings; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_smtp_settings=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_test_settings; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:478 def __class_attr_test_settings=(new_value); end - # source://actionmailer//lib/action_mailer/base.rb#623 - def method_missing(method_name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionmailer#lib/action_mailer/base.rb:623 + def method_missing(method_name, *, **, &); end - # source://actionmailer//lib/action_mailer/base.rb#558 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:558 def observer_class_for(value); end - # @return [Boolean] - # - # source://actionmailer//lib/action_mailer/base.rb#631 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:631 def respond_to_missing?(method, include_all = T.unsafe(nil)); end - # source://actionmailer//lib/action_mailer/base.rb#610 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:610 def set_payload_for_mail(payload, mail); end end end -# source://actionmailer//lib/action_mailer/base.rb#0 +# pkg:gem/actionmailer#lib/action_mailer/base.rb:490 module ActionMailer::Base::HelperMethods include ::ActionMailer::MailHelper include ::ActionText::ContentHelper include ::ActionText::TagHelper - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#34 - def combined_fragment_cache_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 + def combined_fragment_cache_key(*, **, &); end - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#45 - def view_cache_dependencies(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionmailer#lib/action_mailer/base.rb:494 + def view_cache_dependencies(*, **, &); end end -# source://actionmailer//lib/action_mailer/base.rb#763 +# pkg:gem/actionmailer#lib/action_mailer/base.rb:763 class ActionMailer::Base::LateAttachmentsProxy < ::SimpleDelegator - # source://actionmailer//lib/action_mailer/base.rb#765 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:765 def []=(_name, _content); end - # source://actionmailer//lib/action_mailer/base.rb#764 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:764 def inline; end private - # @raise [RuntimeError] - # - # source://actionmailer//lib/action_mailer/base.rb#768 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:768 def _raise_error; end end -# source://actionmailer//lib/action_mailer/base.rb#658 +# pkg:gem/actionmailer#lib/action_mailer/base.rb:658 class ActionMailer::Base::NullMail - # source://actionmailer//lib/action_mailer/base.rb#659 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:659 def body; end - # source://actionmailer//lib/action_mailer/base.rb#660 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:660 def header; end - # source://actionmailer//lib/action_mailer/base.rb#666 - def method_missing(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionmailer#lib/action_mailer/base.rb:666 + def method_missing(*, **, &); end - # @return [Boolean] - # - # source://actionmailer//lib/action_mailer/base.rb#662 + # pkg:gem/actionmailer#lib/action_mailer/base.rb:662 def respond_to?(string, include_all = T.unsafe(nil)); end end -# source://actionmailer//lib/action_mailer/base.rb#498 +# pkg:gem/actionmailer#lib/action_mailer/base.rb:498 ActionMailer::Base::PROTECTED_IVARS = T.let(T.unsafe(nil), Array) -# source://actionmailer//lib/action_mailer/callbacks.rb#4 +# pkg:gem/actionmailer#lib/action_mailer/callbacks.rb:4 module ActionMailer::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1584,51 +1566,43 @@ module ActionMailer::Callbacks end end -# source://actionmailer//lib/action_mailer/callbacks.rb#12 +# pkg:gem/actionmailer#lib/action_mailer/callbacks.rb:12 module ActionMailer::Callbacks::ClassMethods # Defines a callback that will get called right after the # message's delivery method is finished. # - # source://actionmailer//lib/action_mailer/callbacks.rb#21 + # pkg:gem/actionmailer#lib/action_mailer/callbacks.rb:21 def after_deliver(*filters, &blk); end # Defines a callback that will get called around the message's deliver method. # - # source://actionmailer//lib/action_mailer/callbacks.rb#26 + # pkg:gem/actionmailer#lib/action_mailer/callbacks.rb:26 def around_deliver(*filters, &blk); end # Defines a callback that will get called right before the # message is sent to the delivery method. # - # source://actionmailer//lib/action_mailer/callbacks.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/callbacks.rb:15 def before_deliver(*filters, &blk); end end -# source://actionmailer//lib/action_mailer/collector.rb#8 +# pkg:gem/actionmailer#lib/action_mailer/collector.rb:8 class ActionMailer::Collector include ::AbstractController::Collector - # @return [Collector] a new instance of Collector - # - # source://actionmailer//lib/action_mailer/collector.rb#12 + # pkg:gem/actionmailer#lib/action_mailer/collector.rb:12 def initialize(context, &block); end - # @raise [ArgumentError] - # - # source://actionmailer//lib/action_mailer/collector.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/collector.rb:23 def all(*args, &block); end - # @raise [ArgumentError] - # - # source://actionmailer//lib/action_mailer/collector.rb#18 + # pkg:gem/actionmailer#lib/action_mailer/collector.rb:18 def any(*args, &block); end - # source://actionmailer//lib/action_mailer/collector.rb#25 + # pkg:gem/actionmailer#lib/action_mailer/collector.rb:25 def custom(mime, options = T.unsafe(nil)); end - # Returns the value of attribute responses. - # - # source://actionmailer//lib/action_mailer/collector.rb#10 + # pkg:gem/actionmailer#lib/action_mailer/collector.rb:10 def responses; end end @@ -1637,7 +1611,7 @@ end # This module handles everything related to mail delivery, from registering # new delivery methods to configuring the mail object to be sent. # -# source://actionmailer//lib/action_mailer/delivery_methods.rb#10 +# pkg:gem/actionmailer#lib/action_mailer/delivery_methods.rb:10 module ActionMailer::DeliveryMethods extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1645,7 +1619,7 @@ module ActionMailer::DeliveryMethods mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::ActionMailer::DeliveryMethods::ClassMethods - # source://actionmailer//lib/action_mailer/delivery_methods.rb#79 + # pkg:gem/actionmailer#lib/action_mailer/delivery_methods.rb:79 def wrap_delivery_behavior!(*args); end module GeneratedClassMethods @@ -1693,7 +1667,7 @@ end # Helpers for creating and wrapping delivery behavior, used by DeliveryMethods. # -# source://actionmailer//lib/action_mailer/delivery_methods.rb#41 +# pkg:gem/actionmailer#lib/action_mailer/delivery_methods.rb:41 module ActionMailer::DeliveryMethods::ClassMethods # Adds a new delivery method through the given class using the given # symbol as alias and the default options supplied. @@ -1702,16 +1676,16 @@ module ActionMailer::DeliveryMethods::ClassMethods # location: '/usr/sbin/sendmail', # arguments: %w[ -i ] # - # source://actionmailer//lib/action_mailer/delivery_methods.rb#51 + # pkg:gem/actionmailer#lib/action_mailer/delivery_methods.rb:51 def add_delivery_method(symbol, klass, default_options = T.unsafe(nil)); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#43 - def deliveries(&_arg0); end + # pkg:gem/actionmailer#lib/action_mailer/delivery_methods.rb:43 + def deliveries(&); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#43 + # pkg:gem/actionmailer#lib/action_mailer/delivery_methods.rb:43 def deliveries=(arg); end - # source://actionmailer//lib/action_mailer/delivery_methods.rb#57 + # pkg:gem/actionmailer#lib/action_mailer/delivery_methods.rb:57 def wrap_delivery_behavior(mail, method = T.unsafe(nil), options = T.unsafe(nil)); end end @@ -1726,7 +1700,7 @@ end # # For more information, see +ActionController::FormBuilder+. # -# source://actionmailer//lib/action_mailer/form_builder.rb#14 +# pkg:gem/actionmailer#lib/action_mailer/form_builder.rb:14 module ActionMailer::FormBuilder extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1736,7 +1710,7 @@ module ActionMailer::FormBuilder # Default form builder for the mailer # - # source://actionmailer//lib/action_mailer/form_builder.rb#33 + # pkg:gem/actionmailer#lib/action_mailer/form_builder.rb:33 def default_form_builder; end module GeneratedClassMethods @@ -1748,7 +1722,7 @@ module ActionMailer::FormBuilder module GeneratedInstanceMethods; end end -# source://actionmailer//lib/action_mailer/form_builder.rb#21 +# pkg:gem/actionmailer#lib/action_mailer/form_builder.rb:21 module ActionMailer::FormBuilder::ClassMethods # Set the form builder to be used as the default for all forms # in the views rendered by this mailer and its subclasses. @@ -1756,7 +1730,7 @@ module ActionMailer::FormBuilder::ClassMethods # ==== Parameters # * builder - Default form builder, an instance of ActionView::Helpers::FormBuilder # - # source://actionmailer//lib/action_mailer/form_builder.rb#27 + # pkg:gem/actionmailer#lib/action_mailer/form_builder.rb:27 def default_form_builder(builder); end end @@ -1771,41 +1745,37 @@ end # # ActionMailer::Base.preview_interceptors.delete(ActionMailer::InlinePreviewInterceptor) # -# source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#17 +# pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:17 class ActionMailer::InlinePreviewInterceptor include ::Base64 - # @return [InlinePreviewInterceptor] a new instance of InlinePreviewInterceptor - # - # source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#26 + # pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:26 def initialize(message); end - # source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#30 + # pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:30 def transform!; end private - # source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#51 + # pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:51 def data_url(part); end - # source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#55 + # pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:55 def find_part(cid); end - # source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#47 + # pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:47 def html_part; end - # Returns the value of attribute message. - # - # source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#45 + # pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:45 def message; end class << self - # source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#22 + # pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:22 def previewing_email(message); end end end -# source://actionmailer//lib/action_mailer/inline_preview_interceptor.rb#18 +# pkg:gem/actionmailer#lib/action_mailer/inline_preview_interceptor.rb:18 ActionMailer::InlinePreviewInterceptor::PATTERN = T.let(T.unsafe(nil), Regexp) # = Action Mailer \LogSubscriber @@ -1813,30 +1783,30 @@ ActionMailer::InlinePreviewInterceptor::PATTERN = T.let(T.unsafe(nil), Regexp) # Implements the ActiveSupport::LogSubscriber for logging notifications when # email is delivered or received. # -# source://actionmailer//lib/action_mailer/log_subscriber.rb#10 +# pkg:gem/actionmailer#lib/action_mailer/log_subscriber.rb:10 class ActionMailer::LogSubscriber < ::ActiveSupport::LogSubscriber # An email was delivered. # - # source://actionmailer//lib/action_mailer/log_subscriber.rb#12 + # pkg:gem/actionmailer#lib/action_mailer/log_subscriber.rb:12 def deliver(event); end # Use the logger configured for ActionMailer::Base. # - # source://actionmailer//lib/action_mailer/log_subscriber.rb#38 + # pkg:gem/actionmailer#lib/action_mailer/log_subscriber.rb:38 def logger; end # An email was generated. # - # source://actionmailer//lib/action_mailer/log_subscriber.rb#28 + # pkg:gem/actionmailer#lib/action_mailer/log_subscriber.rb:28 def process(event); end class << self private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/log_subscriber.rb:25 def __class_attr_log_levels; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/log_subscriber.rb:25 def __class_attr_log_levels=(new_value); end end end @@ -1849,35 +1819,35 @@ end # # Exceptions are rescued and handled by the mailer class. # -# source://actionmailer//lib/action_mailer/mail_delivery_job.rb#13 +# pkg:gem/actionmailer#lib/action_mailer/mail_delivery_job.rb:13 class ActionMailer::MailDeliveryJob < ::ActiveJob::Base - # source://actionmailer//lib/action_mailer/mail_delivery_job.rb#21 + # pkg:gem/actionmailer#lib/action_mailer/mail_delivery_job.rb:21 def perform(mailer, mail_method, delivery_method, args:, kwargs: T.unsafe(nil), params: T.unsafe(nil)); end private - # source://actionmailer//lib/action_mailer/mail_delivery_job.rb#40 + # pkg:gem/actionmailer#lib/action_mailer/mail_delivery_job.rb:40 def handle_exception_with_mailer_class(exception); end # "Deserialize" the mailer class name by hand in case another argument # (like a Global ID reference) raised DeserializationError. # - # source://actionmailer//lib/action_mailer/mail_delivery_job.rb#34 + # pkg:gem/actionmailer#lib/action_mailer/mail_delivery_job.rb:34 def mailer_class; end class << self private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/mail_delivery_job.rb:14 def __class_attr_queue_name; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/mail_delivery_job.rb:14 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/mail_delivery_job.rb:19 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/mail_delivery_job.rb:19 def __class_attr_rescue_handlers=(new_value); end end end @@ -1888,11 +1858,11 @@ end # formatting messages, accessing mailer or message instances, and the # attachments list. # -# source://actionmailer//lib/action_mailer/mail_helper.rb#9 +# pkg:gem/actionmailer#lib/action_mailer/mail_helper.rb:9 module ActionMailer::MailHelper # Access the message attachments list. # - # source://actionmailer//lib/action_mailer/mail_helper.rb#53 + # pkg:gem/actionmailer#lib/action_mailer/mail_helper.rb:53 def attachments; end # Take the text and format it, indented two spaces for each line, and @@ -1908,7 +1878,7 @@ module ActionMailer::MailHelper # block_format text # # => " This is the paragraph.\n\n * item1\n * item2\n" # - # source://actionmailer//lib/action_mailer/mail_helper.rb#22 + # pkg:gem/actionmailer#lib/action_mailer/mail_helper.rb:22 def block_format(text); end # Returns +text+ wrapped at +len+ columns and indented +indent+ spaces. @@ -1920,17 +1890,17 @@ module ActionMailer::MailHelper # format_paragraph(my_text, 25, 4) # # => " Here is a sample text with\n more than 40 characters" # - # source://actionmailer//lib/action_mailer/mail_helper.rb#65 + # pkg:gem/actionmailer#lib/action_mailer/mail_helper.rb:65 def format_paragraph(text, len = T.unsafe(nil), indent = T.unsafe(nil)); end # Access the mailer instance. # - # source://actionmailer//lib/action_mailer/mail_helper.rb#43 + # pkg:gem/actionmailer#lib/action_mailer/mail_helper.rb:43 def mailer; end # Access the message instance. # - # source://actionmailer//lib/action_mailer/mail_helper.rb#48 + # pkg:gem/actionmailer#lib/action_mailer/mail_helper.rb:48 def message; end end @@ -1948,21 +1918,19 @@ end # Notifier.welcome(User.first).deliver_later # enqueue email delivery as a job through Active Job # Notifier.welcome(User.first).message # a Mail::Message object # -# source://actionmailer//lib/action_mailer/message_delivery.rb#19 +# pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:19 class ActionMailer::MessageDelivery - # @return [MessageDelivery] a new instance of MessageDelivery - # - # source://actionmailer//lib/action_mailer/message_delivery.rb#20 - def initialize(mailer_class, action, *args, **_arg3); end + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:20 + def initialize(mailer_class, action, *args, **); end # Method calls are delegated to the Mail::Message that's ready to deliver. # - # source://actionmailer//lib/action_mailer/message_delivery.rb#31 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:31 def __getobj__; end # Unused except for delegator internals (dup, marshalling). # - # source://actionmailer//lib/action_mailer/message_delivery.rb#36 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:36 def __setobj__(mail_message); end # Enqueues the email to be delivered through Active Job. When the @@ -1989,7 +1957,7 @@ class ActionMailer::MessageDelivery # self.delivery_job = RegistrationDeliveryJob # end # - # source://actionmailer//lib/action_mailer/message_delivery.rb#102 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:102 def deliver_later(options = T.unsafe(nil)); end # Enqueues the email to be delivered through Active Job. When the @@ -2018,14 +1986,14 @@ class ActionMailer::MessageDelivery # self.delivery_job = RegistrationDeliveryJob # end # - # source://actionmailer//lib/action_mailer/message_delivery.rb#75 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:75 def deliver_later!(options = T.unsafe(nil)); end # Delivers an email: # # Notifier.welcome(User.first).deliver_now # - # source://actionmailer//lib/action_mailer/message_delivery.rb#123 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:123 def deliver_now; end # Delivers an email without checking +perform_deliveries+ and +raise_delivery_errors+, @@ -2033,38 +2001,34 @@ class ActionMailer::MessageDelivery # # Notifier.welcome(User.first).deliver_now! # - # source://actionmailer//lib/action_mailer/message_delivery.rb#111 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:111 def deliver_now!; end # Returns the resulting Mail::Message # - # source://actionmailer//lib/action_mailer/message_delivery.rb#41 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:41 def message; end # Was the delegate loaded, causing the mailer action to be processed? # - # @return [Boolean] - # - # source://actionmailer//lib/action_mailer/message_delivery.rb#46 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:46 def processed?; end private - # source://actionmailer//lib/action_mailer/message_delivery.rb#140 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:140 def enqueue_delivery(delivery_method, options = T.unsafe(nil)); end # Returns the processed Mailer instance. We keep this instance # on hand so we can run callbacks and delegate exception handling to it. # - # source://actionmailer//lib/action_mailer/message_delivery.rb#134 + # pkg:gem/actionmailer#lib/action_mailer/message_delivery.rb:134 def processed_mailer; end end -# source://actionmailer//lib/action_mailer/test_case.rb#7 +# pkg:gem/actionmailer#lib/action_mailer/test_case.rb:7 class ActionMailer::NonInferrableMailerError < ::StandardError - # @return [NonInferrableMailerError] a new instance of NonInferrableMailerError - # - # source://actionmailer//lib/action_mailer/test_case.rb#8 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:8 def initialize(name); end end @@ -2154,14 +2118,14 @@ end # # InvitationsMailer.with(inviter: person_a, invitee: person_b).account_invitation.deliver_later # -# source://actionmailer//lib/action_mailer/parameterized.rb#89 +# pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:89 module ActionMailer::Parameterized extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionMailer::Parameterized::ClassMethods end -# source://actionmailer//lib/action_mailer/parameterized.rb#100 +# pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:100 module ActionMailer::Parameterized::ClassMethods # Provide the parameters to the mailer in order to use them in the instance methods and callbacks. # @@ -2169,156 +2133,142 @@ module ActionMailer::Parameterized::ClassMethods # # See Parameterized documentation for full example. # - # source://actionmailer//lib/action_mailer/parameterized.rb#106 + # pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:106 def with(params); end end -# source://actionmailer//lib/action_mailer/parameterized.rb#111 +# pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:111 class ActionMailer::Parameterized::Mailer - # @return [Mailer] a new instance of Mailer - # - # source://actionmailer//lib/action_mailer/parameterized.rb#112 + # pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:112 def initialize(mailer, params); end private - # source://actionmailer//lib/action_mailer/parameterized.rb#117 - def method_missing(method_name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:117 + def method_missing(method_name, *, **, &); end - # @return [Boolean] - # - # source://actionmailer//lib/action_mailer/parameterized.rb#125 + # pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:125 def respond_to_missing?(method, include_all = T.unsafe(nil)); end end -# source://actionmailer//lib/action_mailer/parameterized.rb#130 +# pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:130 class ActionMailer::Parameterized::MessageDelivery < ::ActionMailer::MessageDelivery - # @return [MessageDelivery] a new instance of MessageDelivery - # - # source://actionmailer//lib/action_mailer/parameterized.rb#131 - def initialize(mailer_class, action, params, *_arg3, **_arg4, &_arg5); end + # pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:131 + def initialize(mailer_class, action, params, *, **, &); end private - # source://actionmailer//lib/action_mailer/parameterized.rb#144 + # pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:144 def enqueue_delivery(delivery_method, options = T.unsafe(nil)); end - # source://actionmailer//lib/action_mailer/parameterized.rb#137 + # pkg:gem/actionmailer#lib/action_mailer/parameterized.rb:137 def processed_mailer; end end -# source://actionmailer//lib/action_mailer/preview.rb#69 +# pkg:gem/actionmailer#lib/action_mailer/preview.rb:69 class ActionMailer::Preview extend ::ActiveSupport::DescendantsTracker - # @return [Preview] a new instance of Preview - # - # source://actionmailer//lib/action_mailer/preview.rb#74 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:74 def initialize(params = T.unsafe(nil)); end - # Returns the value of attribute params. - # - # source://actionmailer//lib/action_mailer/preview.rb#72 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:72 def params; end class << self # Returns all mailer preview classes. # - # source://actionmailer//lib/action_mailer/preview.rb#80 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:80 def all; end # Returns the mail object for the given email name. The registered preview # interceptors will be informed so that they can transform the message # as they would if the mail was actually being delivered. # - # source://actionmailer//lib/action_mailer/preview.rb#88 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:88 def call(email, params = T.unsafe(nil)); end # Returns +true+ if the email exists. # - # @return [Boolean] - # - # source://actionmailer//lib/action_mailer/preview.rb#101 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:101 def email_exists?(email); end # Returns all of the available email previews. # - # source://actionmailer//lib/action_mailer/preview.rb#96 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:96 def emails; end # Returns +true+ if the preview exists. # - # @return [Boolean] - # - # source://actionmailer//lib/action_mailer/preview.rb#106 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:106 def exists?(preview); end # Find a mailer preview by its underscored class name. # - # source://actionmailer//lib/action_mailer/preview.rb#111 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:111 def find(preview); end # Returns the underscored name of the mailer preview without the suffix. # - # source://actionmailer//lib/action_mailer/preview.rb#116 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:116 def preview_name; end private - # source://actionmailer//lib/action_mailer/preview.rb#135 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:135 def inform_preview_interceptors(message); end - # source://actionmailer//lib/action_mailer/preview.rb#121 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:121 def load_previews; end - # source://actionmailer//lib/action_mailer/preview.rb#127 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:127 def preview_paths; end - # source://actionmailer//lib/action_mailer/preview.rb#131 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:131 def show_previews; end end end -# source://actionmailer//lib/action_mailer/preview.rb#6 +# pkg:gem/actionmailer#lib/action_mailer/preview.rb:6 module ActionMailer::Previews extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionMailer::Previews::ClassMethods end -# source://actionmailer//lib/action_mailer/preview.rb#28 +# pkg:gem/actionmailer#lib/action_mailer/preview.rb:28 module ActionMailer::Previews::ClassMethods # Register an Interceptor which will be called before mail is previewed. # Either a class or a string can be passed in as the Interceptor. If a # string is passed in it will be constantized. # - # source://actionmailer//lib/action_mailer/preview.rb#42 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:42 def register_preview_interceptor(interceptor); end # Register one or more Interceptors which will be called before mail is previewed. # - # source://actionmailer//lib/action_mailer/preview.rb#30 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:30 def register_preview_interceptors(*interceptors); end # Unregister a previously registered Interceptor. # Either a class or a string can be passed in as the Interceptor. If a # string is passed in it will be constantized. # - # source://actionmailer//lib/action_mailer/preview.rb#53 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:53 def unregister_preview_interceptor(interceptor); end # Unregister one or more previously registered Interceptors. # - # source://actionmailer//lib/action_mailer/preview.rb#35 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:35 def unregister_preview_interceptors(*interceptors); end private - # source://actionmailer//lib/action_mailer/preview.rb#58 + # pkg:gem/actionmailer#lib/action_mailer/preview.rb:58 def interceptor_class_for(interceptor); end end -# source://actionmailer//lib/action_mailer/queued_delivery.rb#4 +# pkg:gem/actionmailer#lib/action_mailer/queued_delivery.rb:4 module ActionMailer::QueuedDelivery extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -2344,7 +2294,7 @@ module ActionMailer::QueuedDelivery end end -# source://actionmailer//lib/action_mailer/railtie.rb#9 +# pkg:gem/actionmailer#lib/action_mailer/railtie.rb:9 class ActionMailer::Railtie < ::Rails::Railtie; end # = Action Mailer \Rescuable @@ -2354,7 +2304,7 @@ class ActionMailer::Railtie < ::Rails::Railtie; end # for mailers. Wraps mailer action processing, mail job processing, and mail # delivery to handle configured errors. # -# source://actionmailer//lib/action_mailer/rescuable.rb#10 +# pkg:gem/actionmailer#lib/action_mailer/rescuable.rb:10 module ActionMailer::Rescuable extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -2364,13 +2314,13 @@ module ActionMailer::Rescuable mixes_in_class_methods ::ActiveSupport::Rescuable::ClassMethods mixes_in_class_methods ::ActionMailer::Rescuable::ClassMethods - # source://actionmailer//lib/action_mailer/rescuable.rb#20 + # pkg:gem/actionmailer#lib/action_mailer/rescuable.rb:20 def handle_exceptions; end private - # source://actionmailer//lib/action_mailer/rescuable.rb#27 - def process(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionmailer#lib/action_mailer/rescuable.rb:27 + def process(*, **, &); end module GeneratedClassMethods def rescue_handlers; end @@ -2385,13 +2335,13 @@ module ActionMailer::Rescuable end end -# source://actionmailer//lib/action_mailer/rescuable.rb#0 +# pkg:gem/actionmailer#lib/action_mailer/rescuable.rb:14 module ActionMailer::Rescuable::ClassMethods - # source://actionmailer//lib/action_mailer/rescuable.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/rescuable.rb:15 def handle_exception(exception); end end -# source://actionmailer//lib/action_mailer/test_case.rb#15 +# pkg:gem/actionmailer#lib/action_mailer/test_case.rb:15 class ActionMailer::TestCase < ::ActiveSupport::TestCase include ::ActiveSupport::Testing::ConstantLookup include ::ActiveJob::TestHelper @@ -2402,42 +2352,42 @@ class ActionMailer::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionMailer::TestCase::Behavior::ClassMethods - # source://actionmailer//lib/action_mailer/test_case.rb#41 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:41 def _mailer_class; end - # source://actionmailer//lib/action_mailer/test_case.rb#41 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:41 def _mailer_class=(_arg0); end - # source://actionmailer//lib/action_mailer/test_case.rb#41 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:41 def _mailer_class?; end class << self - # source://actionmailer//lib/action_mailer/test_case.rb#41 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:41 def _mailer_class; end - # source://actionmailer//lib/action_mailer/test_case.rb#41 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:41 def _mailer_class=(value); end - # source://actionmailer//lib/action_mailer/test_case.rb#41 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:41 def _mailer_class?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:42 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:42 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:41 def __class_attr__mailer_class; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:41 def __class_attr__mailer_class=(new_value); end end end -# source://actionmailer//lib/action_mailer/test_case.rb#32 +# pkg:gem/actionmailer#lib/action_mailer/test_case.rb:32 module ActionMailer::TestCase::Behavior include ::ActiveSupport::Testing::Assertions include ::ActiveJob::TestHelper @@ -2458,30 +2408,30 @@ module ActionMailer::TestCase::Behavior # an email inside a fixture. See the testing guide for a concrete example: # https://guides.rubyonrails.org/testing.html#revenge-of-the-fixtures # - # source://actionmailer//lib/action_mailer/test_case.rb#82 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:82 def read_fixture(action); end private - # source://actionmailer//lib/action_mailer/test_case.rb#115 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:115 def charset; end - # source://actionmailer//lib/action_mailer/test_case.rb#119 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:119 def encode(subject); end - # source://actionmailer//lib/action_mailer/test_case.rb#87 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:87 def initialize_test_deliveries; end - # source://actionmailer//lib/action_mailer/test_case.rb#104 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:104 def restore_delivery_method; end - # source://actionmailer//lib/action_mailer/test_case.rb#94 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:94 def restore_test_deliveries; end - # source://actionmailer//lib/action_mailer/test_case.rb#99 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:99 def set_delivery_method(method); end - # source://actionmailer//lib/action_mailer/test_case.rb#109 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:109 def set_expected_mail; end module GeneratedClassMethods @@ -2497,34 +2447,32 @@ module ActionMailer::TestCase::Behavior end end -# source://actionmailer//lib/action_mailer/test_case.rb#48 +# pkg:gem/actionmailer#lib/action_mailer/test_case.rb:48 module ActionMailer::TestCase::Behavior::ClassMethods - # @raise [NonInferrableMailerError] - # - # source://actionmailer//lib/action_mailer/test_case.rb#68 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:68 def determine_default_mailer(name); end - # source://actionmailer//lib/action_mailer/test_case.rb#60 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:60 def mailer_class; end - # source://actionmailer//lib/action_mailer/test_case.rb#49 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:49 def tests(mailer); end end -# source://actionmailer//lib/action_mailer/test_case.rb#16 +# pkg:gem/actionmailer#lib/action_mailer/test_case.rb:16 module ActionMailer::TestCase::ClearTestDeliveries extend ::ActiveSupport::Concern private - # source://actionmailer//lib/action_mailer/test_case.rb#25 + # pkg:gem/actionmailer#lib/action_mailer/test_case.rb:25 def clear_test_deliveries; end end # Provides helper methods for testing Action Mailer, including #assert_emails # and #assert_no_emails. # -# source://actionmailer//lib/action_mailer/test_helper.rb#9 +# pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:9 module ActionMailer::TestHelper include ::ActiveSupport::Testing::Assertions include ::ActiveJob::TestHelper @@ -2553,7 +2501,7 @@ module ActionMailer::TestHelper # end # end # - # source://actionmailer//lib/action_mailer/test_helper.rb#35 + # pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:35 def assert_emails(number, &block); end # Asserts that a specific email has been enqueued, optionally @@ -2619,7 +2567,7 @@ module ActionMailer::TestHelper # end # end # - # source://actionmailer//lib/action_mailer/test_helper.rb#157 + # pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:157 def assert_enqueued_email_with(mailer, method, params: T.unsafe(nil), args: T.unsafe(nil), queue: T.unsafe(nil), &block); end # Asserts that the number of emails enqueued for later delivery matches @@ -2647,7 +2595,7 @@ module ActionMailer::TestHelper # end # end # - # source://actionmailer//lib/action_mailer/test_helper.rb#91 + # pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:91 def assert_enqueued_emails(number, &block); end # Asserts that no emails have been sent. @@ -2670,7 +2618,7 @@ module ActionMailer::TestHelper # # assert_emails 0, &block # - # source://actionmailer//lib/action_mailer/test_helper.rb#63 + # pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:63 def assert_no_emails(&block); end # Asserts that no emails are enqueued for later delivery. @@ -2689,7 +2637,7 @@ module ActionMailer::TestHelper # end # end # - # source://actionmailer//lib/action_mailer/test_helper.rb#191 + # pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:191 def assert_no_enqueued_emails(&block); end # Returns any emails that are sent in the block. @@ -2707,7 +2655,7 @@ module ActionMailer::TestHelper # assert_equal "Hi there", emails.first.subject # end # - # source://actionmailer//lib/action_mailer/test_helper.rb#249 + # pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:249 def capture_emails(&block); end # Delivers all enqueued emails. If a block is given, delivers all of the emails @@ -2747,29 +2695,29 @@ module ActionMailer::TestHelper # If the +:at+ option is specified, then only delivers emails enqueued to deliver # immediately or before the given time. # - # source://actionmailer//lib/action_mailer/test_helper.rb#231 + # pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:231 def deliver_enqueued_emails(queue: T.unsafe(nil), at: T.unsafe(nil), &block); end private - # source://actionmailer//lib/action_mailer/test_helper.rb#258 + # pkg:gem/actionmailer#lib/action_mailer/test_helper.rb:258 def delivery_job_filter(job); end end -# source://actionmailer//lib/action_mailer/gem_version.rb#9 +# pkg:gem/actionmailer#lib/action_mailer/gem_version.rb:9 module ActionMailer::VERSION; end -# source://actionmailer//lib/action_mailer/gem_version.rb#10 +# pkg:gem/actionmailer#lib/action_mailer/gem_version.rb:10 ActionMailer::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://actionmailer//lib/action_mailer/gem_version.rb#11 +# pkg:gem/actionmailer#lib/action_mailer/gem_version.rb:11 ActionMailer::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://actionmailer//lib/action_mailer/gem_version.rb#13 +# pkg:gem/actionmailer#lib/action_mailer/gem_version.rb:13 ActionMailer::VERSION::PRE = T.let(T.unsafe(nil), String) -# source://actionmailer//lib/action_mailer/gem_version.rb#15 +# pkg:gem/actionmailer#lib/action_mailer/gem_version.rb:15 ActionMailer::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://actionmailer//lib/action_mailer/gem_version.rb#12 +# pkg:gem/actionmailer#lib/action_mailer/gem_version.rb:12 ActionMailer::VERSION::TINY = T.let(T.unsafe(nil), Integer) diff --git a/sorbet/rbi/gems/actionpack@8.0.5.1.rbi b/sorbet/rbi/gems/actionpack@8.0.5.2.rbi similarity index 62% rename from sorbet/rbi/gems/actionpack@8.0.5.1.rbi rename to sorbet/rbi/gems/actionpack@8.0.5.2.rbi index 66e22d7e..1ba9eedf 100644 --- a/sorbet/rbi/gems/actionpack@8.0.5.1.rbi +++ b/sorbet/rbi/gems/actionpack@8.0.5.2.rbi @@ -7,41 +7,39 @@ # :markup: markdown # -# source://actionpack//lib/abstract_controller/deprecator.rb#5 +# pkg:gem/actionpack#lib/abstract_controller/deprecator.rb:5 module AbstractController extend ::ActiveSupport::Autoload class << self - # source://actionpack//lib/abstract_controller/deprecator.rb#6 + # pkg:gem/actionpack#lib/abstract_controller/deprecator.rb:6 def deprecator; end - # source://actionpack//lib/abstract_controller.rb#27 + # pkg:gem/actionpack#lib/abstract_controller.rb:27 def eager_load!; end end end # Raised when a non-existing controller action is triggered. # -# source://actionpack//lib/abstract_controller/base.rb#13 +# pkg:gem/actionpack#lib/abstract_controller/base.rb:13 class AbstractController::ActionNotFound < ::StandardError include ::DidYouMean::Correctable - # @return [ActionNotFound] a new instance of ActionNotFound - # - # source://actionpack//lib/abstract_controller/base.rb#16 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:16 def initialize(message = T.unsafe(nil), controller = T.unsafe(nil), action = T.unsafe(nil)); end - # source://actionpack//lib/abstract_controller/base.rb#14 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:14 def action; end - # source://actionpack//lib/abstract_controller/base.rb#14 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:14 def controller; end - # source://actionpack//lib/abstract_controller/base.rb#25 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:25 def corrections; end end -# source://actionpack//lib/abstract_controller/asset_paths.rb#6 +# pkg:gem/actionpack#lib/abstract_controller/asset_paths.rb:6 module AbstractController::AssetPaths extend ::ActiveSupport::Concern end @@ -53,9 +51,7 @@ end # their own `render` method, since rendering means different things depending on # the context. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionpack//lib/abstract_controller/base.rb#37 +# pkg:gem/actionpack#lib/abstract_controller/base.rb:37 class AbstractController::Base include ::ActiveSupport::Configurable extend ::ActiveSupport::Configurable::ClassMethods @@ -63,15 +59,13 @@ class AbstractController::Base # Delegates to the class's ::action_methods. # - # source://actionpack//lib/abstract_controller/base.rb#161 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def action_methods; end - # Returns the name of the action this controller is processing. - # - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:44 def action_name; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:44 def action_name=(_arg0); end # Returns true if a method for the action is available and can be dispatched, @@ -85,33 +79,27 @@ class AbstractController::Base # #### Parameters # * `action_name` - The name of an action to be tested # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#176 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def available_action?(action_name); end # Delegates to the class's ::controller_path. # - # source://actionpack//lib/abstract_controller/base.rb#156 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def controller_path; end - # Returns the formats that can be processed by the controller. - # - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:48 def formats; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:48 def formats=(_arg0); end - # source://actionpack//lib/abstract_controller/base.rb#193 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def inspect; end # Tests if a response body is set. Used to determine if the `process_action` # callback needs to be terminated in AbstractController::Callbacks. # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#182 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def performed?; end # Calls the action going through the entire Action Dispatch stack. @@ -120,21 +108,21 @@ class AbstractController::Base # If no method can handle the action, then an AbstractController::ActionNotFound # error is raised. # - # source://actionpack//lib/abstract_controller/base.rb#143 - def process(action, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 + def process(action, *, **, &); end - # Returns the body of the HTTP response sent by the controller. - # - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:40 def response_body; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:40 def response_body=(_arg0); end # Actually call the method associated with the action. Override this method if # you wish to change how action methods are called, not to add additional # behavior around it. For example, you would override #send_action if you want # to inject arguments into the method. + # + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def send_action(*_arg0); end private @@ -156,21 +144,19 @@ class AbstractController::Base # # Raise `AbstractController::ActionNotFound`. # - # source://actionpack//lib/abstract_controller/base.rb#247 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def _find_action_name(action_name); end # If the action name was not found, but a method called "action_missing" was # found, #method_for_action will return "_handle_action_missing". This method # calls #action_missing with the current action name. # - # source://actionpack//lib/abstract_controller/base.rb#227 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def _handle_action_missing(*args); end # Checks if the action name is valid and returns false otherwise. # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#284 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def _valid_action_name?(action_name); end # Returns true if the name can be considered an action because it has a method @@ -179,9 +165,7 @@ class AbstractController::Base # #### Parameters # * `name` - The name of an action to be tested # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#204 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def action_method?(name); end # Takes an action name and returns the name of the method that will handle the @@ -208,7 +192,7 @@ class AbstractController::Base # * `string` - The name of the method that handles the action # * `nil` - No method name could be found. # - # source://actionpack//lib/abstract_controller/base.rb#275 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 def method_for_action(action_name); end # Call the action. Override this in a subclass to modify the behavior around @@ -218,23 +202,19 @@ class AbstractController::Base # Notice that the first argument is the method to be dispatched which is **not** # necessarily the same as the action name. # - # source://actionpack//lib/abstract_controller/base.rb#214 - def process_action(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/base.rb:126 + def process_action(*, **, &); end class << self - # Returns the value of attribute abstract. - # - # source://actionpack//lib/abstract_controller/base.rb#54 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:54 def abstract; end # Define a controller as abstract. See internal_methods for more details. # - # source://actionpack//lib/abstract_controller/base.rb#58 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:58 def abstract!; end - # Returns the value of attribute abstract. - # - # source://actionpack//lib/abstract_controller/base.rb#54 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:55 def abstract?; end # A `Set` of method names that should be considered actions. This includes all @@ -242,14 +222,14 @@ class AbstractController::Base # internal_methods), adding back in any methods that are internal, but still # exist on the class itself. # - # source://actionpack//lib/abstract_controller/base.rb#93 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:93 def action_methods; end # action_methods are cached and there is sometimes a need to refresh them. # ::clear_action_methods! allows you to do that, so next time you run # action_methods, they will be recalculated. # - # source://actionpack//lib/abstract_controller/base.rb#108 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:108 def clear_action_methods!; end # Returns the full controller name, underscored, without the ending Controller. @@ -260,13 +240,13 @@ class AbstractController::Base # # MyApp::MyPostsController.controller_path # => "my_app/my_posts" # - # source://actionpack//lib/abstract_controller/base.rb#120 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:120 def controller_path; end - # source://actionpack//lib/abstract_controller/base.rb#130 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:130 def eager_load!; end - # source://actionpack//lib/abstract_controller/base.rb#62 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:62 def inherited(klass); end # A list of all internal methods for a controller. This finds the first abstract @@ -276,26 +256,24 @@ class AbstractController::Base # removed. (ActionController::Metal and ActionController::Base are defined as # abstract) # - # source://actionpack//lib/abstract_controller/base.rb#77 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:77 def internal_methods; end # Refresh the cached action_methods when a new action_method is added. # - # source://actionpack//lib/abstract_controller/base.rb#125 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:125 def method_added(name); end # Returns true if the given controller is capable of rendering a path. A # subclass of `AbstractController::Base` may return false. An Email controller # for example does not support paths, only full URLs. # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/base.rb#189 + # pkg:gem/actionpack#lib/abstract_controller/base.rb:189 def supports_path?; end end end -# source://actionpack//lib/abstract_controller/caching.rb#6 +# pkg:gem/actionpack#lib/abstract_controller/caching.rb:6 module AbstractController::Caching include ::AbstractController::Caching::ConfigMethods extend ::ActiveSupport::Concern @@ -308,14 +286,14 @@ module AbstractController::Caching mixes_in_class_methods ::AbstractController::Caching::ClassMethods mixes_in_class_methods ::AbstractController::Caching::ConfigMethods - # source://actionpack//lib/abstract_controller/caching.rb#54 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:54 def view_cache_dependencies; end private # Convenience accessor. # - # source://actionpack//lib/abstract_controller/caching.rb#60 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:60 def cache(key, options = T.unsafe(nil), &block); end module GeneratedClassMethods @@ -337,25 +315,23 @@ module AbstractController::Caching end end -# source://actionpack//lib/abstract_controller/caching.rb#48 +# pkg:gem/actionpack#lib/abstract_controller/caching.rb:48 module AbstractController::Caching::ClassMethods - # source://actionpack//lib/abstract_controller/caching.rb#49 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:49 def view_cache_dependency(&dependency); end end -# source://actionpack//lib/abstract_controller/caching.rb#14 +# pkg:gem/actionpack#lib/abstract_controller/caching.rb:14 module AbstractController::Caching::ConfigMethods - # source://actionpack//lib/abstract_controller/caching.rb#15 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:15 def cache_store; end - # source://actionpack//lib/abstract_controller/caching.rb#19 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:19 def cache_store=(store); end private - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/caching.rb#24 + # pkg:gem/actionpack#lib/abstract_controller/caching.rb:24 def cache_configured?; end end @@ -374,7 +350,7 @@ end # # expire_fragment('name_of_cache') # -# source://actionpack//lib/abstract_controller/caching/fragments.rb#21 +# pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:21 module AbstractController::Caching::Fragments extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -388,7 +364,7 @@ module AbstractController::Caching::Fragments # `ENV["RAILS_APP_VERSION"]` if set, followed by any controller-wide key prefix # values, ending with the specified `key` value. # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#68 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:68 def combined_fragment_cache_key(key); end # Removes fragments from the cache. @@ -409,30 +385,28 @@ module AbstractController::Caching::Fragments # `options` is passed through to the cache store's `delete` method (or # `delete_matched`, for Regexp keys). # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#131 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:131 def expire_fragment(key, options = T.unsafe(nil)); end # Check if a cached fragment from the location signified by `key` exists (see # `expire_fragment` for acceptable formats). # - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#105 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:105 def fragment_exist?(key, options = T.unsafe(nil)); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#144 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:144 def instrument_fragment_cache(name, key, &block); end # Reads a cached fragment from the location signified by `key` (see # `expire_fragment` for acceptable formats). # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#93 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:93 def read_fragment(key, options = T.unsafe(nil)); end # Writes `content` to the location signified by `key` (see `expire_fragment` for # acceptable formats). # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#80 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:80 def write_fragment(key, content, options = T.unsafe(nil)); end module GeneratedClassMethods @@ -448,7 +422,7 @@ module AbstractController::Caching::Fragments end end -# source://actionpack//lib/abstract_controller/caching/fragments.rb#38 +# pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:38 module AbstractController::Caching::Fragments::ClassMethods # Allows you to specify controller-wide key prefixes for cache fragments. Pass # either a constant `value`, or a block which computes a value each time a cache @@ -470,7 +444,7 @@ module AbstractController::Caching::Fragments::ClassMethods # end # end # - # source://actionpack//lib/abstract_controller/caching/fragments.rb#58 + # pkg:gem/actionpack#lib/abstract_controller/caching/fragments.rb:58 def fragment_cache_key(value = T.unsafe(nil), &key); end end @@ -493,7 +467,7 @@ end # * `skip_around_action` # * `skip_before_action` # -# source://actionpack//lib/abstract_controller/callbacks.rb#24 +# pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:24 module AbstractController::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -509,8 +483,8 @@ module AbstractController::Callbacks # Override `AbstractController::Base#process_action` to run the `process_action` # callbacks around the normal behavior. # - # source://actionpack//lib/abstract_controller/callbacks.rb#259 - def process_action(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:259 + def process_action(*, **, &); end module GeneratedClassMethods def __callbacks; end @@ -522,35 +496,25 @@ module AbstractController::Callbacks end end -# source://actionpack//lib/abstract_controller/callbacks.rb#39 +# pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:39 class AbstractController::Callbacks::ActionFilter - # @return [ActionFilter] a new instance of ActionFilter - # - # source://actionpack//lib/abstract_controller/callbacks.rb#40 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:40 def initialize(filters, conditional_key, actions); end - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/callbacks.rb#46 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:69 def after(controller); end - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/callbacks.rb#46 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:71 def around(controller); end - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/callbacks.rb#46 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:70 def before(controller); end - # @return [Boolean] - # - # source://actionpack//lib/abstract_controller/callbacks.rb#46 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:46 def match?(controller); end end -# source://actionpack//lib/abstract_controller/callbacks.rb#74 +# pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:74 module AbstractController::Callbacks::ClassMethods # Take callback names and an optional callback proc, normalize them, then call # the block with each callback. This allows us to abstract the normalization @@ -566,10 +530,10 @@ module AbstractController::Callbacks::ClassMethods # * `name` - The callback to be added. # * `options` - A hash of options to be used when adding the callback. # - # source://actionpack//lib/abstract_controller/callbacks.rb#120 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:120 def _insert_callbacks(callbacks, block = T.unsafe(nil)); end - # source://actionpack//lib/abstract_controller/callbacks.rb#98 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:98 def _normalize_callback_option(options, from, to); end # If `:only` or `:except` are used, convert the options into the `:if` and @@ -590,179 +554,177 @@ module AbstractController::Callbacks::ClassMethods # * `only` - The callback should be run only for this action. # * `except` - The callback should be run for all actions except this action. # - # source://actionpack//lib/abstract_controller/callbacks.rb#93 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:93 def _normalize_callback_options(options); end - # source://actionpack//lib/abstract_controller/callbacks.rb#231 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:231 def after_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#231 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:252 def append_after_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#231 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:252 def append_around_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#231 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:252 def append_before_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#231 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:231 def around_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#231 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:231 def before_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#237 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:237 def prepend_after_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#237 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:237 def prepend_around_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#237 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:237 def prepend_before_action(*names, &blk); end - # source://actionpack//lib/abstract_controller/callbacks.rb#245 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:245 def skip_after_action(*names); end - # source://actionpack//lib/abstract_controller/callbacks.rb#245 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:245 def skip_around_action(*names); end - # source://actionpack//lib/abstract_controller/callbacks.rb#245 + # pkg:gem/actionpack#lib/abstract_controller/callbacks.rb:245 def skip_before_action(*names); end end -# source://actionpack//lib/abstract_controller/collector.rb#8 +# pkg:gem/actionpack#lib/abstract_controller/collector.rb:8 module AbstractController::Collector - # source://actionpack//lib/abstract_controller/collector.rb#12 - def atom(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def atom(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def bmp(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def bmp(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def css(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def css(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def csv(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def csv(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def gif(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def gif(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def gzip(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def gzip(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def html(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def html(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def ics(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def ics(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def jpeg(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def jpeg(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def js(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def js(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def json(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def json(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def m4a(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def m4a(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def mp3(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def mp3(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def mp4(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def mp4(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def mpeg(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def mpeg(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def multipart_form(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def multipart_form(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def ogg(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def ogg(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def otf(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def otf(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def pdf(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def pdf(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def png(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def png(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def rss(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def rss(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def svg(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def svg(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def text(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def text(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def tiff(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def tiff(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def ttf(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def ttf(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def url_encoded_form(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def url_encoded_form(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def vcf(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def vcf(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def vtt(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def vtt(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def webm(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def webm(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def webp(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def webp(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def woff(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def woff(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def woff2(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def woff2(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def xml(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def xml(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def yaml(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def yaml(*, **, &); end - # source://actionpack//lib/abstract_controller/collector.rb#12 - def zip(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:11 + def zip(*, **, &); end private - # source://actionpack//lib/abstract_controller/collector.rb#27 - def method_missing(symbol, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:27 + def method_missing(symbol, *, **, &); end class << self - # source://actionpack//lib/abstract_controller/collector.rb#9 + # pkg:gem/actionpack#lib/abstract_controller/collector.rb:9 def generate_method_for_mime(mime); end end end -# source://actionpack//lib/abstract_controller/rendering.rb#10 +# pkg:gem/actionpack#lib/abstract_controller/rendering.rb:10 class AbstractController::DoubleRenderError < ::AbstractController::Error - # @return [DoubleRenderError] a new instance of DoubleRenderError - # - # source://actionpack//lib/abstract_controller/rendering.rb#13 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:13 def initialize(message = T.unsafe(nil)); end end -# source://actionpack//lib/abstract_controller/rendering.rb#11 +# pkg:gem/actionpack#lib/abstract_controller/rendering.rb:11 AbstractController::DoubleRenderError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/abstract_controller/error.rb#6 +# pkg:gem/actionpack#lib/abstract_controller/error.rb:6 class AbstractController::Error < ::StandardError; end -# source://actionpack//lib/abstract_controller/helpers.rb#9 +# pkg:gem/actionpack#lib/abstract_controller/helpers.rb:9 module AbstractController::Helpers extend ::ActiveSupport::Concern extend ::AbstractController::Helpers::Resolution @@ -771,7 +733,7 @@ module AbstractController::Helpers mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::AbstractController::Helpers::ClassMethods - # source://actionpack//lib/abstract_controller/helpers.rb#28 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:28 def _helpers; end module GeneratedClassMethods @@ -787,24 +749,20 @@ module AbstractController::Helpers end end -# source://actionpack//lib/abstract_controller/helpers.rb#64 +# pkg:gem/actionpack#lib/abstract_controller/helpers.rb:64 module AbstractController::Helpers::ClassMethods include ::AbstractController::Helpers::Resolution - # Sets the attribute _helpers - # - # @param value the value to set the attribute _helpers to. - # - # source://actionpack//lib/abstract_controller/helpers.rb#76 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:76 def _helpers=(_arg0); end - # source://actionpack//lib/abstract_controller/helpers.rb#218 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:218 def _helpers_for_modification; end # Clears up all existing helpers in this class, only keeping the helper with the # same name as this class. # - # source://actionpack//lib/abstract_controller/helpers.rb#209 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:209 def clear_helpers; end # Includes the given modules in the template class. @@ -858,7 +816,7 @@ module AbstractController::Helpers::ClassMethods # end # end # - # source://actionpack//lib/abstract_controller/helpers.rb#198 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:198 def helper(*args, &block); end # Declare a controller method as a helper. For example, the following @@ -886,55 +844,55 @@ module AbstractController::Helpers::ClassMethods # * `method[, method]` - A name or names of a method on the controller to be # made available on the view. # - # source://actionpack//lib/abstract_controller/helpers.rb#128 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:128 def helper_method(*methods); end # When a class is inherited, wrap its helper module in a new module. This # ensures that the parent class's module can be changed independently of the # child class's. # - # source://actionpack//lib/abstract_controller/helpers.rb#68 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:68 def inherited(klass); end private - # source://actionpack//lib/abstract_controller/helpers.rb#237 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:237 def default_helper_module!; end - # source://actionpack//lib/abstract_controller/helpers.rb#226 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:226 def define_helpers_module(klass, helpers = T.unsafe(nil)); end end -# source://actionpack//lib/abstract_controller/helpers.rb#32 +# pkg:gem/actionpack#lib/abstract_controller/helpers.rb:32 module AbstractController::Helpers::Resolution - # source://actionpack//lib/abstract_controller/helpers.rb#48 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:48 def all_helpers_from_path(path); end - # source://actionpack//lib/abstract_controller/helpers.rb#57 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:57 def helper_modules_from_paths(paths); end - # source://actionpack//lib/abstract_controller/helpers.rb#33 + # pkg:gem/actionpack#lib/abstract_controller/helpers.rb:33 def modules_for_helpers(modules_or_helper_prefixes); end end -# source://actionpack//lib/abstract_controller/logger.rb#8 +# pkg:gem/actionpack#lib/abstract_controller/logger.rb:8 module AbstractController::Logger extend ::ActiveSupport::Concern include ::ActiveSupport::Benchmarkable end -# source://actionpack//lib/abstract_controller/railties/routes_helpers.rb#8 +# pkg:gem/actionpack#lib/abstract_controller/railties/routes_helpers.rb:8 module AbstractController::Railties; end -# source://actionpack//lib/abstract_controller/railties/routes_helpers.rb#9 +# pkg:gem/actionpack#lib/abstract_controller/railties/routes_helpers.rb:9 module AbstractController::Railties::RoutesHelpers class << self - # source://actionpack//lib/abstract_controller/railties/routes_helpers.rb#10 + # pkg:gem/actionpack#lib/abstract_controller/railties/routes_helpers.rb:10 def with(routes, include_path_helpers = T.unsafe(nil)); end end end -# source://actionpack//lib/abstract_controller/rendering.rb#18 +# pkg:gem/actionpack#lib/abstract_controller/rendering.rb:18 module AbstractController::Rendering extend ::ActiveSupport::Concern include ::ActionView::ViewPaths @@ -946,12 +904,12 @@ module AbstractController::Rendering # # Supported options depend on the underlying `render_to_body` implementation. # - # source://actionpack//lib/abstract_controller/rendering.rb#26 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:26 def render(*args, &block); end # Performs the actual template rendering. # - # source://actionpack//lib/abstract_controller/rendering.rb#50 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:50 def render_to_body(options = T.unsafe(nil)); end # Similar to #render, but only returns the rendered template as a string, @@ -961,18 +919,18 @@ module AbstractController::Rendering # extends it to be anything that responds to the method each), this method needs # to be overridden in order to still return a string. # - # source://actionpack//lib/abstract_controller/rendering.rb#44 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:44 def render_to_string(*args, &block); end # Returns `Content-Type` of rendered content. # - # source://actionpack//lib/abstract_controller/rendering.rb#54 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:54 def rendered_format; end # This method should return a hash with assigns. You can overwrite this # configuration per controller. # - # source://actionpack//lib/abstract_controller/rendering.rb#62 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:62 def view_assigns; end private @@ -980,70 +938,59 @@ module AbstractController::Rendering # Normalize args by converting `render "foo"` to `render action: "foo"` and # `render "foo/bar"` to `render file: "foo/bar"`. # - # source://actionpack//lib/abstract_controller/rendering.rb#73 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:73 def _normalize_args(action = T.unsafe(nil), options = T.unsafe(nil)); end # Normalize options. # - # source://actionpack//lib/abstract_controller/rendering.rb#88 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:88 def _normalize_options(options); end # Normalize args and options. # - # source://actionpack//lib/abstract_controller/rendering.rb#114 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:114 def _normalize_render(*args, &block); end # Process the rendered format. # - # source://actionpack//lib/abstract_controller/rendering.rb#98 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:98 def _process_format(format); end # Process extra options. # - # source://actionpack//lib/abstract_controller/rendering.rb#93 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:93 def _process_options(options); end - # source://actionpack//lib/abstract_controller/rendering.rb#101 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:101 def _process_variant(options); end - # source://actionpack//lib/abstract_controller/rendering.rb#121 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:121 def _protected_ivars; end - # source://actionpack//lib/abstract_controller/rendering.rb#104 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:104 def _set_html_content_type; end - # source://actionpack//lib/abstract_controller/rendering.rb#110 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:110 def _set_rendered_content_type(format); end - # source://actionpack//lib/abstract_controller/rendering.rb#107 + # pkg:gem/actionpack#lib/abstract_controller/rendering.rb:107 def _set_vary_header; end end -# source://actionpack//lib/abstract_controller/rendering.rb#58 +# pkg:gem/actionpack#lib/abstract_controller/rendering.rb:58 AbstractController::Rendering::DEFAULT_PROTECTED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/abstract_controller/translation.rb#8 +# pkg:gem/actionpack#lib/abstract_controller/translation.rb:8 module AbstractController::Translation - # Delegates to `I18n.localize`. - # - # source://actionpack//lib/abstract_controller/translation.rb#37 + # pkg:gem/actionpack#lib/abstract_controller/translation.rb:40 def l(object, **options); end # Delegates to `I18n.localize`. # - # source://actionpack//lib/abstract_controller/translation.rb#37 + # pkg:gem/actionpack#lib/abstract_controller/translation.rb:37 def localize(object, **options); end - # Delegates to `I18n.translate`. - # - # When the given key starts with a period, it will be scoped by the current - # controller and action. So if you call `translate(".foo")` from - # `PeopleController#index`, it will convert the call to - # `I18n.translate("people.index.foo")`. This makes it less repetitive to - # translate many keys within the same controller / action and gives you a simple - # framework for scoping them consistently. - # - # source://actionpack//lib/abstract_controller/translation.rb#17 + # pkg:gem/actionpack#lib/abstract_controller/translation.rb:34 def t(key, **options); end # Delegates to `I18n.translate`. @@ -1055,7 +1002,7 @@ module AbstractController::Translation # translate many keys within the same controller / action and gives you a simple # framework for scoping them consistently. # - # source://actionpack//lib/abstract_controller/translation.rb#17 + # pkg:gem/actionpack#lib/abstract_controller/translation.rb:17 def translate(key, **options); end end @@ -1068,7 +1015,7 @@ end # Note that this module is completely decoupled from HTTP - the only requirement # is a valid `_routes` implementation. # -# source://actionpack//lib/abstract_controller/url_for.rb#14 +# pkg:gem/actionpack#lib/abstract_controller/url_for.rb:14 module AbstractController::UrlFor extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1077,7 +1024,7 @@ module AbstractController::UrlFor mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::AbstractController::UrlFor::ClassMethods - # source://actionpack//lib/abstract_controller/url_for.rb#18 + # pkg:gem/actionpack#lib/abstract_controller/url_for.rb:18 def _routes; end module GeneratedClassMethods @@ -1093,12 +1040,12 @@ module AbstractController::UrlFor end end -# source://actionpack//lib/abstract_controller/url_for.rb#23 +# pkg:gem/actionpack#lib/abstract_controller/url_for.rb:23 module AbstractController::UrlFor::ClassMethods - # source://actionpack//lib/abstract_controller/url_for.rb#24 + # pkg:gem/actionpack#lib/abstract_controller/url_for.rb:24 def _routes; end - # source://actionpack//lib/abstract_controller/url_for.rb#28 + # pkg:gem/actionpack#lib/abstract_controller/url_for.rb:28 def action_methods; end end @@ -1109,23 +1056,24 @@ end # Action Controller provides a base controller class that can be subclassed to # implement filters and actions to handle requests. The result of an action is # typically content generated from views. +# :markup: markdown # -# source://actionpack//lib/action_controller/metal/exceptions.rb#5 +# pkg:gem/actionpack#lib/action_controller/deprecator.rb:5 module ActionController extend ::ActiveSupport::Autoload class << self # See Renderers.add # - # source://actionpack//lib/action_controller/metal/renderers.rb#7 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:7 def add_renderer(key, &block); end - # source://actionpack//lib/action_controller/deprecator.rb#6 + # pkg:gem/actionpack#lib/action_controller/deprecator.rb:6 def deprecator; end # See Renderers.remove # - # source://actionpack//lib/action_controller/metal/renderers.rb#12 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:12 def remove_renderer(key); end end end @@ -1213,9 +1161,7 @@ end # to use any other functionality that is not provided by `ActionController::API` # out of the box. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionpack//lib/action_controller/api.rb#92 +# pkg:gem/actionpack#lib/action_controller/api.rb:92 class ActionController::API < ::ActionController::Metal include ::ActionView::ViewPaths include ::AbstractController::Rendering @@ -1266,224 +1212,224 @@ class ActionController::API < ::ActionController::Metal extend ::ActionController::Instrumentation::ClassMethods extend ::ActionController::ParamsWrapper::ClassMethods - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _process_action_callbacks; end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _renderers; end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _renderers=(_arg0); end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _renderers?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _run_process_action_callbacks(&block); end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _view_cache_dependencies; end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _view_cache_dependencies=(_arg0); end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _view_cache_dependencies?; end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _wrapper_options; end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _wrapper_options=(_arg0); end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _wrapper_options?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_static_extension; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_static_extension=(value); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_url_options=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_url_options?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def enable_fragment_cache_logging; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def enable_fragment_cache_logging=(value); end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def etaggers; end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def etaggers=(_arg0); end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def etaggers?; end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def fragment_cache_keys; end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def fragment_cache_keys=(_arg0); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def fragment_cache_keys?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def logger; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def logger=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def perform_caching; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def perform_caching=(value); end - # source://actionpack//lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def raise_on_missing_callback_actions; end - # source://actionpack//lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def raise_on_missing_callback_actions=(val); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def raise_on_open_redirects; end - # source://actionpack//lib/action_controller/metal/redirecting.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def rescue_handlers?; end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _process_action_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _process_action_callbacks=(value); end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _renderers; end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _renderers=(value); end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _renderers?; end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _view_cache_dependencies; end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _view_cache_dependencies=(value); end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _view_cache_dependencies?; end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _wrapper_options; end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _wrapper_options=(value); end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def _wrapper_options?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_static_extension; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_static_extension=(value); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_url_options=(value); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def default_url_options?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def enable_fragment_cache_logging; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def enable_fragment_cache_logging=(value); end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def etaggers; end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def etaggers=(value); end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def etaggers?; end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def fragment_cache_keys; end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def fragment_cache_keys=(value); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def fragment_cache_keys?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def logger; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def logger=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def perform_caching; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def perform_caching=(value); end - # source://actionpack//lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def raise_on_missing_callback_actions; end - # source://actionpack//lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def raise_on_missing_callback_actions=(val); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def raise_on_open_redirects; end - # source://actionpack//lib/action_controller/metal/redirecting.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def rescue_handlers=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def rescue_handlers?; end # Shortcut helper that returns all the ActionController::API modules except the @@ -1499,74 +1445,74 @@ class ActionController::API < ::ActionController::Metal # create an API controller class, instead of listing the modules required # manually. # - # source://actionpack//lib/action_controller/api.rb#107 + # pkg:gem/actionpack#lib/action_controller/api.rb:107 def without_modules(*modules); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr__renderers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr__renderers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr__view_cache_dependencies; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr__view_cache_dependencies=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr__wrapper_options; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr__wrapper_options=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr_default_url_options; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr_default_url_options=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr_etaggers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr_etaggers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr_fragment_cache_keys; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr_fragment_cache_keys=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:92 def __class_attr_middleware_stack; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:92 def __class_attr_middleware_stack=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/api.rb:149 def __class_attr_rescue_handlers=(new_value); end end end -# source://actionpack//lib/action_controller/api.rb#115 +# pkg:gem/actionpack#lib/action_controller/api.rb:115 ActionController::API::MODULES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/exceptions.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:6 class ActionController::ActionControllerError < ::StandardError; end -# source://actionpack//lib/action_controller/metal/allow_browser.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:6 module ActionController::AllowBrowser extend ::ActiveSupport::Concern @@ -1574,76 +1520,58 @@ module ActionController::AllowBrowser private - # source://actionpack//lib/action_controller/metal/allow_browser.rb#63 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:63 def allow_browser(versions:, block:); end end -# source://actionpack//lib/action_controller/metal/allow_browser.rb#73 +# pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:73 class ActionController::AllowBrowser::BrowserBlocker - # @return [BrowserBlocker] a new instance of BrowserBlocker - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#80 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:80 def initialize(request, versions:); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#84 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:84 def blocked?; end - # Returns the value of attribute request. - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#78 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:78 def request; end - # Returns the value of attribute versions. - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#78 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:78 def versions; end private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#105 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:105 def bot?; end - # source://actionpack//lib/action_controller/metal/allow_browser.rb#121 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:121 def expanded_versions; end - # source://actionpack//lib/action_controller/metal/allow_browser.rb#117 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:117 def minimum_browser_version_for_browser; end - # source://actionpack//lib/action_controller/metal/allow_browser.rb#125 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:125 def normalized_browser_name; end - # source://actionpack//lib/action_controller/metal/allow_browser.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:89 def parsed_user_agent; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#97 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:97 def unsupported_browser?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#93 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:93 def user_agent_version_reported?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#109 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:109 def version_below_minimum_required?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#101 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:101 def version_guarded_browser?; end end -# source://actionpack//lib/action_controller/metal/allow_browser.rb#74 +# pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:74 ActionController::AllowBrowser::BrowserBlocker::SETS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/metal/allow_browser.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:9 module ActionController::AllowBrowser::ClassMethods # Specify the browser versions that will be allowed to access all actions (or # some, as limited by `only:` or `except:`). Only browsers matched in the hash @@ -1693,26 +1621,24 @@ module ActionController::AllowBrowser::ClassMethods # allow_browser versions: { opera: 104, chrome: 119 }, only: :show # end # - # source://actionpack//lib/action_controller/metal/allow_browser.rb#57 + # pkg:gem/actionpack#lib/action_controller/metal/allow_browser.rb:57 def allow_browser(versions:, block: T.unsafe(nil), **options); end end -# source://actionpack//lib/action_controller/api/api_rendering.rb#6 +# pkg:gem/actionpack#lib/action_controller/api/api_rendering.rb:6 module ActionController::ApiRendering extend ::ActiveSupport::Concern include ::ActionController::Rendering mixes_in_class_methods ::ActionController::Rendering::ClassMethods - # source://actionpack//lib/action_controller/api/api_rendering.rb#13 + # pkg:gem/actionpack#lib/action_controller/api/api_rendering.rb:13 def render_to_body(options = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:9 class ActionController::BadRequest < ::ActionController::ActionControllerError - # @return [BadRequest] a new instance of BadRequest - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#10 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:10 def initialize(msg = T.unsafe(nil)); end end @@ -1913,9 +1839,7 @@ end # render action: "overthere" # won't be called if monkeys is nil # end # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionpack//lib/action_controller/base.rb#207 +# pkg:gem/actionpack#lib/action_controller/base.rb:207 class ActionController::Base < ::ActionController::Metal include ::ActionView::ViewPaths include ::AbstractController::Rendering @@ -2000,514 +1924,514 @@ class ActionController::Base < ::ActionController::Metal extend ::ActionController::Instrumentation::ClassMethods extend ::ActionController::ParamsWrapper::ClassMethods - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def __callbacks; end - # source://actionpack//lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def _helper_methods; end - # source://actionpack//lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def _helper_methods=(_arg0); end - # source://actionpack//lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def _helper_methods?; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout_conditions; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout_conditions?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def _process_action_callbacks; end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:279 def _renderers; end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:279 def _renderers=(_arg0); end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:279 def _renderers?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def _run_process_action_callbacks(&block); end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def _view_cache_dependencies; end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def _view_cache_dependencies=(_arg0); end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def _view_cache_dependencies?; end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/base.rb:313 def _wrapper_options; end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/base.rb:313 def _wrapper_options=(_arg0); end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/base.rb:313 def _wrapper_options?; end - # source://actionpack//lib/action_controller/metal/flash.rb#38 + # pkg:gem/actionpack#lib/action_controller/base.rb:289 def alert; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def allow_forgery_protection; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def allow_forgery_protection=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def asset_host; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def asset_host=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def assets_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def assets_dir=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def csrf_token_storage_strategy; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def csrf_token_storage_strategy=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def default_asset_host_protocol; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def default_asset_host_protocol=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def default_static_extension; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def default_static_extension=(value); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def default_url_options=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def default_url_options?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def enable_fragment_cache_logging; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def enable_fragment_cache_logging=(value); end - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etag_with_template_digest; end - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etag_with_template_digest=(_arg0); end - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etag_with_template_digest?; end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def etaggers; end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def etaggers=(_arg0); end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def etaggers?; end - # source://actionpack//lib/action_controller/metal/flash.rb#12 - def flash(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:289 + def flash(*, **, &); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def forgery_protection_origin_check; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def forgery_protection_origin_check=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def forgery_protection_strategy; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def forgery_protection_strategy=(value); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def fragment_cache_keys; end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def fragment_cache_keys=(_arg0); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def fragment_cache_keys?; end - # source://actionpack//lib/action_controller/metal/helpers.rb#70 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def helpers_path; end - # source://actionpack//lib/action_controller/metal/helpers.rb#70 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def helpers_path=(_arg0); end - # source://actionpack//lib/action_controller/metal/helpers.rb#70 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def helpers_path?; end - # source://actionpack//lib/action_controller/metal/helpers.rb#71 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def include_all_helpers; end - # source://actionpack//lib/action_controller/metal/helpers.rb#71 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def include_all_helpers=(_arg0); end - # source://actionpack//lib/action_controller/metal/helpers.rb#71 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def include_all_helpers?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def javascripts_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def javascripts_dir=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def log_warning_on_csrf_failure; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def log_warning_on_csrf_failure=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def logger; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def logger=(value); end - # source://actionpack//lib/action_controller/metal/flash.rb#38 + # pkg:gem/actionpack#lib/action_controller/base.rb:289 def notice; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def per_form_csrf_tokens; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def per_form_csrf_tokens=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def perform_caching; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def perform_caching=(value); end - # source://actionpack//lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def raise_on_missing_callback_actions; end - # source://actionpack//lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def raise_on_missing_callback_actions=(val); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def raise_on_open_redirects; end - # source://actionpack//lib/action_controller/metal/redirecting.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def relative_url_root; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def relative_url_root=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def request_forgery_protection_token; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def request_forgery_protection_token=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:307 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:307 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:307 def rescue_handlers?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def stylesheets_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def stylesheets_dir=(value); end private - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout(lookup_context, formats, keys); end - # source://actionpack//lib/action_controller/base.rb#324 + # pkg:gem/actionpack#lib/action_controller/base.rb:324 def _protected_ivars; end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def __callbacks=(value); end - # source://actionpack//lib/action_controller/form_builder.rb#35 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def _default_form_builder; end - # source://actionpack//lib/action_controller/form_builder.rb#35 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def _default_form_builder=(value); end - # source://actionpack//lib/action_controller/form_builder.rb#35 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def _default_form_builder?; end - # source://actionpack//lib/action_controller/metal/flash.rb#10 + # pkg:gem/actionpack#lib/action_controller/base.rb:289 def _flash_types; end - # source://actionpack//lib/action_controller/metal/flash.rb#10 + # pkg:gem/actionpack#lib/action_controller/base.rb:289 def _flash_types=(value); end - # source://actionpack//lib/action_controller/metal/flash.rb#10 + # pkg:gem/actionpack#lib/action_controller/base.rb:289 def _flash_types?; end - # source://actionpack//lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def _helper_methods; end - # source://actionpack//lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def _helper_methods=(value); end - # source://actionpack//lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def _helper_methods?; end - # source://actionpack//lib/abstract_controller/helpers.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def _helpers; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#211 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#211 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout=(value); end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#211 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout?; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout_conditions; end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout_conditions=(value); end - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#212 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def _layout_conditions?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def _process_action_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def _process_action_callbacks=(value); end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:279 def _renderers; end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:279 def _renderers=(value); end - # source://actionpack//lib/action_controller/metal/renderers.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:279 def _renderers?; end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def _view_cache_dependencies; end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def _view_cache_dependencies=(value); end - # source://actionpack//lib/abstract_controller/caching.rb#44 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def _view_cache_dependencies?; end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/base.rb:313 def _wrapper_options; end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/base.rb:313 def _wrapper_options=(value); end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#185 + # pkg:gem/actionpack#lib/action_controller/base.rb:313 def _wrapper_options?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def allow_forgery_protection; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def allow_forgery_protection=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def asset_host; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def asset_host=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def assets_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def assets_dir=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def csrf_token_storage_strategy; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def csrf_token_storage_strategy=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def default_asset_host_protocol; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def default_asset_host_protocol=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def default_static_extension; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def default_static_extension=(value); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def default_url_options=(value); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def default_url_options?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def enable_fragment_cache_logging; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def enable_fragment_cache_logging=(value); end - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etag_with_template_digest; end - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etag_with_template_digest=(value); end - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#31 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def etag_with_template_digest?; end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def etaggers; end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def etaggers=(value); end - # source://actionpack//lib/action_controller/metal/conditional_get.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def etaggers?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def forgery_protection_origin_check; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def forgery_protection_origin_check=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def forgery_protection_strategy; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def forgery_protection_strategy=(value); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def fragment_cache_keys; end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def fragment_cache_keys=(value); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#26 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def fragment_cache_keys?; end - # source://actionpack//lib/action_controller/metal/helpers.rb#70 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def helpers_path; end - # source://actionpack//lib/action_controller/metal/helpers.rb#70 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def helpers_path=(value); end - # source://actionpack//lib/action_controller/metal/helpers.rb#70 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def helpers_path?; end - # source://actionpack//lib/action_controller/metal/helpers.rb#71 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def include_all_helpers; end - # source://actionpack//lib/action_controller/metal/helpers.rb#71 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def include_all_helpers=(value); end - # source://actionpack//lib/action_controller/metal/helpers.rb#71 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def include_all_helpers?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def javascripts_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def javascripts_dir=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def log_warning_on_csrf_failure; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def log_warning_on_csrf_failure=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def logger; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def logger=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def per_form_csrf_tokens; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def per_form_csrf_tokens=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def perform_caching; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def perform_caching=(value); end - # source://actionpack//lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def raise_on_missing_callback_actions; end - # source://actionpack//lib/abstract_controller/callbacks.rb#36 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def raise_on_missing_callback_actions=(val); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def raise_on_open_redirects; end - # source://actionpack//lib/action_controller/metal/redirecting.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:276 def raise_on_open_redirects=(val); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def relative_url_root; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def relative_url_root=(value); end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def request_forgery_protection_token; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def request_forgery_protection_token=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:307 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:307 def rescue_handlers=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:307 def rescue_handlers?; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def stylesheets_dir; end - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 + # pkg:gem/actionpack#lib/action_controller/base.rb:273 def stylesheets_dir=(value); end # Shortcut helper that returns all the modules included in @@ -2523,168 +2447,168 @@ class ActionController::Base < ::ActionController::Metal # create a bare controller class, instead of listing the modules required # manually. # - # source://actionpack//lib/action_controller/base.rb#222 + # pkg:gem/actionpack#lib/action_controller/base.rb:222 def without_modules(*modules); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:291 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def __class_attr__default_form_builder; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:290 def __class_attr__default_form_builder=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:289 def __class_attr__flash_types; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:289 def __class_attr__flash_types=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def __class_attr__helper_methods; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def __class_attr__layout; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def __class_attr__layout=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def __class_attr__layout_conditions; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:277 def __class_attr__layout_conditions=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:279 def __class_attr__renderers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:279 def __class_attr__renderers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def __class_attr__view_cache_dependencies; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def __class_attr__view_cache_dependencies=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:313 def __class_attr__wrapper_options; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:313 def __class_attr__wrapper_options=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def __class_attr_default_url_options; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:275 def __class_attr_default_url_options=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def __class_attr_etag_with_template_digest; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:281 def __class_attr_etag_with_template_digest=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def __class_attr_etaggers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:280 def __class_attr_etaggers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def __class_attr_fragment_cache_keys; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:283 def __class_attr_fragment_cache_keys=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def __class_attr_helpers_path; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def __class_attr_helpers_path=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def __class_attr_include_all_helpers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:274 def __class_attr_include_all_helpers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:207 def __class_attr_middleware_stack; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:207 def __class_attr_middleware_stack=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/base.rb:307 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/base.rb:307 def __class_attr_rescue_handlers=(new_value); end end end -# source://actionpack//lib/action_controller/base.rb#0 +# pkg:gem/actionpack#lib/action_controller/base.rb:274 module ActionController::Base::HelperMethods include ::ActionText::ContentHelper include ::ActionText::TagHelper - # source://ahoy_matey/5.4.0/lib/ahoy/controller.rb#6 - def ahoy(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:330 + def ahoy(*, **, &); end - # source://actionpack//lib/action_controller/metal/flash.rb#41 - def alert(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:289 + def alert(*, **, &); end - # source://actionpack//lib/abstract_controller/caching/fragments.rb#34 - def combined_fragment_cache_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:283 + def combined_fragment_cache_key(*, **, &); end - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#13 - def content_security_policy?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:292 + def content_security_policy?(*, **, &); end - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#14 - def content_security_policy_nonce(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:292 + def content_security_policy_nonce(*, **, &); end - # source://actionpack//lib/action_controller/metal/cookies.rb#10 - def cookies(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:288 + def cookies(*, **, &); end - # source://ahoy_matey/5.4.0/lib/ahoy/controller.rb#5 - def current_visit(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:330 + def current_visit(*, **, &); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#102 - def form_authenticity_token(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:291 + def form_authenticity_token(*, **, &); end - # source://actionpack//lib/action_controller/metal/flash.rb#41 - def notice(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:289 + def notice(*, **, &); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#103 - def protect_against_forgery?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:291 + def protect_against_forgery?(*, **, &); end - # source://actionpack//lib/abstract_controller/caching.rb#45 - def view_cache_dependencies(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/base.rb:283 + def view_cache_dependencies(*, **, &); end end -# source://actionpack//lib/action_controller/base.rb#230 +# pkg:gem/actionpack#lib/action_controller/base.rb:230 ActionController::Base::MODULES = T.let(T.unsafe(nil), Array) # Define some internal variables that should not be propagated to the view. # -# source://actionpack//lib/action_controller/base.rb#318 +# pkg:gem/actionpack#lib/action_controller/base.rb:318 ActionController::Base::PROTECTED_IVARS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/basic_implicit_render.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/basic_implicit_render.rb:6 module ActionController::BasicImplicitRender - # source://actionpack//lib/action_controller/metal/basic_implicit_render.rb#13 + # pkg:gem/actionpack#lib/action_controller/metal/basic_implicit_render.rb:13 def default_render; end - # source://actionpack//lib/action_controller/metal/basic_implicit_render.rb#7 + # pkg:gem/actionpack#lib/action_controller/metal/basic_implicit_render.rb:7 def send_action(method, *args); end end @@ -2712,7 +2636,7 @@ end # config.action_controller.cache_store = :mem_cache_store, Memcached::Rails.new('localhost:11211') # config.action_controller.cache_store = MyOwnStore.new('parameter') # -# source://actionpack//lib/action_controller/caching.rb#29 +# pkg:gem/actionpack#lib/action_controller/caching.rb:29 module ActionController::Caching extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -2726,10 +2650,10 @@ module ActionController::Caching private - # source://actionpack//lib/action_controller/caching.rb#45 + # pkg:gem/actionpack#lib/action_controller/caching.rb:45 def instrument_name; end - # source://actionpack//lib/action_controller/caching.rb#37 + # pkg:gem/actionpack#lib/action_controller/caching.rb:37 def instrument_payload(key); end module GeneratedClassMethods @@ -2751,7 +2675,7 @@ module ActionController::Caching end end -# source://actionpack//lib/action_controller/metal/conditional_get.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:9 module ActionController::ConditionalGet include ::ActionController::Head extend ::ActiveSupport::Concern @@ -2769,20 +2693,15 @@ module ActionController::ConditionalGet # #### Options # # `:public` - # : If true, replaces the default `private` directive with the `public` # directive. # # `:must_revalidate` - # : If true, adds the `must-revalidate` directive. # # `:stale_while_revalidate` - # : Sets the value of the `stale-while-revalidate` directive. # # `:stale_if_error` - # : Sets the value of the `stale-if-error` directive. # # `:immutable` - # : If true, adds the `immutable` directive. # # # Any additional key-value pairs are concatenated as directives. For a list of @@ -2809,14 +2728,14 @@ module ActionController::ConditionalGet # expires_in 1.hour, public: true, "s-maxage": 3.hours, "no-transform": true # # => Cache-Control: max-age=3600, public, s-maxage=10800, no-transform=true # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#290 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:290 def expires_in(seconds, options = T.unsafe(nil)); end # Sets an HTTP 1.1 `Cache-Control` header of `no-cache`. This means the resource # will be marked as stale, so clients must always revalidate. # Intermediate/browser caches may still store the asset. # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#309 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:309 def expires_now; end # Sets the `etag`, `last_modified`, or both on the response, and renders a `304 @@ -2825,45 +2744,36 @@ module ActionController::ConditionalGet # #### Options # # `:etag` - # : Sets a "weak" ETag validator on the response. See the `:weak_etag` option. # # `:weak_etag` - # : Sets a "weak" ETag validator on the response. Requests that specify an # `If-None-Match` header may receive a `304 Not Modified` response if the # ETag matches exactly. # - # : A weak ETag indicates semantic equivalence, not byte-for-byte equality, so # they're good for caching HTML pages in browser caches. They can't be used # for responses that must be byte-identical, like serving `Range` requests # within a PDF file. # # `:strong_etag` - # : Sets a "strong" ETag validator on the response. Requests that specify an # `If-None-Match` header may receive a `304 Not Modified` response if the # ETag matches exactly. # - # : A strong ETag implies exact equality -- the response must match byte for # byte. This is necessary for serving `Range` requests within a large video # or PDF file, for example, or for compatibility with some CDNs that don't # support weak ETags. # # `:last_modified` - # : Sets a "weak" last-update validator on the response. Subsequent requests # that specify an `If-Modified-Since` header may receive a `304 Not # Modified` response if `last_modified` <= `If-Modified-Since`. # # `:public` - # : By default the `Cache-Control` header is private. Set this option to # `true` if you want your application to be cacheable by other devices, such # as proxy caches. # # `:cache_control` - # : When given, will overwrite an existing `Cache-Control` header. For a list # of `Cache-Control` directives, see the [article on # MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control). # # `:template` - # : By default, the template digest for the current controller/action is # included in ETags. If the action renders a different template, you can # include its digest instead. If the action doesn't render a template at # all, you can pass `template: false` to skip any attempt to check for a @@ -2918,7 +2828,7 @@ module ActionController::ConditionalGet # # before_action { fresh_when @article, template: "widgets/show" } # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#137 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:137 def fresh_when(object = T.unsafe(nil), etag: T.unsafe(nil), weak_etag: T.unsafe(nil), strong_etag: T.unsafe(nil), last_modified: T.unsafe(nil), public: T.unsafe(nil), cache_control: T.unsafe(nil), template: T.unsafe(nil)); end # Cache or yield the block. The cache is supposed to never expire. @@ -2930,13 +2840,13 @@ module ActionController::ConditionalGet # user's web browser. To allow proxies to cache the response, set `true` to # indicate that they can serve the cached response to all users. # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#321 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:321 def http_cache_forever(public: T.unsafe(nil)); end # Sets an HTTP 1.1 `Cache-Control` header of `no-store`. This means the resource # may not be stored in any cache. # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:331 def no_store; end # Sets the `etag` and/or `last_modified` on the response and checks them against @@ -3018,14 +2928,12 @@ module ActionController::ConditionalGet # super if stale?(@article, template: "widgets/show") # end # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#236 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:236 def stale?(object = T.unsafe(nil), **freshness_kwargs); end private - # source://actionpack//lib/action_controller/metal/conditional_get.rb#336 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:336 def combine_etags(validator, options); end module GeneratedClassMethods @@ -3041,7 +2949,7 @@ module ActionController::ConditionalGet end end -# source://actionpack//lib/action_controller/metal/conditional_get.rb#18 +# pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:18 module ActionController::ConditionalGet::ClassMethods # Allows you to consider additional controller-wide information when generating # an ETag. For example, if you serve pages tailored depending on who's logged in @@ -3058,11 +2966,11 @@ module ActionController::ConditionalGet::ClassMethods # end # end # - # source://actionpack//lib/action_controller/metal/conditional_get.rb#33 + # pkg:gem/actionpack#lib/action_controller/metal/conditional_get.rb:33 def etag(&etagger); end end -# source://actionpack//lib/action_controller/metal/content_security_policy.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:6 module ActionController::ContentSecurityPolicy extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3079,15 +2987,13 @@ module ActionController::ContentSecurityPolicy private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#74 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:74 def content_security_policy?; end - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#78 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:78 def content_security_policy_nonce; end - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#82 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:82 def current_content_security_policy; end module GeneratedClassMethods @@ -3106,7 +3012,7 @@ module ActionController::ContentSecurityPolicy end end -# source://actionpack//lib/action_controller/metal/content_security_policy.rb#17 +# pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:17 module ActionController::ContentSecurityPolicy::ClassMethods # Overrides parts of the globally configured `Content-Security-Policy` header: # @@ -3131,7 +3037,7 @@ module ActionController::ContentSecurityPolicy::ClassMethods # content_security_policy false, only: :index # end # - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#40 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:40 def content_security_policy(enabled = T.unsafe(nil), **options, &block); end # Overrides the globally configured `Content-Security-Policy-Report-Only` @@ -3147,11 +3053,11 @@ module ActionController::ContentSecurityPolicy::ClassMethods # content_security_policy_report_only false, only: :index # end # - # source://actionpack//lib/action_controller/metal/content_security_policy.rb#66 + # pkg:gem/actionpack#lib/action_controller/metal/content_security_policy.rb:66 def content_security_policy_report_only(report_only = T.unsafe(nil), **options); end end -# source://actionpack//lib/action_controller/metal/cookies.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/cookies.rb:6 module ActionController::Cookies extend ::ActiveSupport::Concern @@ -3160,7 +3066,7 @@ module ActionController::Cookies # The cookies for the current request. See ActionDispatch::Cookies for more # information. # - # source://actionpack//lib/action_controller/metal/cookies.rb#16 + # pkg:gem/actionpack#lib/action_controller/metal/cookies.rb:16 def cookies; end end @@ -3169,7 +3075,7 @@ end # Methods for sending arbitrary data and for streaming files to the browser, # instead of rendering. # -# source://actionpack//lib/action_controller/metal/data_streaming.rb#13 +# pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:13 module ActionController::DataStreaming extend ::ActiveSupport::Concern include ::ActionController::Rendering @@ -3213,7 +3119,7 @@ module ActionController::DataStreaming # # See `send_file` for more information on HTTP `Content-*` headers and caching. # - # source://actionpack//lib/action_controller/metal/data_streaming.rb#122 + # pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:122 def send_data(data, options = T.unsafe(nil)); end # Sends the file. This uses a server-appropriate method (such as `X-Sendfile`) @@ -3272,21 +3178,17 @@ module ActionController::DataStreaming # 9111](https://www.rfc-editor.org/rfc/rfc9111.html#name-cache-control) for the # `Cache-Control` header spec. # - # @raise [MissingFile] - # - # source://actionpack//lib/action_controller/metal/data_streaming.rb#77 + # pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:77 def send_file(path, options = T.unsafe(nil)); end - # @raise [ArgumentError] - # - # source://actionpack//lib/action_controller/metal/data_streaming.rb#127 + # pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:127 def send_file_headers!(options); end end -# source://actionpack//lib/action_controller/metal/data_streaming.rb#19 +# pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:19 ActionController::DataStreaming::DEFAULT_SEND_FILE_DISPOSITION = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/data_streaming.rb#18 +# pkg:gem/actionpack#lib/action_controller/metal/data_streaming.rb:18 ActionController::DataStreaming::DEFAULT_SEND_FILE_TYPE = T.let(T.unsafe(nil), String) # # Action Controller Default Headers @@ -3294,16 +3196,16 @@ ActionController::DataStreaming::DEFAULT_SEND_FILE_TYPE = T.let(T.unsafe(nil), S # Allows configuring default headers that will be automatically merged into each # response. # -# source://actionpack//lib/action_controller/metal/default_headers.rb#10 +# pkg:gem/actionpack#lib/action_controller/metal/default_headers.rb:10 module ActionController::DefaultHeaders extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::DefaultHeaders::ClassMethods end -# source://actionpack//lib/action_controller/metal/default_headers.rb#13 +# pkg:gem/actionpack#lib/action_controller/metal/default_headers.rb:13 module ActionController::DefaultHeaders::ClassMethods - # source://actionpack//lib/action_controller/metal/default_headers.rb#14 + # pkg:gem/actionpack#lib/action_controller/metal/default_headers.rb:14 def make_response!(request); end end @@ -3315,7 +3217,7 @@ end # in mind. This does that by including the content of the flash as a component # in the ETag that's generated for a response. # -# source://actionpack//lib/action_controller/metal/etag_with_flash.rb#13 +# pkg:gem/actionpack#lib/action_controller/metal/etag_with_flash.rb:13 module ActionController::EtagWithFlash extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3356,7 +3258,7 @@ end # # We're not going to render a template, so omit it from the ETag. # fresh_when @post, template: false # -# source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#25 +# pkg:gem/actionpack#lib/action_controller/metal/etag_with_template_digest.rb:25 module ActionController::EtagWithTemplateDigest extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3367,10 +3269,10 @@ module ActionController::EtagWithTemplateDigest private - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#39 + # pkg:gem/actionpack#lib/action_controller/metal/etag_with_template_digest.rb:39 def determine_template_etag(options); end - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#55 + # pkg:gem/actionpack#lib/action_controller/metal/etag_with_template_digest.rb:55 def lookup_and_digest_template(template); end # Pick the template digest to include in the ETag. If the `:template` option is @@ -3378,7 +3280,7 @@ module ActionController::EtagWithTemplateDigest # default controller/action template. If `:template` is false, omit the template # digest from the ETag. # - # source://actionpack//lib/action_controller/metal/etag_with_template_digest.rb#49 + # pkg:gem/actionpack#lib/action_controller/metal/etag_with_template_digest.rb:49 def pick_template_for_etag(options); end module GeneratedClassMethods @@ -3407,10 +3309,10 @@ end # params.expect!(:a) # # => ActionController::ExpectedParameterMissing: param is missing or the value is empty or invalid: a # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#49 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:49 class ActionController::ExpectedParameterMissing < ::ActionController::ParameterMissing; end -# source://actionpack//lib/action_controller/metal/flash.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/flash.rb:6 module ActionController::Flash extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3420,7 +3322,7 @@ module ActionController::Flash private - # source://actionpack//lib/action_controller/metal/flash.rb#53 + # pkg:gem/actionpack#lib/action_controller/metal/flash.rb:53 def redirect_to(options = T.unsafe(nil), response_options_and_flash = T.unsafe(nil)); end module GeneratedClassMethods @@ -3432,9 +3334,9 @@ module ActionController::Flash module GeneratedInstanceMethods; end end -# source://actionpack//lib/action_controller/metal/flash.rb#16 +# pkg:gem/actionpack#lib/action_controller/metal/flash.rb:16 module ActionController::Flash::ClassMethods - # source://actionpack//lib/action_controller/metal/flash.rb#47 + # pkg:gem/actionpack#lib/action_controller/metal/flash.rb:47 def action_methods; end # Creates new flash types. You can pass as many types as you want to create @@ -3455,7 +3357,7 @@ module ActionController::Flash::ClassMethods # This method will automatically define a new method for each of the given # names, and it will be available in your views. # - # source://actionpack//lib/action_controller/metal/flash.rb#34 + # pkg:gem/actionpack#lib/action_controller/metal/flash.rb:34 def add_flash_types(*types); end end @@ -3485,7 +3387,7 @@ end # <%= builder.special_field(:name) %> # <% end %> # -# source://actionpack//lib/action_controller/form_builder.rb#31 +# pkg:gem/actionpack#lib/action_controller/form_builder.rb:31 module ActionController::FormBuilder extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3495,7 +3397,7 @@ module ActionController::FormBuilder # Default form builder for the controller # - # source://actionpack//lib/action_controller/form_builder.rb#51 + # pkg:gem/actionpack#lib/action_controller/form_builder.rb:51 def default_form_builder; end module GeneratedClassMethods @@ -3507,7 +3409,7 @@ module ActionController::FormBuilder module GeneratedInstanceMethods; end end -# source://actionpack//lib/action_controller/form_builder.rb#38 +# pkg:gem/actionpack#lib/action_controller/form_builder.rb:38 module ActionController::FormBuilder::ClassMethods # Set the form builder to be used as the default for all forms in the views # rendered by this controller and its subclasses. @@ -3516,11 +3418,11 @@ module ActionController::FormBuilder::ClassMethods # * `builder` - Default form builder, an instance of # ActionView::Helpers::FormBuilder # - # source://actionpack//lib/action_controller/form_builder.rb#45 + # pkg:gem/actionpack#lib/action_controller/form_builder.rb:45 def default_form_builder(builder); end end -# source://actionpack//lib/action_controller/metal/head.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/head.rb:6 module ActionController::Head # Returns a response that has no content (merely headers). The options argument # is interpreted to be a hash of header names and values. This allows you to @@ -3539,14 +3441,12 @@ module ActionController::Head # See `Rack::Utils::SYMBOL_TO_STATUS_CODE` for a full list of valid `status` # symbols. # - # source://actionpack//lib/action_controller/metal/head.rb#23 + # pkg:gem/actionpack#lib/action_controller/metal/head.rb:23 def head(status, options = T.unsafe(nil)); end private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/head.rb#56 + # pkg:gem/actionpack#lib/action_controller/metal/head.rb:56 def include_content?(status); end end @@ -3607,7 +3507,7 @@ end # 23 Aug 11:30 | Carolina Railhawks Soccer Match # N/A | Carolina Railhawks Training Workshop # -# source://actionpack//lib/action_controller/metal/helpers.rb#63 +# pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:63 module ActionController::Helpers extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -3619,20 +3519,14 @@ module ActionController::Helpers # Provides a proxy to access helper methods from outside the view. # - # source://actionpack//lib/action_controller/metal/helpers.rb#125 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:125 def helpers; end class << self - # Returns the value of attribute helpers_path. - # - # source://actionpack//lib/action_controller/metal/helpers.rb#66 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:66 def helpers_path; end - # Sets the attribute helpers_path - # - # @param value the value to set the attribute helpers_path to. - # - # source://actionpack//lib/action_controller/metal/helpers.rb#66 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:66 def helpers_path=(_arg0); end end @@ -3661,7 +3555,7 @@ module ActionController::Helpers end end -# source://actionpack//lib/action_controller/metal/helpers.rb#74 +# pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:74 module ActionController::Helpers::ClassMethods # Declares helper accessors for controller attributes. For example, the # following adds new `name` and `name=` instance methods to a controller and @@ -3672,7 +3566,7 @@ module ActionController::Helpers::ClassMethods # #### Parameters # * `attrs` - Names of attributes to be converted into helpers. # - # source://actionpack//lib/action_controller/metal/helpers.rb#84 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:84 def helper_attr(*attrs); end # Provides a proxy to access helper methods from outside the view. @@ -3682,7 +3576,7 @@ module ActionController::Helpers::ClassMethods # [helper](rdoc-ref:AbstractController::Helpers::ClassMethods#helper) instead # when using `capture`. # - # source://actionpack//lib/action_controller/metal/helpers.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:94 def helpers; end # Override modules_for_helpers to accept `:all` as argument, which loads all @@ -3695,20 +3589,20 @@ module ActionController::Helpers::ClassMethods # #### Returns # * `array` - A normalized list of modules for the list of helpers provided. # - # source://actionpack//lib/action_controller/metal/helpers.rb#112 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:112 def modules_for_helpers(args); end private # Extract helper names from files in `app/helpers/***/**_helper.rb` # - # source://actionpack//lib/action_controller/metal/helpers.rb#119 + # pkg:gem/actionpack#lib/action_controller/metal/helpers.rb:119 def all_application_helpers; end end # HTTP Basic, Digest, and Token authentication. # -# source://actionpack//lib/action_controller/metal/http_authentication.rb#11 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:11 module ActionController::HttpAuthentication; end # # HTTP Basic authentication @@ -3769,65 +3663,61 @@ module ActionController::HttpAuthentication; end # assert_equal 200, status # end # -# source://actionpack//lib/action_controller/metal/http_authentication.rb#69 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:69 module ActionController::HttpAuthentication::Basic extend ::ActionController::HttpAuthentication::Basic - # source://actionpack//lib/action_controller/metal/http_authentication.rb#130 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:130 def auth_param(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#126 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:126 def auth_scheme(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#108 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:108 def authenticate(request, &login_procedure); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#138 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:138 def authentication_request(controller, realm, message); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#122 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:122 def decode_credentials(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#134 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:134 def encode_credentials(user_name, password); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#114 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:114 def has_basic_credentials?(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#118 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:118 def user_name_and_password(request); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#72 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:72 module ActionController::HttpAuthentication::Basic::ControllerMethods extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods - # source://actionpack//lib/action_controller/metal/http_authentication.rb#95 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:95 def authenticate_or_request_with_http_basic(realm = T.unsafe(nil), message = T.unsafe(nil), &login_procedure); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#99 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:99 def authenticate_with_http_basic(&login_procedure); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#86 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:86 def http_basic_authenticate_or_request_with(name:, password:, realm: T.unsafe(nil), message: T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#103 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:103 def request_http_basic_authentication(realm = T.unsafe(nil), message = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#75 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:75 module ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods # Enables HTTP Basic authentication. # # See ActionController::HttpAuthentication::Basic for example usage. # - # @raise [ArgumentError] - # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#79 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:79 def http_basic_authenticate_with(name:, password:, realm: T.unsafe(nil), **options); end end @@ -3875,28 +3765,28 @@ end # before they reach your application. You can debug this situation by logging # all environment variables, and check for HTTP_AUTHORIZATION, amongst others. # -# source://actionpack//lib/action_controller/metal/http_authentication.rb#189 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:189 module ActionController::HttpAuthentication::Digest extend ::ActionController::HttpAuthentication::Digest # Returns true on a valid response, false otherwise. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#215 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:215 def authenticate(request, realm, &password_procedure); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#274 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:274 def authentication_header(controller, realm); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#281 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:281 def authentication_request(controller, realm, message = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#267 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:267 def decode_credentials(header); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:263 def decode_credentials_header(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#258 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:258 def encode_credentials(http_method, credentials, password, password_is_ha1); end # Returns the expected response for a request of `http_method` to `uri` with the @@ -3904,10 +3794,10 @@ module ActionController::HttpAuthentication::Digest # `password_is_ha1` is set to `true` by default, since best practice is to store # ha1 digest instead of a plain-text password. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#248 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:248 def expected_response(http_method, uri, credentials, password, password_is_ha1 = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#254 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:254 def ha1(credentials, password); end # Uses an MD5 digest based on time to generate a value to be used only once. @@ -3947,22 +3837,22 @@ module ActionController::HttpAuthentication::Digest # secret key from the Rails session secret generated upon creation of project. # Ensures the time cannot be modified by client. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#330 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:330 def nonce(secret_key, time = T.unsafe(nil)); end # Opaque based on digest of secret key # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#348 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:348 def opaque(secret_key); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:288 def secret_token(request); end # Returns false unless the request credentials response value matches the # expected value. First try the password as a ha1 digest password. If this # fails, then try it as a plain text password. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#222 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:222 def validate_digest_response(request, realm, &password_procedure); end # Might want a shorter timeout depending on whether the request is a PATCH, PUT, @@ -3970,30 +3860,30 @@ module ActionController::HttpAuthentication::Digest # the Stale directive is implemented. This would allow a user to use new nonce # without prompting the user again for their username and password. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#341 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:341 def validate_nonce(secret_key, request, value, seconds_to_timeout = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#192 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:192 module ActionController::HttpAuthentication::Digest::ControllerMethods # Authenticate using an HTTP Digest, or otherwise render an HTTP header # requesting the client to send a Digest. # # See ActionController::HttpAuthentication::Digest for example usage. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#197 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:197 def authenticate_or_request_with_http_digest(realm = T.unsafe(nil), message = T.unsafe(nil), &password_procedure); end # Authenticate using an HTTP Digest. Returns true if authentication is # successful, false otherwise. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#203 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:203 def authenticate_with_http_digest(realm = T.unsafe(nil), &password_procedure); end # Render an HTTP header requesting the client to send a Digest for # authentication. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#209 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:209 def request_http_digest_authentication(realm = T.unsafe(nil), message = T.unsafe(nil)); end end @@ -4070,7 +3960,7 @@ end # # RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L] # -# source://actionpack//lib/action_controller/metal/http_authentication.rb#425 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:425 module ActionController::HttpAuthentication::Token extend ::ActionController::HttpAuthentication::Token @@ -4088,7 +3978,7 @@ module ActionController::HttpAuthentication::Token # # authenticate(controller) { |token, options| ... } # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#472 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:472 def authenticate(controller, &login_procedure); end # Sets a WWW-Authenticate header to let the client know a token is desired. @@ -4100,7 +3990,7 @@ module ActionController::HttpAuthentication::Token # * `controller` - ActionController::Base instance for the outgoing response. # * `realm` - String realm to use in the header. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#555 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:555 def authentication_request(controller, realm, message = T.unsafe(nil)); end # Encodes the given token and options into an Authorization header value. @@ -4112,24 +4002,24 @@ module ActionController::HttpAuthentication::Token # * `token` - String token. # * `options` - Optional Hash of the options. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#539 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:539 def encode_credentials(token, options = T.unsafe(nil)); end # Takes `raw_params` and turns it into an array of parameters. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#507 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:507 def params_array_from(raw_params); end # This method takes an authorization body and splits up the key-value pairs by # the standardized `:`, `;`, or `\t` delimiters defined in # `AUTHN_PAIR_DELIMITERS`. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#519 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:519 def raw_params(auth); end # This removes the `"` characters wrapping the value. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#512 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:512 def rewrite_param_values(array_params); end # Parses the token and options out of the token Authorization header. The value @@ -4147,17 +4037,17 @@ module ActionController::HttpAuthentication::Token # # * `request` - ActionDispatch::Request instance with the current headers. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#494 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:494 def token_and_options(request); end - # source://actionpack//lib/action_controller/metal/http_authentication.rb#502 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:502 def token_params_from(auth); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#428 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:428 ActionController::HttpAuthentication::Token::AUTHN_PAIR_DELIMITERS = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_controller/metal/http_authentication.rb#431 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:431 module ActionController::HttpAuthentication::Token::ControllerMethods # Authenticate using an HTTP Bearer token, or otherwise render an HTTP header # requesting the client to send a Bearer token. For the authentication to be @@ -4166,7 +4056,7 @@ module ActionController::HttpAuthentication::Token::ControllerMethods # # See ActionController::HttpAuthentication::Token for example usage. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#438 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:438 def authenticate_or_request_with_http_token(realm = T.unsafe(nil), message = T.unsafe(nil), &login_procedure); end # Authenticate using an HTTP Bearer token. Returns the return value of @@ -4174,20 +4064,20 @@ module ActionController::HttpAuthentication::Token::ControllerMethods # # See ActionController::HttpAuthentication::Token for example usage. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#446 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:446 def authenticate_with_http_token(&login_procedure); end # Render an HTTP header requesting the client to send a Bearer token for # authentication. # - # source://actionpack//lib/action_controller/metal/http_authentication.rb#452 + # pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:452 def request_http_token_authentication(realm = T.unsafe(nil), message = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/http_authentication.rb#426 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:426 ActionController::HttpAuthentication::Token::TOKEN_KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/http_authentication.rb#427 +# pkg:gem/actionpack#lib/action_controller/metal/http_authentication.rb:427 ActionController::HttpAuthentication::Token::TOKEN_REGEX = T.let(T.unsafe(nil), Regexp) # # Action Controller Implicit Render @@ -4218,21 +4108,19 @@ ActionController::HttpAuthentication::Token::TOKEN_REGEX = T.let(T.unsafe(nil), # Finally, if we DON'T find a template AND the request isn't a browser page # load, then we implicitly respond with `204 No Content`. # -# source://actionpack//lib/action_controller/metal/implicit_render.rb#33 +# pkg:gem/actionpack#lib/action_controller/metal/implicit_render.rb:33 module ActionController::ImplicitRender include ::ActionController::BasicImplicitRender - # source://actionpack//lib/action_controller/metal/implicit_render.rb#37 + # pkg:gem/actionpack#lib/action_controller/metal/implicit_render.rb:37 def default_render; end - # source://actionpack//lib/action_controller/metal/implicit_render.rb#56 + # pkg:gem/actionpack#lib/action_controller/metal/implicit_render.rb:56 def method_for_action(action_name); end private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/implicit_render.rb#63 + # pkg:gem/actionpack#lib/action_controller/metal/implicit_render.rb:63 def interactive_browser_request?; end end @@ -4245,7 +4133,7 @@ end # # Check ActiveRecord::Railties::ControllerRuntime for an example. # -# source://actionpack//lib/action_controller/metal/instrumentation.rb#16 +# pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:16 module ActionController::Instrumentation extend ::ActiveSupport::Concern include ::ActiveSupport::Benchmarkable @@ -4253,22 +4141,25 @@ module ActionController::Instrumentation mixes_in_class_methods ::ActionController::Instrumentation::ClassMethods - # source://actionpack//lib/action_controller/metal/instrumentation.rb#23 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:23 + def initialize(*, **, &); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#49 - def redirect_to(*_arg0); end + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:49 + def redirect_to(*); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#28 - def render(*_arg0); end + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:28 + def render(*); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#43 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:43 def send_data(data, options = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#36 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:36 def send_file(path, options = T.unsafe(nil)); end + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:21 def view_runtime; end + + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:21 def view_runtime=(_arg0); end private @@ -4276,7 +4167,7 @@ module ActionController::Instrumentation # Every time after an action is processed, this method is invoked with the # payload, so you can add more information. # - # source://actionpack//lib/action_controller/metal/instrumentation.rb#105 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:105 def append_info_to_payload(payload); end # A hook which allows you to clean up any time, wrongly taken into account in @@ -4286,32 +4177,32 @@ module ActionController::Instrumentation # super - time_taken_in_something_expensive # end # - # source://actionpack//lib/action_controller/metal/instrumentation.rb#99 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:99 def cleanup_view_runtime; end # A hook invoked every time a before callback is halted. # - # source://actionpack//lib/action_controller/metal/instrumentation.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:89 def halted_callback_hook(filter, _); end - # source://actionpack//lib/action_controller/metal/instrumentation.rb#59 - def process_action(*_arg0); end + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:59 + def process_action(*); end end -# source://actionpack//lib/action_controller/metal/instrumentation.rb#109 +# pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:109 module ActionController::Instrumentation::ClassMethods # A hook which allows other frameworks to log what happened during controller # process action. This method should return an array with the messages to be # added. # - # source://actionpack//lib/action_controller/metal/instrumentation.rb#113 + # pkg:gem/actionpack#lib/action_controller/metal/instrumentation.rb:113 def log_process_action(payload); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#10 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:10 class ActionController::InvalidAuthenticityToken < ::ActionController::ActionControllerError; end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#13 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:13 class ActionController::InvalidCrossOriginRequest < ::ActionController::ActionControllerError; end # Raised when initializing Parameters with keys that aren't strings or symbols. @@ -4319,7 +4210,7 @@ class ActionController::InvalidCrossOriginRequest < ::ActionController::ActionCo # ActionController::Parameters.new(123 => 456) # # => ActionController::InvalidParameterKey: all keys must be Strings or Symbols, got: Integer # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#84 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:84 class ActionController::InvalidParameterKey < ::ArgumentError; end # # Action Controller Live @@ -4404,7 +4295,7 @@ class ActionController::InvalidParameterKey < ::ArgumentError; end # # By default, no keys are excluded to maintain backward compatibility. # -# source://actionpack//lib/action_controller/metal/live.rb#91 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:91 module ActionController::Live extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -4412,22 +4303,29 @@ module ActionController::Live mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::ActionController::Live::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#37 + # Ensure we clean up any thread locals we copied so that the thread can reused. + # + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:427 def clean_up_thread_locals(*args); end - # source://actionpack//lib/action_controller/metal/live.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:94 def live_streaming_excluded_keys; end - # source://actionpack//lib/action_controller/metal/live.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:94 def live_streaming_excluded_keys=(val); end - # source://actionpack//lib/action_controller/test_case.rb#28 + # Spawn a new thread to serve up the controller in. This is to get around the + # fact that Rack isn't based around IOs and we need to use a thread to stream + # data from the response bodies. Nobody should call this method except in Rails + # internals. Seriously! + # + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:418 def new_controller_thread; end - # source://actionpack//lib/action_controller/metal/live.rb#311 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:317 def process(name); end - # source://actionpack//lib/action_controller/metal/live.rb#360 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:366 def response_body=(body); end # Sends a stream to the browser, which is helpful when you're generating exports @@ -4456,41 +4354,36 @@ module ActionController::Live # end # end # - # source://actionpack//lib/action_controller/metal/live.rb#390 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:396 def send_stream(filename:, disposition: T.unsafe(nil), type: T.unsafe(nil)); end private - # source://actionpack//lib/action_controller/metal/live.rb#429 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:435 def log_error(exception); end - # Ensure we clean up any thread locals we copied so that the thread can reused. # Because of the above, we need to prevent the clearing of thread locals, since # no new thread is actually spawned in the test environment. # - # source://actionpack//lib/action_controller/metal/live.rb#421 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:34 def original_clean_up_thread_locals(locals, thread); end - # Spawn a new thread to serve up the controller in. This is to get around the - # fact that Rack isn't based around IOs and we need to use a thread to stream - # data from the response bodies. Nobody should call this method except in Rails - # internals. Seriously! # Disable controller / rendering threads in tests. User tests can access the # database on the main thread, so they could open a txn, then the controller # thread will open a new connection and try to access data that's only visible # to the main thread's txn. This is the problem in #23483. # - # source://actionpack//lib/action_controller/metal/live.rb#412 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:25 def original_new_controller_thread; end class << self - # source://actionpack//lib/action_controller/metal/live.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:94 def live_streaming_excluded_keys; end - # source://actionpack//lib/action_controller/metal/live.rb#94 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:94 def live_streaming_excluded_keys=(val); end - # source://actionpack//lib/action_controller/metal/live.rb#425 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:431 def live_thread_pool_executor; end end @@ -4503,13 +4396,11 @@ module ActionController::Live module GeneratedInstanceMethods; end end -# source://actionpack//lib/action_controller/metal/live.rb#192 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:192 class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer include ::MonitorMixin - # @return [Buffer] a new instance of Buffer - # - # source://actionpack//lib/action_controller/metal/live.rb#207 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:207 def initialize(response); end # Inform the producer/writing thread that the client has disconnected; the @@ -4517,18 +4408,18 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # # See also #close. # - # source://actionpack//lib/action_controller/metal/live.rb#255 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:259 def abort; end - # source://actionpack//lib/action_controller/metal/live.rb#274 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:280 def call_on_error; end - # Write a 'close' event to the buffer; the producer/writing thread uses this to - # notify us that it's finished supplying content. + # Close the buffer; the producer/writing thread uses this to notify us that + # it's finished supplying content. # # See also #abort. # - # source://actionpack//lib/action_controller/metal/live.rb#243 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:247 def close; end # Is the client still connected and waiting for content? @@ -4536,9 +4427,7 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # The result of calling `write` when this is `false` is determined by # `ignore_disconnect`. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/live.rb#266 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:272 def connected?; end # Ignore that the client has disconnected. @@ -4547,7 +4436,7 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # result in the written content being silently discarded. If this value is # `false` (the default), a ClientDisconnected exception will be raised. # - # source://actionpack//lib/action_controller/metal/live.rb#205 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:205 def ignore_disconnect; end # Ignore that the client has disconnected. @@ -4556,60 +4445,54 @@ class ActionController::Live::Buffer < ::ActionDispatch::Response::Buffer # result in the written content being silently discarded. If this value is # `false` (the default), a ClientDisconnected exception will be raised. # - # source://actionpack//lib/action_controller/metal/live.rb#205 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:205 def ignore_disconnect=(_arg0); end - # source://actionpack//lib/action_controller/metal/live.rb#270 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:276 def on_error(&block); end - # source://actionpack//lib/action_controller/metal/live.rb#215 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:215 def write(string); end # Same as `write` but automatically include a newline at the end of the string. # - # source://actionpack//lib/action_controller/metal/live.rb#235 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:239 def writeln(string); end private - # source://actionpack//lib/action_controller/metal/live.rb#290 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:296 def build_queue(queue_size); end - # source://actionpack//lib/action_controller/metal/live.rb#279 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:285 def each_chunk(&block); end class << self - # Returns the value of attribute queue_size. - # - # source://actionpack//lib/action_controller/metal/live.rb#196 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:196 def queue_size; end - # Sets the attribute queue_size - # - # @param value the value to set the attribute queue_size to. - # - # source://actionpack//lib/action_controller/metal/live.rb#196 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:196 def queue_size=(_arg0); end end end -# source://actionpack//lib/action_controller/metal/live.rb#100 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:100 module ActionController::Live::ClassMethods - # source://actionpack//lib/action_controller/metal/live.rb#101 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:101 def make_response!(request); end end -# source://actionpack//lib/action_controller/metal/live.rb#189 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:189 class ActionController::Live::ClientDisconnected < ::RuntimeError; end -# source://actionpack//lib/action_controller/metal/live.rb#295 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:301 class ActionController::Live::Response < ::ActionDispatch::Response private - # source://actionpack//lib/action_controller/metal/live.rb#297 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:303 def before_committed; end - # source://actionpack//lib/action_controller/metal/live.rb#304 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:310 def build_buffer(response, body); end end @@ -4623,13 +4506,10 @@ end # options you have configured. You may choose to set the following options: # # `:event` -# : If specified, an event with this name will be dispatched on the browser. # # `:retry` -# : The reconnection time in milliseconds used when attempting to send the event. # # `:id` -# : If the connection dies while sending an SSE to the browser, then the # server will receive a `Last-Event-ID` header with value equal to `id`. # # After setting an option in the constructor of the SSE object, all future SSEs @@ -4655,106 +4535,104 @@ end # Note: SSEs are not currently supported by IE. However, they are supported by # Chrome, Firefox, Opera, and Safari. # -# source://actionpack//lib/action_controller/metal/live.rb#153 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:153 class ActionController::Live::SSE - # @return [SSE] a new instance of SSE - # - # source://actionpack//lib/action_controller/metal/live.rb#156 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:156 def initialize(stream, options = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/live.rb#161 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:161 def close; end - # source://actionpack//lib/action_controller/metal/live.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:165 def write(object, options = T.unsafe(nil)); end private - # source://actionpack//lib/action_controller/metal/live.rb#175 + # pkg:gem/actionpack#lib/action_controller/metal/live.rb:175 def perform_write(json, options); end end -# source://actionpack//lib/action_controller/metal/live.rb#154 +# pkg:gem/actionpack#lib/action_controller/metal/live.rb:154 ActionController::Live::SSE::PERMITTED_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/test_case.rb#184 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:184 class ActionController::LiveTestResponse < ::ActionController::Live::Response # Was there a server-side error? # - # source://rack/3.2.7/lib/rack/response.rb#187 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:192 def error?; end # Was the URL not found? # - # source://rack/3.2.7/lib/rack/response.rb#197 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:189 def missing?; end # Was the response successful? # - # source://rack/3.2.7/lib/rack/response.rb#184 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:186 def success?; end end -# source://actionpack//lib/action_controller/log_subscriber.rb#6 +# pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:6 class ActionController::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://actionpack//lib/action_controller/log_subscriber.rb#80 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:78 def exist_fragment?(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#80 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:78 def expire_fragment(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#47 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:47 def halted_callback(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#90 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:90 def logger; end - # source://actionpack//lib/action_controller/log_subscriber.rb#26 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:26 def process_action(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#80 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:78 def read_fragment(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#57 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:57 def redirect_to(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#62 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:62 def send_data(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#52 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:52 def send_file(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#9 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:9 def start_processing(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#67 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:67 def unpermitted_parameters(event); end - # source://actionpack//lib/action_controller/log_subscriber.rb#80 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:78 def write_fragment(event); end class << self private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:24 def __class_attr_log_levels; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:24 def __class_attr_log_levels=(new_value); end end end -# source://actionpack//lib/action_controller/log_subscriber.rb#7 +# pkg:gem/actionpack#lib/action_controller/log_subscriber.rb:7 ActionController::LogSubscriber::INTERNAL_PARAMS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/logging.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/logging.rb:6 module ActionController::Logging extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::Logging::ClassMethods end -# source://actionpack//lib/action_controller/metal/logging.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/logging.rb:9 module ActionController::Logging::ClassMethods # Set a different log level per request. # @@ -4763,7 +4641,7 @@ module ActionController::Logging::ClassMethods # log_at :debug, if: -> { cookies[:debug] } # end # - # source://actionpack//lib/action_controller/metal/logging.rb#17 + # pkg:gem/actionpack#lib/action_controller/metal/logging.rb:17 def log_at(level, **options); end end @@ -4824,149 +4702,113 @@ end # You can refer to the modules included in ActionController::Base to see other # features you can bring into your metal controller. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://actionpack//lib/action_controller/metal.rb#121 +# pkg:gem/actionpack#lib/action_controller/metal.rb:121 class ActionController::Metal < ::AbstractController::Base include ::ActionController::Testing::Functional - # @return [Metal] a new instance of Metal - # - # source://actionpack//lib/action_controller/metal.rb#210 + # pkg:gem/actionpack#lib/action_controller/metal.rb:210 def initialize; end - # Delegates to ActionDispatch::Response#content_type - # - # source://actionpack//lib/action_controller/metal.rb#204 - def content_type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal.rb:204 + def content_type(*, **, &); end - # Delegates to ActionDispatch::Response#content_type= - # - # source://actionpack//lib/action_controller/metal.rb#192 + # pkg:gem/actionpack#lib/action_controller/metal.rb:192 def content_type=(arg); end # Delegates to the class's ::controller_name. # - # source://actionpack//lib/action_controller/metal.rb#156 + # pkg:gem/actionpack#lib/action_controller/metal.rb:156 def controller_name; end - # source://actionpack//lib/action_controller/metal.rb#249 + # pkg:gem/actionpack#lib/action_controller/metal.rb:249 def dispatch(name, request, response); end - # Delegates to ActionDispatch::Response#headers. - # - # source://actionpack//lib/action_controller/metal.rb#180 - def headers(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal.rb:180 + def headers(*, **, &); end - # Delegates to ActionDispatch::Response#location - # - # source://actionpack//lib/action_controller/metal.rb#200 - def location(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal.rb:200 + def location(*, **, &); end - # Delegates to ActionDispatch::Response#location= - # - # source://actionpack//lib/action_controller/metal.rb#188 + # pkg:gem/actionpack#lib/action_controller/metal.rb:188 def location=(arg); end - # Delegates to ActionDispatch::Response#media_type - # - # source://actionpack//lib/action_controller/metal.rb#208 - def media_type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal.rb:208 + def media_type(*, **, &); end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack; end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack=(_arg0); end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack?; end - # source://actionpack//lib/action_controller/metal.rb#219 + # pkg:gem/actionpack#lib/action_controller/metal.rb:219 def params; end - # source://actionpack//lib/action_controller/metal.rb#223 + # pkg:gem/actionpack#lib/action_controller/metal.rb:223 def params=(val); end # Tests if render or redirect has already happened. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal.rb#245 + # pkg:gem/actionpack#lib/action_controller/metal.rb:245 def performed?; end - # :attr_reader: request - # - # The ActionDispatch::Request instance for the current request. - # - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/action_controller/metal.rb:164 def request; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/action_controller/metal.rb:164 def request=(_arg0); end - # source://actionpack//lib/action_controller/metal.rb#284 + # pkg:gem/actionpack#lib/action_controller/metal.rb:284 def reset_session; end - # :attr_reader: response - # - # The ActionDispatch::Response instance for the current response. - # - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionpack#lib/action_controller/metal.rb:170 def response; end # Assign the response and mark it as committed. No further processing will # occur. # - # source://actionpack//lib/action_controller/metal.rb#268 + # pkg:gem/actionpack#lib/action_controller/metal.rb:268 def response=(response); end - # source://actionpack//lib/action_controller/metal.rb#234 + # pkg:gem/actionpack#lib/action_controller/metal.rb:234 def response_body=(body); end - # Delegates to ActionDispatch::Response#status - # - # source://actionpack//lib/action_controller/metal.rb#196 - def response_code(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal.rb:227 + def response_code(*, **, &); end - # The ActionDispatch::Request::Session instance for the current request. - # See further details in the - # [Active Controller Session guide](https://guides.rubyonrails.org/action_controller_overview.html#session). - # - # source://actionpack//lib/action_controller/metal.rb#176 - def session(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal.rb:176 + def session(*, **, &); end - # source://actionpack//lib/action_controller/metal.rb#275 + # pkg:gem/actionpack#lib/action_controller/metal.rb:275 def set_request!(request); end - # source://actionpack//lib/action_controller/metal.rb#257 + # pkg:gem/actionpack#lib/action_controller/metal.rb:257 def set_response!(response); end - # Delegates to ActionDispatch::Response#status - # - # source://actionpack//lib/action_controller/metal.rb#196 - def status(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal.rb:196 + def status(*, **, &); end - # Delegates to ActionDispatch::Response#status= - # - # source://actionpack//lib/action_controller/metal.rb#184 + # pkg:gem/actionpack#lib/action_controller/metal.rb:184 def status=(arg); end - # source://actionpack//lib/action_controller/metal.rb#280 + # pkg:gem/actionpack#lib/action_controller/metal.rb:280 def to_a; end # Basic `url_for` that can be overridden for more robust functionality. # - # source://actionpack//lib/action_controller/metal.rb#230 + # pkg:gem/actionpack#lib/action_controller/metal.rb:230 def url_for(string); end class << self # Returns a Rack endpoint for the given action name. # - # source://actionpack//lib/action_controller/metal.rb#315 + # pkg:gem/actionpack#lib/action_controller/metal.rb:315 def action(name); end - # source://actionpack//lib/action_controller/metal.rb#140 + # pkg:gem/actionpack#lib/action_controller/metal.rb:140 def action_encoding_template(action); end # Returns the last part of the controller's name, underscored, without the @@ -4976,16 +4818,16 @@ class ActionController::Metal < ::AbstractController::Base # #### Returns # * `string` # - # source://actionpack//lib/action_controller/metal.rb#130 + # pkg:gem/actionpack#lib/action_controller/metal.rb:130 def controller_name; end # Direct dispatch to the controller. Instantiates the controller, then executes # the action named `name`. # - # source://actionpack//lib/action_controller/metal.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal.rb:331 def dispatch(name, req, res); end - # source://actionpack//lib/action_controller/metal.rb#134 + # pkg:gem/actionpack#lib/action_controller/metal.rb:134 def make_response!(request); end # The middleware stack used by this controller. @@ -5001,44 +4843,40 @@ class ActionController::Metal < ::AbstractController::Base # (https://guides.rubyonrails.org/rails_on_rack.html#action-dispatcher-middleware-stack) # in the guides. # - # source://actionpack//lib/action_controller/metal.rb#310 + # pkg:gem/actionpack#lib/action_controller/metal.rb:310 def middleware; end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack; end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack=(value); end - # source://actionpack//lib/action_controller/metal.rb#288 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def middleware_stack?; end # Pushes the given Rack middleware and its arguments to the bottom of the # middleware stack. # - # source://actionpack//lib/action_controller/metal.rb#293 - def use(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal.rb:293 + def use(*, **, &); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def __class_attr_middleware_stack; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/metal.rb:288 def __class_attr_middleware_stack=(new_value); end - # @private - # - # source://actionpack//lib/action_controller/metal.rb#146 + # pkg:gem/actionpack#lib/action_controller/metal.rb:146 def inherited(subclass); end end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#52 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:52 class ActionController::MethodNotAllowed < ::ActionController::ActionControllerError - # @return [MethodNotAllowed] a new instance of MethodNotAllowed - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#53 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:53 def initialize(*allowed_methods); end end @@ -5051,40 +4889,36 @@ end # use AuthenticationMiddleware, except: [:index, :show] # end # -# source://actionpack//lib/action_controller/metal.rb#18 +# pkg:gem/actionpack#lib/action_controller/metal.rb:18 class ActionController::MiddlewareStack < ::ActionDispatch::MiddlewareStack - # source://actionpack//lib/action_controller/metal.rb#31 + # pkg:gem/actionpack#lib/action_controller/metal.rb:31 def build(action, app = T.unsafe(nil), &block); end private - # source://actionpack//lib/action_controller/metal.rb#44 + # pkg:gem/actionpack#lib/action_controller/metal.rb:44 def build_middleware(klass, args, block); end end -# source://actionpack//lib/action_controller/metal.rb#41 +# pkg:gem/actionpack#lib/action_controller/metal.rb:41 ActionController::MiddlewareStack::EXCLUDE = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_controller/metal.rb#40 +# pkg:gem/actionpack#lib/action_controller/metal.rb:40 ActionController::MiddlewareStack::INCLUDE = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_controller/metal.rb#19 +# pkg:gem/actionpack#lib/action_controller/metal.rb:19 class ActionController::MiddlewareStack::Middleware < ::ActionDispatch::MiddlewareStack::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://actionpack//lib/action_controller/metal.rb#20 + # pkg:gem/actionpack#lib/action_controller/metal.rb:20 def initialize(klass, args, actions, strategy, block); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal.rb#26 + # pkg:gem/actionpack#lib/action_controller/metal.rb:26 def valid?(action); end end -# source://actionpack//lib/action_controller/metal.rb#42 +# pkg:gem/actionpack#lib/action_controller/metal.rb:42 ActionController::MiddlewareStack::NULL = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_controller/metal/mime_responds.rb#8 +# pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:8 module ActionController::MimeResponds # Without web-service support, an action which collects the data for displaying # a list of people might look something like this: @@ -5289,10 +5123,7 @@ module ActionController::MimeResponds # format.html.phone # this gets rendered # end # - # @raise [ArgumentError] - # @yield [collector] - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#211 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:211 def respond_to(*mimes); end end @@ -5318,122 +5149,102 @@ end # determine which specific mime-type it should respond with for the current # request, with this response then being accessible by calling #response. # -# source://actionpack//lib/action_controller/metal/mime_responds.rb#251 +# pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:251 class ActionController::MimeResponds::Collector include ::AbstractController::Collector - # @return [Collector] a new instance of Collector - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#255 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:255 def initialize(mimes, variant = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#262 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:269 def all(*args, &block); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#262 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:262 def any(*args, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#280 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:280 def any_response?; end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#271 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:271 def custom(mime_type, &block); end - # Returns the value of attribute format. - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#253 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:253 def format; end - # Sets the attribute format - # - # @param value the value to set the attribute format to. - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#253 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:253 def format=(_arg0); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#297 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:297 def negotiate_format(request); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#284 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:284 def response; end end -# source://actionpack//lib/action_controller/metal/mime_responds.rb#301 +# pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:301 class ActionController::MimeResponds::Collector::VariantCollector - # @return [VariantCollector] a new instance of VariantCollector - # - # source://actionpack//lib/action_controller/metal/mime_responds.rb#302 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:302 def initialize(variant = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#307 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:316 def all(*args, &block); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#307 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:307 def any(*args, &block); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#318 - def method_missing(name, *_arg1, &block); end + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:318 + def method_missing(name, *, &block); end - # source://actionpack//lib/action_controller/metal/mime_responds.rb#322 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:322 def variant; end private - # source://actionpack//lib/action_controller/metal/mime_responds.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal/mime_responds.rb:331 def variant_key; end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#96 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:96 class ActionController::MissingExactTemplate < ::ActionController::UnknownFormat - # @return [MissingExactTemplate] a new instance of MissingExactTemplate - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#99 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:99 def initialize(message, controller, action_name); end - # Returns the value of attribute action_name. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#97 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:97 def action_name; end - # Returns the value of attribute controller. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#97 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:97 def controller; end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#61 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:61 class ActionController::MissingFile < ::ActionController::ActionControllerError; end # See `Responder#api_behavior` # -# source://actionpack//lib/action_controller/metal/renderers.rb#17 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:17 class ActionController::MissingRenderer < ::LoadError - # @return [MissingRenderer] a new instance of MissingRenderer - # - # source://actionpack//lib/action_controller/metal/renderers.rb#18 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:18 def initialize(format); end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#58 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:58 class ActionController::NotImplemented < ::ActionController::MethodNotAllowed; end # Specify binary encoding for parameters for a given action. # -# source://actionpack//lib/action_controller/metal/parameter_encoding.rb#7 +# pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:7 module ActionController::ParameterEncoding extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::ParameterEncoding::ClassMethods end -# source://actionpack//lib/action_controller/metal/parameter_encoding.rb#10 +# pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:10 module ActionController::ParameterEncoding::ClassMethods - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#20 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:20 def action_encoding_template(action); end - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#11 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:11 def inherited(klass); end # Specify the encoding for a parameter on an action. If not specified the @@ -5462,10 +5273,10 @@ module ActionController::ParameterEncoding::ClassMethods # where an application must handle data but encoding of the data is unknown, # like file system data. # - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#79 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:79 def param_encoding(action, param, encoding); end - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#16 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:16 def setup_param_encode; end # Specify that a given action's parameters should all be encoded as ASCII-8BIT @@ -5493,7 +5304,7 @@ module ActionController::ParameterEncoding::ClassMethods # encoded as ASCII-8BIT. This is useful in the case where an application must # handle data but encoding of the data is unknown, like file system data. # - # source://actionpack//lib/action_controller/metal/parameter_encoding.rb#50 + # pkg:gem/actionpack#lib/action_controller/metal/parameter_encoding.rb:50 def skip_parameter_encoding(action); end end @@ -5507,20 +5318,18 @@ end # params.expect(a: []) # # => ActionController::ParameterMissing: param is missing or the value is empty or invalid: a # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#25 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:25 class ActionController::ParameterMissing < ::KeyError - # @return [ParameterMissing] a new instance of ParameterMissing - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:28 def initialize(param, keys = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#37 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:37 def corrections; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#26 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:26 def keys; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#26 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:26 def param; end end @@ -5598,7 +5407,7 @@ end # params[:key] # => "value" # params["key"] # => "value" # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#160 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:160 class ActionController::Parameters include ::ActiveSupport::DeepMergeable @@ -5619,15 +5428,13 @@ class ActionController::Parameters # params.permitted? # => true # Person.new(params) # => # # - # @return [Parameters] a new instance of Parameters - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#287 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:286 def initialize(parameters = T.unsafe(nil), logging_context = T.unsafe(nil)); end # Returns true if another `Parameters` object contains the same content and # permitted flag. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#301 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:300 def ==(other); end # Returns a parameter for the given `key`. If not found, returns `nil`. @@ -5636,46 +5443,46 @@ class ActionController::Parameters # params[:person] # => #"Francesco"} permitted: false> # params[:none] # => nil # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#797 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:805 def [](key); end # Assigns a value to a given `key`. The given key may still get filtered out # when #permit is called. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#803 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:811 def []=(key, value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:262 def always_permitted_parameters; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:262 def always_permitted_parameters=(val); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def as_json(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:249 + def as_json(*, **, &); end # Returns a new `ActionController::Parameters` instance with `nil` values # removed. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#974 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:982 def compact; end # Removes all `nil` values in place and returns `self`, or `nil` if no changes # were made. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#980 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:988 def compact!; end # Returns a new `ActionController::Parameters` instance without the blank # values. Uses Object#blank? for determining if a value is blank. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#986 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:994 def compact_blank; end # Removes all blank values in place and returns self. Uses Object#blank? for # determining if a value is blank. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#992 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1000 def compact_blank!; end # Attribute that keeps track of converted arrays, if any, to avoid double @@ -5686,32 +5493,30 @@ class ActionController::Parameters # that converts values. Also, we are not going to build a new array object per # fetch. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#435 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:443 def converted_arrays; end # Returns a duplicate `ActionController::Parameters` instance with the same # permitted parameters. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1092 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1100 def deep_dup; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1027 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1035 def deep_merge?(other_hash); end # Returns a new `ActionController::Parameters` instance with the results of # running `block` once for every key. This includes the keys from the root hash # and from all nested hashes and arrays. The values are unchanged. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#924 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:932 def deep_transform_keys(&block); end # Returns the same `ActionController::Parameters` instance with changed keys. # This includes the keys from the root hash and from all nested hashes and # arrays. The values are unchanged. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#933 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:941 def deep_transform_keys!(&block); end # Deletes a key-value pair from `Parameters` and returns the value. If `key` is @@ -5719,12 +5524,10 @@ class ActionController::Parameters # returns the result). This method is similar to #extract!, which returns the # corresponding `ActionController::Parameters` object. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#942 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:950 def delete(key, &block); end - # Removes items that the block evaluates to true and returns self. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#966 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:978 def delete_if(&block); end # Extracts the nested parameter from the given `keys` by calling `dig` at each @@ -5737,39 +5540,37 @@ class ActionController::Parameters # params2 = ActionController::Parameters.new(foo: [10, 11, 12]) # params2.dig(:foo, 1) # => 11 # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#841 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:849 def dig(*keys); end - # Convert all hashes in values into parameters, then yield each pair in the same - # way as `Hash#each_pair`. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#402 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:409 def each(&block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def each_key(*_arg0, **_arg1, &_arg2); end + # Calls block once for each key in the parameters, passing the key. If no block + # is given, an enumerator is returned instead. + # + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:424 + def each_key(&block); end # Convert all hashes in values into parameters, then yield each pair in the same # way as `Hash#each_pair`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#402 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:401 def each_pair(&block); end # Convert all hashes in values into parameters, then yield each value in the # same way as `Hash#each_value`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#414 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:413 def each_value(&block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def empty?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:249 + def empty?(*, **, &); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1086 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1094 def encode_with(coder); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#309 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:308 def eql?(other); end # Returns a new `ActionController::Parameters` instance that filters out the @@ -5779,11 +5580,11 @@ class ActionController::Parameters # params.except(:a, :b) # => #3} permitted: false> # params.except(:d) # => #1, "b"=>2, "c"=>3} permitted: false> # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#869 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:877 def except(*keys); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def exclude?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:249 + def exclude?(*, **, &); end # `expect` is the preferred way to require and permit parameters. # It is safer than the previous recommendation to call `permit` and `require` @@ -5885,7 +5686,7 @@ class ActionController::Parameters # permitted.is_a?(Array) # => true # permitted.size # => 2 # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#772 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:780 def expect(*filters); end # Same as `expect`, but raises an `ActionController::ExpectedParameterMissing` @@ -5895,7 +5696,7 @@ class ActionController::Parameters # internal API where incorrectly formatted params would indicate a bug # in a client library that should be fixed. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#786 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:794 def expect!(*filters); end # Removes and returns the key/value pairs matching the given keys. @@ -5904,7 +5705,7 @@ class ActionController::Parameters # params.extract!(:a, :b) # => #1, "b"=>2} permitted: false> # params # => #3} permitted: false> # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#879 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:887 def extract!(*keys); end # Returns parameter value for the given `key` separated by `delimiter`. @@ -5920,7 +5721,7 @@ class ActionController::Parameters # params = ActionController::Parameters.new(tags: "ruby,rails,,web") # params.extract_value(:tags, delimiter: ",") # => ["ruby", "rails", "", "web"] # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1110 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1118 def extract_value(key, delimiter: T.unsafe(nil)); end # Returns a parameter for the given `key`. If the `key` can't be found, there @@ -5937,56 +5738,45 @@ class ActionController::Parameters # params.fetch(:none, "Francesco") # => "Francesco" # params.fetch(:none) { "Francesco" } # => "Francesco" # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#820 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:828 def fetch(key, *args); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def has_key?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:252 + def has_key?(*, **, &); end # Returns true if the given value is present for some key in the parameters. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#997 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1005 def has_value?(value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#315 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:314 def hash; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def include?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:249 + def include?(*, **, &); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1068 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1076 def init_with(coder); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1055 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1063 def inspect; end - # Equivalent to Hash#keep_if, but returns `nil` if no changes were made. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#953 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:965 def keep_if(&block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def key?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:253 + def key?(*, **, &); end - # :method: to_s - # - # :call-seq: - # to_s() - # - # Returns the content of the parameters as a string. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def keys(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:249 + def keys(*, **, &); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def member?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:254 + def member?(*, **, &); end # Returns a new `ActionController::Parameters` instance with all keys from # `other_hash` merged into current hash. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1011 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1019 def merge(other_hash); end # :call-seq: merge!(other_hash) @@ -5994,7 +5784,7 @@ class ActionController::Parameters # Returns the current `ActionController::Parameters` instance with `other_hash` # merged into current hash. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1022 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1030 def merge!(other_hash, &block); end # Returns a new `ActionController::Parameters` instance that includes only the @@ -6135,7 +5925,7 @@ class ActionController::Parameters # params.permit(person: { '0': [:email], '1': [:phone]}).to_h # # => {"person"=>{"0"=>{"email"=>"none@test.com"}, "1"=>{"phone"=>"555-6789"}}} # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#668 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:676 def permit(*filters); end # Sets the `permitted` attribute to `true`. This can be used to pass mass @@ -6151,7 +5941,7 @@ class ActionController::Parameters # params.permitted? # => true # Person.new(params) # => # # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#461 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:469 def permit!; end # Returns `true` if the parameter is permitted, `false` otherwise. @@ -6161,20 +5951,18 @@ class ActionController::Parameters # params.permit! # params.permitted? # => true # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#445 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:453 def permitted?; end # Returns a new `ActionController::Parameters` instance with items that the # block evaluates to true removed. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#961 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:969 def reject(&block); end # Removes items that the block evaluates to true and returns self. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#966 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:974 def reject!(&block); end # This method accepts both a single key and an array of keys. @@ -6224,80 +6012,33 @@ class ActionController::Parameters # params.expect(person: :name).require(:name) # end # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#519 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:527 def require(key); end - # This method accepts both a single key and an array of keys. - # - # When passed a single key, if it exists and its associated value is either - # present or the singleton `false`, returns said value: - # - # ActionController::Parameters.new(person: { name: "Francesco" }).require(:person) - # # => #"Francesco"} permitted: false> - # - # Otherwise raises ActionController::ParameterMissing: - # - # ActionController::Parameters.new.require(:person) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: person - # - # ActionController::Parameters.new(person: nil).require(:person) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: person - # - # ActionController::Parameters.new(person: "\t").require(:person) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: person - # - # ActionController::Parameters.new(person: {}).require(:person) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: person - # - # When given an array of keys, the method tries to require each one of them in - # order. If it succeeds, an array with the respective return values is returned: - # - # params = ActionController::Parameters.new(user: { ... }, profile: { ... }) - # user_params, profile_params = params.require([:user, :profile]) - # - # Otherwise, the method re-raises the first exception found: - # - # params = ActionController::Parameters.new(user: {}, profile: {}) - # user_params, profile_params = params.require([:user, :profile]) - # # ActionController::ParameterMissing: param is missing or the value is empty or invalid: user - # - # This method is not recommended for fetching terminal values because it does - # not permit the values. For example, this can cause problems: - # - # # CAREFUL - # params = ActionController::Parameters.new(person: { name: "Finn" }) - # name = params.require(:person).require(:name) # CAREFUL - # - # It is recommended to use `expect` instead: - # - # def person_params - # params.expect(person: :name).require(:name) - # end - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#519 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:537 def required(key); end # Returns a new `ActionController::Parameters` instance with all keys from # current hash merged into `other_hash`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1033 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1041 def reverse_merge(other_hash); end # Returns the current `ActionController::Parameters` instance with current hash # merged into `other_hash`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1042 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1050 def reverse_merge!(other_hash); end # Returns a new `ActionController::Parameters` instance with only items that the # block evaluates to true. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#948 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:956 def select(&block); end # Equivalent to Hash#keep_if, but returns `nil` if no changes were made. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#953 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:961 def select!(&block); end # Returns a new `ActionController::Parameters` instance that includes only the @@ -6307,20 +6048,20 @@ class ActionController::Parameters # params.slice(:a, :b) # => #1, "b"=>2} permitted: false> # params.slice(:d) # => # # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#852 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:860 def slice(*keys); end # Returns the current `ActionController::Parameters` instance which contains # only the given `keys`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#858 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:866 def slice!(*keys); end # This is required by ActiveModel attribute assignment, so that user can pass # `Parameters` to a mass assignment methods in a model. It should not matter as # we are using `HashWithIndifferentAccess` internally. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1051 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1059 def stringify_keys; end # Returns a safe ActiveSupport::HashWithIndifferentAccess representation of the @@ -6336,7 +6077,7 @@ class ActionController::Parameters # safe_params = params.permit(:name) # safe_params.to_h # => {"name"=>"Senjougahara Hitagi"} # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#331 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:330 def to_h(&block); end # Returns a safe `Hash` representation of the parameters with all unpermitted @@ -6352,37 +6093,10 @@ class ActionController::Parameters # safe_params = params.permit(:name) # safe_params.to_hash # => {"name"=>"Senjougahara Hitagi"} # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#351 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:350 def to_hash; end - # Returns a string representation of the receiver suitable for use as a URL - # query string: - # - # params = ActionController::Parameters.new({ - # name: "David", - # nationality: "Danish" - # }) - # params.to_query - # # => ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash - # - # safe_params = params.permit(:name, :nationality) - # safe_params.to_query - # # => "name=David&nationality=Danish" - # - # An optional namespace can be passed to enclose key names: - # - # params = ActionController::Parameters.new({ - # name: "David", - # nationality: "Danish" - # }) - # safe_params = params.permit(:name, :nationality) - # safe_params.to_query("user") - # # => "user%5Bname%5D=David&user%5Bnationality%5D=Danish" - # - # The string pairs `"key=value"` that conform the query string are sorted - # lexicographically in ascending order. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#381 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:383 def to_param(*args); end # Returns a string representation of the receiver suitable for use as a URL @@ -6412,11 +6126,11 @@ class ActionController::Parameters # The string pairs `"key=value"` that conform the query string are sorted # lexicographically in ascending order. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#381 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:380 def to_query(*args); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#250 - def to_s(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:249 + def to_s(*, **, &); end # Returns an unsafe, unfiltered ActiveSupport::HashWithIndifferentAccess # representation of the parameters. @@ -6428,32 +6142,22 @@ class ActionController::Parameters # params.to_unsafe_h # # => {"name"=>"Senjougahara Hitagi", "oddity" => "Heavy stone crab"} # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#395 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:394 def to_unsafe_h; end - # Returns an unsafe, unfiltered ActiveSupport::HashWithIndifferentAccess - # representation of the parameters. - # - # params = ActionController::Parameters.new({ - # name: "Senjougahara Hitagi", - # oddity: "Heavy stone crab" - # }) - # params.to_unsafe_h - # # => {"name"=>"Senjougahara Hitagi", "oddity" => "Heavy stone crab"} - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#395 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:397 def to_unsafe_hash; end # Returns a new `ActionController::Parameters` instance with the results of # running `block` once for every key. The values are unchanged. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#906 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:914 def transform_keys(&block); end # Performs keys transformation and returns the altered # `ActionController::Parameters` instance. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#915 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:923 def transform_keys!(&block); end # Returns a new `ActionController::Parameters` instance with the results of @@ -6463,88 +6167,63 @@ class ActionController::Parameters # params.transform_values { |x| x * 2 } # # => #2, "b"=>4, "c"=>6} permitted: false> # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#889 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:897 def transform_values; end # Performs values transformation and returns the altered # `ActionController::Parameters` instance. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#898 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:906 def transform_values!; end - # Returns true if the given value is present for some key in the parameters. - # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#997 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1009 def value?(value); end # Returns a new array of the values of the parameters. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#424 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:432 def values; end # Returns values that were assigned to the given `keys`. Note that all the # `Hash` objects will be converted to `ActionController::Parameters`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1005 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1013 def values_at(*keys); end - # Returns a new `ActionController::Parameters` instance with all keys from - # current hash merged into `other_hash`. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1033 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1046 def with_defaults(other_hash); end - # Returns the current `ActionController::Parameters` instance with current hash - # merged into `other_hash`. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1042 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1054 def with_defaults!(other_hash); end - # Returns a new `ActionController::Parameters` instance that filters out the - # given `keys`. - # - # params = ActionController::Parameters.new(a: 1, b: 2, c: 3) - # params.except(:a, :b) # => #3} permitted: false> - # params.except(:d) # => #1, "b"=>2, "c"=>3} permitted: false> - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#869 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:880 def without(*keys); end protected - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1123 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1131 def each_nested_attribute; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1119 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1127 def nested_attributes?; end - # Returns the value of attribute parameters. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1115 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1123 def parameters; end # Filters self and optionally checks for unpermitted keys # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1130 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1138 def permit_filters(filters, on_unpermitted: T.unsafe(nil), explicit_arrays: T.unsafe(nil)); end - # Sets the attribute permitted - # - # @param value the value to set the attribute permitted to. - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1117 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1125 def permitted=(_arg0); end private - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1192 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1200 def _deep_transform_keys_in_object(object, &block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1211 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1219 def _deep_transform_keys_in_object!(object, &block); end # When an array is expected, you must specify an array explicitly @@ -6565,63 +6244,57 @@ class ActionController::Parameters # # { pies: { flavor: "cherry" } } # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1256 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1264 def array_filter?(filter); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1172 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1180 def convert_hashes_to_parameters(key, value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1156 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1164 def convert_parameters_to_hashes(value, using, &block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1178 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1186 def convert_value_to_parameters(value); end # Called when an explicit array filter is encountered. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1261 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1269 def each_array_element(object, filter, &block); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1349 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1357 def hash_filter(params, filter, on_unpermitted: T.unsafe(nil), explicit_arrays: T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1434 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1442 def initialize_copy(source); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1150 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1158 def new_instance_with_inherited_permitted_status(hash); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1343 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1351 def non_scalar?(value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1417 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1425 def permit_any_in_array(array); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1400 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1408 def permit_any_in_parameters(params); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1379 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1387 def permit_array_of_hashes(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1375 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1383 def permit_array_of_scalars(value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1385 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1393 def permit_hash(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1395 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1403 def permit_hash_or_array(value, filter, on_unpermitted:, explicit_arrays:); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1361 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1369 def permit_value(value, filter, on_unpermitted:, explicit_arrays:); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1314 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1322 def permitted_scalar?(value); end # Adds existing keys to the params if their values are scalar. @@ -6635,53 +6308,49 @@ class ActionController::Parameters # # puts params.keys # => ["zipcode"] # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1328 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1336 def permitted_scalar_filter(params, permitted_key); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1232 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1240 def specify_numeric_keys?(filter); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1286 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1294 def unpermitted_keys(params); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1272 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1280 def unpermitted_parameters!(params, on_unpermitted: T.unsafe(nil)); end class << self - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:165 def action_on_unpermitted_parameters; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:165 def action_on_unpermitted_parameters=(val); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:262 def always_permitted_parameters; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:262 def always_permitted_parameters=(val); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1059 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1067 def hook_into_yaml_loading; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#266 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:265 def nested_attribute?(key, value); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#163 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:163 def permit_all_parameters; end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#163 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:163 def permit_all_parameters=(val); end end end -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1347 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1355 ActionController::Parameters::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1348 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1356 ActionController::Parameters::EMPTY_HASH = T.let(T.unsafe(nil), Hash) # This is a list of permitted scalar types that includes the ones supported in @@ -6693,7 +6362,7 @@ ActionController::Parameters::EMPTY_HASH = T.let(T.unsafe(nil), Hash) # If you modify this collection please update the one in the #permit doc as # well. # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1298 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1306 ActionController::Parameters::PERMITTED_SCALAR_TYPES = T.let(T.unsafe(nil), Array) # # Action Controller Params Wrapper @@ -6769,7 +6438,7 @@ ActionController::Parameters::PERMITTED_SCALAR_TYPES = T.let(T.unsafe(nil), Arra # wrap_parameters false # end # -# source://actionpack//lib/action_controller/metal/params_wrapper.rb#83 +# pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:83 module ActionController::ParamsWrapper extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -6779,39 +6448,37 @@ module ActionController::ParamsWrapper private - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#277 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:277 def _extract_parameters(parameters); end - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#299 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:299 def _perform_parameter_wrapping; end # Returns the list of parameters which will be selected for wrapped. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#273 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:273 def _wrap_parameters(parameters); end # Checks if we should perform parameters wrapping. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#289 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:289 def _wrapper_enabled?; end # Returns the list of enabled formats. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#268 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:268 def _wrapper_formats; end # Returns the wrapper key which will be used to store wrapped parameters. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#263 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:263 def _wrapper_key; end # Performs parameters wrapping upon the request. Called automatically by the # metal call stack. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#257 - def process_action(*_arg0); end + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:257 + def process_action(*); end module GeneratedClassMethods def _wrapper_options; end @@ -6826,15 +6493,15 @@ module ActionController::ParamsWrapper end end -# source://actionpack//lib/action_controller/metal/params_wrapper.rb#188 +# pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:188 module ActionController::ParamsWrapper::ClassMethods - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#189 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:189 def _set_wrapper_options(options); end # Sets the default wrapper key or model which will be used to determine wrapper # key and attribute names. Called automatically when the module is inherited. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#244 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:244 def inherited(klass); end # Sets the name of the wrapper key, or the model which `ParamsWrapper` would use @@ -6865,39 +6532,25 @@ module ActionController::ParamsWrapper::ClassMethods # * `:exclude` - The list of attribute names which parameters wrapper will # exclude from a nested hash. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#221 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:221 def wrap_parameters(name_or_model_or_options, options = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/params_wrapper.rb#86 +# pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:86 ActionController::ParamsWrapper::EXCLUDE_PARAMETERS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_controller/metal/params_wrapper.rb#88 +# pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:88 class ActionController::ParamsWrapper::Options < ::Struct - # @return [Options] a new instance of Options - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#97 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:97 def initialize(name, format, include, exclude, klass, model); end - # Returns the value of attribute include - # - # @return [Object] the current value of include - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#108 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:108 def include; end - # Returns the value of attribute model - # - # @return [Object] the current value of model - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#104 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:104 def model; end - # Returns the value of attribute name - # - # @return [Object] the current value of name - # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#141 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:141 def name; end private @@ -6910,23 +6563,23 @@ class ActionController::ParamsWrapper::Options < ::Struct # This method also does namespace lookup. Foo::Bar::UsersController will try to # find Foo::Bar::User, Foo::User and finally User. # - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:165 def _default_wrap_model; end class << self - # source://actionpack//lib/action_controller/metal/params_wrapper.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/params_wrapper.rb:89 def from_hash(hash); end end end -# source://actionpack//lib/action_controller/metal/permissions_policy.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/permissions_policy.rb:6 module ActionController::PermissionsPolicy extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionController::PermissionsPolicy::ClassMethods end -# source://actionpack//lib/action_controller/metal/permissions_policy.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/permissions_policy.rb:9 module ActionController::PermissionsPolicy::ClassMethods # Overrides parts of the globally configured `Feature-Policy` header: # @@ -6945,23 +6598,23 @@ module ActionController::PermissionsPolicy::ClassMethods # end # end # - # source://actionpack//lib/action_controller/metal/permissions_policy.rb#27 + # pkg:gem/actionpack#lib/action_controller/metal/permissions_policy.rb:27 def permissions_policy(**options, &block); end end -# source://actionpack//lib/action_controller/railtie.rb#13 +# pkg:gem/actionpack#lib/action_controller/railtie.rb:13 class ActionController::Railtie < ::Rails::Railtie; end -# source://actionpack//lib/action_controller/railties/helpers.rb#6 +# pkg:gem/actionpack#lib/action_controller/railties/helpers.rb:6 module ActionController::Railties; end -# source://actionpack//lib/action_controller/railties/helpers.rb#7 +# pkg:gem/actionpack#lib/action_controller/railties/helpers.rb:7 module ActionController::Railties::Helpers - # source://actionpack//lib/action_controller/railties/helpers.rb#8 + # pkg:gem/actionpack#lib/action_controller/railties/helpers.rb:8 def inherited(klass); end end -# source://actionpack//lib/action_controller/metal/rate_limiting.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/rate_limiting.rb:6 module ActionController::RateLimiting extend ::ActiveSupport::Concern @@ -6969,11 +6622,11 @@ module ActionController::RateLimiting private - # source://actionpack//lib/action_controller/metal/rate_limiting.rb#61 + # pkg:gem/actionpack#lib/action_controller/metal/rate_limiting.rb:61 def rate_limiting(to:, within:, by:, with:, store:, name:); end end -# source://actionpack//lib/action_controller/metal/rate_limiting.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/rate_limiting.rb:9 module ActionController::RateLimiting::ClassMethods # Applies a rate limit to all actions or those specified by the normal # `before_action` filters with `only:` and `except:`. @@ -7021,11 +6674,11 @@ module ActionController::RateLimiting::ClassMethods # rate_limit to: 10, within: 5.minutes, name: "long-term" # end # - # source://actionpack//lib/action_controller/metal/rate_limiting.rb#55 + # pkg:gem/actionpack#lib/action_controller/metal/rate_limiting.rb:55 def rate_limit(to:, within:, by: T.unsafe(nil), with: T.unsafe(nil), store: T.unsafe(nil), name: T.unsafe(nil), **options); end end -# source://actionpack//lib/action_controller/metal/redirecting.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:6 module ActionController::Redirecting extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7038,14 +6691,14 @@ module ActionController::Redirecting mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::AbstractController::UrlFor::ClassMethods - # source://actionpack//lib/action_controller/metal/redirecting.rb#159 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:159 def _compute_redirect_to_location(request, options); end # Soft deprecated alias for #redirect_back_or_to where the `fallback_location` # location is supplied as a keyword argument instead of the first positional # argument. # - # source://actionpack//lib/action_controller/metal/redirecting.rb#122 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:122 def redirect_back(fallback_location:, allow_other_host: T.unsafe(nil), **args); end # Redirects the browser to the page that issued the request (the referrer) if @@ -7072,7 +6725,7 @@ module ActionController::Redirecting # All other options that can be passed to #redirect_to are accepted as options, # and the behavior is identical. # - # source://actionpack//lib/action_controller/metal/redirecting.rb#149 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:149 def redirect_back_or_to(fallback_location, allow_other_host: T.unsafe(nil), **options); end # Redirects the browser to the target specified in `options`. This parameter can @@ -7159,9 +6812,7 @@ module ActionController::Redirecting # See #url_from for more information on what an internal and safe URL is, or how # to fall back to an alternate redirect URL in the unsafe case. # - # @raise [ActionControllerError] - # - # source://actionpack//lib/action_controller/metal/redirecting.rb#103 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:103 def redirect_to(options = T.unsafe(nil), response_options = T.unsafe(nil)); end # Verifies the passed `location` is an internal URL that's safe to redirect to @@ -7189,30 +6840,28 @@ module ActionController::Redirecting # `url_for(@post)`. However, #url_from is meant to take an external parameter to # verify as in `url_from(params[:redirect_url])`. # - # source://actionpack//lib/action_controller/metal/redirecting.rb#203 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:203 def url_from(location); end private - # source://actionpack//lib/action_controller/metal/redirecting.rb#209 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:209 def _allow_other_host; end - # source://actionpack//lib/action_controller/metal/redirecting.rb#223 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:223 def _enforce_open_redirect_protection(location, allow_other_host:); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#242 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:242 def _ensure_url_is_http_header_safe(url); end - # source://actionpack//lib/action_controller/metal/redirecting.rb#213 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:213 def _extract_redirect_to_status(options, response_options); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/redirecting.rb#231 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:231 def _url_host_allowed?(url); end class << self - # source://actionpack//lib/action_controller/metal/redirecting.rb#159 + # pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:176 def _compute_redirect_to_location(request, options); end end @@ -7229,13 +6878,13 @@ module ActionController::Redirecting end end -# source://actionpack//lib/action_controller/metal/redirecting.rb#14 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:14 ActionController::Redirecting::ILLEGAL_HEADER_VALUE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_controller/metal/redirecting.rb#12 +# pkg:gem/actionpack#lib/action_controller/metal/redirecting.rb:12 class ActionController::Redirecting::UnsafeRedirectError < ::StandardError; end -# source://actionpack//lib/action_controller/metal/exceptions.rb#16 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:16 class ActionController::RenderError < ::ActionController::ActionControllerError; end # # Action Controller Renderer @@ -7259,7 +6908,7 @@ class ActionController::RenderError < ::ActionController::ActionControllerError; # ApplicationController.render template: "posts/show", assigns: { post: Post.first } # PostsController.render :show, assigns: { post: Post.first } # -# source://actionpack//lib/action_controller/renderer.rb#27 +# pkg:gem/actionpack#lib/action_controller/renderer.rb:27 class ActionController::Renderer # Initializes a new Renderer. # @@ -7290,73 +6939,66 @@ class ActionController::Renderer # `Rails.application.config.force_ssl` if `default_url_options` does not specify # a `protocol`. # - # @return [Renderer] a new instance of Renderer - # - # source://actionpack//lib/action_controller/renderer.rb#110 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:110 def initialize(controller, env, defaults); end - # Returns the value of attribute controller. - # - # source://actionpack//lib/action_controller/renderer.rb#28 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:28 def controller; end - # source://actionpack//lib/action_controller/renderer.rb#121 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:121 def defaults; end # Creates a new renderer using the same controller, but with a new Rack env. # # ApplicationController.renderer.new(method: "post") # - # source://actionpack//lib/action_controller/renderer.rb#72 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:72 def new(env = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/renderer.rb#150 - def normalize_env(env, &_arg1); end + # pkg:gem/actionpack#lib/action_controller/renderer.rb:150 + def normalize_env(env, &); end # Renders a template to a string, just like # ActionController::Rendering#render_to_string. # - # source://actionpack//lib/action_controller/renderer.rb#128 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:128 def render(*args); end - # Renders a template to a string, just like - # ActionController::Rendering#render_to_string. - # - # source://actionpack//lib/action_controller/renderer.rb#128 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:137 def render_to_string(*args); end # Creates a new renderer using the same controller, but with the given defaults # merged on top of the previous defaults. # - # source://actionpack//lib/action_controller/renderer.rb#78 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:78 def with_defaults(defaults); end private - # source://actionpack//lib/action_controller/renderer.rb#152 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:152 def env_for_request; end class << self # Creates a new renderer using the given controller class. See ::new. # - # source://actionpack//lib/action_controller/renderer.rb#64 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:64 def for(controller, env = T.unsafe(nil), defaults = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/renderer.rb#35 + # pkg:gem/actionpack#lib/action_controller/renderer.rb:35 def normalize_env(env); end end end -# source://actionpack//lib/action_controller/renderer.rb#30 +# pkg:gem/actionpack#lib/action_controller/renderer.rb:30 ActionController::Renderer::DEFAULTS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/renderer.rb#148 +# pkg:gem/actionpack#lib/action_controller/renderer.rb:148 ActionController::Renderer::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/renderer.rb#140 +# pkg:gem/actionpack#lib/action_controller/renderer.rb:140 ActionController::Renderer::RACK_KEY_TRANSLATION = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/metal/renderers.rb#23 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:23 module ActionController::Renderers extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7364,16 +7006,16 @@ module ActionController::Renderers mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::ActionController::Renderers::ClassMethods - # source://actionpack//lib/action_controller/metal/renderers.rb#143 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:143 def _render_to_body_with_renderer(options); end - # source://actionpack//lib/action_controller/metal/renderers.rb#170 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:74 def _render_with_renderer_js(js, options); end - # source://actionpack//lib/action_controller/metal/renderers.rb#154 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:74 def _render_with_renderer_json(json, options); end - # source://actionpack//lib/action_controller/metal/renderers.rb#175 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:74 def _render_with_renderer_xml(xml, options); end # Called by `render` in AbstractController::Rendering which sets the return @@ -7382,11 +7024,11 @@ module ActionController::Renderers # If no renderer is found, `super` returns control to # `ActionView::Rendering.render_to_body`, if present. # - # source://actionpack//lib/action_controller/metal/renderers.rb#139 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:139 def render_to_body(options); end class << self - # source://actionpack//lib/action_controller/metal/renderers.rb#89 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:89 def _render_with_renderer_method_name(key); end # Adds a new renderer to call within controller actions. A renderer is invoked @@ -7418,7 +7060,7 @@ module ActionController::Renderers # end # end # - # source://actionpack//lib/action_controller/metal/renderers.rb#73 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:73 def add(key, &block); end # This method is the opposite of add method. @@ -7427,7 +7069,7 @@ module ActionController::Renderers # # ActionController::Renderers.remove(:csv) # - # source://actionpack//lib/action_controller/metal/renderers.rb#83 + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:83 def remove(key); end end @@ -7447,7 +7089,7 @@ end # Used in ActionController::Base and ActionController::API to include all # renderers by default. # -# source://actionpack//lib/action_controller/metal/renderers.rb#36 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:36 module ActionController::Renderers::All extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7469,8 +7111,11 @@ module ActionController::Renderers::All end end -# source://actionpack//lib/action_controller/metal/renderers.rb#93 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:93 module ActionController::Renderers::ClassMethods + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:131 + def use_renderer(*args); end + # Adds, by name, a renderer or renderers to the `_renderers` available to call # within controller actions. # @@ -7505,54 +7150,17 @@ module ActionController::Renderers::ClassMethods # You must specify a `use_renderer`, else the `controller.renderer` and # `controller._renderers` will be `nil`, and the action will fail. # - # source://actionpack//lib/action_controller/metal/renderers.rb#127 - def use_renderer(*args); end - - # Adds, by name, a renderer or renderers to the `_renderers` available to call - # within controller actions. - # - # It is useful when rendering from an ActionController::Metal controller or - # otherwise to add an available renderer proc to a specific controller. - # - # Both ActionController::Base and ActionController::API include - # ActionController::Renderers::All, making all renderers available in the - # controller. See Renderers::RENDERERS and Renderers.add. - # - # Since ActionController::Metal controllers cannot render, the controller must - # include AbstractController::Rendering, ActionController::Rendering, and - # ActionController::Renderers, and have at least one renderer. - # - # Rather than including ActionController::Renderers::All and including all - # renderers, you may specify which renderers to include by passing the renderer - # name or names to `use_renderers`. For example, a controller that includes only - # the `:json` renderer (`_render_with_renderer_json`) might look like: - # - # class MetalRenderingController < ActionController::Metal - # include AbstractController::Rendering - # include ActionController::Rendering - # include ActionController::Renderers - # - # use_renderers :json - # - # def show - # render json: record - # end - # end - # - # You must specify a `use_renderer`, else the `controller.renderer` and - # `controller._renderers` will be `nil`, and the action will fail. - # - # source://actionpack//lib/action_controller/metal/renderers.rb#127 - def use_renderers(*args); end -end + # pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:127 + def use_renderers(*args); end +end # A Set containing renderer names that correspond to available renderer procs. # Default values are `:json`, `:js`, `:xml`. # -# source://actionpack//lib/action_controller/metal/renderers.rb#28 +# pkg:gem/actionpack#lib/action_controller/metal/renderers.rb:28 ActionController::Renderers::RENDERERS = T.let(T.unsafe(nil), Set) -# source://actionpack//lib/action_controller/metal/rendering.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:6 module ActionController::Rendering extend ::ActiveSupport::Concern @@ -7592,39 +7200,33 @@ module ActionController::Rendering # #### Rendering Mode # # `:partial` - # : See ActionView::PartialRenderer for details. # # render partial: "posts/form", locals: { post: Post.new } # # => renders app/views/posts/_form.html.erb # # `:file` - # : Renders the contents of a file. This option should **not** be used with # unsanitized user input. # # render file: "/path/to/some/file" # # => renders /path/to/some/file # # `:inline` - # : Renders an ERB template string. # # @name = "World" # render inline: "

Hello, <%= @name %>!

" # # => renders "

Hello, World!

" # # `:body` - # : Renders the provided text, and sets the content type as `text/plain`. # # render body: "Hello, World!" # # => renders "Hello, World!" # # `:plain` - # : Renders the provided text, and sets the content type as `text/plain`. # # render plain: "Hello, World!" # # => renders "Hello, World!" # # `:html` - # : Renders the provided HTML string, and sets the content type as # `text/html`. If the string is not `html_safe?`, performs HTML escaping on # the string before rendering. # @@ -7635,7 +7237,6 @@ module ActionController::Rendering # # => renders "<h1>Hello, World!</h1>" # # `:json` - # : Renders the provided object as JSON, and sets the content type as # `application/json`. If the object is not a string, it will be converted to # JSON by calling `to_json`. # @@ -7643,7 +7244,6 @@ module ActionController::Rendering # # => renders "{\"hello\":\"world\"}" # # `:renderable` - # : Renders the provided object by calling `render_in` with the current view # context. The response format is determined by calling `format` on the # renderable if it responds to `format`, falling back to `text/html` by # default. @@ -7658,19 +7258,16 @@ module ActionController::Rendering # #### Options # # `:assigns` - # : Hash of instance variable assignments for the template. # # render inline: "

Hello, <%= @name %>!

", assigns: { name: "World" } # # => renders "

Hello, World!

" # # `:locals` - # : Hash of local variable assignments for the template. # # render inline: "

Hello, <%= name %>!

", locals: { name: "World" } # # => renders "

Hello, World!

" # # `:layout` - # : The layout template to render. Can also be `false` or `true` to disable or # (re)enable the default layout template. # # render "posts/show", layout: "holiday" @@ -7683,7 +7280,6 @@ module ActionController::Rendering # # => renders "

Hello, World!

" with the default layout # # `:status` - # : The HTTP status code to send with the response. Can be specified as a # number or as the status name in Symbol form. Defaults to 200. # # render "posts/new", status: 422 @@ -7695,12 +7291,10 @@ module ActionController::Rendering # -- # Check for double render errors and set the content_type after rendering. # - # @raise [::AbstractController::DoubleRenderError] - # - # source://actionpack//lib/action_controller/metal/rendering.rb#165 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:165 def render(*args); end - # source://actionpack//lib/action_controller/metal/rendering.rb#185 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:185 def render_to_body(options = T.unsafe(nil)); end # Similar to #render, but only returns the rendered template as a string, @@ -7708,64 +7302,64 @@ module ActionController::Rendering # -- # Override render_to_string because body can now be set to a Rack body. # - # source://actionpack//lib/action_controller/metal/rendering.rb#174 - def render_to_string(*_arg0); end + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:174 + def render_to_string(*); end private # Normalize both text and status options. # - # source://actionpack//lib/action_controller/metal/rendering.rb#227 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:234 def _normalize_options(options); end - # source://actionpack//lib/action_controller/metal/rendering.rb#241 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:248 def _normalize_text(options); end # Process controller specific options, as status, content-type and location. # - # source://actionpack//lib/action_controller/metal/rendering.rb#250 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:257 def _process_options(options); end - # source://actionpack//lib/action_controller/metal/rendering.rb#196 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:196 def _process_variant(options); end - # source://actionpack//lib/action_controller/metal/rendering.rb#202 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:202 def _render_in_priorities(options); end - # source://actionpack//lib/action_controller/metal/rendering.rb#210 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:210 def _set_html_content_type; end - # source://actionpack//lib/action_controller/metal/rendering.rb#214 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:214 def _set_rendered_content_type(format); end - # source://actionpack//lib/action_controller/metal/rendering.rb#220 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:220 def _set_vary_header; end # Before processing, set the request formats in current controller formats. # - # source://actionpack//lib/action_controller/metal/rendering.rb#191 - def process_action(*_arg0); end + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:191 + def process_action(*); end end -# source://actionpack//lib/action_controller/metal/rendering.rb#11 +# pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:11 module ActionController::Rendering::ClassMethods - # source://actionpack//lib/action_controller/metal/rendering.rb#23 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:23 def inherited(klass); end - # source://actionpack//lib/action_controller/metal/rendering.rb#13 - def render(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:13 + def render(*, **, &); end # Returns a renderer instance (inherited from ActionController::Renderer) for # the controller. # - # source://actionpack//lib/action_controller/metal/rendering.rb#17 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:17 def renderer; end - # source://actionpack//lib/action_controller/metal/rendering.rb#19 + # pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:19 def setup_renderer!; end end -# source://actionpack//lib/action_controller/metal/rendering.rb#9 +# pkg:gem/actionpack#lib/action_controller/metal/rendering.rb:9 ActionController::Rendering::RENDER_FORMATS_IN_PRIORITY = T.let(T.unsafe(nil), Array) # # Action Controller Request Forgery Protection @@ -7816,7 +7410,7 @@ ActionController::Rendering::RENDER_FORMATS_IN_PRIORITY = T.let(T.unsafe(nil), A # Learn more about CSRF attacks and securing your application in the [Ruby on # Rails Security Guide](https://guides.rubyonrails.org/security.html). # -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#63 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:63 module ActionController::RequestForgeryProtection extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7831,136 +7425,122 @@ module ActionController::RequestForgeryProtection mixes_in_class_methods ::AbstractController::Callbacks::ClassMethods mixes_in_class_methods ::ActionController::RequestForgeryProtection::ClassMethods - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#366 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:366 + def initialize(*, **, &); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#376 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:376 def commit_csrf_token(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#371 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:371 def reset_csrf_token(request); end private # Checks if any of the authenticity tokens from the request are valid. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#469 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:469 def any_authenticity_token_valid?; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#550 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:550 def compare_with_global_token(token, session = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#546 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:546 def compare_with_real_token(token, session = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#587 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:587 def csrf_token_hmac(session, identifier); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#665 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:665 def decode_csrf_token(encoded_csrf_token); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#661 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:661 def encode_csrf_token(csrf_token); end # The form's authenticity parameter. Override to provide your own. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#607 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:607 def form_authenticity_param; end # Creates the authenticity token for the current request. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#481 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:481 def form_authenticity_token(form_options: T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#657 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:657 def generate_csrf_token; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#583 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:583 def global_csrf_token(session = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#401 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:401 def handle_unverified_request; end # GET requests are checked for cross-origin JavaScript after rendering. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#439 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:439 def mark_for_same_origin_verification!; end # If the `verify_authenticity_token` before_action ran, verify that JavaScript # responses are only served to same-origin GET requests. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#445 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:445 def marked_for_same_origin_verification?; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#539 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:539 def mask_token(raw_token); end # Creates a masked version of the authenticity token that varies on each # request. The masking is used to mitigate SSL attacks like BREACH. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#487 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:487 def masked_authenticity_token(form_options: T.unsafe(nil)); end # Check for cross-origin JavaScript responses. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#450 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:450 def non_xhr_javascript_response?; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#637 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:637 def normalize_action_path(action_path); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#647 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:647 def normalize_relative_action_path(rel_action_path); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#576 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:576 def per_form_csrf_token(session, action_path, method); end # Checks if the controller allows forgery protection. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#612 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:612 def protect_against_forgery?; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#568 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:568 def real_csrf_token(_session = T.unsafe(nil)); end # Possible authenticity tokens sent in the request. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#476 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:476 def request_authenticity_tokens; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#532 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:532 def unmask_token(masked_token); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#411 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:411 def unverified_request_warning_message; end # Checks the client's masked token to see if it matches the session token. # Essentially the inverse of `masked_authenticity_token`. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#502 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:502 def valid_authenticity_token?(session, encoded_masked_token); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#554 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:554 def valid_per_form_csrf_token?(token, session = T.unsafe(nil)); end # Checks if the request originated from the same origin by looking at the Origin # header. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#627 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:627 def valid_request_origin?; end # Returns true or false if a request is verified. Checks: @@ -7970,9 +7550,7 @@ module ActionController::RequestForgeryProtection # params? # * Does the `X-CSRF-Token` header match the form_authenticity_token? # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#463 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:463 def verified_request?; end # The actual before_action that is used to verify the CSRF token. Don't override @@ -7985,17 +7563,17 @@ module ActionController::RequestForgeryProtection # responses are for XHR requests, ensuring they follow the browser's same-origin # policy. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#391 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:391 def verify_authenticity_token; end # If `verify_authenticity_token` was run (indicating that we have # forgery protection enabled for this request) then also verify that we aren't # serving an unauthorized cross-origin response. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#429 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:429 def verify_same_origin_request; end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#595 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:595 def xor_byte_strings(s1, s2); end module GeneratedClassMethods @@ -8014,16 +7592,16 @@ module ActionController::RequestForgeryProtection end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#454 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:454 ActionController::RequestForgeryProtection::AUTHENTICITY_TOKEN_LENGTH = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#419 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:419 ActionController::RequestForgeryProtection::CROSS_ORIGIN_JAVASCRIPT_WARNING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#64 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:64 ActionController::RequestForgeryProtection::CSRF_TOKEN = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#106 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:106 module ActionController::RequestForgeryProtection::ClassMethods # Turn on request forgery protection. Bear in mind that GET and HEAD requests # are not checked. @@ -8118,7 +7696,7 @@ module ActionController::RequestForgeryProtection::ClassMethods # protect_from_forgery store: CustomStore.new # end # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#199 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:199 def protect_from_forgery(options = T.unsafe(nil)); end # Turn off request forgery protection. This is a wrapper for: @@ -8127,137 +7705,113 @@ module ActionController::RequestForgeryProtection::ClassMethods # # See `skip_before_action` for allowed options. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#216 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:216 def skip_forgery_protection(options = T.unsafe(nil)); end private - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#248 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:248 def is_storage_strategy?(object); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#221 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:221 def protection_method_class(name); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#236 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:236 def storage_strategy(name); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#333 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:333 class ActionController::RequestForgeryProtection::CookieStore - # @return [CookieStore] a new instance of CookieStore - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#334 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:334 def initialize(cookie = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#338 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:338 def fetch(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#361 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:361 def reset(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#350 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:350 def store(request, csrf_token); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#580 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:580 ActionController::RequestForgeryProtection::GLOBAL_CSRF_TOKEN_IDENTIFIER = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#616 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:616 ActionController::RequestForgeryProtection::NULL_ORIGIN_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#253 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:253 module ActionController::RequestForgeryProtection::ProtectionMethods; end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#306 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:306 class ActionController::RequestForgeryProtection::ProtectionMethods::Exception - # @return [Exception] a new instance of Exception - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#309 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:309 def initialize(controller); end - # @raise [ActionController::InvalidAuthenticityToken] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#313 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:313 def handle_unverified_request; end - # Returns the value of attribute warning_message. - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#307 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:307 def warning_message; end - # Sets the attribute warning_message - # - # @param value the value to set the attribute warning_message to. - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#307 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:307 def warning_message=(_arg0); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#254 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:254 class ActionController::RequestForgeryProtection::ProtectionMethods::NullSession - # @return [NullSession] a new instance of NullSession - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#255 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:255 def initialize(controller); end # This is the method that defines the application behavior when a request is # found to be unverified. # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#261 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:261 def handle_unverified_request; end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#289 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:289 class ActionController::RequestForgeryProtection::ProtectionMethods::NullSession::NullCookieJar < ::ActionDispatch::Cookies::CookieJar - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#290 - def write(*_arg0); end + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:290 + def write(*); end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#270 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:270 class ActionController::RequestForgeryProtection::ProtectionMethods::NullSession::NullSessionHash < ::Rack::Session::Abstract::SessionHash - # @return [NullSessionHash] a new instance of NullSessionHash - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#271 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:271 def initialize(req); end # no-op # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#278 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:278 def destroy; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#284 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:284 def enabled?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#280 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:280 def exists?; end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#296 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:296 class ActionController::RequestForgeryProtection::ProtectionMethods::ResetSession - # @return [ResetSession] a new instance of ResetSession - # - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#297 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:297 def initialize(controller); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#301 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:301 def handle_unverified_request; end end -# source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#319 +# pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:319 class ActionController::RequestForgeryProtection::SessionStore - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#320 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:320 def fetch(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#328 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:328 def reset(request); end - # source://actionpack//lib/action_controller/metal/request_forgery_protection.rb#324 + # pkg:gem/actionpack#lib/action_controller/metal/request_forgery_protection.rb:324 def store(request, csrf_token); end end @@ -8268,7 +7822,7 @@ end # controllers, wrapping actions to handle configured errors, and configuring # when detailed exceptions must be shown. # -# source://actionpack//lib/action_controller/metal/rescue.rb#12 +# pkg:gem/actionpack#lib/action_controller/metal/rescue.rb:12 module ActionController::Rescue extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -8283,15 +7837,13 @@ module ActionController::Rescue # `request.local?` so local requests in production still show the detailed # exception pages. # - # @return [Boolean] - # - # source://actionpack//lib/action_controller/metal/rescue.rb#21 + # pkg:gem/actionpack#lib/action_controller/metal/rescue.rb:21 def show_detailed_exceptions?; end private - # source://actionpack//lib/action_controller/metal/rescue.rb#26 - def process_action(*_arg0); end + # pkg:gem/actionpack#lib/action_controller/metal/rescue.rb:26 + def process_action(*); end module GeneratedClassMethods def rescue_handlers; end @@ -8317,39 +7869,31 @@ end # end # end # -# source://actionpack//lib/action_controller/metal/exceptions.rb#88 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:88 class ActionController::RespondToMismatchError < ::ActionController::ActionControllerError - # @return [RespondToMismatchError] a new instance of RespondToMismatchError - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#91 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:91 def initialize(message = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#89 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:89 ActionController::RespondToMismatchError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_controller/metal/exceptions.rb#19 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:19 class ActionController::RoutingError < ::ActionController::ActionControllerError - # @return [RoutingError] a new instance of RoutingError - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#21 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:21 def initialize(message, failures = T.unsafe(nil)); end - # Returns the value of attribute failures. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#20 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:20 def failures; end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#64 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:64 class ActionController::SessionOverflowError < ::ActionController::ActionControllerError - # @return [SessionOverflowError] a new instance of SessionOverflowError - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#67 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:67 def initialize(message = T.unsafe(nil)); end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#65 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:65 ActionController::SessionOverflowError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) # # Action Controller Streaming @@ -8516,13 +8060,13 @@ ActionController::SessionOverflowError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), S # # Rack 3+ compatible servers all support streaming. # -# source://actionpack//lib/action_controller/metal/streaming.rb#169 +# pkg:gem/actionpack#lib/action_controller/metal/streaming.rb:169 module ActionController::Streaming private # Call render_body if we are streaming instead of usual `render`. # - # source://actionpack//lib/action_controller/metal/streaming.rb#172 + # pkg:gem/actionpack#lib/action_controller/metal/streaming.rb:172 def _render_template(options); end end @@ -8595,27 +8139,25 @@ end # See ActionController::Parameters.require, and # ActionController::Parameters.permit for more information. # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#1508 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1516 module ActionController::StrongParameters # Returns a new ActionController::Parameters object that has been instantiated # with the `request.parameters`. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1511 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1519 def params; end # Assigns the given `value` to the `params` hash. If `value` is a Hash, this # will create an ActionController::Parameters object that has been instantiated # with the given `value` hash. # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#1526 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:1534 def params=(value); end end -# source://actionpack//lib/action_controller/template_assertions.rb#6 +# pkg:gem/actionpack#lib/action_controller/template_assertions.rb:6 module ActionController::TemplateAssertions - # @raise [NoMethodError] - # - # source://actionpack//lib/action_controller/template_assertions.rb#7 + # pkg:gem/actionpack#lib/action_controller/template_assertions.rb:7 def assert_template(options = T.unsafe(nil), message = T.unsafe(nil)); end end @@ -8673,14 +8215,14 @@ end # ActionController::TestCase will also automatically provide the following # instance variables for use in the tests: # -# : The controller instance that will be tested. +# @controller # -# : An ActionController::TestRequest, representing the current HTTP request. +# @request # You can modify this object before sending the HTTP request. For example, # you might want to set some session properties before sending a GET # request. # -# : An ActionDispatch::TestResponse object, representing the response of the +# @response # last HTTP response. In the above example, `@response` becomes valid after # calling `post`. If the various assert methods are not sufficient, then you # may use this object to inspect the HTTP response in detail. @@ -8738,7 +8280,7 @@ end # # assert_redirected_to page_url(title: 'foo') # -# source://actionpack//lib/action_controller/test_case.rb#368 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:368 class ActionController::TestCase < ::ActiveSupport::TestCase include ::ActiveSupport::Testing::ConstantLookup include ::ActionDispatch::TestProcess::FixtureFile @@ -8755,48 +8297,48 @@ class ActionController::TestCase < ::ActiveSupport::TestCase extend ::ActionController::TestCase::Behavior::ClassMethods extend ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class=(_arg0); end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class?; end class << self - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class=(value); end - # source://actionpack//lib/action_controller/test_case.rb#599 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def _controller_class?; end - # source://actionpack//lib/action_controller/test_case.rb#369 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:369 def executor_around_each_request; end - # source://actionpack//lib/action_controller/test_case.rb#369 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:369 def executor_around_each_request=(_arg0); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:600 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:600 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def __class_attr__controller_class; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:599 def __class_attr__controller_class=(new_value); end end end -# source://actionpack//lib/action_controller/test_case.rb#371 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:371 module ActionController::TestCase::Behavior include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::TestProcess @@ -8815,19 +8357,19 @@ module ActionController::TestCase::Behavior mixes_in_class_methods ::ActionController::TestCase::Behavior::ClassMethods mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#592 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:592 def build_response(klass); end - # source://actionpack//lib/action_controller/test_case.rb#552 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:552 def controller_class_name; end # Simulate a DELETE request with the given parameters and set/volley the # response. See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#463 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:463 def delete(action, **args); end - # source://actionpack//lib/action_controller/test_case.rb#556 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:556 def generated_path(generated_extras); end # Simulate a GET request with the given parameters. @@ -8854,25 +8396,25 @@ module ActionController::TestCase::Behavior # Note that the request method is not verified. The different methods are # available to make the tests more expressive. # - # source://actionpack//lib/action_controller/test_case.rb#439 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:439 def get(action, **args); end # Simulate a HEAD request with the given parameters and set/volley the response. # See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#469 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:469 def head(action, **args); end # Simulate a PATCH request with the given parameters and set/volley the # response. See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#451 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:451 def patch(action, **args); end # Simulate a POST request with the given parameters and set/volley the response. # See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#445 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:445 def post(action, **args); end # Simulate an HTTP request to `action` by specifying request method, parameters @@ -8915,49 +8457,45 @@ module ActionController::TestCase::Behavior # # Note that the request method is not verified. # - # source://actionpack//lib/action_controller/test_case.rb#512 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:512 def process(action, method: T.unsafe(nil), params: T.unsafe(nil), session: T.unsafe(nil), body: T.unsafe(nil), flash: T.unsafe(nil), format: T.unsafe(nil), xhr: T.unsafe(nil), as: T.unsafe(nil)); end # Simulate a PUT request with the given parameters and set/volley the response. # See `get` for more details. # - # source://actionpack//lib/action_controller/test_case.rb#457 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:457 def put(action, **args); end - # source://actionpack//lib/action_controller/test_case.rb#560 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:560 def query_parameter_names(generated_extras); end - # Returns the value of attribute request. - # - # source://actionpack//lib/action_controller/test_case.rb#377 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:377 def request; end - # Returns the value of attribute response. - # - # source://actionpack//lib/action_controller/test_case.rb#377 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:377 def response; end - # source://actionpack//lib/action_controller/test_case.rb#564 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:564 def setup_controller_request_and_response; end private - # source://actionpack//lib/action_controller/test_case.rb#685 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:685 def check_required_ivars; end - # source://actionpack//lib/action_controller/test_case.rb#681 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:681 def document_root_element; end - # source://actionpack//lib/action_controller/test_case.rb#635 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:635 def process_controller_response(action, cookies, xhr); end - # source://actionpack//lib/action_controller/test_case.rb#671 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:671 def scrub_env!(env); end - # source://actionpack//lib/action_controller/test_case.rb#605 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:605 def setup_request(controller_class_name, action, parameters, session, flash, xhr); end - # source://actionpack//lib/action_controller/test_case.rb#627 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:627 def wrap_execution(&block); end module GeneratedClassMethods @@ -8973,15 +8511,15 @@ module ActionController::TestCase::Behavior end end -# source://actionpack//lib/action_controller/test_case.rb#379 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:379 module ActionController::TestCase::Behavior::ClassMethods - # source://actionpack//lib/action_controller/test_case.rb#401 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:401 def controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#397 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:397 def controller_class=(new_class); end - # source://actionpack//lib/action_controller/test_case.rb#409 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:409 def determine_default_controller_class(name); end # Sets the controller class name. Useful if the name can't be inferred from test @@ -8991,118 +8529,109 @@ module ActionController::TestCase::Behavior::ClassMethods # tests :widget # tests 'widget' # - # source://actionpack//lib/action_controller/test_case.rb#386 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:386 def tests(controller_class); end end # ActionController::TestCase will be deprecated and moved to a gem in the # future. Please use ActionDispatch::IntegrationTest going forward. # -# source://actionpack//lib/action_controller/test_case.rb#46 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:46 class ActionController::TestRequest < ::ActionDispatch::TestRequest - # @return [TestRequest] a new instance of TestRequest - # - # source://actionpack//lib/action_controller/test_case.rb#69 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:69 def initialize(env, session, controller_class); end - # source://actionpack//lib/action_controller/test_case.rb#88 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:88 def assign_parameters(routes, controller_path, action, parameters, generated_path, query_string_keys); end - # source://actionpack//lib/action_controller/test_case.rb#84 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:84 def content_type=(type); end - # Returns the value of attribute controller_class. - # - # source://actionpack//lib/action_controller/test_case.rb#54 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:54 def controller_class; end - # source://actionpack//lib/action_controller/test_case.rb#80 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:80 def query_string=(string); end private - # source://actionpack//lib/action_controller/test_case.rb#179 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:179 def params_parsers; end class << self # Create a new test request with default `env` values. # - # source://actionpack//lib/action_controller/test_case.rb#57 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:57 def create(controller_class); end - # source://actionpack//lib/action_controller/test_case.rb#50 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:50 def new_session; end private - # source://actionpack//lib/action_controller/test_case.rb#64 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:64 def default_env; end end end -# source://actionpack//lib/action_controller/test_case.rb#47 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:47 ActionController::TestRequest::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/test_case.rb#151 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:151 ActionController::TestRequest::ENCODER = T.let(T.unsafe(nil), T.untyped) # Methods #destroy and #load! are overridden to avoid calling methods on the +# @store object, which does not exist for the TestSession class. # -# source://actionpack//lib/action_controller/test_case.rb#197 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:197 class ActionController::TestSession < ::Rack::Session::Abstract::PersistedSecure::SecureSessionHash - # @return [TestSession] a new instance of TestSession - # - # source://actionpack//lib/action_controller/test_case.rb#200 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:200 def initialize(session = T.unsafe(nil), id = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/test_case.rb#220 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:220 def destroy; end - # source://actionpack//lib/action_controller/test_case.rb#224 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:224 def dig(*keys); end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/test_case.rb#233 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:233 def enabled?; end - # @return [Boolean] - # - # source://actionpack//lib/action_controller/test_case.rb#208 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:208 def exists?; end - # source://actionpack//lib/action_controller/test_case.rb#229 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:229 def fetch(key, *args, &block); end - # source://actionpack//lib/action_controller/test_case.rb#237 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:237 def id_was; end - # source://actionpack//lib/action_controller/test_case.rb#212 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:212 def keys; end - # source://actionpack//lib/action_controller/test_case.rb#216 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:216 def values; end private - # source://actionpack//lib/action_controller/test_case.rb#242 + # pkg:gem/actionpack#lib/action_controller/test_case.rb:242 def load!; end end -# source://actionpack//lib/action_controller/test_case.rb#198 +# pkg:gem/actionpack#lib/action_controller/test_case.rb:198 ActionController::TestSession::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_controller/metal/testing.rb#6 +# pkg:gem/actionpack#lib/action_controller/metal/testing.rb:6 module ActionController::Testing; end # Behavior specific to functional tests # -# source://actionpack//lib/action_controller/metal/testing.rb#8 +# pkg:gem/actionpack#lib/action_controller/metal/testing.rb:8 module ActionController::Testing::Functional - # source://actionpack//lib/action_controller/metal/testing.rb#9 + # pkg:gem/actionpack#lib/action_controller/metal/testing.rb:9 def clear_instance_variables_between_requests; end - # source://actionpack//lib/action_controller/metal/testing.rb#18 + # pkg:gem/actionpack#lib/action_controller/metal/testing.rb:18 def recycle!; end end @@ -9113,18 +8642,16 @@ end # params.to_h # # => ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#74 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:74 class ActionController::UnfilteredParameters < ::ArgumentError - # @return [UnfilteredParameters] a new instance of UnfilteredParameters - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#75 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:75 def initialize; end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#75 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:75 class ActionController::UnknownFormat < ::ActionController::ActionControllerError; end -# source://actionpack//lib/action_controller/metal/exceptions.rb#72 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:72 class ActionController::UnknownHttpMethod < ::ActionController::ActionControllerError; end # Raised when a supplied parameter is not expected and @@ -9135,14 +8662,12 @@ class ActionController::UnknownHttpMethod < ::ActionController::ActionController # params.permit(:c) # # => ActionController::UnpermittedParameters: found unpermitted parameters: :a, :b # -# source://actionpack//lib/action_controller/metal/strong_parameters.rb#59 +# pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:59 class ActionController::UnpermittedParameters < ::IndexError - # @return [UnpermittedParameters] a new instance of UnpermittedParameters - # - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#62 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:62 def initialize(params); end - # source://actionpack//lib/action_controller/metal/strong_parameters.rb#60 + # pkg:gem/actionpack#lib/action_controller/metal/strong_parameters.rb:60 def params; end end @@ -9168,7 +8693,7 @@ end # end # end # -# source://actionpack//lib/action_controller/metal/url_for.rb#27 +# pkg:gem/actionpack#lib/action_controller/metal/url_for.rb:27 module ActionController::UrlFor extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -9178,10 +8703,10 @@ module ActionController::UrlFor mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::AbstractController::UrlFor::ClassMethods - # source://actionpack//lib/action_controller/metal/url_for.rb#32 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_controller/metal/url_for.rb:32 + def initialize(*, **, &); end - # source://actionpack//lib/action_controller/metal/url_for.rb#37 + # pkg:gem/actionpack#lib/action_controller/metal/url_for.rb:37 def url_options; end module GeneratedClassMethods @@ -9197,31 +8722,23 @@ module ActionController::UrlFor end end -# source://actionpack//lib/action_controller/metal/exceptions.rb#27 +# pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:27 class ActionController::UrlGenerationError < ::ActionController::ActionControllerError include ::DidYouMean::Correctable - # @return [UrlGenerationError] a new instance of UrlGenerationError - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#30 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:30 def initialize(message, routes = T.unsafe(nil), route_name = T.unsafe(nil), method_name = T.unsafe(nil)); end - # source://actionpack//lib/action_controller/metal/exceptions.rb#41 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:41 def corrections; end - # Returns the value of attribute method_name. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:28 def method_name; end - # Returns the value of attribute route_name. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:28 def route_name; end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_controller/metal/exceptions.rb#28 + # pkg:gem/actionpack#lib/action_controller/metal/exceptions.rb:28 def routes; end end @@ -9233,63 +8750,60 @@ end # defined by the user, and does advanced processing related to HTTP such as # MIME-type negotiation, decoding parameters in POST, PATCH, or PUT bodies, # handling HTTP caching logic, cookies and sessions. +# :markup: markdown # -# source://actionpack//lib/action_dispatch/deprecator.rb#5 +# pkg:gem/actionpack#lib/action_dispatch/deprecator.rb:5 module ActionDispatch extend ::ActiveSupport::Autoload - # source://actionpack//lib/action_dispatch.rb#141 + # pkg:gem/actionpack#lib/action_dispatch.rb:141 def eager_load!; end - # source://actionpack//lib/action_dispatch.rb#127 + # pkg:gem/actionpack#lib/action_dispatch.rb:127 def test_app; end - # source://actionpack//lib/action_dispatch.rb#127 + # pkg:gem/actionpack#lib/action_dispatch.rb:127 def test_app=(val); end class << self - # source://actionpack//lib/action_dispatch/deprecator.rb#6 + # pkg:gem/actionpack#lib/action_dispatch/deprecator.rb:6 def deprecator; end - # source://actionpack//lib/action_dispatch.rb#127 + # pkg:gem/actionpack#lib/action_dispatch.rb:127 def test_app; end - # source://actionpack//lib/action_dispatch.rb#127 + # pkg:gem/actionpack#lib/action_dispatch.rb:127 def test_app=(val); end end end -# source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:9 class ActionDispatch::ActionableExceptions - # @return [ActionableExceptions] a new instance of ActionableExceptions - # - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:12 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:16 def call(env); end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:10 def endpoint; end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:10 def endpoint=(val); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:26 def actionable_request?(request); end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:30 def redirect_to(location); end class << self - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:10 def endpoint; end - # source://actionpack//lib/action_dispatch/middleware/actionable_exceptions.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/middleware/actionable_exceptions.rb:10 def endpoint=(val); end end end @@ -9298,44 +8812,37 @@ end # not inherit from Response because it doesn't need it. That means it does not # have headers or a body. # -# source://actionpack//lib/action_dispatch/testing/assertion_response.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:9 class ActionDispatch::AssertionResponse # Accepts a specific response status code as an Integer (404) or String ('404') # or a response status range as a Symbol pseudo-code (:success, indicating any # 200-299 status code). # - # @raise [ArgumentError] - # @return [AssertionResponse] a new instance of AssertionResponse - # - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:22 def initialize(code_or_name); end - # Returns the value of attribute code. - # - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:10 def code; end - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:35 def code_and_name; end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:10 def name; end private - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:40 def code_from_name(name); end - # source://actionpack//lib/action_dispatch/testing/assertion_response.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:44 def name_from_code(code); end end -# source://actionpack//lib/action_dispatch/testing/assertion_response.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertion_response.rb:12 ActionDispatch::AssertionResponse::GENERIC_RESPONSE_CODES = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/testing/assertions/response.rb#6 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:6 module ActionDispatch::Assertions include ::ActionDispatch::Assertions::ResponseAssertions include ::Rails::Dom::Testing::Assertions::DomAssertions @@ -9346,13 +8853,13 @@ module ActionDispatch::Assertions mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_dispatch/testing/assertions.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions.rb:17 def html_document; end end # A small suite of assertions that test responses from Rails applications. # -# source://actionpack//lib/action_dispatch/testing/assertions/response.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:8 module ActionDispatch::Assertions::ResponseAssertions # Asserts that the response is a redirect to a URL matching the given options. # @@ -9372,7 +8879,7 @@ module ActionDispatch::Assertions::ResponseAssertions # # Permanently). # assert_redirected_to "/some/path", status: :moved_permanently # - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:60 def assert_redirected_to(url_options = T.unsafe(nil), options = T.unsafe(nil), message = T.unsafe(nil)); end # Asserts that the response is one of the following types: @@ -9393,42 +8900,42 @@ module ActionDispatch::Assertions::ResponseAssertions # # Asserts that the response code was status code 401 (unauthorized) # assert_response 401 # - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:33 def assert_response(type, message = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#115 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:115 def code_with_name(code_or_name); end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:104 def exception_if_present; end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:89 def generate_response_message(expected, actual = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#109 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:109 def location_if_redirected; end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:80 def normalize_argument_to_redirection(fragment); end # Proxy to to_param if the object will respond to it. # - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:76 def parameterize(value); end - # source://actionpack//lib/action_dispatch/testing/assertions/response.rb#99 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:99 def response_body_if_short; end end -# source://actionpack//lib/action_dispatch/testing/assertions/response.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/response.rb:9 ActionDispatch::Assertions::ResponseAssertions::RESPONSE_PREDICATES = T.let(T.unsafe(nil), Hash) # Suite of assertions to test routes generated by Rails and the handling of # requests made to them. # -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:15 module ActionDispatch::Assertions::RoutingAssertions extend ::ActiveSupport::Concern @@ -9454,7 +8961,7 @@ module ActionDispatch::Assertions::RoutingAssertions # # Asserts that the generated route gives us our custom route # assert_generates "changesets/12", { controller: 'scm', action: 'show_diff', revision: "12" } # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#208 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:208 def assert_generates(expected_path, options, defaults = T.unsafe(nil), extras = T.unsafe(nil), message = T.unsafe(nil)); end # Asserts that the routing of the given `path` was handled correctly and that @@ -9494,7 +9001,7 @@ module ActionDispatch::Assertions::RoutingAssertions # # Test a custom route # assert_recognizes({controller: 'items', action: 'show', id: '1'}, 'view/item1') # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#168 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:168 def assert_recognizes(expected_options, path, extras = T.unsafe(nil), msg = T.unsafe(nil)); end # Asserts that path and options match both ways; in other words, it verifies @@ -9520,15 +9027,15 @@ module ActionDispatch::Assertions::RoutingAssertions # # Tests a route with an HTTP method # assert_routing({ method: 'put', path: '/product/321' }, { controller: "product", action: "update", id: "321" }) # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#252 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:252 def assert_routing(path, options, defaults = T.unsafe(nil), extras = T.unsafe(nil), message = T.unsafe(nil)); end # ROUTES TODO: These assertions should really work in an integration context # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#265 - def method_missing(selector, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:265 + def method_missing(selector, *, **, &); end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:107 def setup; end # A helper to make it easier to test different route configurations. This method @@ -9544,29 +9051,27 @@ module ActionDispatch::Assertions::RoutingAssertions # assert_equal "/users", users_path # end # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:125 def with_routing(config = T.unsafe(nil), &block); end private - # @yield [@routes] - # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#274 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:274 def create_routes(config = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:340 def fail_on(exception_class, message); end # Recognizes the route for a given path. # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#306 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:306 def recognized_request_for(path, extras = T.unsafe(nil), msg); end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#298 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:298 def reset_routes(old_routes, old_controller); end end -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#80 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:80 module ActionDispatch::Assertions::RoutingAssertions::ClassMethods # A helper to make it easier to test different route configurations. This method # temporarily replaces @routes with a new RouteSet instance before each test. @@ -9580,33 +9085,31 @@ module ActionDispatch::Assertions::RoutingAssertions::ClassMethods # end # end # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:93 def with_routing(&block); end end -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#18 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:18 module ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting extend ::ActiveSupport::Concern mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:40 def with_routing(&block); end private - # @yield [routes] - # - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:50 def create_routes; end - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:72 def reset_routes(old_routes, old_routes_call_method, old_integration_session); end end -# source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:21 module ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods - # source://actionpack//lib/action_dispatch/testing/assertions/routing.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/testing/assertions/routing.rb:22 def with_routing(&block); end end @@ -9618,14 +9121,12 @@ end # middleware makes the server assume that the proxy already terminated SSL, and # that the request really is HTTPS. # -# source://actionpack//lib/action_dispatch/middleware/assume_ssl.rb#13 +# pkg:gem/actionpack#lib/action_dispatch/middleware/assume_ssl.rb:13 class ActionDispatch::AssumeSSL - # @return [AssumeSSL] a new instance of AssumeSSL - # - # source://actionpack//lib/action_dispatch/middleware/assume_ssl.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/middleware/assume_ssl.rb:14 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/assume_ssl.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/middleware/assume_ssl.rb:18 def call(env); end end @@ -9633,92 +9134,90 @@ end # # Provides callbacks to be executed before and after dispatching the request. # -# source://actionpack//lib/action_dispatch/middleware/callbacks.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:9 class ActionDispatch::Callbacks include ::ActiveSupport::Callbacks extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker - # @return [Callbacks] a new instance of Callbacks - # - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:24 def initialize(app); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _call_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _run_call_callbacks(&block); end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:28 def call(env); end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _call_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:12 def _call_callbacks=(value); end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:19 def after(*args, &block); end - # source://actionpack//lib/action_dispatch/middleware/callbacks.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:15 def before(*args, &block); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/middleware/callbacks.rb:10 def __class_attr___callbacks=(new_value); end end end -# source://actionpack//lib/action_dispatch/constants.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:8 module ActionDispatch::Constants; end -# source://actionpack//lib/action_dispatch/constants.rb#23 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:23 ActionDispatch::Constants::CONTENT_ENCODING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:24 ActionDispatch::Constants::CONTENT_SECURITY_POLICY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#25 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:25 ActionDispatch::Constants::CONTENT_SECURITY_POLICY_REPORT_ONLY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#27 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:27 ActionDispatch::Constants::FEATURE_POLICY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#26 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:26 ActionDispatch::Constants::LOCATION = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#30 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:30 ActionDispatch::Constants::SERVER_TIMING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#31 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:31 ActionDispatch::Constants::STRICT_TRANSPORT_SECURITY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#37 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:37 ActionDispatch::Constants::UNPROCESSABLE_CONTENT = T.let(T.unsafe(nil), Symbol) -# source://actionpack//lib/action_dispatch/constants.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:22 ActionDispatch::Constants::VARY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:29 ActionDispatch::Constants::X_CASCADE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/constants.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/constants.rb:28 ActionDispatch::Constants::X_REQUEST_ID = T.let(T.unsafe(nil), String) # # Action Dispatch Content Security Policy @@ -9741,16 +9240,12 @@ ActionDispatch::Constants::X_REQUEST_ID = T.let(T.unsafe(nil), String) # policy.report_uri "/csp-violation-report-endpoint" # end # -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:28 class ActionDispatch::ContentSecurityPolicy - # @return [ContentSecurityPolicy] a new instance of ContentSecurityPolicy - # @yield [_self] - # @yieldparam _self [ActionDispatch::ContentSecurityPolicy] the object that the method was called on - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:182 def initialize; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def base_uri(*sources); end # Specify whether to prevent the user agent from loading any assets over HTTP @@ -9762,48 +9257,46 @@ class ActionDispatch::ContentSecurityPolicy # # policy.block_all_mixed_content false # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#210 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:210 def block_all_mixed_content(enabled = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#299 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:299 def build(context = T.unsafe(nil), nonce = T.unsafe(nil), nonce_directives = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def child_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def connect_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def default_src(*sources); end - # Returns the value of attribute directives. - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:180 def directives; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def font_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def form_action(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def frame_ancestors(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def frame_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def img_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def manifest_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def media_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def object_src(*sources); end # Restricts the set of plugins that can be embedded: @@ -9814,10 +9307,10 @@ class ActionDispatch::ContentSecurityPolicy # # policy.plugin_types # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#226 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:226 def plugin_types(*types); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def prefetch_src(*sources); end # Enable the [report-uri](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri) @@ -9826,7 +9319,7 @@ class ActionDispatch::ContentSecurityPolicy # # policy.report_uri "/csp-violation-report-endpoint" # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#240 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:240 def report_uri(uri); end # Specify asset types for which [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) is required: @@ -9837,10 +9330,10 @@ class ActionDispatch::ContentSecurityPolicy # # policy.require_sri_for # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#252 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:252 def require_sri_for(*types); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def require_trusted_types_for(*sources); end # Specify whether a [sandbox](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox) @@ -9856,28 +9349,28 @@ class ActionDispatch::ContentSecurityPolicy # # policy.sandbox false # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#273 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:273 def sandbox(*values); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def script_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def script_src_attr(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def script_src_elem(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def style_src(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def style_src_attr(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def style_src_elem(*sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def trusted_types(*sources); end # Specify whether user agents should treat any assets over HTTP as HTTPS: @@ -9888,130 +9381,122 @@ class ActionDispatch::ContentSecurityPolicy # # policy.upgrade_insecure_requests false # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#291 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:291 def upgrade_insecure_requests(enabled = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#192 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:192 def worker_src(*sources); end private - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#324 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:324 def apply_mapping(source); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#305 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:305 def apply_mappings(sources); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#358 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:358 def build_directive(directive, sources, context); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#330 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:330 def build_directives(context, nonce, nonce_directives); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#386 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:386 def hash_source?(source); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#187 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:187 def initialize_copy(other); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#382 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:382 def nonce_directive?(directive, nonce_directives); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#364 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:364 def resolve_source(source, context); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#346 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:346 def validate(directive, sources); end end -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#176 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:176 ActionDispatch::ContentSecurityPolicy::DEFAULT_NONCE_DIRECTIVES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#149 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:149 ActionDispatch::ContentSecurityPolicy::DIRECTIVES = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#174 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:174 ActionDispatch::ContentSecurityPolicy::HASH_SOURCE_ALGORITHM_PREFIXES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:29 class ActionDispatch::ContentSecurityPolicy::InvalidDirectiveError < ::StandardError; end -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#128 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:128 ActionDispatch::ContentSecurityPolicy::MAPPINGS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#32 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:32 class ActionDispatch::ContentSecurityPolicy::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:33 def initialize(app); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:37 def call(env); end private - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#59 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:59 def header_name(request); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:67 def policy_present?(headers); end end -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#73 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:73 module ActionDispatch::ContentSecurityPolicy::Request - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:80 def content_security_policy; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:84 def content_security_policy=(policy); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:112 def content_security_policy_nonce; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:104 def content_security_policy_nonce_directives; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:108 def content_security_policy_nonce_directives=(generator); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#96 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:96 def content_security_policy_nonce_generator; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:100 def content_security_policy_nonce_generator=(generator); end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:88 def content_security_policy_report_only; end - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#92 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:92 def content_security_policy_report_only=(value); end private - # source://actionpack//lib/action_dispatch/http/content_security_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:123 def generate_content_security_policy_nonce; end end -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#77 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:77 ActionDispatch::ContentSecurityPolicy::Request::NONCE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#78 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:78 ActionDispatch::ContentSecurityPolicy::Request::NONCE_DIRECTIVES = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#76 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:76 ActionDispatch::ContentSecurityPolicy::Request::NONCE_GENERATOR = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#74 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:74 ActionDispatch::ContentSecurityPolicy::Request::POLICY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/content_security_policy.rb#75 +# pkg:gem/actionpack#lib/action_dispatch/http/content_security_policy.rb:75 ActionDispatch::ContentSecurityPolicy::Request::POLICY_REPORT_ONLY = T.let(T.unsafe(nil), String) # Read and write data to cookies through ActionController::Cookies#cookies. @@ -10112,70 +9597,69 @@ ActionDispatch::ContentSecurityPolicy::Request::POLICY_REPORT_ONLY = T.let(T.uns # Possible values are `nil`, `:none`, `:lax`, and `:strict`. Defaults to # `:lax`. # -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#195 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:195 class ActionDispatch::Cookies - # @return [Cookies] a new instance of Cookies - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#700 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:715 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#704 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:719 def call(env); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#201 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:201 ActionDispatch::Cookies::AUTHENTICATED_ENCRYPTED_COOKIE_SALT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#506 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:514 class ActionDispatch::Cookies::AbstractCookieJar include ::ActionDispatch::Cookies::ChainedCookieJars - # @return [AbstractCookieJar] a new instance of AbstractCookieJar - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#509 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:517 def initialize(parent_jar); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#513 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:521 def [](name); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#525 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:533 def []=(name, options); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:544 + def upgraded(name); end + protected - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#537 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:549 def request; end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#555 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:567 def commit(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#548 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:560 def cookie_metadata(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#540 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:552 def expiry_options(options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#554 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:566 def parse(name, data, purpose: T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#207 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:207 ActionDispatch::Cookies::COOKIES_DIGEST = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#208 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:208 ActionDispatch::Cookies::COOKIES_ROTATIONS = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#209 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:209 ActionDispatch::Cookies::COOKIES_SAME_SITE_PROTECTION = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#206 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:206 ActionDispatch::Cookies::COOKIES_SERIALIZER = T.let(T.unsafe(nil), String) # Include in a cookie jar to allow chaining, e.g. `cookies.permanent.signed`. # -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#219 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:219 module ActionDispatch::Cookies::ChainedCookieJars # Returns a jar that'll automatically encrypt cookie values before sending them # to the client and will decrypt them for read. If the cookie was tampered with @@ -10195,7 +9679,7 @@ module ActionDispatch::Cookies::ChainedCookieJars # # cookies.encrypted[:discount] # => 45 # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#274 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:274 def encrypted; end # Returns a jar that'll automatically set the assigned cookies to have an @@ -10213,7 +9697,7 @@ module ActionDispatch::Cookies::ChainedCookieJars # cookies.permanent.signed[:remember_me] = current_user.id # # => Set-Cookie: remember_me=BAhU--848956038e692d7046deab32b7131856ab20e14e; path=/; expires=Sun, 16-Dec-2029 03:24:16 GMT # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#234 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:234 def permanent; end # Returns a jar that'll automatically generate a signed representation of cookie @@ -10232,73 +9716,65 @@ module ActionDispatch::Cookies::ChainedCookieJars # # cookies.signed[:discount] # => 45 # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#253 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:253 def signed; end # Returns the `signed` or `encrypted` jar, preferring `encrypted` if # `secret_key_base` is set. Used by ActionDispatch::Session::CookieStore to # avoid the need to introduce new cookie stores. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#281 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:281 def signed_or_encrypted; end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#304 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:304 def encrypted_cookie_cipher; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#298 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:298 def prepare_upgrade_legacy_hmac_aes_cbc_cookies?; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#308 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:308 def signed_cookie_digest; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#291 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:291 def upgrade_legacy_hmac_aes_cbc_cookies?; end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#313 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:313 class ActionDispatch::Cookies::CookieJar include ::ActionDispatch::Cookies::ChainedCookieJars include ::Enumerable - # @return [CookieJar] a new instance of CookieJar - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#324 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:324 def initialize(request); end # Returns the value of the cookie by `name`, or `nil` if no such cookie exists. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#345 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:346 def [](name); end # Sets the cookie named `name`. The second argument may be the cookie's value or # a hash of options as documented above. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#379 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:380 def []=(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#441 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:449 def always_write_cookie; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#441 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:449 def always_write_cookie=(val); end # Removes all cookies on the client machine by calling `delete` for each cookie. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#425 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:427 def clear(options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#334 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:335 def commit!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#332 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:333 def committed?; end # Removes the cookie on the client machine by setting the value to an empty @@ -10307,191 +9783,180 @@ class ActionDispatch::Cookies::CookieJar # # Returns the value of the cookie, or `nil` if the cookie does not exist. # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#404 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:406 def delete(name, options = T.unsafe(nil)); end # Whether the given cookie is to be deleted by this CookieJar. Like `[]=`, you # can pass in an options hash to test if a deletion applies to a specific # `:path`, `:domain` etc. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#418 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:420 def deleted?(name, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:341 def each(&block); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#349 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:350 def fetch(name, *args, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:357 def has_key?(name); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:354 def key?(name); end - # Returns the value of attribute request. - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#322 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:322 def request; end # Returns the cookies as Hash. + # + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:360 def to_hash(*_arg0); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#373 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:374 def to_header; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#361 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:362 def update(other_hash); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#366 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:367 def update_cookies_from_jar; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#429 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:431 + def upgraded(name); end + + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:435 def write(response); end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#444 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:452 def escape(string); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#452 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:460 def handle_options(options); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#448 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:456 def write_cookie?(cookie); end class << self - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#441 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:449 def always_write_cookie; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#441 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:449 def always_write_cookie=(val); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#316 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:316 def build(req, cookies); end end end # Raised when storing more than 4K of session data. # -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#216 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:216 class ActionDispatch::Cookies::CookieOverflow < ::StandardError; end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#203 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:203 ActionDispatch::Cookies::ENCRYPTED_COOKIE_CIPHER = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#199 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:199 ActionDispatch::Cookies::ENCRYPTED_COOKIE_SALT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#200 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:200 ActionDispatch::Cookies::ENCRYPTED_SIGNED_COOKIE_SALT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#648 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:663 class ActionDispatch::Cookies::EncryptedKeyRotatingCookieJar < ::ActionDispatch::Cookies::AbstractCookieJar include ::ActionDispatch::Cookies::SerializedCookieJars - # @return [EncryptedKeyRotatingCookieJar] a new instance of EncryptedKeyRotatingCookieJar - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#651 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:666 def initialize(parent_jar); end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#693 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:708 def commit(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#685 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:700 def parse(name, encrypted_message, purpose: T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#197 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:197 ActionDispatch::Cookies::GENERATOR_KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#196 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:196 ActionDispatch::Cookies::HTTP_HEADER = T.let(T.unsafe(nil), String) # Cookies can typically store 4096 bytes. # -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#213 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:213 ActionDispatch::Cookies::MAX_COOKIE_SIZE = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#558 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:570 class ActionDispatch::Cookies::PermanentCookieJar < ::ActionDispatch::Cookies::AbstractCookieJar private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#560 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:572 def commit(name, options); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#205 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:205 ActionDispatch::Cookies::SECRET_KEY_BASE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#204 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:204 ActionDispatch::Cookies::SIGNED_COOKIE_DIGEST = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#198 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:198 ActionDispatch::Cookies::SIGNED_COOKIE_SALT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#565 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:577 module ActionDispatch::Cookies::SerializedCookieJars protected - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#569 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:581 def digest; end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#612 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:627 def check_for_overflow!(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#608 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:623 def commit(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#594 - def parse(name, dumped, force_reserialize: T.unsafe(nil), **_arg3); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:606 + def parse(name, dumped, force_reserialize: T.unsafe(nil), **); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#588 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:600 def reserialize?(dumped); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#574 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:586 def serializer; end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#566 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:578 ActionDispatch::Cookies::SerializedCookieJars::SERIALIZER = ActiveSupport::MessageEncryptor::NullSerializer -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#619 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:634 class ActionDispatch::Cookies::SignedKeyRotatingCookieJar < ::ActionDispatch::Cookies::AbstractCookieJar include ::ActionDispatch::Cookies::SerializedCookieJars - # @return [SignedKeyRotatingCookieJar] a new instance of SignedKeyRotatingCookieJar - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#622 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:637 def initialize(parent_jar); end private - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#641 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:656 def commit(name, options); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#635 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:650 def parse(name, signed_message, purpose: T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#202 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:202 ActionDispatch::Cookies::USE_AUTHENTICATED_COOKIE_ENCRYPTION = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#210 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:210 ActionDispatch::Cookies::USE_COOKIES_WITH_METADATA = T.let(T.unsafe(nil), String) # # Action Dispatch DebugExceptions @@ -10499,66 +9964,60 @@ ActionDispatch::Cookies::USE_COOKIES_WITH_METADATA = T.let(T.unsafe(nil), String # This middleware is responsible for logging exceptions and showing a debugging # page in case the request is local. # -# source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:15 class ActionDispatch::DebugExceptions - # @return [DebugExceptions] a new instance of DebugExceptions - # - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:23 def initialize(app, routes_app = T.unsafe(nil), response_format = T.unsafe(nil), interceptors = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:30 def call(env); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:200 def api_request?(content_type); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:118 def create_template(request, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:50 def invoke_interceptors(request, exception, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:174 def log_array(logger, lines, request); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:137 def log_error(request, wrapper); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#204 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:204 def log_rescued_responses?(request); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#186 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:186 def logger(request); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#133 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:133 def render(status, body, format); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:58 def render_exception(request, exception, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#94 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:94 def render_for_api_request(content_type, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:80 def render_for_browser_request(request, wrapper); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:194 def routes_inspector(exception); end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#190 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:190 def stderr_logger; end class << self - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:16 def interceptors; end - # source://actionpack//lib/action_dispatch/middleware/debug_exceptions.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_exceptions.rb:18 def register_interceptor(object = T.unsafe(nil), &block); end end end @@ -10587,293 +10046,255 @@ end # This middleware exposes operational details of the server, with no access # control. It should only be enabled when in use, and removed thereafter. # -# source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:29 class ActionDispatch::DebugLocks - # @return [DebugLocks] a new instance of DebugLocks - # - # source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:30 def initialize(app, path = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:35 def call(env); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:108 def blocked_by?(victim, blocker, all_threads); end - # source://actionpack//lib/action_dispatch/middleware/debug_locks.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_locks.rb:49 def render_details(req); end end -# source://actionpack//lib/action_dispatch/middleware/debug_view.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:11 class ActionDispatch::DebugView < ::ActionView::Base - # @return [DebugView] a new instance of DebugView - # - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:14 def initialize(assigns); end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:20 def compiled_method_container; end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:44 def debug_hash(object); end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:36 def debug_headers(headers); end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:24 def debug_params(params); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:62 def params_valid?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:58 def protect_against_forgery?; end - # source://actionpack//lib/action_dispatch/middleware/debug_view.rb#48 - def render(*_arg0); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:48 + def render(*); end end -# source://actionpack//lib/action_dispatch/middleware/debug_view.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/middleware/debug_view.rb:12 ActionDispatch::DebugView::RESCUES_TEMPLATE_PATHS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:11 class ActionDispatch::ExceptionWrapper - # @return [ExceptionWrapper] a new instance of ExceptionWrapper - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:50 def initialize(backtrace_cleaner, exception); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:101 def actions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#113 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:113 def annotated_source_code; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#135 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:135 def application_trace; end - # Returns the value of attribute backtrace_cleaner. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:48 def backtrace_cleaner; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:89 def corrections; end - # Returns the value of attribute exception. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:48 def exception; end - # Returns the value of attribute exception_class_name. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:48 def exception_class_name; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#228 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:228 def exception_id; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#224 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:224 def exception_inspect; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#216 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:216 def exception_name; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#129 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:129 def exception_trace; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:77 def failures; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:93 def file_name; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:139 def framework_trace; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:143 def full_trace; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:73 def has_cause?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#81 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:81 def has_corrections?; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:97 def line_number; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#220 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:220 def message; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:85 def original_message; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:194 def rescue_response?; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:12 def rescue_responses; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:12 def rescue_responses=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#121 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:121 def rescue_template; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:30 def rescue_templates; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:30 def rescue_templates=(val); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#61 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:61 def routing_error?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#179 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:179 def show?(request); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:43 def silent_exceptions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:43 def silent_exceptions=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#198 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:198 def source_extracts; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#212 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:212 def source_to_show_id; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:125 def status_code; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:69 def sub_template_message; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:65 def template_error?; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#204 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:204 def trace_to_show; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#147 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:147 def traces; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:105 def unwrapped_exception; end - # Returns the value of attribute wrapped_causes. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:48 def wrapped_causes; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:39 def wrapper_exceptions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:39 def wrapper_exceptions=(val); end private - # Returns the value of attribute backtrace. - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#252 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:252 def backtrace; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#254 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:254 def build_backtrace; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#277 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:277 def causes_for(exception); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#287 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:287 def clean_backtrace(*args); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:340 def extract_file_and_line_number(trace); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#295 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:295 def extract_source(trace); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#324 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:324 def extract_source_fragment_lines(source_lines, line); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#330 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:330 def source_fragment(path, line); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#283 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:283 def wrapped_causes_for(exception, backtrace_cleaner); end class << self - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:12 def rescue_responses; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:12 def rescue_responses=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:30 def rescue_templates; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:30 def rescue_templates=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:43 def silent_exceptions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:43 def silent_exceptions=(val); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#175 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:175 def status_code_for_exception(class_name); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:39 def wrapper_exceptions; end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:39 def wrapper_exceptions=(val); end end end -# source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#233 +# pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:233 class ActionDispatch::ExceptionWrapper::SourceMapLocation - # @return [SourceMapLocation] a new instance of SourceMapLocation - # - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#234 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:234 def initialize(location, template); end - # source://actionpack//lib/action_dispatch/middleware/exception_wrapper.rb#239 + # pkg:gem/actionpack#lib/action_dispatch/middleware/exception_wrapper.rb:239 def spot(exc); end end -# source://actionpack//lib/action_dispatch/middleware/executor.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/middleware/executor.rb:8 class ActionDispatch::Executor - # @return [Executor] a new instance of Executor - # - # source://actionpack//lib/action_dispatch/middleware/executor.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/middleware/executor.rb:9 def initialize(app, executor); end - # source://actionpack//lib/action_dispatch/middleware/executor.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/middleware/executor.rb:13 def call(env); end end @@ -10893,40 +10314,32 @@ end # "index"` to change the default `path`/index.html, and optional additional # response headers. # -# source://actionpack//lib/action_dispatch/middleware/static.rb#47 +# pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:47 class ActionDispatch::FileHandler - # @return [FileHandler] a new instance of FileHandler - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#55 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:55 def initialize(root, index: T.unsafe(nil), headers: T.unsafe(nil), precompressed: T.unsafe(nil), compressible_content_types: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:69 def attempt(env); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:65 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/static.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:185 def clean_path(path_info); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#149 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:149 def compressible?(content_type); end - # @yield [path, content_type || "text/plain"] - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#162 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:162 def each_candidate_filepath(path_info); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#153 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:153 def each_precompressed_filepath(filepath); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:144 def file_readable?(path); end # Match a URI path to a static file to be served. @@ -10940,22 +10353,22 @@ class ActionDispatch::FileHandler # If a matching file is found, the path and necessary response headers # (Content-Type, Content-Encoding) are returned. # - # source://actionpack//lib/action_dispatch/middleware/static.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:104 def find_file(path_info, accept_encoding:); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:80 def serve(request, filepath, content_headers); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:112 def try_files(filepath, content_type, accept_encoding:); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:122 def try_precompressed_files(filepath, headers, accept_encoding:); end end # `Accept-Encoding` value -> file extension # -# source://actionpack//lib/action_dispatch/middleware/static.rb#49 +# pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:49 ActionDispatch::FileHandler::PRECOMPRESSED = T.let(T.unsafe(nil), Hash) # # Action Dispatch Flash @@ -11001,46 +10414,44 @@ ActionDispatch::FileHandler::PRECOMPRESSED = T.let(T.unsafe(nil), Hash) # # See docs on the FlashHash class for more details about the flash. # -# source://actionpack//lib/action_dispatch/middleware/flash.rb#50 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:50 class ActionDispatch::Flash class << self - # source://actionpack//lib/action_dispatch/middleware/flash.rb#312 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:312 def new(app); end end end -# source://actionpack//lib/action_dispatch/middleware/flash.rb#119 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:119 class ActionDispatch::Flash::FlashHash include ::Enumerable - # @return [FlashHash] a new instance of FlashHash - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#149 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:149 def initialize(flashes = T.unsafe(nil), discard = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:169 def [](k); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#163 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:163 def []=(k, v); end # Convenience accessor for `flash[:alert]`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#280 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:280 def alert; end # Convenience accessor for `flash[:alert]=`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#285 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:285 def alert=(message); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#204 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:204 def clear; end # Immediately deletes the single flash entry. Use this method when you want # remove the message within the current action. See also #discard. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:189 def delete(key); end # Marks the entire flash or a single flash entry to be discarded by the end of @@ -11052,15 +10463,13 @@ class ActionDispatch::Flash::FlashHash # Use this method when you want to display the message in the current action but # not in the next one. See also #delete. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#264 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:264 def discard(k = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#209 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:209 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:200 def empty?; end # Keeps either the entire current flash or a specific flash entry available for @@ -11069,28 +10478,26 @@ class ActionDispatch::Flash::FlashHash # flash.keep # keeps the entire flash # flash.keep(:notice) # keeps only the "notice" entry, the rest of the flash is discarded # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#250 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:250 def keep(k = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:183 def key?(name); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#179 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:179 def keys; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:213 def merge!(h); end # Convenience accessor for `flash[:notice]`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#290 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:290 def notice; end # Convenience accessor for `flash[:notice]=`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#295 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:295 def notice=(message); end # Sets a flash that will not be available to the next action, only to the @@ -11114,10 +10521,10 @@ class ActionDispatch::Flash::FlashHash # flash.now.notice = "Good luck now!" # # Equivalent to flash.now[:notice] = "Good luck now!" # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#241 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:241 def now; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#215 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:215 def replace(h); end # Mark for removal entries that were kept, and delete unkept ones. @@ -11125,100 +10532,90 @@ class ActionDispatch::Flash::FlashHash # This method is called automatically by filters, so you generally don't need to # care about it. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#274 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:274 def sweep; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#196 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:196 def to_hash; end # Builds a hash containing the flashes to keep for the next request. If there # are none to keep, returns `nil`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:143 def to_session_value; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:173 def update(h); end protected - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#300 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:300 def now_is_loaded?; end private - # source://actionpack//lib/action_dispatch/middleware/flash.rb#155 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:155 def initialize_copy(other); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#305 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:305 def stringify_array(array); end class << self - # source://actionpack//lib/action_dispatch/middleware/flash.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:122 def from_session_value(value); end end end -# source://actionpack//lib/action_dispatch/middleware/flash.rb#90 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:90 class ActionDispatch::Flash::FlashNow - # @return [FlashNow] a new instance of FlashNow - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:93 def initialize(flash); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:104 def [](k); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:97 def []=(k, v); end # Convenience accessor for `flash.now[:alert]=`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#109 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:109 def alert=(message); end - # Returns the value of attribute flash. - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:91 def flash; end - # Sets the attribute flash - # - # @param value the value to set the attribute flash to. - # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:91 def flash=(_arg0); end # Convenience accessor for `flash.now[:notice]=`. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:114 def notice=(message); end end -# source://actionpack//lib/action_dispatch/middleware/flash.rb#51 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:51 ActionDispatch::Flash::KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/flash.rb#53 +# pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:53 module ActionDispatch::Flash::RequestMethods - # source://actionpack//lib/action_dispatch/middleware/flash.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:71 def commit_flash; end # Access the contents of the flash. Returns a ActionDispatch::Flash::FlashHash. # # See ActionDispatch::Flash for example usage. # - # source://actionpack//lib/action_dispatch/middleware/flash.rb#57 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:57 def flash; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:63 def flash=(flash); end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:67 def flash_hash; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/middleware/flash.rb:84 def reset_session; end end @@ -11239,119 +10636,107 @@ end # info if `config.consider_all_requests_local` is set to true, otherwise the # body is empty. # -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:22 class ActionDispatch::HostAuthorization - # @return [HostAuthorization] a new instance of HostAuthorization - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:127 def initialize(app, hosts, exclude: T.unsafe(nil), response_app: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#135 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:135 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:151 def blocked_hosts(request); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#163 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:163 def excluded?(request); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:167 def mark_as_authorized(request); end end -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#23 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:23 ActionDispatch::HostAuthorization::ALLOWED_HOSTS_IN_DEVELOPMENT = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#88 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:88 class ActionDispatch::HostAuthorization::DefaultResponseApp - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:91 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:122 def available_logger(request); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:114 def log_error(request); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:107 def response(format, body); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:100 def response_body(request); end end -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#89 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:89 ActionDispatch::HostAuthorization::DefaultResponseApp::RESPONSE_STATUS = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#26 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:26 ActionDispatch::HostAuthorization::IPV4_HOSTNAME = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#27 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:27 ActionDispatch::HostAuthorization::IPV6_HOSTNAME = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:28 ActionDispatch::HostAuthorization::IPV6_HOSTNAME_WITH_PORT = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:24 ActionDispatch::HostAuthorization::PORT_REGEX = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#35 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:35 class ActionDispatch::HostAuthorization::Permissions - # @return [Permissions] a new instance of Permissions - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:36 def initialize(hosts); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:44 def allows?(host); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:40 def empty?; end private - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:83 def extract_hostname(host); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#61 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:61 def sanitize_hosts(hosts); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:71 def sanitize_regexp(host); end - # source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#75 + # pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:75 def sanitize_string(host); end end -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#25 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:25 ActionDispatch::HostAuthorization::SUBDOMAIN_REGEX = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/middleware/host_authorization.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/middleware/host_authorization.rb:29 ActionDispatch::HostAuthorization::VALID_IP_HOSTNAME = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch.rb#95 +# pkg:gem/actionpack#lib/action_dispatch.rb:95 module ActionDispatch::Http extend ::ActiveSupport::Autoload end -# source://actionpack//lib/action_dispatch/http/cache.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:7 module ActionDispatch::Http::Cache; end -# source://actionpack//lib/action_dispatch/http/cache.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:8 module ActionDispatch::Http::Cache::Request - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:32 def etag_matches?(etag); end # Check response freshness (`Last-Modified` and `ETag`) against request @@ -11361,62 +10746,54 @@ module ActionDispatch::Http::Cache::Request # `config.action_dispatch.strict_freshness`. # Reference: http://tools.ietf.org/html/rfc7232#section-6 # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:45 def fresh?(response); end - # source://actionpack//lib/action_dispatch/http/cache.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:14 def if_modified_since; end - # source://actionpack//lib/action_dispatch/http/cache.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:20 def if_none_match; end - # source://actionpack//lib/action_dispatch/http/cache.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:24 def if_none_match_etags; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:28 def not_modified?(modified_at); end - # source://actionpack//lib/action_dispatch/http/cache.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:12 def strict_freshness; end - # source://actionpack//lib/action_dispatch/http/cache.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:12 def strict_freshness=(val); end class << self - # source://actionpack//lib/action_dispatch/http/cache.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:12 def strict_freshness; end - # source://actionpack//lib/action_dispatch/http/cache.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:12 def strict_freshness=(val); end end end -# source://actionpack//lib/action_dispatch/http/cache.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:9 ActionDispatch::Http::Cache::Request::HTTP_IF_MODIFIED_SINCE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:10 ActionDispatch::Http::Cache::Request::HTTP_IF_NONE_MATCH = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#68 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:68 module ActionDispatch::Http::Cache::Response - # Returns the value of attribute cache_control. - # - # source://actionpack//lib/action_dispatch/http/cache.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:69 def cache_control; end - # source://actionpack//lib/action_dispatch/http/cache.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:85 def date; end - # source://actionpack//lib/action_dispatch/http/cache.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:95 def date=(utc_time); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:91 def date?; end # This method sets a weak ETag validator on the response so browsers and proxies @@ -11438,141 +10815,127 @@ module ActionDispatch::Http::Cache::Response # Weak ETags are what we almost always need, so they're the default. Check out # #strong_etag= to provide a strong ETag validator. # - # source://actionpack//lib/action_dispatch/http/cache.rb#117 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:117 def etag=(weak_validators); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#129 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:129 def etag?; end - # source://actionpack//lib/action_dispatch/http/cache.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:71 def last_modified; end - # source://actionpack//lib/action_dispatch/http/cache.rb#81 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:81 def last_modified=(utc_time); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:77 def last_modified?; end - # source://actionpack//lib/action_dispatch/http/cache.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:125 def strong_etag=(strong_validators); end # True if an ETag is set, and it isn't a weak validator (not preceded with # `W/`). # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:138 def strong_etag?; end - # source://actionpack//lib/action_dispatch/http/cache.rb#121 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:121 def weak_etag=(weak_validators); end # True if an ETag is set, and it's a weak validator (preceded with `W/`). # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/cache.rb#132 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:132 def weak_etag?; end private - # source://actionpack//lib/action_dispatch/http/cache.rb#161 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:161 def cache_control_headers; end - # source://actionpack//lib/action_dispatch/http/cache.rb#155 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:155 def cache_control_segments; end - # source://actionpack//lib/action_dispatch/http/cache.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:151 def generate_strong_etag(validators); end - # source://actionpack//lib/action_dispatch/http/cache.rb#147 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:147 def generate_weak_etag(validators); end - # source://actionpack//lib/action_dispatch/http/cache.rb#191 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:191 def handle_conditional_get!; end - # source://actionpack//lib/action_dispatch/http/cache.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:200 def merge_and_normalize_cache_control!(cache_control); end - # source://actionpack//lib/action_dispatch/http/cache.rb#179 + # pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:179 def prepare_cache_control!; end end -# source://actionpack//lib/action_dispatch/http/cache.rb#143 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:143 ActionDispatch::Http::Cache::Response::DATE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#183 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:183 ActionDispatch::Http::Cache::Response::DEFAULT_CACHE_CONTROL = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#189 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:189 ActionDispatch::Http::Cache::Response::IMMUTABLE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#144 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:144 ActionDispatch::Http::Cache::Response::LAST_MODIFIED = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#188 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:188 ActionDispatch::Http::Cache::Response::MUST_REVALIDATE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#185 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:185 ActionDispatch::Http::Cache::Response::NO_CACHE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#184 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:184 ActionDispatch::Http::Cache::Response::NO_STORE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#187 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:187 ActionDispatch::Http::Cache::Response::PRIVATE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#186 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:186 ActionDispatch::Http::Cache::Response::PUBLIC = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/cache.rb#145 +# pkg:gem/actionpack#lib/action_dispatch/http/cache.rb:145 ActionDispatch::Http::Cache::Response::SPECIAL_KEYS = T.let(T.unsafe(nil), Set) -# source://actionpack//lib/action_dispatch/http/content_disposition.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:7 class ActionDispatch::Http::ContentDisposition - # @return [ContentDisposition] a new instance of ContentDisposition - # - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:14 def initialize(disposition:, filename:); end - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:21 def ascii_filename; end - # Returns the value of attribute disposition. - # - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:12 def disposition; end - # Returns the value of attribute filename. - # - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:12 def filename; end - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:31 def to_s; end - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:27 def utf8_filename; end private - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:40 def percent_escape(string, pattern); end class << self - # source://actionpack//lib/action_dispatch/http/content_disposition.rb#8 + # pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:8 def format(disposition:, filename:); end end end -# source://actionpack//lib/action_dispatch/http/content_disposition.rb#25 +# pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:25 ActionDispatch::Http::ContentDisposition::RFC_5987_ESCAPED_CHAR = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/content_disposition.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/http/content_disposition.rb:19 ActionDispatch::Http::ContentDisposition::TRADITIONAL_ESCAPED_CHAR = T.let(T.unsafe(nil), Regexp) # # Action Dispatch HTTP Filter Parameters @@ -11586,73 +10949,71 @@ ActionDispatch::Http::ContentDisposition::TRADITIONAL_ESCAPED_CHAR = T.let(T.uns # For more information about filter behavior, see # ActiveSupport::ParameterFilter. # -# source://actionpack//lib/action_dispatch/http/filter_parameters.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:19 module ActionDispatch::Http::FilterParameters - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:24 def initialize; end # Returns a hash of request.env with all sensitive data replaced. # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:40 def filtered_env; end # Returns a hash of parameters with all sensitive data replaced. # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:33 def filtered_parameters; end # Reconstructs a path with all sensitive GET parameters replaced. # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:45 def filtered_path; end # Returns the `ActiveSupport::ParameterFilter` object used to filter in this # request. # - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:51 def parameter_filter; end private - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:60 def env_filter; end - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:71 def filtered_query_string; end - # source://actionpack//lib/action_dispatch/http/filter_parameters.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:67 def parameter_filter_for(filters); end end -# source://actionpack//lib/action_dispatch/http/filter_parameters.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:20 ActionDispatch::Http::FilterParameters::ENV_MATCH = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/filter_parameters.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:22 ActionDispatch::Http::FilterParameters::NULL_ENV_FILTER = T.let(T.unsafe(nil), ActiveSupport::ParameterFilter) -# source://actionpack//lib/action_dispatch/http/filter_parameters.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_parameters.rb:21 ActionDispatch::Http::FilterParameters::NULL_PARAM_FILTER = T.let(T.unsafe(nil), ActiveSupport::ParameterFilter) -# source://actionpack//lib/action_dispatch/http/filter_redirect.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:7 module ActionDispatch::Http::FilterRedirect - # source://actionpack//lib/action_dispatch/http/filter_redirect.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:10 def filtered_location; end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/filter_redirect.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:27 def location_filter_match?; end - # source://actionpack//lib/action_dispatch/http/filter_redirect.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:19 def location_filters; end - # source://actionpack//lib/action_dispatch/http/filter_redirect.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:37 def parameter_filtered_location; end end -# source://actionpack//lib/action_dispatch/http/filter_redirect.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/http/filter_redirect.rb:8 ActionDispatch::Http::FilterRedirect::FILTERED = T.let(T.unsafe(nil), String) # # Action Dispatch HTTP Headers @@ -11677,34 +11038,32 @@ ActionDispatch::Http::FilterRedirect::FILTERED = T.let(T.unsafe(nil), String) # headers["X_Custom_Header"] # => nil # headers["X-Custom-Header"] # => "token" # -# source://actionpack//lib/action_dispatch/http/headers.rb#28 +# pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:28 class ActionDispatch::Http::Headers include ::Enumerable - # @return [Headers] a new instance of Headers - # - # source://actionpack//lib/action_dispatch/http/headers.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:58 def initialize(request); end # Returns the value for the given key mapped to @env. # - # source://actionpack//lib/action_dispatch/http/headers.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:63 def [](key); end # Sets the given value for the key mapped to @env. # - # source://actionpack//lib/action_dispatch/http/headers.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:68 def []=(key, value); end # Add a value to a multivalued header like `Vary` or `Accept-Encoding`. # - # source://actionpack//lib/action_dispatch/http/headers.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:73 def add(key, value); end - # source://actionpack//lib/action_dispatch/http/headers.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:98 def each(&block); end - # source://actionpack//lib/action_dispatch/http/headers.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:118 def env; end # Returns the value for the given key mapped to @env. @@ -11714,29 +11073,25 @@ class ActionDispatch::Http::Headers # # If the code block is provided, then it will be run and its result returned. # - # source://actionpack//lib/action_dispatch/http/headers.rb#90 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:90 def fetch(key, default = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/headers.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:80 def include?(key); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/headers.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:77 def key?(key); end # Returns a new Http::Headers instance containing the contents of # `headers_or_env` and the original instance. # - # source://actionpack//lib/action_dispatch/http/headers.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:104 def merge(headers_or_env); end # Adds the contents of `headers_or_env` to original instance entries; duplicate # keys are overwritten with the values from `headers_or_env`. # - # source://actionpack//lib/action_dispatch/http/headers.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:112 def merge!(headers_or_env); end private @@ -11744,36 +11099,36 @@ class ActionDispatch::Http::Headers # Converts an HTTP header name to an environment variable name if it is not # contained within the headers hash. # - # source://actionpack//lib/action_dispatch/http/headers.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:123 def env_name(key); end class << self - # source://actionpack//lib/action_dispatch/http/headers.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:54 def from_hash(hash); end end end -# source://actionpack//lib/action_dispatch/http/headers.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:29 ActionDispatch::Http::Headers::CGI_VARIABLES = T.let(T.unsafe(nil), Set) -# source://actionpack//lib/action_dispatch/http/headers.rb#82 +# pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:82 ActionDispatch::Http::Headers::DEFAULT = T.let(T.unsafe(nil), Object) -# source://actionpack//lib/action_dispatch/http/headers.rb#50 +# pkg:gem/actionpack#lib/action_dispatch/http/headers.rb:50 ActionDispatch::Http::Headers::HTTP_HEADER = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:9 module ActionDispatch::Http::MimeNegotiation extend ::ActiveSupport::Concern # Returns the accepted MIME type for the request. # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:42 def accepts; end # The MIME type of the HTTP request, such as [Mime](:xml). # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:24 def content_mime_type; end # Returns the MIME type for the format used in the request. @@ -11787,7 +11142,7 @@ module ActionDispatch::Http::MimeNegotiation # # GET /posts/5 # request.format # => Mime[:html] or Mime[:js], or request.accepts.first # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:68 def format(_view_path = T.unsafe(nil)); end # Sets the format by string extension, which can be used to force custom formats @@ -11802,10 +11157,10 @@ module ActionDispatch::Http::MimeNegotiation # end # end # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:120 def format=(extension); end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:72 def formats; end # Sets the formats by string extensions. This differs from #format= by allowing @@ -11824,62 +11179,59 @@ module ActionDispatch::Http::MimeNegotiation # end # end # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:140 def formats=(extensions); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:37 def has_content_type?; end # Returns the first MIME type that matches the provided array of MIME types. # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:148 def negotiate_mime(order); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#160 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:160 def should_apply_vary_header?; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:105 def variant; end # Sets the variant for template. # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:95 def variant=(variant); end + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:164 + def vary_headers; end + private - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#184 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:194 def format_from_path_extension; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:179 def params_readable?; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:190 def use_accept_header; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#175 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:185 def valid_accept_header; end end # We use normal content negotiation unless you include **/** in your list, in # which case we assume you're a browser and send HTML. # -# source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#167 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:177 ActionDispatch::Http::MimeNegotiation::BROWSER_LIKE_ACCEPTS = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:12 class ActionDispatch::Http::MimeNegotiation::InvalidType < ::Mime::Type::InvalidMimeType; end -# source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_negotiation.rb:14 ActionDispatch::Http::MimeNegotiation::RESCUABLE_MIME_FORMAT_ERRORS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/parameters.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:7 module ActionDispatch::Http::Parameters extend ::ActiveSupport::Concern @@ -11887,12 +11239,10 @@ module ActionDispatch::Http::Parameters # Returns both GET and POST parameters in a single hash. # - # source://actionpack//lib/action_dispatch/http/parameters.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:52 def parameters; end - # Returns both GET and POST parameters in a single hash. - # - # source://actionpack//lib/action_dispatch/http/parameters.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:65 def params; end # Returns a hash with the parameters used to form the path of the request. @@ -11900,25 +11250,25 @@ module ActionDispatch::Http::Parameters # # { action: "my_action", controller: "my_controller" } # - # source://actionpack//lib/action_dispatch/http/parameters.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:84 def path_parameters; end - # source://actionpack//lib/action_dispatch/http/parameters.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:67 def path_parameters=(parameters); end private - # source://actionpack//lib/action_dispatch/http/parameters.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:102 def log_parse_error_once; end - # source://actionpack//lib/action_dispatch/http/parameters.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:114 def params_parsers; end - # source://actionpack//lib/action_dispatch/http/parameters.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:89 def parse_formatted_parameters(parsers); end end -# source://actionpack//lib/action_dispatch/http/parameters.rb#36 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:36 module ActionDispatch::Http::Parameters::ClassMethods # Configure the parameter parser for a given MIME type. # @@ -11930,37 +11280,35 @@ module ActionDispatch::Http::Parameters::ClassMethods # new_parsers = original_parsers.merge(xml: xml_parser) # ActionDispatch::Request.parameter_parsers = new_parsers # - # source://actionpack//lib/action_dispatch/http/parameters.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:46 def parameter_parsers=(parsers); end end -# source://actionpack//lib/action_dispatch/http/parameters.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:12 ActionDispatch::Http::Parameters::DEFAULT_PARSERS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/parameters.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:10 ActionDispatch::Http::Parameters::PARAMETERS_KEY = T.let(T.unsafe(nil), String) # Raised when raw data from the request cannot be parsed by the parser defined # for request's content MIME type. # -# source://actionpack//lib/action_dispatch/http/parameters.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:21 class ActionDispatch::Http::Parameters::ParseError < ::StandardError - # @return [ParseError] a new instance of ParseError - # - # source://actionpack//lib/action_dispatch/http/parameters.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/http/parameters.rb:22 def initialize(message = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/http/url.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:9 module ActionDispatch::Http::URL - # source://actionpack//lib/action_dispatch/http/url.rb#181 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:181 def initialize; end # Returns the domain part of a host, such as "rubyonrails.org" in # "www.rubyonrails.org". You can specify a different `tld_length`, such as 2 to # catch rubyonrails.co.uk in "www.rubyonrails.co.uk". # - # source://actionpack//lib/action_dispatch/http/url.rb#324 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:324 def domain(tld_length = T.unsafe(nil)); end # Returns the host for this request, such as "example.com". @@ -11968,7 +11316,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.host # => "example.com" # - # source://actionpack//lib/action_dispatch/http/url.rb#228 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:228 def host; end # Returns a host:port string for this request, such as "example.com" or @@ -11984,7 +11332,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.host_with_port # => "example.com:8080" # - # source://actionpack//lib/action_dispatch/http/url.rb#244 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:244 def host_with_port; end # Returns a number port suffix like 8080 if the port number of this request is @@ -11996,7 +11344,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.optional_port # => 8080 # - # source://actionpack//lib/action_dispatch/http/url.rb#294 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:294 def optional_port; end # Returns the port number of this request as an integer. @@ -12007,7 +11355,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.port # => 8080 # - # source://actionpack//lib/action_dispatch/http/url.rb#255 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:255 def port; end # Returns a string port suffix, including colon, like ":8080" if the port number @@ -12019,7 +11367,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.port_string # => ":8080" # - # source://actionpack//lib/action_dispatch/http/url.rb#306 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:306 def port_string; end # Returns 'https://' if this is an SSL request and 'http://' otherwise. @@ -12030,7 +11378,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com', 'HTTPS' => 'on' # req.protocol # => "https://" # - # source://actionpack//lib/action_dispatch/http/url.rb#202 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:202 def protocol; end # Returns the host and port for this request, such as "example.com:8080". @@ -12044,13 +11392,13 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.raw_host_with_port # => "example.com:8080" # - # source://actionpack//lib/action_dispatch/http/url.rb#216 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:216 def raw_host_with_port; end - # source://actionpack//lib/action_dispatch/http/url.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:14 def secure_protocol; end - # source://actionpack//lib/action_dispatch/http/url.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:14 def secure_protocol=(val); end # Returns the requested port, such as 8080, based on SERVER_PORT. @@ -12061,7 +11409,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'SERVER_PORT' => '8080' # req.server_port # => 8080 # - # source://actionpack//lib/action_dispatch/http/url.rb#317 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:317 def server_port; end # Returns the standard port number for this request's protocol. @@ -12069,7 +11417,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.standard_port # => 80 # - # source://actionpack//lib/action_dispatch/http/url.rb#267 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:267 def standard_port; end # Returns whether this request is using the standard port. @@ -12080,16 +11428,14 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080' # req.standard_port? # => false # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/url.rb#282 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:282 def standard_port?; end # Returns all the subdomains as a string, so `"dev.www"` would be returned for # "dev.www.rubyonrails.org". You can specify a different `tld_length`, such as 2 # to catch `"www"` instead of `"www.rubyonrails"` in "www.rubyonrails.co.uk". # - # source://actionpack//lib/action_dispatch/http/url.rb#339 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:339 def subdomain(tld_length = T.unsafe(nil)); end # Returns all the subdomains as an array, so `["dev", "www"]` would be returned @@ -12097,13 +11443,13 @@ module ActionDispatch::Http::URL # as 2 to catch `["www"]` instead of `["www", "rubyonrails"]` in # "www.rubyonrails.co.uk". # - # source://actionpack//lib/action_dispatch/http/url.rb#332 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:332 def subdomains(tld_length = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/url.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:15 def tld_length; end - # source://actionpack//lib/action_dispatch/http/url.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:15 def tld_length=(val); end # Returns the complete URL used for this request. @@ -12111,7 +11457,7 @@ module ActionDispatch::Http::URL # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com' # req.url # => "http://example.com" # - # source://actionpack//lib/action_dispatch/http/url.rb#191 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:191 def url; end class << self @@ -12122,7 +11468,7 @@ module ActionDispatch::Http::URL # # Second-level domain example # extract_domain('dev.www.example.co.uk', 2) # => "example.co.uk" # - # source://actionpack//lib/action_dispatch/http/url.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:24 def extract_domain(host, tld_length); end # Returns the subdomains of a host as a String given the domain level. @@ -12132,7 +11478,7 @@ module ActionDispatch::Http::URL # # Second-level domain example # extract_subdomain('dev.www.example.co.uk', 2) # => "dev.www" # - # source://actionpack//lib/action_dispatch/http/url.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:48 def extract_subdomain(host, tld_length); end # Returns the subdomains of a host as an Array given the domain level. @@ -12142,70 +11488,68 @@ module ActionDispatch::Http::URL # # Second-level domain example # extract_subdomains('dev.www.example.co.uk', 2) # => ["dev", "www"] # - # source://actionpack//lib/action_dispatch/http/url.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:34 def extract_subdomains(host, tld_length); end - # source://actionpack//lib/action_dispatch/http/url.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:60 def full_url_for(options); end - # source://actionpack//lib/action_dispatch/http/url.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:72 def path_for(options); end - # source://actionpack//lib/action_dispatch/http/url.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:14 def secure_protocol; end - # source://actionpack//lib/action_dispatch/http/url.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:14 def secure_protocol=(val); end - # source://actionpack//lib/action_dispatch/http/url.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:15 def tld_length; end - # source://actionpack//lib/action_dispatch/http/url.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:15 def tld_length=(val); end - # source://actionpack//lib/action_dispatch/http/url.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:52 def url_for(options); end private - # source://actionpack//lib/action_dispatch/http/url.rb#92 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:92 def add_anchor(path, anchor); end - # source://actionpack//lib/action_dispatch/http/url.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:85 def add_params(path, params); end - # source://actionpack//lib/action_dispatch/http/url.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:107 def build_host_url(host, port, protocol, options, path); end - # source://actionpack//lib/action_dispatch/http/url.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:98 def extract_domain_from(host, tld_length); end - # source://actionpack//lib/action_dispatch/http/url.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:102 def extract_subdomains_from(host, tld_length); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/url.rb#131 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:131 def named_host?(host); end - # source://actionpack//lib/action_dispatch/http/url.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:148 def normalize_host(_host, options); end - # source://actionpack//lib/action_dispatch/http/url.rb#168 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:168 def normalize_port(port, protocol); end - # source://actionpack//lib/action_dispatch/http/url.rb#135 + # pkg:gem/actionpack#lib/action_dispatch/http/url.rb:135 def normalize_protocol(protocol); end end end -# source://actionpack//lib/action_dispatch/http/url.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:11 ActionDispatch::Http::URL::HOST_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/url.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:10 ActionDispatch::Http::URL::IP_HOST_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/url.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/http/url.rb:12 ActionDispatch::Http::URL::PROTOCOL_REGEXP = T.let(T.unsafe(nil), Regexp) # # Action Dispatch HTTP UploadedFile @@ -12219,111 +11563,106 @@ ActionDispatch::Http::URL::PROTOCOL_REGEXP = T.let(T.unsafe(nil), Regexp) # object is finalized Ruby unlinks the file, so there is no need to clean them # with a separate maintenance task. # -# source://actionpack//lib/action_dispatch/http/upload.rb#17 +# pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:17 class ActionDispatch::Http::UploadedFile - # @raise [ArgumentError] - # @return [UploadedFile] a new instance of UploadedFile - # - # source://actionpack//lib/action_dispatch/http/upload.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:31 def initialize(hash); end # Shortcut for `tempfile.close`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:73 def close(unlink_now = T.unsafe(nil)); end # A string with the MIME type of the file. # - # source://actionpack//lib/action_dispatch/http/upload.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:22 def content_type; end # A string with the MIME type of the file. # - # source://actionpack//lib/action_dispatch/http/upload.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:22 def content_type=(_arg0); end # Shortcut for `tempfile.eof?`. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/upload.rb#98 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:98 def eof?; end # A string with the headers of the multipart request. # - # source://actionpack//lib/action_dispatch/http/upload.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:29 def headers; end # A string with the headers of the multipart request. # - # source://actionpack//lib/action_dispatch/http/upload.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:29 def headers=(_arg0); end # Shortcut for `tempfile.open`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:68 def open; end # The basename of the file in the client. # - # source://actionpack//lib/action_dispatch/http/upload.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:19 def original_filename; end # The basename of the file in the client. # - # source://actionpack//lib/action_dispatch/http/upload.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:19 def original_filename=(_arg0); end # Shortcut for `tempfile.path`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:78 def path; end # Shortcut for `tempfile.read`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:63 def read(length = T.unsafe(nil), buffer = T.unsafe(nil)); end # Shortcut for `tempfile.rewind`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:88 def rewind; end # Shortcut for `tempfile.size`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:93 def size; end # A `Tempfile` object with the actual uploaded file. Note that some of its # interface is available directly. # - # source://actionpack//lib/action_dispatch/http/upload.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:26 def tempfile; end # A `Tempfile` object with the actual uploaded file. Note that some of its # interface is available directly. # - # source://actionpack//lib/action_dispatch/http/upload.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:26 def tempfile=(_arg0); end - # source://actionpack//lib/action_dispatch/http/upload.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:102 def to_io; end # Shortcut for `tempfile.to_path`. # - # source://actionpack//lib/action_dispatch/http/upload.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/http/upload.rb:83 def to_path; end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:14 module ActionDispatch::Integration; end -# source://actionpack//lib/action_dispatch/testing/integration.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:15 module ActionDispatch::Integration::RequestHelpers # Performs a DELETE request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:42 def delete(path, **args); end # Follow a single redirect response. If the last response was not a redirect, an @@ -12334,47 +11673,47 @@ module ActionDispatch::Integration::RequestHelpers # # The HTTP_REFERER header will be set to the previous url. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:65 def follow_redirect!(headers: T.unsafe(nil), **args); end # Performs a GET request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:18 def get(path, **args); end # Performs a HEAD request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:48 def head(path, **args); end # Performs an OPTIONS request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:54 def options(path, **args); end # Performs a PATCH request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:30 def patch(path, **args); end # Performs a POST request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:24 def post(path, **args); end # Performs a PUT request with the given parameters. See # ActionDispatch::Integration::Session#process for more details. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:36 def put(path, **args); end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#335 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:335 module ActionDispatch::Integration::Runner include ::ActionDispatch::Assertions::RoutingAssertions include ::ActionDispatch::Assertions::ResponseAssertions @@ -12384,57 +11723,55 @@ module ActionDispatch::Integration::Runner include ::ActionDispatch::Assertions extend ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # source://actionpack//lib/action_dispatch/testing/integration.rb#343 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:343 def initialize(*args, &blk); end - # Returns the value of attribute app. - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#340 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:340 def app; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#413 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:413 def assertions; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#417 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:417 def assertions=(assertions); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def assigns(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def assigns(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#348 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:348 def before_setup; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def cookies(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def cookies(*, **, &); end # Copy the instance variables from the current session instance into the test # instance. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#423 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:423 def copy_session_variables!; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#363 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:363 def create_session(app); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#429 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:429 def default_url_options; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#433 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:433 def default_url_options=(options); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def delete(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def delete(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def follow_redirect!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def follow_redirect!(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def get(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def get(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def head(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def head(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:353 def integration_session; end # Open a new session instance. If a block is given, the new session is yielded @@ -12447,47 +11784,45 @@ module ActionDispatch::Integration::Runner # By default, a single session is automatically created for you, but you can use # this method to open multiple sessions that ought to be tested simultaneously. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#405 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:405 def open_session; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def patch(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def patch(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def post(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def post(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#386 - def put(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 + def put(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#375 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:375 def remove!; end # Reset the current session. This is useful for testing multiple sessions in a # single test case. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#359 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:359 def reset!; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#341 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:341 def root_session; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#341 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:341 def root_session=(_arg0); end private # Delegate unhandled messages to the current session instance. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#443 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:443 + def method_missing(method, *, **, &); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#438 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:438 def respond_to_missing?(method, _); end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#338 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:338 ActionDispatch::Integration::Runner::APP_SESSIONS = T.let(T.unsafe(nil), Hash) # An instance of this class represents a set of requests and responses performed @@ -12498,7 +11833,7 @@ ActionDispatch::Integration::Runner::APP_SESSIONS = T.let(T.unsafe(nil), Hash) # Typically, you will instantiate a new session using Runner#open_session, # rather than instantiating a Session directly. # -# source://actionpack//lib/action_dispatch/testing/integration.rb#91 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:91 class ActionDispatch::Integration::Session include ::Minitest::Assertions include ::ActionDispatch::Assertions::RoutingAssertions @@ -12516,67 +11851,60 @@ class ActionDispatch::Integration::Session # Create and initialize a new Session instance. # - # @return [Session] a new instance of Session - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#133 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:133 def initialize(app); end # The Accept header to send. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:110 def accept; end # The Accept header to send. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:110 def accept=(_arg0); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 - def body(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 + def body(*, **, &); end # A reference to the controller instance used by the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#119 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:119 def controller; end # A map of the cookies returned by the last response, and which will be sent # with the next request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:114 def cookies; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options?; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 - def headers(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 + def headers(*, **, &); end # The hostname used in the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:101 def host; end - # Sets the attribute host # Set the host name to use in the next request. # # session.host! "www.example.com" # - # @param value the value to set the attribute host to. - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:316 def host!(_arg0); end - # Sets the attribute host - # - # @param value the value to set the attribute host to. + # The hostname used in the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:104 def host=(_arg0); end # Specify whether or not the session should mimic a secure HTTPS request. @@ -12584,7 +11912,7 @@ class ActionDispatch::Integration::Session # session.https! # session.https!(false) # - # source://actionpack//lib/action_dispatch/testing/integration.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:180 def https!(flag = T.unsafe(nil)); end # Returns `true` if the session is mimicking a secure HTTPS request. @@ -12593,13 +11921,11 @@ class ActionDispatch::Integration::Session # # ... # end # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:189 def https?; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#98 - def path(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:98 + def path(*, **, &); end # Performs the actual request. # @@ -12635,35 +11961,35 @@ class ActionDispatch::Integration::Session # # process :get, '/author', params: { since: 201501011400 } # - # source://actionpack//lib/action_dispatch/testing/integration.rb#226 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:226 def process(method, path, params: T.unsafe(nil), headers: T.unsafe(nil), env: T.unsafe(nil), xhr: T.unsafe(nil), as: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 - def redirect?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 + def redirect?(*, **, &); end # The remote_addr used in the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:107 def remote_addr; end # The remote_addr used in the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:107 def remote_addr=(_arg0); end # A reference to the request instance used by the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:122 def request; end # A running counter of the number of requests processed. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:128 def request_count; end # A running counter of the number of requests processed. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:128 def request_count=(_arg0); end # Resets the instance. This can be used to reset the state information in an @@ -12671,57 +11997,55 @@ class ActionDispatch::Integration::Session # # session.reset! # - # source://actionpack//lib/action_dispatch/testing/integration.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:156 def reset!; end # A reference to the response instance used by the last request. # - # source://actionpack//lib/action_dispatch/testing/integration.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:125 def response; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 - def status(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 + def status(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#97 - def status_message(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 + def status_message(*, **, &); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:140 def url_options; end private - # source://actionpack//lib/action_dispatch/testing/integration.rb#319 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:319 def _mock_session; end - # @yield [location] - # - # source://actionpack//lib/action_dispatch/testing/integration.rb#327 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:327 def build_expanded_path(path); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#323 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:323 def build_full_uri(path, env); end class << self - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options=(value); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def default_url_options?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def __class_attr_default_url_options; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:130 def __class_attr_default_url_options=(new_value); end end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#92 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:92 ActionDispatch::Integration::Session::DEFAULT_HOST = T.let(T.unsafe(nil), String) # An integration test spans multiple controllers and actions, tying them all @@ -12919,7 +12243,7 @@ ActionDispatch::Integration::Session::DEFAULT_HOST = T.let(T.unsafe(nil), String # Consult the [Rails Testing Guide](https://guides.rubyonrails.org/testing.html) # for more. # -# source://actionpack//lib/action_dispatch/testing/integration.rb#650 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:650 class ActionDispatch::IntegrationTest < ::ActiveSupport::TestCase include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::Assertions::RoutingAssertions @@ -12940,7 +12264,7 @@ class ActionDispatch::IntegrationTest < ::ActiveSupport::TestCase extend ::ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods end -# source://actionpack//lib/action_dispatch/testing/integration.rb#660 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:660 module ActionDispatch::IntegrationTest::Behavior include ::ActionDispatch::Assertions::RoutingAssertions include ::ActionDispatch::Assertions::ResponseAssertions @@ -12959,162 +12283,139 @@ module ActionDispatch::IntegrationTest::Behavior mixes_in_class_methods ::ActionDispatch::IntegrationTest::Behavior::ClassMethods mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods - # source://actionpack//lib/action_dispatch/testing/integration.rb#693 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:693 def app; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#697 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:697 def document_root_element; end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#675 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:675 module ActionDispatch::IntegrationTest::Behavior::ClassMethods - # source://actionpack//lib/action_dispatch/testing/integration.rb#676 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:676 def app; end - # source://actionpack//lib/action_dispatch/testing/integration.rb#684 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:684 def app=(app); end - # source://actionpack//lib/action_dispatch/testing/integration.rb#688 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:688 def register_encoder(*args, **options); end end -# source://actionpack//lib/action_dispatch/testing/integration.rb#653 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:653 module ActionDispatch::IntegrationTest::UrlOptions extend ::ActiveSupport::Concern - # source://actionpack//lib/action_dispatch/testing/integration.rb#655 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:655 def url_options; end end -# source://actionpack//lib/action_dispatch/http/param_error.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:21 class ActionDispatch::InvalidParameterError < ::ActionDispatch::ParamError; end # :stopdoc: # -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#6 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:6 module ActionDispatch::Journey; end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:9 class ActionDispatch::Journey::Ast - # @return [Ast] a new instance of Ast - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:13 def initialize(tree, formatted); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:38 def glob?; end - # Returns the value of attribute names. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def names; end - # Returns the value of attribute path_params. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def path_params; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:25 def requirements=(requirements); end - # Returns the value of attribute tree. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:11 def root; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:34 def route=(route); end - # Returns the value of attribute terminals. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def terminals; end - # Returns the value of attribute tree. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def tree; end - # Returns the value of attribute wildcard_options. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:10 def wildcard_options; end private - # Returns the value of attribute stars. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:43 def stars; end - # Returns the value of attribute symbols. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:43 def symbols; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:45 def visit_tree(formatted); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:8 class ActionDispatch::Journey::Format - # @return [Format] a new instance of Format - # - # source://actionpack//lib/action_dispatch/journey/visitors.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:24 def initialize(parts); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:39 def evaluate(hash); end class << self - # source://actionpack//lib/action_dispatch/journey/visitors.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:16 def required_path(symbol); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:20 def required_segment(symbol); end end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:9 ActionDispatch::Journey::Format::ESCAPE_PATH = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:10 ActionDispatch::Journey::Format::ESCAPE_SEGMENT = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 class ActionDispatch::Journey::Format::Parameter < ::Struct - # source://actionpack//lib/action_dispatch/journey/visitors.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:13 def escape(value); end - # Returns the value of attribute escaper - # - # @return [Object] the current value of escaper + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def escaper; end - # Sets the attribute escaper - # - # @param value [Object] the value to set the attribute escaper to. - # @return [Object] the newly set value + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def escaper=(_); end - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def name=(_); end class << self + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def [](*_arg0); end + + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def inspect; end + + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def keyword_init?; end + + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def members; end + + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:12 def new(*_arg0); end end end @@ -13122,842 +12423,668 @@ end # The Formatter class is used for formatting URLs. For example, parameters # passed to `url_for` in Rails will eventually call Formatter#generate. # -# source://actionpack//lib/action_dispatch/journey/formatter.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:12 class ActionDispatch::Journey::Formatter - # @return [Formatter] a new instance of Formatter - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:15 def initialize(routes); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:110 def clear; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:114 def eager_load!; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#61 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:61 def generate(name, options, path_parameters); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:13 def routes; end private - # source://actionpack//lib/action_dispatch/journey/formatter.rb#214 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:214 def build_cache; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#225 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:225 def cache; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:120 def extract_parameterized_parts(route, options, recall); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#147 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:147 def match_route(name, options); end # Returns an array populated with missing keys if any are present. # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#186 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:186 def missing_keys(route, parts); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:143 def named_routes; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:169 def non_recursive(cache, options); end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:206 def possibles(cache, options, depth = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/journey/formatter.rb#34 +# pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:34 class ActionDispatch::Journey::Formatter::MissingRoute - # @return [MissingRoute] a new instance of MissingRoute - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:37 def initialize(constraints, missing_keys, unmatched_keys, routes, name); end - # Returns the value of attribute constraints. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def constraints; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#53 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:53 def message; end - # Returns the value of attribute missing_keys. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def missing_keys; end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def name; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:49 def params; end - # @raise [ActionController::UrlGenerationError] - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:45 def path(method_name); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def routes; end - # Returns the value of attribute unmatched_keys. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:35 def unmatched_keys; end end -# source://actionpack//lib/action_dispatch/journey/formatter.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:20 class ActionDispatch::Journey::Formatter::RouteWithParams - # @return [RouteWithParams] a new instance of RouteWithParams - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:23 def initialize(route, parameterized_parts, params); end - # Returns the value of attribute params. - # - # source://actionpack//lib/action_dispatch/journey/formatter.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:21 def params; end - # source://actionpack//lib/action_dispatch/journey/formatter.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/journey/formatter.rb:29 def path(_); end end -# source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:9 module ActionDispatch::Journey::GTG; end -# source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:10 class ActionDispatch::Journey::GTG::Builder - # @return [Builder] a new instance of Builder - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:15 def initialize(root); end - # Returns the value of attribute ast. - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:13 def ast; end - # Returns the value of attribute endpoints. - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:13 def endpoints; end - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:87 def firstpos(node); end - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:108 def lastpos(node); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:66 def nullable?(node); end - # Returns the value of attribute root. - # - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:13 def root; end - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:21 def transition_table; end private - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:130 def build_followpos; end - # source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:143 def symbol(edge); end end -# source://actionpack//lib/action_dispatch/journey/gtg/builder.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/builder.rb:11 ActionDispatch::Journey::GTG::Builder::DUMMY_END_NODE = T.let(T.unsafe(nil), ActionDispatch::Journey::Nodes::Dummy) -# source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:10 class ActionDispatch::Journey::GTG::MatchData - # @return [MatchData] a new instance of MatchData - # - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:13 def initialize(memos); end - # Returns the value of attribute memos. - # - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:11 def memos; end end -# source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#18 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:18 class ActionDispatch::Journey::GTG::Simulator - # @return [Simulator] a new instance of Simulator - # - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:23 def initialize(transition_table); end - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:27 def memos(string); end - # Returns the value of attribute tt. - # - # source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:21 def tt; end end -# source://actionpack//lib/action_dispatch/journey/gtg/simulator.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/simulator.rb:19 ActionDispatch::Journey::GTG::Simulator::INITIAL_STATE = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:10 class ActionDispatch::Journey::GTG::TransitionTable include ::ActionDispatch::Journey::NFA::Dot - # @return [TransitionTable] a new instance of TransitionTable - # - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:18 def initialize; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#165 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:165 def []=(from, to, sym); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:34 def accepting?(state); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:30 def accepting_states; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:26 def add_accepting(state); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:38 def add_memo(idx, memo); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:100 def as_json(options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:46 def eclosure(t); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:42 def memo(idx); end - # Returns the value of attribute memos. - # - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:13 def memos; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:50 def move(t, full_string, start_index, end_index); end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:182 def states; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#117 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:117 def to_svg; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:189 def transitions; end - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:127 def visualizer(paths, title = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:200 def states_hash_for(sym); end end -# source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:15 ActionDispatch::Journey::GTG::TransitionTable::DEFAULT_EXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/gtg/transition_table.rb#16 +# pkg:gem/actionpack#lib/action_dispatch/journey/gtg/transition_table.rb:16 ActionDispatch::Journey::GTG::TransitionTable::DEFAULT_EXP_ANCHORED = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/nfa/dot.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/journey/nfa/dot.rb:7 module ActionDispatch::Journey::NFA; end -# source://actionpack//lib/action_dispatch/journey/nfa/dot.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/nfa/dot.rb:8 module ActionDispatch::Journey::NFA::Dot - # source://actionpack//lib/action_dispatch/journey/nfa/dot.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/nfa/dot.rb:9 def to_dot; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#68 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:68 module ActionDispatch::Journey::Nodes; end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#181 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:181 class ActionDispatch::Journey::Nodes::Binary < ::ActionDispatch::Journey::Nodes::Node - # @return [Binary] a new instance of Binary - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#184 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:184 def initialize(left, right); end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:189 def children; end - # Returns the value of attribute right. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:182 def right; end - # Sets the attribute right - # - # @param value the value to set the attribute right to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:182 def right=(_arg0); end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#192 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:192 class ActionDispatch::Journey::Nodes::Cat < ::ActionDispatch::Journey::Nodes::Binary - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#193 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:193 def cat?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:194 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#133 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:133 class ActionDispatch::Journey::Nodes::Dot < ::ActionDispatch::Journey::Nodes::Terminal - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#134 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:134 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#121 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:121 class ActionDispatch::Journey::Nodes::Dummy < ::ActionDispatch::Journey::Nodes::Literal - # @return [Dummy] a new instance of Dummy - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:122 def initialize(x = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#126 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:126 def literal?; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#158 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:158 class ActionDispatch::Journey::Nodes::Group < ::ActionDispatch::Journey::Nodes::Unary - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#160 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:160 def group?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#159 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:159 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#116 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:116 class ActionDispatch::Journey::Nodes::Literal < ::ActionDispatch::Journey::Nodes::Terminal - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#117 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:117 def literal?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:118 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#69 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:69 class ActionDispatch::Journey::Nodes::Node include ::Enumerable - # @return [Node] a new instance of Node - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:74 def initialize(left); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:107 def cat?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#79 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:79 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:108 def group?; end - # Returns the value of attribute left. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:72 def left; end - # Sets the attribute left - # - # @param value the value to set the attribute left to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:72 def left=(_arg0); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:104 def literal?; end - # Returns the value of attribute memo. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:72 def memo; end - # Sets the attribute memo - # - # @param value the value to set the attribute memo to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:72 def memo=(_arg0); end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:95 def name; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:106 def star?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:103 def symbol?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:105 def terminal?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:87 def to_dot; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:83 def to_s; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:91 def to_sym; end - # @raise [NotImplementedError] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#99 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:99 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#197 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:197 class ActionDispatch::Journey::Nodes::Or < ::ActionDispatch::Journey::Nodes::Node - # @return [Or] a new instance of Or - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:200 def initialize(children); end - # Returns the value of attribute children. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#198 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:198 def children; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#204 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:204 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#129 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:129 class ActionDispatch::Journey::Nodes::Slash < ::ActionDispatch::Journey::Nodes::Terminal - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:130 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#163 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:163 class ActionDispatch::Journey::Nodes::Star < ::ActionDispatch::Journey::Nodes::Unary - # @return [Star] a new instance of Star - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#166 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:166 def initialize(left); end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#176 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:176 def name; end - # Returns the value of attribute regexp. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#164 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:164 def regexp; end - # Sets the attribute regexp - # - # @param value the value to set the attribute regexp to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#164 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:164 def regexp=(_arg0); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:173 def star?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:174 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#137 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:137 class ActionDispatch::Journey::Nodes::Symbol < ::ActionDispatch::Journey::Nodes::Terminal - # @return [Symbol] a new instance of Symbol - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:144 def initialize(left, regexp = T.unsafe(nil)); end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:140 def name; end - # Returns the value of attribute regexp. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:138 def regexp; end - # Sets the attribute regexp - # - # @param value the value to set the attribute regexp to. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:138 def regexp=(_arg0); end - # Returns the value of attribute regexp. - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:139 def symbol; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:151 def symbol?; end - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#150 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:150 def type; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#142 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:142 ActionDispatch::Journey::Nodes::Symbol::DEFAULT_EXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#143 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:143 ActionDispatch::Journey::Nodes::Symbol::GREEDY_EXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#111 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:111 class ActionDispatch::Journey::Nodes::Terminal < ::ActionDispatch::Journey::Nodes::Node - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:112 def symbol; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#113 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:113 def terminal?; end end -# source://actionpack//lib/action_dispatch/journey/nodes/node.rb#154 +# pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:154 class ActionDispatch::Journey::Nodes::Unary < ::ActionDispatch::Journey::Nodes::Node - # source://actionpack//lib/action_dispatch/journey/nodes/node.rb#155 + # pkg:gem/actionpack#lib/action_dispatch/journey/nodes/node.rb:155 def children; end end -# source://actionpack//lib/action_dispatch/journey/parser.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:8 class ActionDispatch::Journey::Parser include ::ActionDispatch::Journey::Nodes - # @return [Parser] a new instance of Parser - # - # source://actionpack//lib/action_dispatch/journey/parser.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:15 def initialize; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:20 def parse(string); end private - # source://actionpack//lib/action_dispatch/journey/parser.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:27 def advance_token; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:31 def do_parse; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:58 def parse_expression; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:35 def parse_expressions; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:74 def parse_group; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:52 def parse_or(lhs); end - # source://actionpack//lib/action_dispatch/journey/parser.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:68 def parse_star; end - # source://actionpack//lib/action_dispatch/journey/parser.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:86 def parse_terminal; end class << self - # source://actionpack//lib/action_dispatch/journey/parser.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/journey/parser.rb:11 def parse(string); end end end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:7 module ActionDispatch::Journey::Path; end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:8 class ActionDispatch::Journey::Path::Pattern - # @return [Pattern] a new instance of Pattern - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:11 def initialize(ast, requirements, separators, anchored); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#159 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:163 def =~(other); end - # Returns the value of attribute anchored. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def anchored; end - # Returns the value of attribute ast. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def ast; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:25 def build_formatter; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:29 def eager_load!; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#159 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:159 def match(other); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#165 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:165 def match?(other); end - # Returns the value of attribute names. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def names; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:62 def optional_names; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:58 def required_names; end - # Returns the value of attribute requirements. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def requirements; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:36 def requirements_anchored?; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#177 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:177 def requirements_for_missing_keys_check; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:169 def source; end - # Returns the value of attribute spec. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:9 def spec; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:173 def to_regexp; end private - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#188 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:188 def offsets; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#184 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:184 def regexp_visitor; end end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#68 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:68 class ActionDispatch::Journey::Path::Pattern::AnchoredRegexp < ::ActionDispatch::Journey::Visitors::Visitor - # @return [AnchoredRegexp] a new instance of AnchoredRegexp - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:69 def initialize(separator, matchers); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:76 def accept(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:80 def visit_CAT(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:100 def visit_DOT(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:93 def visit_GROUP(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:97 def visit_LITERAL(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:111 def visit_OR(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:102 def visit_SLASH(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:106 def visit_STAR(node); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:84 def visit_SYMBOL(node); end end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#124 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:124 class ActionDispatch::Journey::Path::Pattern::MatchData - # @return [MatchData] a new instance of MatchData - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:127 def initialize(names, offsets, match); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#141 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:141 def [](x); end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#133 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:133 def captures; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#146 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:146 def length; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:137 def named_captures; end - # Returns the value of attribute names. - # - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:125 def names; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#150 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:150 def post_match; end - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#154 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:154 def to_s; end end -# source://actionpack//lib/action_dispatch/journey/path/pattern.rb#117 +# pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:117 class ActionDispatch::Journey::Path::Pattern::UnanchoredRegexp < ::ActionDispatch::Journey::Path::Pattern::AnchoredRegexp - # source://actionpack//lib/action_dispatch/journey/path/pattern.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/journey/path/pattern.rb:118 def accept(node); end end -# source://actionpack//lib/action_dispatch/journey/route.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:8 class ActionDispatch::Journey::Route # +path+ is a path constraint. # `constraints` is a hash of constraints to be applied to this route. # - # @return [Route] a new instance of Route - # - # source://actionpack//lib/action_dispatch/journey/route.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:58 def initialize(name:, path:, app: T.unsafe(nil), constraints: T.unsafe(nil), required_defaults: T.unsafe(nil), defaults: T.unsafe(nil), request_method_match: T.unsafe(nil), precedence: T.unsafe(nil), scope_options: T.unsafe(nil), internal: T.unsafe(nil), source_location: T.unsafe(nil)); end - # Returns the value of attribute app. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def app; end - # Returns the value of attribute ast. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def ast; end - # Returns the value of attribute constraints. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:12 def conditions; end - # Returns the value of attribute constraints. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def constraints; end - # Returns the value of attribute defaults. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def defaults; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:144 def dispatcher?; end - # source://actionpack//lib/action_dispatch/journey/route.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:80 def eager_load!; end - # source://actionpack//lib/action_dispatch/journey/route.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:122 def format(path_options); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:140 def glob?; end - # Returns the value of attribute internal. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def internal; end - # source://actionpack//lib/action_dispatch/journey/route.rb#166 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:166 def ip; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:148 def matches?(request); end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def name; end - # source://actionpack//lib/action_dispatch/journey/route.rb#117 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:117 def parts; end - # Returns the value of attribute path. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def path; end - # Returns the value of attribute precedence. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def precedence; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#130 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:130 def required_default?(key); end - # source://actionpack//lib/action_dispatch/journey/route.rb#134 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:134 def required_defaults; end - # source://actionpack//lib/action_dispatch/journey/route.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:105 def required_keys; end - # source://actionpack//lib/action_dispatch/journey/route.rb#126 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:126 def required_parts; end # Needed for `bin/rails routes`. Picks up succinctly defined requirements for a @@ -13969,261 +13096,243 @@ class ActionDispatch::Journey::Route # will have {:controller=>"photos", :action=>"show", :[id=>/](A-Z){5}/} as # requirements. # - # source://actionpack//lib/action_dispatch/journey/route.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:95 def requirements; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/route.rb#170 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:170 def requires_matching_verb?; end - # Returns the value of attribute scope_options. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def scope_options; end - # source://actionpack//lib/action_dispatch/journey/route.rb#109 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:109 def score(supplied_keys); end - # source://actionpack//lib/action_dispatch/journey/route.rb#117 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:120 def segment_keys; end - # source://actionpack//lib/action_dispatch/journey/route.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:101 def segments; end - # Returns the value of attribute source_location. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:9 def source_location; end - # source://actionpack//lib/action_dispatch/journey/route.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:174 def verb; end private - # source://actionpack//lib/action_dispatch/journey/route.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:183 def match_verb(request); end - # source://actionpack//lib/action_dispatch/journey/route.rb#179 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:179 def verbs; end class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:49 def verb_matcher(verb); end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:14 module ActionDispatch::Journey::Route::VerbMatchers; end -# source://actionpack//lib/action_dispatch/journey/route.rb#36 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:36 class ActionDispatch::Journey::Route::VerbMatchers::All class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:37 def call(_); end - # source://actionpack//lib/action_dispatch/journey/route.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:38 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::DELETE class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::GET class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::HEAD class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::LINK class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::OPTIONS class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::PATCH class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::POST class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::PUT class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::TRACE class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#19 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 class ActionDispatch::Journey::Route::VerbMatchers::UNLINK class << self - # source://actionpack//lib/action_dispatch/journey/route.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def call(req); end - # source://actionpack//lib/action_dispatch/journey/route.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:17 def verb; end end end -# source://actionpack//lib/action_dispatch/journey/route.rb#26 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:26 class ActionDispatch::Journey::Route::VerbMatchers::Unknown - # @return [Unknown] a new instance of Unknown - # - # source://actionpack//lib/action_dispatch/journey/route.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:29 def initialize(verb); end - # source://actionpack//lib/action_dispatch/journey/route.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:33 def call(request); end - # Returns the value of attribute verb. - # - # source://actionpack//lib/action_dispatch/journey/route.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:27 def verb; end end -# source://actionpack//lib/action_dispatch/journey/route.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:15 ActionDispatch::Journey::Route::VerbMatchers::VERBS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/route.rb#41 +# pkg:gem/actionpack#lib/action_dispatch/journey/route.rb:41 ActionDispatch::Journey::Route::VerbMatchers::VERB_TO_CLASS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:7 class ActionDispatch::Journey::Router - # @return [Router] a new instance of Router - # - # source://actionpack//lib/action_dispatch/journey/router.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:22 def initialize(routes); end - # source://actionpack//lib/action_dispatch/journey/router.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:26 def eager_load!; end - # source://actionpack//lib/action_dispatch/journey/router.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:68 def recognize(rails_req); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/journey/router.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:20 def routes; end - # Sets the attribute routes - # - # @param value the value to set the attribute routes to. - # - # source://actionpack//lib/action_dispatch/journey/router.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:20 def routes=(_arg0); end - # source://actionpack//lib/action_dispatch/journey/router.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:33 def serve(req); end - # source://actionpack//lib/action_dispatch/journey/router.rb#81 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:81 def visualizer; end private - # source://actionpack//lib/action_dispatch/journey/router.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:95 def ast; end - # source://actionpack//lib/action_dispatch/journey/router.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:103 def custom_routes; end - # source://actionpack//lib/action_dispatch/journey/router.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:107 def filter_routes(path); end - # source://actionpack//lib/action_dispatch/journey/router.rb#112 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:112 def find_routes(req); end - # source://actionpack//lib/action_dispatch/journey/router.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:137 def match_head_routes(routes, req); end - # source://actionpack//lib/action_dispatch/journey/router.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:89 def partitioned_routes; end - # source://actionpack//lib/action_dispatch/journey/router.rb#99 + # pkg:gem/actionpack#lib/action_dispatch/journey/router.rb:99 def simulator; end end -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:8 class ActionDispatch::Journey::Router::Utils class << self - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:91 def escape_fragment(fragment); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:83 def escape_path(path); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:87 def escape_segment(segment); end # Normalizes URI path. @@ -14237,7 +13346,7 @@ class ActionDispatch::Journey::Router::Utils # normalize_path("") # => "/" # normalize_path("/%ab") # => "/%AB" # - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:19 def normalize_path(path); end # Replaces any escaped sequences with their unescaped representations. @@ -14245,384 +13354,368 @@ class ActionDispatch::Journey::Router::Utils # uri = "/topics?title=Ruby%20on%20Rails" # unescape_uri(uri) #=> "/topics?title=Ruby on Rails" # - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#99 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:99 def unescape_uri(uri); end end end -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#81 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:81 ActionDispatch::Journey::Router::Utils::ENCODER = T.let(T.unsafe(nil), ActionDispatch::Journey::Router::Utils::UriEncoder) # URI path and fragment escaping https://tools.ietf.org/html/rfc3986 # -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#34 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:34 class ActionDispatch::Journey::Router::Utils::UriEncoder - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:52 def escape_fragment(fragment); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:56 def escape_path(path); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:60 def escape_segment(segment); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:64 def unescape_uri(uri); end private - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:70 def escape(component, pattern); end - # source://actionpack//lib/action_dispatch/journey/router/utils.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:74 def percent_encode(unsafe); end end -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#41 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:41 ActionDispatch::Journey::Router::Utils::UriEncoder::ALPHA = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#39 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:39 ActionDispatch::Journey::Router::Utils::UriEncoder::DEC2HEX = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#42 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:42 ActionDispatch::Journey::Router::Utils::UriEncoder::DIGIT = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#38 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:38 ActionDispatch::Journey::Router::Utils::UriEncoder::EMPTY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#35 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:35 ActionDispatch::Journey::Router::Utils::UriEncoder::ENCODE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#46 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:46 ActionDispatch::Journey::Router::Utils::UriEncoder::ESCAPED = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#48 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:48 ActionDispatch::Journey::Router::Utils::UriEncoder::FRAGMENT = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#50 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:50 ActionDispatch::Journey::Router::Utils::UriEncoder::PATH = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#49 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:49 ActionDispatch::Journey::Router::Utils::UriEncoder::SEGMENT = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#44 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:44 ActionDispatch::Journey::Router::Utils::UriEncoder::SUB_DELIMS = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#43 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:43 ActionDispatch::Journey::Router::Utils::UriEncoder::UNRESERVED = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#36 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:36 ActionDispatch::Journey::Router::Utils::UriEncoder::US_ASCII = T.let(T.unsafe(nil), Encoding) -# source://actionpack//lib/action_dispatch/journey/router/utils.rb#37 +# pkg:gem/actionpack#lib/action_dispatch/journey/router/utils.rb:37 ActionDispatch::Journey::Router::Utils::UriEncoder::UTF_8 = T.let(T.unsafe(nil), Encoding) # The Routing table. Contains all routes for a system. Routes can be added to # the table by calling Routes#add_route. # -# source://actionpack//lib/action_dispatch/journey/routes.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:9 class ActionDispatch::Journey::Routes include ::Enumerable - # @return [Routes] a new instance of Routes - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:14 def initialize(routes = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/journey/routes.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:67 def add_route(name, mapping); end - # Returns the value of attribute anchored_routes. - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:12 def anchored_routes; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#53 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:53 def ast; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:39 def clear; end - # Returns the value of attribute custom_routes. - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:12 def custom_routes; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:35 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:22 def empty?; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:31 def last; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:26 def length; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#45 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:45 def partition_route(route); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/journey/routes.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:12 def routes; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:60 def simulator; end - # source://actionpack//lib/action_dispatch/journey/routes.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:29 def size; end private - # source://actionpack//lib/action_dispatch/journey/routes.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/journey/routes.rb:76 def clear_cache!; end end -# source://actionpack//lib/action_dispatch/journey/scanner.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:9 class ActionDispatch::Journey::Scanner - # @return [Scanner] a new instance of Scanner - # - # source://actionpack//lib/action_dispatch/journey/scanner.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:28 def initialize; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:48 def last_literal; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:44 def last_string; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:37 def next_token; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:33 def scan_setup(str); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/journey/scanner.rb#69 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:69 def next_byte_is_not_a_token?; end - # source://actionpack//lib/action_dispatch/journey/scanner.rb#55 + # pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:55 def scan; end end -# source://actionpack//lib/action_dispatch/journey/scanner.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:10 ActionDispatch::Journey::Scanner::STATIC_TOKENS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/journey/scanner.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/journey/scanner.rb:20 class ActionDispatch::Journey::Scanner::Scanner < ::StringScanner; end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#55 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:55 module ActionDispatch::Journey::Visitors; end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#196 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:196 class ActionDispatch::Journey::Visitors::Dot < ::ActionDispatch::Journey::Visitors::FunctionalVisitor - # @return [Dot] a new instance of Dot - # - # source://actionpack//lib/action_dispatch/journey/visitors.rb#197 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:197 def initialize; end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#202 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:202 def accept(node, seed = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/journey/visitors.rb#217 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:217 def binary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#224 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:224 def nary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#256 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:256 def terminal(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#231 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:231 def unary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#241 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:241 def visit_CAT(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#236 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:236 def visit_GROUP(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#251 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:251 def visit_OR(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#246 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:246 def visit_STAR(node, seed); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#262 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:262 ActionDispatch::Journey::Visitors::Dot::INSTANCE = T.let(T.unsafe(nil), ActionDispatch::Journey::Visitors::Dot) # Loop through the requirements AST. # -# source://actionpack//lib/action_dispatch/journey/visitors.rb#161 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:161 class ActionDispatch::Journey::Visitors::Each < ::ActionDispatch::Journey::Visitors::FunctionalVisitor - # source://actionpack//lib/action_dispatch/journey/visitors.rb#162 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:162 def visit(node, block); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#167 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:167 ActionDispatch::Journey::Visitors::Each::INSTANCE = T.let(T.unsafe(nil), ActionDispatch::Journey::Visitors::Each) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#136 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:136 class ActionDispatch::Journey::Visitors::FormatBuilder < ::ActionDispatch::Journey::Visitors::Visitor - # source://actionpack//lib/action_dispatch/journey/visitors.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:137 def accept(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:140 def binary(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#138 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:138 def terminal(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#144 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:144 def visit_GROUP(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#146 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:146 def visit_STAR(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#150 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:150 def visit_SYMBOL(n); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#97 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:97 class ActionDispatch::Journey::Visitors::FunctionalVisitor - # source://actionpack//lib/action_dispatch/journey/visitors.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:100 def accept(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#108 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:108 def binary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#113 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:113 def nary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#124 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:124 def terminal(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:118 def unary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:104 def visit(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:111 def visit_CAT(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:128 def visit_DOT(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#121 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:121 def visit_GROUP(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#125 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:125 def visit_LITERAL(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#116 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:116 def visit_OR(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:127 def visit_SLASH(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:122 def visit_STAR(n, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#126 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:126 def visit_SYMBOL(n, seed); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#98 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:98 ActionDispatch::Journey::Visitors::FunctionalVisitor::DISPATCH_CACHE = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#170 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:170 class ActionDispatch::Journey::Visitors::String < ::ActionDispatch::Journey::Visitors::FunctionalVisitor private - # source://actionpack//lib/action_dispatch/journey/visitors.rb#172 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:172 def binary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#176 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:176 def nary(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:185 def terminal(node, seed); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#189 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:189 def visit_GROUP(node, seed); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#193 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:193 ActionDispatch::Journey::Visitors::String::INSTANCE = T.let(T.unsafe(nil), ActionDispatch::Journey::Visitors::String) -# source://actionpack//lib/action_dispatch/journey/visitors.rb#56 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:56 class ActionDispatch::Journey::Visitors::Visitor - # source://actionpack//lib/action_dispatch/journey/visitors.rb#59 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:59 def accept(node); end private - # source://actionpack//lib/action_dispatch/journey/visitors.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:68 def binary(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:74 def nary(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:85 def terminal(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#79 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:79 def unary(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:64 def visit(node); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:72 def visit_CAT(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:89 def visit_DOT(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#82 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:82 def visit_GROUP(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:86 def visit_LITERAL(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:77 def visit_OR(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:88 def visit_SLASH(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:83 def visit_STAR(n); end - # source://actionpack//lib/action_dispatch/journey/visitors.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:87 def visit_SYMBOL(n); end end -# source://actionpack//lib/action_dispatch/journey/visitors.rb#57 +# pkg:gem/actionpack#lib/action_dispatch/journey/visitors.rb:57 ActionDispatch::Journey::Visitors::Visitor::DISPATCH_CACHE = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/log_subscriber.rb#6 +# pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:6 class ActionDispatch::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://actionpack//lib/action_dispatch/log_subscriber.rb#7 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:7 def redirect(event); end class << self private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:21 def __class_attr_log_levels; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/log_subscriber.rb:21 def __class_attr_log_levels=(new_value); end end end @@ -14633,21 +13726,17 @@ end # stack](https://guides.rubyonrails.org/rails_on_rack.html#action-dispatcher-middleware-stack) # in the guides. # -# source://actionpack//lib/action_dispatch/middleware/stack.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:14 class ActionDispatch::MiddlewareStack include ::Enumerable - # @return [MiddlewareStack] a new instance of MiddlewareStack - # @yield [_self] - # @yieldparam _self [ActionDispatch::MiddlewareStack] the object that the method was called on - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:76 def initialize(*args); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:93 def [](i); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#166 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:166 def build(app = T.unsafe(nil), &block); end # Deletes a middleware from the middleware stack. @@ -14655,7 +13744,7 @@ class ActionDispatch::MiddlewareStack # Returns the array of middlewares not including the deleted item, or returns # nil if the target is not found. # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#131 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:131 def delete(target); end # Deletes a middleware from the middleware stack. @@ -14663,233 +13752,209 @@ class ActionDispatch::MiddlewareStack # Returns the array of middlewares not including the deleted item, or raises # `RuntimeError` if the target is not found. # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:139 def delete!(target); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#81 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:81 def each(&block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#106 - def insert(index, klass, *args, **_arg3, &block); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:106 + def insert(index, klass, *args, **, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#114 - def insert_after(index, *args, **_arg2, &block); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:114 + def insert_after(index, *args, **, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#106 - def insert_before(index, klass, *args, **_arg3, &block); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:112 + def insert_before(index, klass, *args, **, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:89 def last; end - # Returns the value of attribute middlewares. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:74 def middlewares; end - # Sets the attribute middlewares - # - # @param value the value to set the attribute middlewares to. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:74 def middlewares=(_arg0); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:143 def move(target, source); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#153 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:153 def move_after(target, source); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:151 def move_before(target, source); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:85 def size; end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#120 - def swap(target, *args, **_arg2, &block); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:120 + def swap(target, *args, **, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#97 - def unshift(klass, *args, **_arg2, &block); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:97 + def unshift(klass, *args, **, &block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#161 - def use(klass, *args, **_arg2, &block); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:161 + def use(klass, *args, **, &block); end private - # source://actionpack//lib/action_dispatch/middleware/stack.rb#178 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:178 def assert_index(index, where); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#184 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:184 def build_middleware(klass, args, block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#188 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:188 def index_of(klass); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:102 def initialize_copy(other); end end # This class is used to instrument the execution of a single middleware. It # proxies the `call` method transparently and instruments the method call. # -# source://actionpack//lib/action_dispatch/middleware/stack.rb#54 +# pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:54 class ActionDispatch::MiddlewareStack::InstrumentationProxy - # @return [InstrumentationProxy] a new instance of InstrumentationProxy - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#57 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:57 def initialize(middleware, class_name); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:65 def call(env); end end -# source://actionpack//lib/action_dispatch/middleware/stack.rb#55 +# pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:55 ActionDispatch::MiddlewareStack::InstrumentationProxy::EVENT_NAME = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/middleware/stack.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:15 class ActionDispatch::MiddlewareStack::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#18 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:18 def initialize(klass, args, block); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:26 def ==(middleware); end - # Returns the value of attribute args. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:16 def args; end - # Returns the value of attribute block. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:16 def block; end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:43 def build(app); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#47 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:47 def build_instrumented(app); end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:35 def inspect; end - # Returns the value of attribute klass. - # - # source://actionpack//lib/action_dispatch/middleware/stack.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:16 def klass; end - # source://actionpack//lib/action_dispatch/middleware/stack.rb#24 + # pkg:gem/actionpack#lib/action_dispatch/middleware/stack.rb:24 def name; end end -# source://actionpack//lib/action_dispatch.rb#50 +# pkg:gem/actionpack#lib/action_dispatch.rb:50 class ActionDispatch::MissingController < ::NameError; end -# source://actionpack//lib/action_dispatch/http/param_builder.rb#4 +# pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:4 class ActionDispatch::ParamBuilder - # @return [ParamBuilder] a new instance of ParamBuilder - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:15 def initialize(param_depth_limit); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:23 def default; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:23 def default=(val); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:50 def from_hash(hash, encoding_template: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:34 def from_pairs(pairs, encoding_template: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:30 def from_query_string(qs, separator: T.unsafe(nil), encoding_template: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:19 def ignore_leading_brackets; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:19 def ignore_leading_brackets=(val); end - # Returns the value of attribute param_depth_limit. - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:13 def param_depth_limit; end private - # source://actionpack//lib/action_dispatch/http/param_builder.rb#162 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:162 def make_params; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#166 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:166 def new_depth_limit(param_depth_limit); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:174 def params_hash_has_key?(hash, key); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#170 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:170 def params_hash_type?(obj); end - # @raise [ParamsTooDeepError] - # - # source://actionpack//lib/action_dispatch/http/param_builder.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:65 def store_nested_param(params, name, v, depth, encoding_template = T.unsafe(nil)); end class << self - # source://actionpack//lib/action_dispatch/http/param_builder.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:23 def default; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:23 def default=(val); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#27 - def from_hash(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:27 + def from_hash(*, **, &); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#27 - def from_pairs(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:27 + def from_pairs(*, **, &); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#27 - def from_query_string(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:27 + def from_query_string(*, **, &); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:19 def ignore_leading_brackets; end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:19 def ignore_leading_brackets=(val); end - # source://actionpack//lib/action_dispatch/http/param_builder.rb#9 + # -- + # This implementation is based on Rack::QueryParser, + # Copyright (C) 2007-2021 Leah Neukirchen + # + # pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:9 def make_default(param_depth_limit); end end end -# source://actionpack//lib/action_dispatch/http/param_builder.rb#21 +# pkg:gem/actionpack#lib/action_dispatch/http/param_builder.rb:21 ActionDispatch::ParamBuilder::LEADING_BRACKETS_COMPAT = T.let(T.unsafe(nil), FalseClass) -# source://actionpack//lib/action_dispatch/http/param_error.rb#4 +# pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:4 class ActionDispatch::ParamError < ::ActionDispatch::Http::Parameters::ParseError - # @return [ParamError] a new instance of ParamError - # - # source://actionpack//lib/action_dispatch/http/param_error.rb#5 + # pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:5 def initialize(message = T.unsafe(nil)); end class << self - # source://actionpack//lib/action_dispatch/http/param_error.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:9 def ===(other); end end end -# source://actionpack//lib/action_dispatch/http/param_error.rb#18 +# pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:18 class ActionDispatch::ParameterTypeError < ::ActionDispatch::ParamError; end -# source://actionpack//lib/action_dispatch/http/param_error.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/http/param_error.rb:24 class ActionDispatch::ParamsTooDeepError < ::ActionDispatch::ParamError; end # # Action Dispatch PermissionsPolicy @@ -14916,152 +13981,140 @@ class ActionDispatch::ParamsTooDeepError < ::ActionDispatch::ParamError; end # use the new name for the middleware but keep the old header name and # implementation for now. # -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#31 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:31 class ActionDispatch::PermissionsPolicy - # @return [PermissionsPolicy] a new instance of PermissionsPolicy - # @yield [_self] - # @yieldparam _self [ActionDispatch::PermissionsPolicy] the object that the method was called on - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#113 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:113 def initialize; end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def accelerometer(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def ambient_light_sensor(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def autoplay(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#132 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:132 def build(context = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def camera(*sources); end - # Returns the value of attribute directives. - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:111 def directives; end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def display_capture(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def encrypted_media(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def fullscreen(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def geolocation(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def gyroscope(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def hid(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def idle_detection(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def keyboard_map(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def magnetometer(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def microphone(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def midi(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def payment(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def picture_in_picture(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def screen_wake_lock(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def serial(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def sync_xhr(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def usb(*sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#123 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:123 def web_share(*sources); end private - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#150 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:150 def apply_mapping(source); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#137 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:137 def apply_mappings(sources); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#168 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:168 def build_directive(sources, context); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#156 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:156 def build_directives(context); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:118 def initialize_copy(other); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#172 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:172 def resolve_source(source, context); end end # List of available permissions can be found at # https://github.com/w3c/webappsec-permissions-policy/blob/main/features.md#policy-controlled-features # -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#84 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:84 ActionDispatch::PermissionsPolicy::DIRECTIVES = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#77 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:77 ActionDispatch::PermissionsPolicy::MAPPINGS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#32 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:32 class ActionDispatch::PermissionsPolicy::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#33 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:33 def initialize(app); end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#37 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:37 def call(env); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:60 def policy_empty?(policy); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:56 def policy_present?(headers); end end -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#65 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:65 module ActionDispatch::PermissionsPolicy::Request - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:68 def permissions_policy; end - # source://actionpack//lib/action_dispatch/http/permissions_policy.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:72 def permissions_policy=(policy); end end -# source://actionpack//lib/action_dispatch/http/permissions_policy.rb#66 +# pkg:gem/actionpack#lib/action_dispatch/http/permissions_policy.rb:66 ActionDispatch::PermissionsPolicy::Request::POLICY = T.let(T.unsafe(nil), String) # # Action Dispatch PublicExceptions @@ -15077,46 +14130,38 @@ ActionDispatch::PermissionsPolicy::Request::POLICY = T.let(T.unsafe(nil), String # When a request with a content type other than HTML is made, this middleware # will attempt to convert error information into the appropriate response type. # -# source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#18 +# pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:18 class ActionDispatch::PublicExceptions - # @return [PublicExceptions] a new instance of PublicExceptions - # - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:21 def initialize(public_path); end - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:25 def call(env); end - # Returns the value of attribute public_path. - # - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:19 def public_path; end - # Sets the attribute public_path - # - # @param value the value to set the attribute public_path to. - # - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:19 def public_path=(_arg0); end private - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:43 def render(status, content_type, body); end - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:52 def render_format(status, content_type, body); end - # source://actionpack//lib/action_dispatch/middleware/public_exceptions.rb#57 + # pkg:gem/actionpack#lib/action_dispatch/middleware/public_exceptions.rb:57 def render_html(status); end end -# source://actionpack//lib/action_dispatch/http/query_parser.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:7 class ActionDispatch::QueryParser - # source://actionpack//lib/action_dispatch/http/query_parser.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:12 def strict_query_string_separator; end - # source://actionpack//lib/action_dispatch/http/query_parser.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:12 def strict_query_string_separator=(val); end class << self @@ -15125,30 +14170,30 @@ class ActionDispatch::QueryParser # giving a nil value for keys that do not use '='. Callers that need # the standard's interpretation can use `v.to_s`. # - # source://actionpack//lib/action_dispatch/http/query_parser.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:20 def each_pair(s, separator = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/query_parser.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:12 def strict_query_string_separator; end - # source://actionpack//lib/action_dispatch/http/query_parser.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:12 def strict_query_string_separator=(val); end end end -# source://actionpack//lib/action_dispatch/http/query_parser.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:10 ActionDispatch::QueryParser::COMMON_SEP = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/query_parser.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:9 ActionDispatch::QueryParser::COMPAT_SEP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/query_parser.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:8 ActionDispatch::QueryParser::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/query_parser.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/http/query_parser.rb:14 ActionDispatch::QueryParser::SEMICOLON_COMPAT = T.let(T.unsafe(nil), FalseClass) -# source://actionpack//lib/action_dispatch/railtie.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/railtie.rb:10 class ActionDispatch::Railtie < ::Rails::Railtie; end # # Action Dispatch Reloader @@ -15160,7 +14205,7 @@ class ActionDispatch::Railtie < ::Rails::Railtie; end # ActionDispatch::Reloader is included in the middleware stack only if reloading # is enabled, which it is by the default in `development` mode. # -# source://actionpack//lib/action_dispatch/middleware/reloader.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/middleware/reloader.rb:14 class ActionDispatch::Reloader < ::ActionDispatch::Executor; end # # Action Dispatch RemoteIp @@ -15189,7 +14234,7 @@ class ActionDispatch::Reloader < ::ActionDispatch::Executor; end # middleware runs. Alternatively, remove this middleware to avoid inadvertently # relying on it. # -# source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#33 +# pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:33 class ActionDispatch::RemoteIp # Create a new `RemoteIp` middleware instance. # @@ -15206,9 +14251,7 @@ class ActionDispatch::RemoteIp # `custom_proxies` parameter. That way, the middleware will ignore those IP # addresses, and return the one that you want. # - # @return [RemoteIp] a new instance of RemoteIp - # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:65 def initialize(app, ip_spoofing_check = T.unsafe(nil), custom_proxies = T.unsafe(nil)); end # Since the IP address may not be needed, we store the object here without @@ -15216,17 +14259,13 @@ class ActionDispatch::RemoteIp # those requests that do need to know the IP, the GetIp#calculate_ip method will # calculate the memoized client IP address. # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:93 def call(env); end - # Returns the value of attribute check_ip. - # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:49 def check_ip; end - # Returns the value of attribute proxies. - # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:49 def proxies; end end @@ -15234,11 +14273,9 @@ end # an actual IP address. If the ActionDispatch::Request#remote_ip method is # called, this class will calculate the value and then memoize it. # -# source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#102 +# pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:102 class ActionDispatch::RemoteIp::GetIp - # @return [GetIp] a new instance of GetIp - # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:103 def initialize(req, check_ip, proxies); end # Sort through the various IP address headers, looking for the IP most likely to @@ -15260,25 +14297,25 @@ class ActionDispatch::RemoteIp::GetIp # list of IPs, remove known and trusted proxies, and then take the last address # left, which was presumably set by one of those proxies. # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:127 def calculate_ip; end # Memoizes the value returned by #calculate_ip and returns it for # ActionDispatch::Request to use. # - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#171 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:171 def to_s; end private - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#191 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:191 def filter_proxies(ips); end - # source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#176 + # pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:176 def ips_from(header); end end -# source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#34 +# pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:34 class ActionDispatch::RemoteIp::IpSpoofAttackError < ::StandardError; end # The default trusted IPs list simply includes IP addresses that are guaranteed @@ -15286,10 +14323,10 @@ class ActionDispatch::RemoteIp::IpSpoofAttackError < ::StandardError; end # ultimate client IP in production, and so are discarded. See # https://en.wikipedia.org/wiki/Private_network for details. # -# source://actionpack//lib/action_dispatch/middleware/remote_ip.rb#40 +# pkg:gem/actionpack#lib/action_dispatch/middleware/remote_ip.rb:40 ActionDispatch::RemoteIp::TRUSTED_PROXIES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/request.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:20 class ActionDispatch::Request include ::ActionDispatch::Flash::RequestMethods include ::Rack::Request::Helpers @@ -15304,87 +14341,85 @@ class ActionDispatch::Request include ::ActionDispatch::RequestCookieMethods extend ::ActionDispatch::Http::Parameters::ClassMethods - # @return [Request] a new instance of Request - # - # source://actionpack//lib/action_dispatch/http/request.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:64 def initialize(env); end # Override Rack's GET method to support indifferent access. # - # source://actionpack//lib/action_dispatch/http/request.rb#395 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:395 def GET; end # Override Rack's POST method to support indifferent access. # - # source://actionpack//lib/action_dispatch/http/request.rb#408 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:408 def POST; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def accept; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def accept_charset; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def accept_encoding; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def accept_language; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def auth_type; end # Returns the authorization header regardless of whether it was specified # directly or through one of the proxy alternatives. # - # source://actionpack//lib/action_dispatch/http/request.rb#460 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:460 def authorization; end # The request body is an IO input stream. If the RAW_POST_DATA environment # variable is already set, wrap it in a StringIO. # - # source://actionpack//lib/action_dispatch/http/request.rb#357 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:357 def body; end - # source://actionpack//lib/action_dispatch/http/request.rb#377 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:377 def body_stream; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def cache_control; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def client_ip; end - # source://actionpack//lib/action_dispatch/http/request.rb#79 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:79 def commit_cookie_jar!; end - # source://actionpack//lib/action_dispatch/http/request.rb#492 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:492 def commit_csrf_token; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:481 def commit_flash; end # Returns the content length of the request as an integer. # - # source://actionpack//lib/action_dispatch/http/request.rb#292 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:292 def content_length; end - # source://actionpack//lib/action_dispatch/http/request.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:88 def controller_class; end - # source://actionpack//lib/action_dispatch/http/request.rb#94 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:94 def controller_class_for(name); end - # source://actionpack//lib/action_dispatch/http/request.rb#190 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:190 def controller_instance; end - # source://actionpack//lib/action_dispatch/http/request.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:194 def controller_instance=(controller); end - # source://actionpack//lib/action_dispatch/http/request.rb#176 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:176 def engine_script_name(_routes); end - # source://actionpack//lib/action_dispatch/http/request.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:180 def engine_script_name=(name); end # Determine whether the request body contains form-data by checking the request @@ -15395,12 +14430,10 @@ class ActionDispatch::Request # A request body is not assumed to contain form-data when no `Content-Type` # header is provided and the request_method is POST. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#373 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:373 def form_data?; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def from; end # Returns the `String` full path including params of the last URL requested. @@ -15411,53 +14444,49 @@ class ActionDispatch::Request # # get "/articles?page=2" # request.fullpath # => "/articles?page=2" # - # source://actionpack//lib/action_dispatch/http/request.rb#271 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:271 def fullpath; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def gateway_interface; end # Provides access to the request's HTTP headers, for example: # # request.headers["Content-Type"] # => "text/plain" # - # source://actionpack//lib/action_dispatch/http/request.rb#232 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:232 def headers; end - # source://actionpack//lib/action_dispatch/http/request.rb#198 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:198 def http_auth_salt; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:23 def ignore_accept_header; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:23 def ignore_accept_header=(val); end - # source://actionpack//lib/action_dispatch/http/request.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:484 def inspect; end # Returns the IP address of client as a `String`. # - # source://actionpack//lib/action_dispatch/http/request.rb#306 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:306 def ip; end # Returns true if the request has a header matching the given key parameter. # # request.key? :ip_spoofing_check # => true # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#115 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:115 def key?(key); end # True if the request came from localhost, 127.0.0.1, or ::1. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#468 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:468 def local?; end - # source://actionpack//lib/action_dispatch/http/request.rb#477 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:477 def logger; end # The `String` MIME type of the request. @@ -15465,7 +14494,7 @@ class ActionDispatch::Request # # get "/articles" # request.media_type # => "application/x-www-form-urlencoded" # - # source://actionpack//lib/action_dispatch/http/request.rb#287 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:287 def media_type; end # Returns the original value of the environment's REQUEST_METHOD, even if it was @@ -15474,18 +14503,18 @@ class ActionDispatch::Request # For debugging purposes, when called with arguments this method will fall back # to Object#method # - # source://actionpack//lib/action_dispatch/http/request.rb#212 - def method(*args, **_arg1); end + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:212 + def method(*args, **); end # Returns a symbol form of the #method. # - # source://actionpack//lib/action_dispatch/http/request.rb#225 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:225 def method_symbol; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def negotiate; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def origin; end # Returns a `String` with the last requested path including their params. @@ -15496,10 +14525,10 @@ class ActionDispatch::Request # # get '/foo?bar' # request.original_fullpath # => '/foo?bar' # - # source://actionpack//lib/action_dispatch/http/request.rb#260 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:260 def original_fullpath; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def original_script_name; end # Returns the original request URL as a `String`. @@ -15507,53 +14536,49 @@ class ActionDispatch::Request # # get "/articles?page=2" # request.original_url # => "http://www.example.com/articles?page=2" # - # source://actionpack//lib/action_dispatch/http/request.rb#279 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:279 def original_url; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def path_translated; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def pragma; end - # Override Rack's GET method to support indifferent access. - # - # source://actionpack//lib/action_dispatch/http/request.rb#395 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:405 def query_parameters; end - # Returns the value of attribute rack_request. - # - # source://actionpack//lib/action_dispatch/http/request.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:77 def rack_request; end # Read the request body. This is useful for web services that need to work with # raw requests directly. # - # source://actionpack//lib/action_dispatch/http/request.rb#348 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:348 def raw_post; end - # source://rack/3.2.7/lib/rack/request.rb#202 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:145 def raw_request_method; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def remote_addr; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def remote_host; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def remote_ident; end # Returns the IP address of client as a `String`, usually set by the RemoteIp # middleware. # - # source://actionpack//lib/action_dispatch/http/request.rb#312 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:312 def remote_ip; end - # source://actionpack//lib/action_dispatch/http/request.rb#316 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:316 def remote_ip=(remote_ip); end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def remote_user; end # Returns the unique request id, which is based on either the `X-Request-Id` @@ -15565,10 +14590,10 @@ class ActionDispatch::Request # logging or debugging. This relies on the Rack variable set by the # ActionDispatch::RequestId middleware. # - # source://actionpack//lib/action_dispatch/http/request.rb#331 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:331 def request_id; end - # source://actionpack//lib/action_dispatch/http/request.rb#335 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:335 def request_id=(id); end # Returns the HTTP method that the application should see. In the case where the @@ -15577,32 +14602,30 @@ class ActionDispatch::Request # the application should use), this method returns the overridden value, not the # original. # - # source://actionpack//lib/action_dispatch/http/request.rb#152 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:152 def request_method; end - # source://actionpack//lib/action_dispatch/http/request.rb#184 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:184 def request_method=(request_method); end # Returns a symbol form of the #request_method. # - # source://actionpack//lib/action_dispatch/http/request.rb#203 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:203 def request_method_symbol; end - # Override Rack's POST method to support indifferent access. - # - # source://actionpack//lib/action_dispatch/http/request.rb#408 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:435 def request_parameters; end - # source://actionpack//lib/action_dispatch/http/request.rb#472 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:472 def request_parameters=(params); end - # source://actionpack//lib/action_dispatch/http/request.rb#437 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:437 def request_parameters_list; end - # source://actionpack//lib/action_dispatch/http/request.rb#488 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:488 def reset_csrf_token; end - # source://actionpack//lib/action_dispatch/middleware/flash.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:381 def reset_session; end # Returns the URI pattern of the matched route for the request, using the same @@ -15610,16 +14633,16 @@ class ActionDispatch::Request # # request.route_uri_pattern # => "/:controller(/:action(/:id))(.:format)" # - # source://actionpack//lib/action_dispatch/http/request.rb#160 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:160 def route_uri_pattern; end - # source://actionpack//lib/action_dispatch/http/request.rb#164 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:164 def route_uri_pattern=(pattern); end - # source://actionpack//lib/action_dispatch/http/request.rb#168 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:168 def routes; end - # source://actionpack//lib/action_dispatch/http/request.rb#172 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:172 def routes=(routes); end # Early Hints is an HTTP/2 status code that indicates hints to help a client @@ -15636,227 +14659,202 @@ class ActionDispatch::Request # or {stylesheet_link_tag}[rdoc-ref:ActionView::Helpers::AssetTagHelper#stylesheet_link_tag] # the Early Hints headers are included by default if supported. # - # source://actionpack//lib/action_dispatch/http/request.rb#249 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:249 def send_early_hints(links); end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def server_name; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def server_protocol; end # Returns the lowercase name of the HTTP server software. # - # source://actionpack//lib/action_dispatch/http/request.rb#342 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:342 def server_software; end - # source://actionpack//lib/action_dispatch/http/request.rb#386 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:386 def session=(session); end - # source://actionpack//lib/action_dispatch/http/request.rb#390 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:390 def session_options=(options); end - # Returns the unique request id, which is based on either the `X-Request-Id` - # header that can be generated by a firewall, load balancer, or web server, or - # by the RequestId middleware (which sets the `action_dispatch.request_id` - # environment variable). - # - # This unique ID is useful for tracing a request from end-to-end as part of - # logging or debugging. This relies on the Rack variable set by the - # ActionDispatch::RequestId middleware. - # - # source://actionpack//lib/action_dispatch/http/request.rb#331 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:339 def uuid; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def version; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def x_csrf_token; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def x_forwarded_for; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def x_forwarded_host; end - # source://actionpack//lib/action_dispatch/http/request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:50 def x_request_id; end - # Returns true if the `X-Requested-With` header contains "XMLHttpRequest" - # (case-insensitive), which may need to be manually added depending on the - # choice of JavaScript libraries and frameworks. - # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#300 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:303 def xhr?; end # Returns true if the `X-Requested-With` header contains "XMLHttpRequest" # (case-insensitive), which may need to be manually added depending on the # choice of JavaScript libraries and frameworks. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/request.rb#300 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:300 def xml_http_request?; end private - # source://actionpack//lib/action_dispatch/http/request.rb#497 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:497 def check_method(name); end - # source://actionpack//lib/action_dispatch/http/request.rb#505 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:505 def default_session; end - # source://actionpack//lib/action_dispatch/http/request.rb#535 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:535 def fallback_request_parameters; end - # source://actionpack//lib/action_dispatch/http/request.rb#509 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:509 def read_body_stream; end - # source://actionpack//lib/action_dispatch/http/request.rb#521 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:521 def reset_stream(body_stream); end class << self - # source://actionpack//lib/action_dispatch/http/request.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:60 def empty; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:23 def ignore_accept_header; end - # source://actionpack//lib/action_dispatch/http/mime_negotiation.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:23 def ignore_accept_header=(val); end - # source://actionpack//lib/action_dispatch/http/parameters.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:24 def parameter_parsers; end end end -# source://actionpack//lib/action_dispatch/http/request.rb#321 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:321 ActionDispatch::Request::ACTION_DISPATCH_REQUEST_ID = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/request.rb#36 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:36 ActionDispatch::Request::ENV_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/request.rb#136 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:136 ActionDispatch::Request::HTTP_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/request.rb#138 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:138 ActionDispatch::Request::HTTP_METHOD_LOOKUP = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/request.rb#34 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:34 ActionDispatch::Request::LOCALHOST = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/request.rb#82 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:82 class ActionDispatch::Request::PASS_NOT_FOUND class << self - # source://actionpack//lib/action_dispatch/http/request.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:83 def action(_); end - # source://actionpack//lib/action_dispatch/http/request.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:85 def action_encoding_template(action); end - # source://actionpack//lib/action_dispatch/http/request.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/http/request.rb:84 def call(_); end end end # HTTP methods from [RFC 2518: HTTP Extensions for Distributed Authoring -- WEBDAV](https://www.ietf.org/rfc/rfc2518.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#122 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:122 ActionDispatch::Request::RFC2518 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1](https://www.ietf.org/rfc/rfc2616.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#120 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:120 ActionDispatch::Request::RFC2616 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 3253: Versioning Extensions to WebDAV](https://www.ietf.org/rfc/rfc3253.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#124 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:124 ActionDispatch::Request::RFC3253 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 3648: WebDAV Ordered Collections Protocol](https://www.ietf.org/rfc/rfc3648.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#126 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:126 ActionDispatch::Request::RFC3648 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 3744: WebDAV Access Control Protocol](https://www.ietf.org/rfc/rfc3744.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#128 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:128 ActionDispatch::Request::RFC3744 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 4791: Calendaring Extensions to WebDAV](https://www.ietf.org/rfc/rfc4791.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#132 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:132 ActionDispatch::Request::RFC4791 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 5323: WebDAV SEARCH](https://www.ietf.org/rfc/rfc5323.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#130 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:130 ActionDispatch::Request::RFC5323 = T.let(T.unsafe(nil), Array) # HTTP methods from [RFC 5789: PATCH Method for HTTP](https://www.ietf.org/rfc/rfc5789.txt) # -# source://actionpack//lib/action_dispatch/http/request.rb#134 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:134 ActionDispatch::Request::RFC5789 = T.let(T.unsafe(nil), Array) # Session is responsible for lazily loading the session from store. # -# source://actionpack//lib/action_dispatch/request/session.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:10 class ActionDispatch::Request::Session - # @return [Session] a new instance of Session - # - # source://actionpack//lib/action_dispatch/request/session.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:76 def initialize(by, req, enabled: T.unsafe(nil)); end # Returns value of the key stored in the session or `nil` if the given key is # not found in the session. # - # source://actionpack//lib/action_dispatch/request/session.rb#114 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:114 def [](key); end # Writes given value to given key of the session. # - # source://actionpack//lib/action_dispatch/request/session.rb#154 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:154 def []=(key, value); end # Clears the session. # - # source://actionpack//lib/action_dispatch/request/session.rb#161 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:161 def clear; end # Deletes given key from the session. # - # source://actionpack//lib/action_dispatch/request/session.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:194 def delete(key); end - # source://actionpack//lib/action_dispatch/request/session.rb#99 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:99 def destroy; end # Returns the nested value specified by the sequence of keys, returning `nil` if # any intermediate step is `nil`. # - # source://actionpack//lib/action_dispatch/request/session.rb#127 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:127 def dig(*keys); end - # source://actionpack//lib/action_dispatch/request/session.rb#245 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:245 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#240 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:240 def empty?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:91 def enabled?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#230 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:230 def exists?; end # Returns value of the given key from the session, or raises `KeyError` if can't @@ -15874,79 +14872,52 @@ class ActionDispatch::Request::Session # end # # => :bar # - # source://actionpack//lib/action_dispatch/request/session.rb#213 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:213 def fetch(key, default = T.unsafe(nil), &block); end # Returns true if the session has the given key or false. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#134 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:134 def has_key?(key); end - # source://actionpack//lib/action_dispatch/request/session.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:87 def id; end - # source://actionpack//lib/action_dispatch/request/session.rb#249 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:249 def id_was; end - # Returns true if the session has the given key or false. - # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#134 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:139 def include?(key); end - # source://actionpack//lib/action_dispatch/request/session.rb#222 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:222 def inspect; end - # Returns true if the session has the given key or false. - # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#134 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:138 def key?(key); end # Returns keys of the session as Array. # - # source://actionpack//lib/action_dispatch/request/session.rb#142 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:142 def keys; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/request/session.rb#236 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:236 def loaded?; end - # Updates the session with given Hash. - # - # session.to_hash - # # => {"session_id"=>"e29b9ea315edf98aad94cc78c34cc9b2"} - # - # session.update({ "foo" => "bar" }) - # # => {"session_id"=>"e29b9ea315edf98aad94cc78c34cc9b2", "foo" => "bar"} - # - # session.to_hash - # # => {"session_id"=>"e29b9ea315edf98aad94cc78c34cc9b2", "foo" => "bar"} - # - # source://actionpack//lib/action_dispatch/request/session.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:191 def merge!(hash); end - # source://actionpack//lib/action_dispatch/request/session.rb#95 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:95 def options; end - # Writes given value to given key of the session. - # - # source://actionpack//lib/action_dispatch/request/session.rb#154 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:158 def store(key, value); end - # Returns the session as Hash. - # - # source://actionpack//lib/action_dispatch/request/session.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:171 def to_h; end # Returns the session as Hash. # - # source://actionpack//lib/action_dispatch/request/session.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:167 def to_hash; end # Updates the session with given Hash. @@ -15960,265 +14931,255 @@ class ActionDispatch::Request::Session # session.to_hash # # => {"session_id"=>"e29b9ea315edf98aad94cc78c34cc9b2", "foo" => "bar"} # - # source://actionpack//lib/action_dispatch/request/session.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:183 def update(hash); end # Returns values of the session as Array. # - # source://actionpack//lib/action_dispatch/request/session.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:148 def values; end private - # source://actionpack//lib/action_dispatch/request/session.rb#271 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:271 def load!; end - # source://actionpack//lib/action_dispatch/request/session.rb#267 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:267 def load_for_delete!; end - # source://actionpack//lib/action_dispatch/request/session.rb#255 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:255 def load_for_read!; end - # source://actionpack//lib/action_dispatch/request/session.rb#259 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:259 def load_for_write!; end class << self # Creates a session hash, merging the properties of the previous session if any. # - # source://actionpack//lib/action_dispatch/request/session.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:19 def create(store, req, default_options); end - # source://actionpack//lib/action_dispatch/request/session.rb#43 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:43 def delete(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:29 def disabled(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:35 def find(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#39 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:39 def set(req, session); end end end -# source://actionpack//lib/action_dispatch/request/session.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:11 class ActionDispatch::Request::Session::DisabledSessionError < ::StandardError; end -# source://actionpack//lib/action_dispatch/request/session.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:12 ActionDispatch::Request::Session::ENV_SESSION_KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/request/session.rb#13 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:13 ActionDispatch::Request::Session::ENV_SESSION_OPTIONS_KEY = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/request/session.rb#47 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:47 class ActionDispatch::Request::Session::Options - # @return [Options] a new instance of Options - # - # source://actionpack//lib/action_dispatch/request/session.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:56 def initialize(by, default_options); end - # source://actionpack//lib/action_dispatch/request/session.rb#61 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:61 def [](key); end - # source://actionpack//lib/action_dispatch/request/session.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:71 def []=(k, v); end - # source://actionpack//lib/action_dispatch/request/session.rb#65 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:65 def id(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:72 def to_hash; end - # source://actionpack//lib/action_dispatch/request/session.rb#73 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:73 def values_at(*args); end class << self - # source://actionpack//lib/action_dispatch/request/session.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:52 def find(req); end - # source://actionpack//lib/action_dispatch/request/session.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/request/session.rb:48 def set(req, options); end end end # Singleton object used to determine if an optional param wasn't specified. # -# source://actionpack//lib/action_dispatch/request/session.rb#16 +# pkg:gem/actionpack#lib/action_dispatch/request/session.rb:16 ActionDispatch::Request::Session::Unspecified = T.let(T.unsafe(nil), Object) -# source://actionpack//lib/action_dispatch/http/request.rb#58 +# pkg:gem/actionpack#lib/action_dispatch/http/request.rb:58 ActionDispatch::Request::TRANSFER_ENCODING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/request/utils.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:9 class ActionDispatch::Request::Utils - # source://actionpack//lib/action_dispatch/request/utils.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:10 def perform_deep_munge; end - # source://actionpack//lib/action_dispatch/request/utils.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:10 def perform_deep_munge=(val); end class << self - # source://actionpack//lib/action_dispatch/request/utils.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:31 def check_param_encoding(params); end - # source://actionpack//lib/action_dispatch/request/utils.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:12 def each_param_value(params, &block); end - # source://actionpack//lib/action_dispatch/request/utils.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:23 def normalize_encode_params(params); end - # source://actionpack//lib/action_dispatch/request/utils.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:10 def perform_deep_munge; end - # source://actionpack//lib/action_dispatch/request/utils.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:10 def perform_deep_munge=(val); end - # source://actionpack//lib/action_dispatch/request/utils.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:46 def set_binary_encoding(request, params, controller, action); end end end -# source://actionpack//lib/action_dispatch/request/utils.rb#85 +# pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:85 class ActionDispatch::Request::Utils::CustomParamEncoder class << self - # source://actionpack//lib/action_dispatch/request/utils.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:106 def action_encoding_template(request, controller, action); end - # source://actionpack//lib/action_dispatch/request/utils.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:101 def encode(request, params, controller, action); end - # source://actionpack//lib/action_dispatch/request/utils.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:86 def encode_for_template(params, encoding_template); end end end # Remove nils from the params hash. # -# source://actionpack//lib/action_dispatch/request/utils.rb#77 +# pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:77 class ActionDispatch::Request::Utils::NoNilParamEncoder < ::ActionDispatch::Request::Utils::ParamEncoder class << self - # source://actionpack//lib/action_dispatch/request/utils.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:78 def handle_array(params); end end end -# source://actionpack//lib/action_dispatch/request/utils.rb#50 +# pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:50 class ActionDispatch::Request::Utils::ParamEncoder class << self - # source://actionpack//lib/action_dispatch/request/utils.rb#71 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:71 def handle_array(params); end # Convert nested Hash to HashWithIndifferentAccess. # - # source://actionpack//lib/action_dispatch/request/utils.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/request/utils.rb:52 def normalize_encode_params(params); end end end -# source://actionpack//lib/action_dispatch/middleware/cookies.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:12 module ActionDispatch::RequestCookieMethods - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:50 def authenticated_encrypted_cookie_salt; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:13 def cookie_jar; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:30 def cookie_jar=(jar); end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:78 def cookies_digest; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#82 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:82 def cookies_rotations; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:74 def cookies_same_site_protection; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:70 def cookies_serializer; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:58 def encrypted_cookie_cipher; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:42 def encrypted_cookie_salt; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:46 def encrypted_signed_cookie_salt; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:26 def have_cookie_jar?; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:34 def key_generator; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:66 def secret_key_base; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#62 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:62 def signed_cookie_digest; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:38 def signed_cookie_salt; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:54 def use_authenticated_cookie_encryption; end - # source://actionpack//lib/action_dispatch/middleware/cookies.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/middleware/cookies.rb:86 def use_cookies_with_metadata; end end -# source://actionpack//lib/action_dispatch/testing/request_encoder.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:9 class ActionDispatch::RequestEncoder - # @return [RequestEncoder] a new instance of RequestEncoder - # - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:21 def initialize(mime_name, param_encoder, response_parser, content_type); end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:34 def accept_header; end - # Returns the value of attribute content_type. - # - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:19 def content_type; end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:38 def encode_params(params); end - # Returns the value of attribute response_parser. - # - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:19 def response_parser; end class << self - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#47 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:47 def encoder(name); end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#42 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:42 def parser(content_type); end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:51 def register_encoder(mime_name, param_encoder: T.unsafe(nil), response_parser: T.unsafe(nil), content_type: T.unsafe(nil)); end end end -# source://actionpack//lib/action_dispatch/testing/request_encoder.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:10 class ActionDispatch::RequestEncoder::IdentityEncoder - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:12 def accept_header; end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:11 def content_type; end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:13 def encode_params(params); end - # source://actionpack//lib/action_dispatch/testing/request_encoder.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/testing/request_encoder.rb:14 def response_parser; end end @@ -16238,22 +15199,20 @@ end # The unique request id can be used to trace a request end-to-end and would # typically end up being part of log files from multiple pieces of the stack. # -# source://actionpack//lib/action_dispatch/middleware/request_id.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:24 class ActionDispatch::RequestId - # @return [RequestId] a new instance of RequestId - # - # source://actionpack//lib/action_dispatch/middleware/request_id.rb#25 + # pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:25 def initialize(app, header:); end - # source://actionpack//lib/action_dispatch/middleware/request_id.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:31 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/request_id.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:46 def internal_request_id; end - # source://actionpack//lib/action_dispatch/middleware/request_id.rb#38 + # pkg:gem/actionpack#lib/action_dispatch/middleware/request_id.rb:38 def make_request_id(request_id); end end @@ -16285,61 +15244,57 @@ end # end # end # -# source://actionpack//lib/action_dispatch/http/response.rb#38 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:38 class ActionDispatch::Response include ::Rack::Response::Helpers include ::ActionDispatch::Http::FilterRedirect include ::ActionDispatch::Http::Cache::Response include ::MonitorMixin - # @return [Response] a new instance of Response - # @yield [_self] - # @yieldparam _self [ActionDispatch::Response] the object that the method was called on - # - # source://actionpack//lib/action_dispatch/http/response.rb#197 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:197 def initialize(status = T.unsafe(nil), headers = T.unsafe(nil), body = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/response.rb#89 - def [](*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:89 + def [](*, **, &); end - # source://actionpack//lib/action_dispatch/http/response.rb#89 - def []=(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:89 + def []=(*, **, &); end # Aliasing these off because AD::Http::Cache::Response defines them. # - # source://rack/3.2.7/lib/rack/response.rb#290 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:107 def _cache_control; end - # source://rack/3.2.7/lib/rack/response.rb#294 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:108 def _cache_control=(value); end - # source://actionpack//lib/action_dispatch/http/response.rb#433 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:433 def abort; end - # source://actionpack//lib/action_dispatch/http/response.rb#223 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:223 def await_commit; end - # source://actionpack//lib/action_dispatch/http/response.rb#229 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:229 def await_sent; end # Returns the content of the response as a string. This contains the contents of # any calls to `render`. # - # source://actionpack//lib/action_dispatch/http/response.rb#356 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:356 def body; end # Allows you to manually set or override the response body. # - # source://actionpack//lib/action_dispatch/http/response.rb#371 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:371 def body=(body); end - # source://actionpack//lib/action_dispatch/http/response.rb#420 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:420 def body_parts; end # The charset of the response. HTML wants to know the encoding of the content # you're giving them, so we need to send that along. # - # source://actionpack//lib/action_dispatch/http/response.rb#326 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:326 def charset; end # Sets the HTTP character set. In case of `nil` parameter it sets the charset to @@ -16348,28 +15303,26 @@ class ActionDispatch::Response # response.charset = 'utf-16' # => 'utf-16' # response.charset = nil # => 'utf-8' # - # source://actionpack//lib/action_dispatch/http/response.rb#315 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:315 def charset=(charset); end - # source://actionpack//lib/action_dispatch/http/response.rb#429 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:429 def close; end # Returns a string to ensure compatibility with `Net::HTTPResponse`. # - # source://actionpack//lib/action_dispatch/http/response.rb#337 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:337 def code; end - # source://actionpack//lib/action_dispatch/http/response.rb#233 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:233 def commit!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#257 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:257 def committed?; end # Content type of response. # - # source://actionpack//lib/action_dispatch/http/response.rb#295 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:295 def content_type; end # Sets the HTTP response's content MIME type. For example, in the controller you @@ -16381,57 +15334,41 @@ class ActionDispatch::Response # character set information will also be included in the content type # information. # - # source://actionpack//lib/action_dispatch/http/response.rb#285 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:285 def content_type=(content_type); end # Returns the response cookies, converted to a Hash of (name => value) pairs # # assert_equal 'AuthorOfNewPage', r.cookies['author'] # - # source://actionpack//lib/action_dispatch/http/response.rb#456 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:456 def cookies; end - # source://actionpack//lib/action_dispatch/http/response.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:102 def default_charset; end - # source://actionpack//lib/action_dispatch/http/response.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:102 def default_charset=(val); end - # source://actionpack//lib/action_dispatch/http/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:103 def default_headers; end - # source://actionpack//lib/action_dispatch/http/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:103 def default_headers=(val); end - # source://actionpack//lib/action_dispatch/http/response.rb#221 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:221 def delete_header(key); end - # source://actionpack//lib/action_dispatch/http/response.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:91 def each(&block); end - # source://actionpack//lib/action_dispatch/http/response.rb#219 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:219 def get_header(key); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#218 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:218 def has_header?(key); end - # The headers for the response. - # - # header["Content-Type"] # => "text/plain" - # header["Content-Type"] = "application/json" - # header["Content-Type"] # => "application/json" - # - # Also aliased as `headers`. - # - # headers["Content-Type"] # => "text/plain" - # headers["Content-Type"] = "application/json" - # headers["Content-Type"] # => "application/json" - # - # Also aliased as `header` for compatibility. - # - # source://actionpack//lib/action_dispatch/http/response.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:87 def header; end # The headers for the response. @@ -16448,12 +15385,12 @@ class ActionDispatch::Response # # Also aliased as `header` for compatibility. # - # source://actionpack//lib/action_dispatch/http/response.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:85 def headers; end # Media type of response. # - # source://actionpack//lib/action_dispatch/http/response.rb#300 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:300 def media_type; end # Returns the corresponding message for the current HTTP status code: @@ -16464,91 +15401,74 @@ class ActionDispatch::Response # response.status = 404 # response.message # => "Not Found" # - # source://actionpack//lib/action_dispatch/http/response.rb#349 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:349 def message; end - # Turns the Response into a Rack-compatible array of the status, headers, and - # body. Allows explicit splatting: - # - # status, headers, body = *response - # - # source://actionpack//lib/action_dispatch/http/response.rb#447 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:451 def prepare!; end # The location header we'll be responding with. # - # source://rack/3.2.7/lib/rack/response.rb#262 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:427 def redirect_url; end # The request that the response is responding to. # - # source://actionpack//lib/action_dispatch/http/response.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:67 def request; end # The request that the response is responding to. # - # source://actionpack//lib/action_dispatch/http/response.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:67 def request=(_arg0); end - # source://actionpack//lib/action_dispatch/http/response.rb#416 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:416 def reset_body!; end # The response code of the request. # - # source://actionpack//lib/action_dispatch/http/response.rb#332 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:332 def response_code; end # Send the file stored at `path` as the response body. # - # source://actionpack//lib/action_dispatch/http/response.rb#411 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:411 def send_file(path); end - # source://actionpack//lib/action_dispatch/http/response.rb#241 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:241 def sending!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#256 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:256 def sending?; end - # source://actionpack//lib/action_dispatch/http/response.rb#304 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:304 def sending_file=(v); end - # source://actionpack//lib/action_dispatch/http/response.rb#249 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:249 def sent!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#258 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:258 def sent?; end - # source://actionpack//lib/action_dispatch/http/response.rb#220 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:220 def set_header(key, v); end # The HTTP status code. # - # source://actionpack//lib/action_dispatch/http/response.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:70 def status; end # Sets the HTTP status code. # - # source://actionpack//lib/action_dispatch/http/response.rb#273 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:273 def status=(status); end - # Returns the corresponding message for the current HTTP status code: - # - # response.status = 200 - # response.message # => "OK" - # - # response.status = 404 - # response.message # => "Not Found" - # - # source://actionpack//lib/action_dispatch/http/response.rb#349 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:352 def status_message; end # The underlying body, as a streamable object. # - # source://actionpack//lib/action_dispatch/http/response.rb#195 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:195 def stream; end # Turns the Response into a Rack-compatible array of the status, headers, and @@ -16556,154 +15476,143 @@ class ActionDispatch::Response # # status, headers, body = *response # - # source://actionpack//lib/action_dispatch/http/response.rb#447 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:447 def to_a; end - # source://actionpack//lib/action_dispatch/http/response.rb#366 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:366 def write(string); end private - # source://actionpack//lib/action_dispatch/http/response.rb#522 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:522 def assign_default_content_type_and_charset!; end - # source://actionpack//lib/action_dispatch/http/response.rb#500 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:500 def before_committed; end - # source://actionpack//lib/action_dispatch/http/response.rb#508 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:508 def before_sending; end - # source://actionpack//lib/action_dispatch/http/response.rb#518 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:518 def build_buffer(response, body); end - # source://actionpack//lib/action_dispatch/http/response.rb#574 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:574 def handle_no_content!; end - # source://actionpack//lib/action_dispatch/http/response.rb#480 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:480 def parse_content_type(content_type); end # Small internal convenience method to get the parsed version of the current # content type header. # - # source://actionpack//lib/action_dispatch/http/response.rb#490 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:490 def parsed_content_type_header; end - # source://actionpack//lib/action_dispatch/http/response.rb#581 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:581 def rack_response(status, headers); end - # source://actionpack//lib/action_dispatch/http/response.rb#494 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:494 def set_content_type(content_type, charset); end class << self - # source://actionpack//lib/action_dispatch/http/response.rb#185 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:185 def create(status = T.unsafe(nil), headers = T.unsafe(nil), body = T.unsafe(nil), default_headers: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/response.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:102 def default_charset; end - # source://actionpack//lib/action_dispatch/http/response.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:102 def default_charset=(val); end - # source://actionpack//lib/action_dispatch/http/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:103 def default_headers; end - # source://actionpack//lib/action_dispatch/http/response.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:103 def default_headers=(val); end - # source://actionpack//lib/action_dispatch/http/response.rb#190 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:190 def merge_default_headers(original, default); end - # source://actionpack//lib/action_dispatch/http/response.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:51 def rack_status_code(status); end end end -# source://actionpack//lib/action_dispatch/http/response.rb#114 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:114 class ActionDispatch::Response::Buffer - # @return [Buffer] a new instance of Buffer - # - # source://actionpack//lib/action_dispatch/http/response.rb#115 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:115 def initialize(response, buf); end - # @raise [IOError] - # - # source://actionpack//lib/action_dispatch/http/response.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:155 def <<(string); end - # source://actionpack//lib/action_dispatch/http/response.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:167 def abort; end - # source://actionpack//lib/action_dispatch/http/response.rb#140 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:140 def body; end - # source://actionpack//lib/action_dispatch/http/response.rb#170 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:170 def close; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#175 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:175 def closed?; end - # source://actionpack//lib/action_dispatch/http/response.rb#157 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:157 def each(&block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#124 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:124 def respond_to?(method, include_private = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/response.rb#132 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:132 def to_ary; end - # @raise [IOError] - # - # source://actionpack//lib/action_dispatch/http/response.rb#148 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:148 def write(string); end private - # source://actionpack//lib/action_dispatch/http/response.rb#180 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:180 def each_chunk(&block); end end -# source://actionpack//lib/action_dispatch/http/response.rb#122 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:122 ActionDispatch::Response::Buffer::BODY_METHODS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/response.rb#98 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:98 ActionDispatch::Response::CONTENT_TYPE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/response.rb#474 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:474 ActionDispatch::Response::CONTENT_TYPE_PARSER = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/http/response.rb#471 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 class ActionDispatch::Response::ContentTypeHeader < ::Struct - # Returns the value of attribute charset - # - # @return [Object] the current value of charset + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def charset; end - # Sets the attribute charset - # - # @param value [Object] the value to set the attribute charset to. - # @return [Object] the newly set value + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def charset=(_); end - # Returns the value of attribute mime_type - # - # @return [Object] the current value of mime_type + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def mime_type; end - # Sets the attribute mime_type - # - # @param value [Object] the value to set the attribute mime_type to. - # @return [Object] the newly set value + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def mime_type=(_); end class << self + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def [](*_arg0); end + + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def inspect; end + + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def keyword_init?; end + + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def members; end + + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:471 def new(*_arg0); end end end @@ -16712,79 +15621,71 @@ end # will usually intercept the response and uses the path directly, so there is no # reason to open the file. # -# source://actionpack//lib/action_dispatch/http/response.rb#389 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:389 class ActionDispatch::Response::FileBody - # @return [FileBody] a new instance of FileBody - # - # source://actionpack//lib/action_dispatch/http/response.rb#392 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:392 def initialize(path); end - # source://actionpack//lib/action_dispatch/http/response.rb#396 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:396 def body; end # Stream the file's contents if Rack::Sendfile isn't present. # - # source://actionpack//lib/action_dispatch/http/response.rb#401 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:401 def each; end - # source://actionpack//lib/action_dispatch/http/response.rb#390 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:390 def to_path; end end # To be deprecated: # -# source://actionpack//lib/action_dispatch/http/response.rb#64 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:64 ActionDispatch::Response::Header = Rack::Headers -# source://actionpack//lib/action_dispatch/http/response.rb#42 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:42 ActionDispatch::Response::Headers = Rack::Headers -# source://actionpack//lib/action_dispatch/http/response.rb#100 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:100 ActionDispatch::Response::NO_CONTENT_CODES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/http/response.rb#472 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:472 ActionDispatch::Response::NullContentTypeHeader = T.let(T.unsafe(nil), ActionDispatch::Response::ContentTypeHeader) -# source://actionpack//lib/action_dispatch/http/response.rb#530 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:530 class ActionDispatch::Response::RackBody - # @return [RackBody] a new instance of RackBody - # - # source://actionpack//lib/action_dispatch/http/response.rb#531 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:531 def initialize(response); end - # source://actionpack//lib/action_dispatch/http/response.rb#543 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:543 def body; end - # source://actionpack//lib/action_dispatch/http/response.rb#565 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:565 def call(*arguments, &block); end - # source://actionpack//lib/action_dispatch/http/response.rb#537 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:537 def close; end - # source://actionpack//lib/action_dispatch/http/response.rb#561 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:561 def each(*args, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/response.rb#549 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:549 def respond_to?(method, include_private = T.unsafe(nil)); end - # Returns the value of attribute response. - # - # source://actionpack//lib/action_dispatch/http/response.rb#535 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:535 def response; end - # source://actionpack//lib/action_dispatch/http/response.rb#557 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:557 def to_ary; end - # source://actionpack//lib/action_dispatch/http/response.rb#569 + # pkg:gem/actionpack#lib/action_dispatch/http/response.rb:569 def to_path; end end -# source://actionpack//lib/action_dispatch/http/response.rb#547 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:547 ActionDispatch::Response::RackBody::BODY_METHODS = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/response.rb#99 +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:99 ActionDispatch::Response::SET_COOKIE = T.let(T.unsafe(nil), String) # The routing module provides URL rewriting in native Ruby. It's a way to @@ -17030,149 +15931,135 @@ ActionDispatch::Response::SET_COOKIE = T.let(T.unsafe(nil), String) # Target a specific controller with `-c`, or grep routes using `-g`. Useful in # conjunction with `--expanded` which displays routes vertically. # -# source://actionpack//lib/action_dispatch/routing.rb#248 +# pkg:gem/actionpack#lib/action_dispatch/routing.rb:248 module ActionDispatch::Routing extend ::ActiveSupport::Autoload end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#155 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:155 module ActionDispatch::Routing::ConsoleFormatter; end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#156 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:156 class ActionDispatch::Routing::ConsoleFormatter::Base - # @return [Base] a new instance of Base - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#157 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:157 def initialize; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#171 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:171 def header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#174 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:174 def no_routes(routes, filter); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#161 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:161 def result; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#168 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:168 def section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#165 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:165 def section_title(title); end end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#228 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:228 class ActionDispatch::Routing::ConsoleFormatter::Expanded < ::ActionDispatch::Routing::ConsoleFormatter::Base - # @return [Expanded] a new instance of Expanded - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#229 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:229 def initialize(width: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#238 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:238 def section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#234 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:234 def section_title(title); end private - # source://actionpack//lib/action_dispatch/routing/inspector.rb#243 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:243 def draw_expanded_section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#258 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:258 def route_header(index:); end end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#192 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:192 class ActionDispatch::Routing::ConsoleFormatter::Sheet < ::ActionDispatch::Routing::ConsoleFormatter::Base - # source://actionpack//lib/action_dispatch/routing/inspector.rb#201 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:201 def header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#197 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:197 def section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#193 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:193 def section_title(title); end private - # source://actionpack//lib/action_dispatch/routing/inspector.rb#215 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:215 def draw_header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:206 def draw_section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#221 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:221 def widths(routes); end end -# source://actionpack//lib/action_dispatch/routing/inspector.rb#263 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:263 class ActionDispatch::Routing::ConsoleFormatter::Unused < ::ActionDispatch::Routing::ConsoleFormatter::Sheet - # source://actionpack//lib/action_dispatch/routing/inspector.rb#264 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:264 def header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#272 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:272 def no_routes(routes, filter); end end -# source://actionpack//lib/action_dispatch/routing/endpoint.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:7 class ActionDispatch::Routing::Endpoint - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:11 def app; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#8 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:8 def dispatcher?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:14 def engine?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:10 def matches?(req); end - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:12 def rack_app; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/endpoint.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/routing/endpoint.rb:9 def redirect?; end end -# source://actionpack//lib/action_dispatch/routing.rb#260 +# pkg:gem/actionpack#lib/action_dispatch/routing.rb:260 ActionDispatch::Routing::HTTP_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/inspector.rb#285 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:285 class ActionDispatch::Routing::HtmlTableFormatter - # @return [HtmlTableFormatter] a new instance of HtmlTableFormatter - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#286 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:286 def initialize(view); end # The header is part of the HTML page, so we don't construct it here. # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#300 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:300 def header(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#303 - def no_routes(*_arg0); end + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:303 + def no_routes(*); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#316 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:316 def result; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#295 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:295 def section(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#291 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:291 def section_title(title); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#14 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:14 class ActionDispatch::Routing::Mapper include ::ActionDispatch::Routing::Mapper::Base include ::ActionDispatch::Routing::Mapper::HttpHelpers @@ -17182,57 +16069,51 @@ class ActionDispatch::Routing::Mapper include ::ActionDispatch::Routing::Mapper::Resources include ::ActionDispatch::Routing::Mapper::CustomUrls - # @return [Mapper] a new instance of Mapper - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2378 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2378 def initialize(set); end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:27 def backtrace_cleaner; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#27 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:27 def backtrace_cleaner=(val); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#412 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:412 def normalize_name(name); end # Invokes Journey::Router::Utils.normalize_path, then ensures that /(:locale) # becomes (/:locale). Except for root cases, where the former is the correct # one. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#397 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:397 def normalize_path(path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:26 def route_source_locations; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:26 def route_source_locations=(val); end end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#15 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:15 class ActionDispatch::Routing::Mapper::BacktraceCleaner < ::ActiveSupport::BacktraceCleaner - # @return [BacktraceCleaner] a new instance of BacktraceCleaner - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#16 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:16 def initialize; end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#416 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:416 module ActionDispatch::Routing::Mapper::Base - # source://actionpack//lib/action_dispatch/routing/mapper.rb#640 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:643 def default_url_options(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#640 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:640 def default_url_options=(options); end # Query if the following named route was already defined. # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#652 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:652 def has_named_route?(name); end # Matches a URL pattern to one or more routes. @@ -17294,13 +16175,10 @@ module ActionDispatch::Routing::Mapper::Base # Any options not seen here are passed on as params with the URL. # # :controller - # : The route's controller. # # :action - # : The route's action. # # :param - # : Overrides the default resource identifier `:id` (name of the dynamic # segment used to generate the routes). You can access that segment from # your controller using `params[<:param>]`. In your router: # @@ -17329,10 +16207,8 @@ module ActionDispatch::Routing::Mapper::Base # user_path(user) # => "/users/Phusion" # # :path - # : The path prefix for the routes. # # :module - # : The namespace for :controller. # # match 'path', to: 'c#a', module: 'sekret', controller: 'posts', via: :get # # => Sekret::PostsController @@ -17340,17 +16216,14 @@ module ActionDispatch::Routing::Mapper::Base # See `Scoping#namespace` for its scope equivalent. # # :as - # : The name used to generate routing helpers. # # :via - # : Allowed HTTP verb(s) for route. # # match 'path', to: 'c#a', via: :get # match 'path', to: 'c#a', via: [:get, :post] # match 'path', to: 'c#a', via: :all # # :to - # : Points to a `Rack` endpoint. Can be an object that responds to `call` or a # string representing a controller's action. # # match 'path', to: 'controller#action', via: :get @@ -17358,7 +16231,6 @@ module ActionDispatch::Routing::Mapper::Base # match 'path', to: RackApp, via: :get # # :on - # : Shorthand for wrapping routes in a specific RESTful context. Valid values # are `:member`, `:collection`, and `:new`. Only use within `resource(s)` # block. For example: # @@ -17375,7 +16247,6 @@ module ActionDispatch::Routing::Mapper::Base # end # # :constraints - # : Constrains parameters with a hash of regular expressions or an object that # responds to `matches?`. In addition, constraints other than path can also # be specified with any object that responds to `===` (e.g. String, Array, # Range, etc.). @@ -17392,7 +16263,6 @@ module ActionDispatch::Routing::Mapper::Base # See `Scoping#constraints` for more examples with its scope equivalent. # # :defaults - # : Sets defaults for parameters # # # Sets params[:format] to 'jpg' by default # match 'path', to: 'c#a', defaults: { format: 'jpg' }, via: :get @@ -17400,17 +16270,15 @@ module ActionDispatch::Routing::Mapper::Base # See `Scoping#defaults` for its scope equivalent. # # :anchor - # : Boolean to anchor a `match` pattern. Default is true. When set to false, # the pattern matches any request prefixed with the given path. # # # Matches any request starting with 'path' # match 'path', to: 'c#a', anchor: false, via: :get # # :format - # : Allows you to specify the default value for optional `format` segment or # disable it by supplying `false`. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#592 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:592 def match(path, options = T.unsafe(nil)); end # Mount a Rack-based application to be used within the application. @@ -17429,25 +16297,21 @@ module ActionDispatch::Routing::Mapper::Base # This will generate the `exciting_path` and `exciting_url` helpers which can be # used to navigate to this mounted app. # - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#610 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:610 def mount(app, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#645 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:645 def with_default_scope(scope, &block); end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#661 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:661 def app_name(app, rails_app); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#670 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:670 def define_generate_prefix(app, name); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#657 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:657 def rails_app?(app); end end @@ -17472,7 +16336,7 @@ end # concerns :commentable # end # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2091 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2091 module ActionDispatch::Routing::Mapper::Concerns # Define a routing concern using a name. # @@ -17529,7 +16393,7 @@ module ActionDispatch::Routing::Mapper::Concerns # Any routing helpers can be used inside a concern. If using a callable, they're # accessible from the Mapper that's passed to `call`. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2146 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2146 def concern(name, callable = T.unsafe(nil), &block); end # Use the named concerns @@ -17544,53 +16408,43 @@ module ActionDispatch::Routing::Mapper::Concerns # concerns :commentable # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2162 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2162 def concerns(*args); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#29 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:29 class ActionDispatch::Routing::Mapper::Constraints < ::ActionDispatch::Routing::Endpoint - # @return [Constraints] a new instance of Constraints - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:35 def initialize(app, constraints, strategy); end - # Returns the value of attribute app. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:30 def app; end - # Returns the value of attribute constraints. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:30 def constraints; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:50 def dispatcher?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:52 def matches?(req); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#59 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:59 def serve(req); end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:66 def constraint_args(constraint, request); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#33 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:33 ActionDispatch::Routing::Mapper::Constraints::CALL = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#32 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:32 ActionDispatch::Routing::Mapper::Constraints::SERVE = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2174 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2174 module ActionDispatch::Routing::Mapper::CustomUrls # Define custom URL helpers that will be added to the application's routes. This # allows you to override and/or replace the default behavior of routing helpers, @@ -17642,7 +16496,7 @@ module ActionDispatch::Routing::Mapper::CustomUrls # NOTE: The `direct` method can't be used inside of a scope block such as # `namespace` or `scope` and will raise an error if it detects that it is. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2224 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2224 def direct(name, options = T.unsafe(nil), &block); end # Define custom polymorphic mappings of models to URLs. This alters the behavior @@ -17690,11 +16544,11 @@ module ActionDispatch::Routing::Mapper::CustomUrls # NOTE: The `resolve` method can't be used inside of a scope block such as # `namespace` or `scope` and will raise an error if it detects that it is. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2276 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2276 def resolve(*args, &block); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#705 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:705 module ActionDispatch::Routing::Mapper::HttpHelpers # Define a route that recognizes HTTP CONNECT (and GET) requests. More # specifically this recognizes HTTP/1 protocol upgrade requests and HTTP/2 @@ -17703,7 +16557,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # connect 'live', to: 'live#index' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#760 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:760 def connect(*args, &block); end # Define a route that only recognizes HTTP DELETE. For supported arguments, see @@ -17711,7 +16565,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # delete 'broccoli', to: 'food#broccoli' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#742 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:742 def delete(*args, &block); end # Define a route that only recognizes HTTP GET. For supported arguments, see @@ -17719,7 +16573,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # get 'bacon', to: 'food#bacon' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#710 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:710 def get(*args, &block); end # Define a route that only recognizes HTTP OPTIONS. For supported arguments, see @@ -17727,7 +16581,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # options 'carrots', to: 'food#carrots' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#750 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:750 def options(*args, &block); end # Define a route that only recognizes HTTP PATCH. For supported arguments, see @@ -17735,7 +16589,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # patch 'bacon', to: 'food#bacon' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#726 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:726 def patch(*args, &block); end # Define a route that only recognizes HTTP POST. For supported arguments, see @@ -17743,7 +16597,7 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # post 'bacon', to: 'food#bacon' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#718 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:718 def post(*args, &block); end # Define a route that only recognizes HTTP PUT. For supported arguments, see @@ -17751,153 +16605,131 @@ module ActionDispatch::Routing::Mapper::HttpHelpers # # put 'bacon', to: 'food#bacon' # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#734 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:734 def put(*args, &block); end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#765 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:765 def map_method(method, args, &block); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#83 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:83 class ActionDispatch::Routing::Mapper::Mapping - # @return [Mapping] a new instance of Mapping - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#132 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:132 def initialize(set:, ast:, controller:, default_action:, to:, formatted:, via:, options_constraints:, anchor:, scope_params:, options:); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#190 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:190 def application; end - # Returns the value of attribute ast. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def ast; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:194 def conditions; end - # Returns the value of attribute default_action. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def default_action; end - # Returns the value of attribute default_controller. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def default_controller; end - # Returns the value of attribute defaults. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def defaults; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#183 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:183 def make_route(name, precedence); end - # Returns the value of attribute path. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def path; end - # Returns the value of attribute required_defaults. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def required_defaults; end - # Returns the value of attribute requirements. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def requirements; end - # Returns the value of attribute scope_options. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def scope_options; end - # Returns the value of attribute to. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#87 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:87 def to; end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#334 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:334 def add_controller_module(controller, modyoule); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#295 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:295 def app(blocks); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#353 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:353 def blocks(callable_constraint); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#198 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:198 def build_conditions(current_conditions, request_class); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#307 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:307 def check_controller_and_action(path_params, controller, action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#322 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:322 def check_part(name, part, path_params, hash); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#360 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:360 def constraints(options, path_params); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#374 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:374 def dispatcher(raise_on_name_error); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#213 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:213 def intern(object); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#291 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:291 def normalize_defaults(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#259 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:259 def normalize_format(formatted); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#217 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:217 def normalize_options!(options, path_params, modyoule); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#207 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:207 def request_method; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#378 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:378 def route_source_location; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#253 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:253 def split_constraints(path_params, constraints); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#346 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:346 def translate_controller(controller); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#275 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:275 def verify_regexp_requirements(requirements, wildcard_options); end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#90 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:90 def build(scope, set, ast, controller, default_action, to, via, formatted, options_constraints, anchor, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:104 def check_via(via); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#116 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:116 def normalize_path(path, format); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#128 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:128 def optional_format?(path, format); end end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#84 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:84 ActionDispatch::Routing::Mapper::Mapping::ANCHOR_CHARACTERS_REGEX = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#181 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:181 ActionDispatch::Routing::Mapper::Mapping::JOINED_SEPARATORS = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#85 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:85 ActionDispatch::Routing::Mapper::Mapping::OPTIONAL_FORMAT_REGEX = T.let(T.unsafe(nil), Regexp) # Resource routing allows you to quickly declare all of the common routes for a @@ -17938,7 +16770,7 @@ ActionDispatch::Routing::Mapper::Mapping::OPTIONAL_FORMAT_REGEX = T.let(T.unsafe # # This allows any character other than a slash as part of your `:id`. # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1157 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1157 module ActionDispatch::Routing::Mapper::Resources # To add a route to the collection: # @@ -17952,7 +16784,7 @@ module ActionDispatch::Routing::Mapper::Resources # and route to the search action of `PhotosController`. It will also create the # `search_photos_url` and `search_photos_path` route helpers. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1559 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1559 def collection(&block); end # Loads another routes file with the given `name` located inside the @@ -17978,7 +16810,7 @@ module ActionDispatch::Routing::Mapper::Resources # even those with a few hundred routes — it's easier for developers to have a # single routes file. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1668 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1668 def draw(name); end # Matches a URL pattern to one or more routes. For more information, see @@ -17987,7 +16819,7 @@ module ActionDispatch::Routing::Mapper::Resources # match 'path', to: 'controller#action', via: :post # match 'path', 'otherpath', on: :member, via: :get # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1689 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1689 def match(path, *rest, &block); end # To add a member route, add a member block into the resource block: @@ -18002,18 +16834,18 @@ module ActionDispatch::Routing::Mapper::Resources # action of `PhotosController`. It will also create the `preview_photo_url` and # `preview_photo_path` helpers. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1580 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1580 def member(&block); end # See ActionDispatch::Routing::Mapper::Scoping#namespace. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1627 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1627 def namespace(path, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1606 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1606 def nested(&block); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1596 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1596 def new(&block); end # Sometimes, you have a resource that clients always look up without referencing @@ -18046,7 +16878,7 @@ module ActionDispatch::Routing::Mapper::Resources # ### Options # Takes same options as [resources](rdoc-ref:#resources) # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1348 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1348 def resource(*resources, &block); end # In Rails, a resourceful route provides a mapping between HTTP verbs and URLs @@ -18086,7 +16918,6 @@ module ActionDispatch::Routing::Mapper::Resources # Takes same options as [match](rdoc-ref:Base#match) as well as: # # :path_names - # : Allows you to change the segment component of the `edit` and `new` # actions. Actions not specified are not changed. # # resources :posts, path_names: { new: "brand_new" } @@ -18094,7 +16925,6 @@ module ActionDispatch::Routing::Mapper::Resources # The above example will now change /posts/new to /posts/brand_new. # # :path - # : Allows you to change the path prefix for the resource. # # resources :posts, path: 'postings' # @@ -18102,19 +16932,16 @@ module ActionDispatch::Routing::Mapper::Resources # /posts. # # :only - # : Only generate routes for the given actions. # # resources :cows, only: :show # resources :cows, only: [:show, :index] # # :except - # : Generate all routes except for the given actions. # # resources :cows, except: :show # resources :cows, except: [:show, :index] # # :shallow - # : Generates shallow routes for nested resource(s). When placed on a parent # resource, generates shallow routes for all nested resources. # # resources :posts, shallow: true do @@ -18136,7 +16963,6 @@ module ActionDispatch::Routing::Mapper::Resources # parameter. # # :shallow_path - # : Prefixes nested shallow routes with the specified path. # # scope shallow_path: "sekret" do # resources :posts do @@ -18156,7 +16982,6 @@ module ActionDispatch::Routing::Mapper::Resources # comment DELETE /sekret/comments/:id(.:format) # # :shallow_prefix - # : Prefixes nested shallow route names with specified prefix. # # scope shallow_prefix: "sekret" do # resources :posts do @@ -18176,11 +17001,9 @@ module ActionDispatch::Routing::Mapper::Resources # sekret_comment DELETE /comments/:id(.:format) # # :format - # : Allows you to specify the default value for optional `format` segment or # disable it by supplying `false`. # # :param - # : Allows you to override the default param name of `:id` in the URL. # # # ### Examples @@ -18191,10 +17014,10 @@ module ActionDispatch::Routing::Mapper::Resources # # resource actions are at /admin/posts. # resources :posts, path: "admin/posts" # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1518 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1518 def resources(*resources, &block); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1315 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1315 def resources_path_names(options); end # You can specify what Rails should route "/" to with the root method: @@ -18211,262 +17034,224 @@ module ActionDispatch::Routing::Mapper::Resources # means it will be matched first. As this is the most popular route of most # Rails applications, this is beneficial. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1736 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1736 def root(path, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1635 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1635 def shallow; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1642 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1642 def shallow?; end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1800 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1800 def action_options?(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1897 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1897 def action_path(name); end - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2038 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2038 def add_route(action, controller, options, _path, to, via, formatted, anchor, options_constraints); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1951 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1951 def api_only?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1814 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1814 def applicable_actions_for(method); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1795 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1795 def apply_action_options(method, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1761 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1761 def apply_common_behavior_for(method, resources, options, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1873 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1873 def canonical_action?(action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2023 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2023 def decomposed_match(path, controller, options, _path, to, via, formatted, anchor, options_constraints); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2008 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2008 def get_to_from_path(path, to, action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1962 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1962 def map_match(paths, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2065 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2065 def match_root_route(options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1913 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1913 def name_for_action(as, action); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1850 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1850 def nested_options; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1831 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1831 def nested_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1869 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1869 def param_constraint; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1865 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1865 def param_constraint?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1757 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1757 def parent_resource; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1887 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1887 def path_for_action(action, path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1955 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1955 def path_scope(path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1901 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1901 def prefix_name_for_action(as, action); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1827 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1827 def resource_method_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1842 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1842 def resource_scope(resource, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1823 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1823 def resource_scope?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1804 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1804 def scope_action_options(method); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1939 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1939 def set_member_mappings_for_resource; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1859 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1859 def shallow_nesting_depth; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1877 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1877 def shallow_scope; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2019 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2019 def using_match_shorthand?(path); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1835 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1835 def with_scope_level(kind); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1162 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1162 ActionDispatch::Routing::Mapper::Resources::CANONICAL_ACTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1161 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1161 ActionDispatch::Routing::Mapper::Resources::RESOURCE_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1164 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1164 class ActionDispatch::Routing::Mapper::Resources::Resource - # @return [Resource] a new instance of Resource - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1177 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1177 def initialize(entities, api_only, shallow, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1204 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1204 def actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1212 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1212 def available_actions; end # Checks for uncountable plurals, and appends "_index" if the plural and # singular form are the same. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1236 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1236 def collection_name; end - # Returns the value of attribute path. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1244 def collection_scope; end - # Returns the value of attribute controller. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1175 def controller; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1200 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1200 def default_actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1228 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1232 def member_name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1246 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1246 def member_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1220 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1220 def name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1256 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1256 def nested_param; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1260 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1260 def nested_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1252 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1252 def new_scope(new_path); end - # Returns the value of attribute param. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1175 def param; end - # Returns the value of attribute path. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1175 def path; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1224 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1224 def plural; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1240 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1240 def resource_scope; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1264 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1264 def shallow?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1246 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1250 def shallow_scope; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1268 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1268 def singleton?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1228 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1228 def singular; end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1271 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1271 def invalid_only_except_options(options, valid_actions); end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1166 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1166 def default_actions(api_only); end end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1276 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1276 class ActionDispatch::Routing::Mapper::Resources::SingletonResource < ::ActionDispatch::Routing::Mapper::Resources::Resource - # @return [SingletonResource] a new instance of SingletonResource - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1287 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1287 def initialize(entities, api_only, shallow, options); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1302 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1307 def collection_name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1294 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1294 def default_actions; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1302 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1306 def member_name; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1309 def member_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1175 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1310 def nested_scope; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1298 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1298 def plural; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1312 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1312 def singleton?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1302 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1302 def singular; end class << self - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1278 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1278 def default_actions(api_only); end end end @@ -18474,90 +17259,72 @@ end # CANONICAL_ACTIONS holds all actions that does not need a prefix or a path # appended since they fit properly in their scope level. # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#1160 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1160 ActionDispatch::Routing::Mapper::Resources::VALID_ON_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2290 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2290 class ActionDispatch::Routing::Mapper::Scope include ::Enumerable - # @return [Scope] a new instance of Scope - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2300 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2300 def initialize(hash, parent = T.unsafe(nil), scope_level = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2359 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2359 def [](key); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2326 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2326 def action_name(name_prefix, prefix, collection_name, member_name); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2367 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2367 def each; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2363 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2363 def frame; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2306 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2306 def nested?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2351 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2351 def new(hash); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2355 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2355 def new_level(level); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2310 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2310 def null?; end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2347 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2347 def options; end - # Returns the value of attribute parent. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2298 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2298 def parent; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2322 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2322 def resource_method_scope?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2343 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2343 def resource_scope?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2318 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2318 def resources?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2314 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2314 def root?; end - # Returns the value of attribute scope_level. - # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#2298 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2298 def scope_level; end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2291 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2291 ActionDispatch::Routing::Mapper::Scope::OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2296 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2296 ActionDispatch::Routing::Mapper::Scope::RESOURCE_METHOD_SCOPES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2295 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2295 ActionDispatch::Routing::Mapper::Scope::RESOURCE_SCOPES = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#2375 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:2375 ActionDispatch::Routing::Mapper::Scope::ROOT = T.let(T.unsafe(nil), ActionDispatch::Routing::Mapper::Scope) # You may wish to organize groups of controllers under a namespace. Most @@ -18614,7 +17381,7 @@ ActionDispatch::Routing::Mapper::Scope::ROOT = T.let(T.unsafe(nil), ActionDispat # PATCH/PUT /admin/posts/1 # DELETE /admin/posts/1 # -# source://actionpack//lib/action_dispatch/routing/mapper.rb#826 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:826 module ActionDispatch::Routing::Mapper::Scoping # ### Parameter Restriction # Allows you to constrain the nested routes based on a set of rules. For @@ -18675,7 +17442,7 @@ module ActionDispatch::Routing::Mapper::Scoping # resources :iphones # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1034 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1034 def constraints(constraints = T.unsafe(nil), &block); end # Scopes routes to a specific controller @@ -18684,7 +17451,7 @@ module ActionDispatch::Routing::Mapper::Scoping # match "bacon", action: :bacon, via: :get # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#916 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:916 def controller(controller); end # Allows you to set default parameters for a route, such as this: @@ -18695,7 +17462,7 @@ module ActionDispatch::Routing::Mapper::Scoping # # Using this, the `:id` parameter here will default to 'home'. # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1045 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1045 def defaults(defaults = T.unsafe(nil)); end # Scopes routes to a specific namespace. For example: @@ -18737,7 +17504,7 @@ module ActionDispatch::Routing::Mapper::Scoping # resources :posts # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#961 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:961 def namespace(path, options = T.unsafe(nil), &block); end # Scopes a set of routes to the given default options. @@ -18771,95 +17538,93 @@ module ActionDispatch::Routing::Mapper::Scoping # resources :posts # end # - # source://actionpack//lib/action_dispatch/routing/mapper.rb#857 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:857 def scope(*args); end private - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1077 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1077 def merge_action_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1061 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1061 def merge_as_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1101 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1101 def merge_blocks_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1093 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1093 def merge_constraints_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1073 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1073 def merge_controller_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1097 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1097 def merge_defaults_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1085 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1085 def merge_format_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1069 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1069 def merge_module_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1107 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1107 def merge_options_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1089 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1089 def merge_path_names_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1053 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1053 def merge_path_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1057 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1057 def merge_shallow_path_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1065 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1065 def merge_shallow_prefix_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1111 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1111 def merge_shallow_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1115 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1115 def merge_to_scope(parent, child); end - # source://actionpack//lib/action_dispatch/routing/mapper.rb#1081 + # pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:1081 def merge_via_scope(parent, child); end end -# source://actionpack//lib/action_dispatch/routing/mapper.rb#909 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:909 ActionDispatch::Routing::Mapper::Scoping::POISON = T.let(T.unsafe(nil), Object) -# source://actionpack//lib/action_dispatch/routing/mapper.rb#24 +# pkg:gem/actionpack#lib/action_dispatch/routing/mapper.rb:24 ActionDispatch::Routing::Mapper::URL_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/redirection.rb#114 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:114 class ActionDispatch::Routing::OptionRedirect < ::ActionDispatch::Routing::Redirect - # source://actionpack//lib/action_dispatch/routing/redirection.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:143 def inspect; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:115 def options; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#117 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:117 def path(params, request); end end -# source://actionpack//lib/action_dispatch/routing/redirection.rb#89 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:89 class ActionDispatch::Routing::PathRedirect < ::ActionDispatch::Routing::Redirect - # source://actionpack//lib/action_dispatch/routing/redirection.rb#104 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:104 def inspect; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#92 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:92 def path(params, request); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#109 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:109 def interpolation_required?(string, params); end end -# source://actionpack//lib/action_dispatch/routing/redirection.rb#90 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:90 ActionDispatch::Routing::PathRedirect::URL_PARTS = T.let(T.unsafe(nil), Regexp) # # Action Dispatch Routing PolymorphicRoutes @@ -18921,23 +17686,23 @@ ActionDispatch::Routing::PathRedirect::URL_PARTS = T.let(T.unsafe(nil), Regexp) # polymorphic_url([blog, @post]) # calls blog.post_path(@post) # form_with(model: [blog, @post]) # => "/blog/posts/1" # -# source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#66 +# pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:66 module ActionDispatch::Routing::PolymorphicRoutes - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#162 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:156 def edit_polymorphic_path(record_or_hash, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#158 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:156 def edit_polymorphic_url(record_or_hash, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#162 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:156 def new_polymorphic_path(record_or_hash, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#158 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:156 def new_polymorphic_url(record_or_hash, options = T.unsafe(nil)); end # Returns the path component of a URL for the given record. # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#133 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:133 def polymorphic_path(record_or_hash_or_array, options = T.unsafe(nil)); end # Constructs a call to a named RESTful route for the given record and returns @@ -18983,149 +17748,133 @@ module ActionDispatch::Routing::PolymorphicRoutes # # the class of a record will also map to the collection # polymorphic_url(Comment) # same as comments_url() # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#110 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:110 def polymorphic_url(record_or_hash_or_array, options = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#177 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:177 def polymorphic_mapping(record); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#173 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:173 def polymorphic_path_for_action(action, record_or_hash, options); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#169 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:169 def polymorphic_url_for_action(action, record_or_hash, options); end end -# source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#185 +# pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:185 class ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder - # @return [HelperMethodBuilder] a new instance of HelperMethodBuilder - # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#248 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:248 def initialize(key_strategy, prefix, suffix); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#262 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:262 def handle_class(klass); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#266 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:266 def handle_class_call(target, klass); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#293 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:293 def handle_list(list); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#270 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:270 def handle_model(record); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#284 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:284 def handle_model_call(target, record); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#254 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:254 def handle_string(record); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#258 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:258 def handle_string_call(target, str); end - # Returns the value of attribute prefix. - # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#246 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:246 def prefix; end - # Returns the value of attribute suffix. - # - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#246 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:246 def suffix; end private - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#347 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:347 def get_method_for_class(klass); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:352 def get_method_for_string(str); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#339 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:339 def polymorphic_mapping(target, record); end class << self - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#196 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:196 def build(action, type); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#188 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:188 def get(action, type); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#194 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:194 def path; end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#210 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:210 def plural(prefix, suffix); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#214 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:214 def polymorphic_method(recipient, record_or_hash_or_array, action, type, options); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:206 def singular(prefix, suffix); end - # source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#193 + # pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:193 def url; end end end -# source://actionpack//lib/action_dispatch/routing/polymorphic_routes.rb#186 +# pkg:gem/actionpack#lib/action_dispatch/routing/polymorphic_routes.rb:186 ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder::CACHE = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/routing/redirection.rb#12 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:12 class ActionDispatch::Routing::Redirect < ::ActionDispatch::Routing::Endpoint - # @return [Redirect] a new instance of Redirect - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:15 def initialize(status, block); end - # Returns the value of attribute block. - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:13 def block; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:35 def build_response(req); end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:22 def call(env); end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:67 def inspect; end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#63 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:63 def path(params, request); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#20 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:20 def redirect?; end - # Returns the value of attribute status. - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:13 def status; end private - # source://actionpack//lib/action_dispatch/routing/redirection.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:76 def escape(params); end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#80 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:80 def escape_fragment(params); end - # source://actionpack//lib/action_dispatch/routing/redirection.rb#84 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:84 def escape_path(params); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:72 def relative_path?(path); end end -# source://actionpack//lib/action_dispatch/routing/redirection.rb#148 +# pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:148 module ActionDispatch::Routing::Redirection # Redirect any path to another path: # @@ -19182,133 +17931,97 @@ module ActionDispatch::Routing::Redirection # # get 'accounts/:name' => redirect(SubdomainRedirector.new('api')) # - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/redirection.rb#204 + # pkg:gem/actionpack#lib/action_dispatch/routing/redirection.rb:204 def redirect(*args, &block); end end # The RouteSet contains a collection of Route instances, representing the routes # typically defined in `config/routes.rb`. # -# source://actionpack//lib/action_dispatch/routing/route_set.rb#17 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:17 class ActionDispatch::Routing::RouteSet - # @return [RouteSet] a new instance of RouteSet - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#388 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:388 def initialize(config = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#676 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:676 def add_polymorphic_mapping(klass, options, &block); end - # @raise [ArgumentError] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#645 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:645 def add_route(mapping, name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#680 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:680 def add_url_helper(name, options, &block); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#419 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:419 def api_only?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#466 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:466 def append(&block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#905 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:905 def call(env); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#490 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:490 def clear!; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#440 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:440 def default_env; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#423 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:423 def default_scope; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#427 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:427 def default_scope=(new_default_scope); end - # Returns the value of attribute default_url_options. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#356 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:356 def default_url_options; end - # Sets the attribute default_url_options - # - # @param value the value to set the attribute default_url_options to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#356 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:356 def default_url_options=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#511 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:511 def define_mounted_helper(name, script_namer = T.unsafe(nil)); end - # Returns the value of attribute disable_clear_and_finalize. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#355 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:355 def disable_clear_and_finalize; end - # Sets the attribute disable_clear_and_finalize - # - # @param value the value to set the attribute disable_clear_and_finalize to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#355 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:355 def disable_clear_and_finalize=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#459 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:459 def draw(&block); end - # Returns the value of attribute draw_paths. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#356 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:356 def draw_paths; end - # Sets the attribute draw_paths - # - # @param value the value to set the attribute draw_paths to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#356 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:356 def draw_paths=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#408 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:408 def eager_load!; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#641 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:641 def empty?; end - # Returns the value of attribute env_key. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#357 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:357 def env_key; end # Generate the path indicated by the arguments, and return an array of the keys # that were not used to generate it. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#820 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:820 def extra_keys(options, recall = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#484 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:484 def finalize!; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#848 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:848 def find_script_name(options); end - # Returns the value of attribute formatter. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def formatter; end - # Sets the attribute formatter - # - # @param value the value to set the attribute formatter to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def formatter=(_arg0); end # Returns a Route matching the given requirements, or `nil` if none are found. @@ -19323,273 +18036,221 @@ class ActionDispatch::Routing::RouteSet # # Rails.application.routes.from_requirements(controller: "posts", action: "show") # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#29 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:29 def from_requirements(requirements); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#824 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:824 def generate_extras(options, recall = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#538 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:538 def generate_url_helpers(supports_path); end # Since the router holds references to many parts of the system like engines, # controllers and the application itself, inspecting the route set can actually # be really slow, therefore we default alias inspect to to_s. + # + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:37 def inspect; end # Contains all the mounted helpers across different engines and the `main_app` # helper for the application. You can include this in your classes if you want # to access routes for other engines. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#507 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:507 def mounted_helpers; end - # Returns the value of attribute named_routes. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def named_routes; end - # Sets the attribute named_routes - # - # @param value the value to set the attribute named_routes to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def named_routes=(_arg0); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#844 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:844 def optimize_routes_generation?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#852 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:852 def path_for(options, route_name = T.unsafe(nil), reserved = T.unsafe(nil)); end - # Returns the value of attribute polymorphic_mappings. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#357 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:357 def polymorphic_mappings; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#470 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:470 def prepend(&block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#911 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:911 def recognize_path(path, environment = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#926 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:926 def recognize_path_with_request(req, path, extras, raise_on_missing: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#415 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:415 def relative_url_root; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#431 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:431 def request_class; end - # Returns the value of attribute resources_path_names. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#355 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:355 def resources_path_names; end - # Sets the attribute resources_path_names - # - # @param value the value to set the attribute resources_path_names to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#355 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:355 def resources_path_names=(_arg0); end - # Returns the value of attribute router. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def router; end - # Sets the attribute router - # - # @param value the value to set the attribute router to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def router=(_arg0); end - # Returns the value of attribute set. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:359 def routes; end - # Returns the value of attribute set. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def set; end - # Sets the attribute set - # - # @param value the value to set the attribute set to. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#354 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:354 def set=(_arg0); end # The `options` argument must be a hash whose keys are **symbols**. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#857 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:857 def url_for(options, route_name = T.unsafe(nil), url_strategy = T.unsafe(nil), method_name = T.unsafe(nil), reserved = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#530 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:530 def url_helpers(supports_path = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/routing/route_set.rb#474 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:474 def eval_block(block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#835 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:835 def generate(route_name, options, recall = T.unsafe(nil), method_name = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#435 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:435 def make_request(env); end class << self - # source://actionpack//lib/action_dispatch/routing/route_set.rb#361 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:361 def default_resources_path_names; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#365 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:365 def new_with_config(config); end end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#384 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 class ActionDispatch::Routing::RouteSet::Config < ::Struct - # Returns the value of attribute api_only - # - # @return [Object] the current value of api_only + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def api_only; end - # Sets the attribute api_only - # - # @param value [Object] the value to set the attribute api_only to. - # @return [Object] the newly set value + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def api_only=(_); end - # Returns the value of attribute default_scope - # - # @return [Object] the current value of default_scope + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def default_scope; end - # Sets the attribute default_scope - # - # @param value [Object] the value to set the attribute default_scope to. - # @return [Object] the newly set value + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def default_scope=(_); end - # Returns the value of attribute relative_url_root - # - # @return [Object] the current value of relative_url_root + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def relative_url_root; end - # Sets the attribute relative_url_root - # - # @param value [Object] the value to set the attribute relative_url_root to. - # @return [Object] the newly set value + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def relative_url_root=(_); end class << self + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def [](*_arg0); end + + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def inspect; end + + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def keyword_init?; end + + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def members; end + + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:384 def new(*_arg0); end end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#684 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:684 class ActionDispatch::Routing::RouteSet::CustomUrlHelper - # @return [CustomUrlHelper] a new instance of CustomUrlHelper - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#687 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:687 def initialize(name, defaults, &block); end - # Returns the value of attribute block. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#685 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:685 def block; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#693 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:693 def call(t, args, only_path = T.unsafe(nil)); end - # Returns the value of attribute defaults. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#685 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:685 def defaults; end - # Returns the value of attribute name. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#685 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:685 def name; end private - # source://actionpack//lib/action_dispatch/routing/route_set.rb#705 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:705 def eval_block(t, args, options); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#709 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:709 def merge_defaults(options); end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#386 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:386 ActionDispatch::Routing::RouteSet::DEFAULT_CONFIG = T.let(T.unsafe(nil), ActionDispatch::Routing::RouteSet::Config) -# source://actionpack//lib/action_dispatch/routing/route_set.rb#39 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:39 class ActionDispatch::Routing::RouteSet::Dispatcher < ::ActionDispatch::Routing::Endpoint - # @return [Dispatcher] a new instance of Dispatcher - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:40 def initialize(raise_on_name_error); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:44 def dispatcher?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:46 def serve(req); end private - # source://actionpack//lib/action_dispatch/routing/route_set.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:60 def controller(req); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#66 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:66 def dispatch(controller, action, req, res); end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#714 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:714 class ActionDispatch::Routing::RouteSet::Generator - # @return [Generator] a new instance of Generator - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#717 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:717 def initialize(named_route, options, recall, set); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#729 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:729 def controller; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#733 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:733 def current_controller; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#803 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:803 def different_controller?; end # Generates a path from routes, returns a RouteWithParams or MissingRoute. # MissingRoute will raise ActionController::UrlGenerationError. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#799 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:799 def generate; end - # Returns the value of attribute named_route. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#715 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:715 def named_route; end # Remove leading slashes from controllers # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#787 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:787 def normalize_controller!; end # This pulls :controller, :action, and :id out of the recall. The recall key is @@ -19597,48 +18258,40 @@ class ActionDispatch::Routing::RouteSet::Generator # identical. If any of :controller, :action or :id is not found, don't pull any # more keys from the recall. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#769 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:769 def normalize_controller_action_id!; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#745 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:745 def normalize_options!; end - # Returns the value of attribute options. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#715 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:715 def options; end - # Returns the value of attribute recall. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#715 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:715 def recall; end - # Returns the value of attribute set. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#715 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:715 def set; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#737 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:737 def use_recall_for(key); end # if the current controller is "foo/bar/baz" and controller: "baz/bat" is # specified, the controller becomes "foo/baz/bat" # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#777 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:777 def use_relative_controller!; end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#809 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:809 def named_route_exists?; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#813 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:813 def segment_keys; end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#499 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:499 module ActionDispatch::Routing::RouteSet::MountedHelpers extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -19663,69 +18316,59 @@ end # maintains an anonymous module that can be used to install helpers for the # named routes. # -# source://actionpack//lib/action_dispatch/routing/route_set.rb#84 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:84 class ActionDispatch::Routing::RouteSet::NamedRouteCollection include ::Enumerable - # @return [NamedRouteCollection] a new instance of NamedRouteCollection - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#89 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:89 def initialize; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:149 def [](name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:148 def []=(name, route); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:120 def add(name, route); end # Given a `name`, defines name_path and name_url helpers. Used by 'direct', # 'resolve', and 'polymorphic' route helpers. # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:167 def add_url_helper(name, defaults, &block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:150 def clear; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#106 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:106 def clear!; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#152 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:152 def each(&block); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#139 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:139 def get(name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:102 def helper_names; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:143 def key?(name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#161 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:161 def length; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#157 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:157 def names; end - # Returns the value of attribute path_helpers_module. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:86 def path_helpers_module; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#97 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:97 def route_defined?(name); end - # Returns the value of attribute url_helpers_module. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:86 def url_helpers_module; end private @@ -19743,141 +18386,117 @@ class ActionDispatch::Routing::RouteSet::NamedRouteCollection # # foo_url(bar, baz, bang, sort_by: 'baz') # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#335 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:335 def define_url_helper(mod, name, helper, url_strategy); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:86 def routes; end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#190 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:190 class ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper - # @return [UrlHelper] a new instance of UrlHelper - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#273 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:273 def initialize(route, options, route_name); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#280 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:280 def call(t, method_name, args, inner_options, url_strategy); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#292 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:292 def handle_positional_args(controller_options, inner_options, args, result, path_params); end - # Returns the value of attribute route_name. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#203 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:203 def route_name; end class << self - # source://actionpack//lib/action_dispatch/routing/route_set.rb#191 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:191 def create(route, options, route_name); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#199 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:199 def optimize_helper?(route); end end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#205 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:205 class ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper::OptimizedUrlHelper < ::ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper - # @return [OptimizedUrlHelper] a new instance of OptimizedUrlHelper - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#208 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:208 def initialize(route, options, route_name); end - # Returns the value of attribute arg_size. - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#206 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:206 def arg_size; end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#214 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:214 def call(t, method_name, args, inner_options, url_strategy); end private - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#245 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:245 def optimize_routes_generation?(t); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#237 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:237 def optimized_helper(args); end - # source://actionpack//lib/action_dispatch/routing/route_set.rb#249 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:249 def parameterize_args(args); end - # @raise [ActionController::UrlGenerationError] - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#260 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:260 def raise_generation_error(args); end end # strategy for building URLs to send to the client # -# source://actionpack//lib/action_dispatch/routing/route_set.rb#351 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:351 ActionDispatch::Routing::RouteSet::PATH = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/routing/route_set.rb#840 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:840 ActionDispatch::Routing::RouteSet::RESERVED_OPTIONS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/routing/route_set.rb#71 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:71 class ActionDispatch::Routing::RouteSet::StaticDispatcher < ::ActionDispatch::Routing::RouteSet::Dispatcher - # @return [StaticDispatcher] a new instance of StaticDispatcher - # - # source://actionpack//lib/action_dispatch/routing/route_set.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:72 def initialize(controller_class); end private - # source://actionpack//lib/action_dispatch/routing/route_set.rb#78 + # pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:78 def controller(_); end end -# source://actionpack//lib/action_dispatch/routing/route_set.rb#352 +# pkg:gem/actionpack#lib/action_dispatch/routing/route_set.rb:352 ActionDispatch::Routing::RouteSet::UNKNOWN = T.let(T.unsafe(nil), Proc) -# source://actionpack//lib/action_dispatch/routing/inspector.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:10 class ActionDispatch::Routing::RouteWrapper < ::SimpleDelegator - # source://actionpack//lib/action_dispatch/routing/inspector.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:56 def action; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:28 def constraints; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:52 def controller; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:17 def endpoint; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:64 def engine?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:60 def internal?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#11 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:11 def matches_filter?(filter, value); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:40 def name; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:36 def path; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:32 def rack_app; end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:44 def reqs; end end @@ -19885,80 +18504,62 @@ end # executes `bin/rails routes` or looks at the RoutingError page. People should # not use this class. # -# source://actionpack//lib/action_dispatch/routing/inspector.rb#73 +# pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:73 class ActionDispatch::Routing::RoutesInspector - # @return [RoutesInspector] a new instance of RoutesInspector - # - # source://actionpack//lib/action_dispatch/routing/inspector.rb#74 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:74 def initialize(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#79 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:79 def format(formatter, filter = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/routing/inspector.rb#143 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:143 def collect_engine_routes(route); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#129 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:129 def collect_routes(routes); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:118 def filter_routes(filter); end - # source://actionpack//lib/action_dispatch/routing/inspector.rb#99 + # pkg:gem/actionpack#lib/action_dispatch/routing/inspector.rb:99 def normalize_filter(filter); end end -# source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:9 class ActionDispatch::Routing::RoutesProxy include ::ActionDispatch::Routing::PolymorphicRoutes include ::ActionDispatch::Routing::UrlFor - # @return [RoutesProxy] a new instance of RoutesProxy - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:15 def initialize(routes, scope, helpers, script_namer = T.unsafe(nil)); end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:13 def _routes; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options?; end - # Returns the value of attribute routes. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:12 def routes; end - # Sets the attribute routes - # - # @param value the value to set the attribute routes to. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:12 def routes=(_arg0); end - # Returns the value of attribute scope. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:12 def scope; end - # Sets the attribute scope - # - # @param value the value to set the attribute scope to. - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#12 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:12 def scope=(_arg0); end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:21 def url_options; end private @@ -19968,38 +18569,36 @@ class ActionDispatch::Routing::RoutesProxy # specific request, but use our script name resolver for the mount point # dependent part. # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#55 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:55 def merge_script_names(previous_script_name, new_script_name); end - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:32 def method_missing(method, *args); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/routes_proxy.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:28 def respond_to_missing?(method, _); end class << self - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options=(value); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#100 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def default_url_options?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def __class_attr_default_url_options; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/routing/routes_proxy.rb:10 def __class_attr_default_url_options=(new_value); end end end -# source://actionpack//lib/action_dispatch/routing.rb#259 +# pkg:gem/actionpack#lib/action_dispatch/routing.rb:259 ActionDispatch::Routing::SEPARATORS = T.let(T.unsafe(nil), Array) # # Action Dispatch Routing UrlFor @@ -20087,7 +18686,7 @@ ActionDispatch::Routing::SEPARATORS = T.let(T.unsafe(nil), Array) # # User.find(1).base_uri # => "/users/1" # -# source://actionpack//lib/action_dispatch/routing/url_for.rb#92 +# pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:92 module ActionDispatch::Routing::UrlFor include ::ActionDispatch::Routing::PolymorphicRoutes extend ::ActiveSupport::Concern @@ -20095,10 +18694,10 @@ module ActionDispatch::Routing::UrlFor mixes_in_class_methods GeneratedClassMethods - # source://actionpack//lib/action_dispatch/routing/url_for.rb#111 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:111 + def initialize(*, **, &); end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:182 def full_url_for(options = T.unsafe(nil)); end # Allows calling direct or regular named route. @@ -20119,7 +18718,7 @@ module ActionDispatch::Routing::UrlFor # threadable_path(threadable) # => "/buckets/1" # threadable_url(threadable) # => "http://example.com/buckets/1" # - # source://actionpack//lib/action_dispatch/routing/url_for.rb#222 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:222 def route_for(name, *args); end # Generate a URL based on the options provided, `default_url_options`, and the @@ -20179,28 +18778,26 @@ module ActionDispatch::Routing::UrlFor # used by `url_for` can always be overwritten like shown on the last `url_for` # calls. # - # source://actionpack//lib/action_dispatch/routing/url_for.rb#178 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:178 def url_for(options = T.unsafe(nil)); end # Hook overridden in controller to add request information with # `default_url_options`. Application logic should not go into url_options. # - # source://actionpack//lib/action_dispatch/routing/url_for.rb#118 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:118 def url_options; end protected - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/routing/url_for.rb#227 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:227 def optimize_routes_generation?; end private - # source://actionpack//lib/action_dispatch/routing/url_for.rb#239 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:239 def _routes_context; end - # source://actionpack//lib/action_dispatch/routing/url_for.rb#232 + # pkg:gem/actionpack#lib/action_dispatch/routing/url_for.rb:232 def _with_routes(routes); end module GeneratedClassMethods @@ -20276,129 +18873,126 @@ end # header to tell browsers to expire HSTS immediately. Setting `hsts: false` # is a shortcut for `hsts: { expires: 0 }`. # -# source://actionpack//lib/action_dispatch/middleware/ssl.rb#66 +# pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:66 class ActionDispatch::SSL - # @return [SSL] a new instance of SSL - # - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#76 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:76 def initialize(app, redirect: T.unsafe(nil), hsts: T.unsafe(nil), secure_cookies: T.unsafe(nil), ssl_default_redirect_status: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#88 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:88 def call(env); end private # https://tools.ietf.org/html/rfc6797#section-6.1 # - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#122 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:122 def build_hsts_header(hsts); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#129 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:129 def flag_cookies_as_secure!(headers); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#170 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:170 def https_location_for(request); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:107 def normalize_hsts_options(options); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#153 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:153 def redirect_to_https(request); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#160 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:160 def redirection_status(request); end - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#103 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:103 def set_hsts_header!(headers); end class << self - # source://actionpack//lib/action_dispatch/middleware/ssl.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:72 def default_hsts_options; end end end # :stopdoc: Default to 2 years as recommended on hstspreload.org. # -# source://actionpack//lib/action_dispatch/middleware/ssl.rb#68 +# pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:68 ActionDispatch::SSL::HSTS_EXPIRES_IN = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_dispatch/middleware/ssl.rb#70 +# pkg:gem/actionpack#lib/action_dispatch/middleware/ssl.rb:70 ActionDispatch::SSL::PERMANENT_REDIRECT_REQUEST_METHODS = T.let(T.unsafe(nil), Array) -# source://actionpack//lib/action_dispatch/middleware/server_timing.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:8 class ActionDispatch::ServerTiming - # @return [ServerTiming] a new instance of ServerTiming - # - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:52 def initialize(app); end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#58 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:58 def call(env); end class << self - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:48 def unsubscribe; end end end -# source://actionpack//lib/action_dispatch/middleware/server_timing.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:9 class ActionDispatch::ServerTiming::Subscriber include ::Singleton::SingletonInstanceMethods include ::Singleton extend ::Singleton::SingletonClassMethods - # @return [Subscriber] a new instance of Subscriber - # - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:13 def initialize; end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:17 def call(event); end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:23 def collect_events; end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:32 def ensure_subscribed; end - # source://actionpack//lib/action_dispatch/middleware/server_timing.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:40 def unsubscribe; end class << self private + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:10 def allocate; end + + # pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:10 def new(*_arg0); end end end -# source://actionpack//lib/action_dispatch/middleware/server_timing.rb#11 +# pkg:gem/actionpack#lib/action_dispatch/middleware/server_timing.rb:11 ActionDispatch::ServerTiming::Subscriber::KEY = T.let(T.unsafe(nil), Symbol) -# source://actionpack//lib/action_dispatch.rb#106 +# pkg:gem/actionpack#lib/action_dispatch.rb:106 module ActionDispatch::Session class << self - # source://actionpack//lib/action_dispatch.rb#113 + # pkg:gem/actionpack#lib/action_dispatch.rb:113 def resolve_store(session_store); end end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#97 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:102 class ActionDispatch::Session::AbstractSecureStore < ::Rack::Session::Abstract::PersistedSecure include ::ActionDispatch::Session::Compatibility include ::ActionDispatch::Session::StaleSessionCheck include ::ActionDispatch::Session::SessionObject - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#102 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:107 def generate_sid; end private - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#107 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:112 def set_cookie(request, response, cookie); end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#86 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:91 class ActionDispatch::Session::AbstractStore < ::Rack::Session::Abstract::Persisted include ::ActionDispatch::Session::Compatibility include ::ActionDispatch::Session::StaleSessionCheck @@ -20406,7 +19000,7 @@ class ActionDispatch::Session::AbstractStore < ::Rack::Session::Abstract::Persis private - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#92 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:97 def set_cookie(request, response, cookie); end end @@ -20423,56 +19017,72 @@ end # automatically expiring. By default, the `:expires_in` option of the cache # is used. # -# source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:22 class ActionDispatch::Session::CacheStore < ::ActionDispatch::Session::AbstractSecureStore - # @return [CacheStore] a new instance of CacheStore - # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:25 def initialize(app, options = T.unsafe(nil)); end # Remove a session from the cache. # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#49 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:54 def delete_session(env, sid, options); end # Get a session from the cache. # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#30 - def find_session(env, sid); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:32 + def find_session(req, sid); end # Set a session in the cache. # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#38 - def write_session(env, sid, session, options); end + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:42 + def write_session(req, sid, session, options); end private # Turn the session id into a cache key. # - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#57 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:62 def cache_key(id); end - # source://actionpack//lib/action_dispatch/middleware/session/cache_store.rb#61 + # Writing back a session that another request deleted, such as on logout, + # would restore it. + # + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:72 + def destroyed_since_loaded?(req, sid); end + + # The request-local cache still holds the entry this request loaded, so + # a lookup through it cannot see a delete made by another request. + # + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:80 + def exist_in_backend?(key); end + + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:66 def get_session_with_fallback(sid); end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#22 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/cache_store.rb:23 +ActionDispatch::Session::CacheStore::LOADED_SESSION_ID = T.let(T.unsafe(nil), String) + +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:22 module ActionDispatch::Session::Compatibility - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:25 def initialize(app, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:33 def generate_sid; end private - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#35 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:40 def initialize_sid; end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:45 def make_request(env); end end +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:23 +ActionDispatch::Session::Compatibility::DEFAULT_SAME_SITE = T.let(T.unsafe(nil), Proc) + # # Action Dispatch Session CookieStore # # This cookie-based session store is the Rails default. It is dramatically @@ -20515,56 +19125,47 @@ end # would set the session cookie to expire automatically 14 days after creation. # Other useful options include `:key`, `:secure`, `:httponly`, and `:same_site`. # -# source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#52 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:52 class ActionDispatch::Session::CookieStore < ::ActionDispatch::Session::AbstractSecureStore - # @return [CookieStore] a new instance of CookieStore - # - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:62 def initialize(app, options = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#70 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:67 def delete_session(req, session_id, options); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:74 def load_session(req); end private - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#124 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:121 def cookie_jar(request); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#86 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:83 def extract_session_id(req); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#120 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:117 def get_cookie(req); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#105 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:102 def persistent_session_id!(data, sid = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#116 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:113 def set_cookie(request, session_id, cookie); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#93 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:90 def unpacked_cookie_data(req); end - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#111 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:108 def write_session(req, sid, session_data, options); end end -# source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#62 -ActionDispatch::Session::CookieStore::DEFAULT_SAME_SITE = T.let(T.unsafe(nil), Proc) - -# source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#53 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:53 class ActionDispatch::Session::CookieStore::SessionId - # @return [SessionId] a new instance of SessionId - # - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:56 def initialize(session_id, cookie_value = T.unsafe(nil)); end - # Returns the value of attribute cookie_value. - # - # source://actionpack//lib/action_dispatch/middleware/session/cookie_store.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/cookie_store.rb:54 def cookie_value; end end @@ -20576,49 +19177,43 @@ end # * `expire_after` - The length of time a session will be stored before # automatically expiring. # -# source://actionpack//lib/action_dispatch/middleware/session/mem_cache_store.rb#23 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/mem_cache_store.rb:23 class ActionDispatch::Session::MemCacheStore < ::Rack::Session::Dalli include ::ActionDispatch::Session::Compatibility include ::ActionDispatch::Session::StaleSessionCheck include ::ActionDispatch::Session::SessionObject - # @return [MemCacheStore] a new instance of MemCacheStore - # - # source://actionpack//lib/action_dispatch/middleware/session/mem_cache_store.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/mem_cache_store.rb:28 def initialize(app, options = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#71 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:76 module ActionDispatch::Session::SessionObject - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#72 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:77 def commit_session(req, res); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#81 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:86 def loaded_session?(session); end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#77 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:82 def prepare_session(req); end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#13 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:13 class ActionDispatch::Session::SessionRestoreError < ::StandardError - # @return [SessionRestoreError] a new instance of SessionRestoreError - # - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:14 def initialize; end end -# source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#45 +# pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:50 module ActionDispatch::Session::StaleSessionCheck - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:55 def extract_session_id(env); end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#46 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:51 def load_session(env); end - # source://actionpack//lib/action_dispatch/middleware/session/abstract_store.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/middleware/session/abstract_store.rb:59 def stale_session_check!; end end @@ -20640,25 +19235,23 @@ end # correct status code. If any exception happens inside the exceptions app, this # middleware catches the exceptions and returns a failsafe response. # -# source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#25 +# pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:25 class ActionDispatch::ShowExceptions - # @return [ShowExceptions] a new instance of ShowExceptions - # - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:26 def initialize(app, exceptions_app); end - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#31 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:31 def call(env); end private - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#67 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:67 def fallback_to_html_format_if_invalid_mime_type(request); end - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#83 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:83 def pass_response(status); end - # source://actionpack//lib/action_dispatch/middleware/show_exceptions.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/middleware/show_exceptions.rb:48 def render_exception(request, wrapper); end end @@ -20675,68 +19268,62 @@ end # # Only files in the root directory are served; path traversal is denied. # -# source://actionpack//lib/action_dispatch/middleware/static.rb#20 +# pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:20 class ActionDispatch::Static - # @return [Static] a new instance of Static - # - # source://actionpack//lib/action_dispatch/middleware/static.rb#21 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:21 def initialize(app, path, index: T.unsafe(nil), headers: T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/middleware/static.rb#26 + # pkg:gem/actionpack#lib/action_dispatch/middleware/static.rb:26 def call(env); end end -# source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#4 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:4 module ActionDispatch::TestHelpers; end -# source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#5 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:5 module ActionDispatch::TestHelpers::PageDumpHelper # Saves the content of response body to a file and tries to open it in your browser. # Launchy must be present in your Gemfile for the page to open automatically. # - # source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#10 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:10 def save_and_open_page(path = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:30 def html_dump_default_path; end - # source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:23 def open_file(path); end - # @raise [InvalidResponse] - # - # source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#15 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:15 def save_page(path = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/testing/test_helpers/page_dump_helper.rb#6 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_helpers/page_dump_helper.rb:6 class ActionDispatch::TestHelpers::PageDumpHelper::InvalidResponse < ::StandardError; end -# source://actionpack//lib/action_dispatch/testing/test_process.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:9 module ActionDispatch::TestProcess include ::ActionDispatch::TestProcess::FixtureFile - # @raise [NoMethodError] - # - # source://actionpack//lib/action_dispatch/testing/test_process.rb#34 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:34 def assigns(key = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/testing/test_process.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:48 def cookies; end - # source://actionpack//lib/action_dispatch/testing/test_process.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:44 def flash; end - # source://actionpack//lib/action_dispatch/testing/test_process.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:52 def redirect_to_url; end - # source://actionpack//lib/action_dispatch/testing/test_process.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:40 def session; end end -# source://actionpack//lib/action_dispatch/testing/test_process.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:10 module ActionDispatch::TestProcess::FixtureFile # Shortcut for # `Rack::Test::UploadedFile.new(File.join(ActionDispatch::IntegrationTest.file_fixture_path, path), type)`: @@ -20750,74 +19337,62 @@ module ActionDispatch::TestProcess::FixtureFile # # post :change_avatar, params: { avatar: file_fixture_upload('david.png', 'image/png', :binary) } # - # source://actionpack//lib/action_dispatch/testing/test_process.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:22 def file_fixture_upload(path, mime_type = T.unsafe(nil), binary = T.unsafe(nil)); end - # Shortcut for - # `Rack::Test::UploadedFile.new(File.join(ActionDispatch::IntegrationTest.file_fixture_path, path), type)`: - # - # post :change_avatar, params: { avatar: file_fixture_upload('david.png', 'image/png') } - # - # Default fixture files location is `test/fixtures/files`. - # - # To upload binary files on Windows, pass `:binary` as the last parameter. This - # will not affect other platforms: - # - # post :change_avatar, params: { avatar: file_fixture_upload('david.png', 'image/png', :binary) } - # - # source://actionpack//lib/action_dispatch/testing/test_process.rb#22 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_process.rb:29 def fixture_file_upload(path, mime_type = T.unsafe(nil), binary = T.unsafe(nil)); end end -# source://actionpack//lib/action_dispatch/testing/test_request.rb#9 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:9 class ActionDispatch::TestRequest < ::ActionDispatch::Request - # source://actionpack//lib/action_dispatch/testing/test_request.rb#68 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:68 def accept=(mime_types); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#48 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:48 def action=(action_name); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#32 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:32 def host=(host); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#52 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:52 def if_modified_since=(last_modified); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:56 def if_none_match=(etag); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#44 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:44 def path=(path); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#36 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:36 def port=(number); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:60 def remote_addr=(addr); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#28 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:28 def request_method=(method); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#40 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:40 def request_uri=(uri); end - # source://actionpack//lib/action_dispatch/testing/test_request.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:64 def user_agent=(user_agent); end class << self # Create a new test request with default `env` values. # - # source://actionpack//lib/action_dispatch/testing/test_request.rb#17 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:17 def create(env = T.unsafe(nil)); end private - # source://actionpack//lib/action_dispatch/testing/test_request.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:23 def default_env; end end end -# source://actionpack//lib/action_dispatch/testing/test_request.rb#10 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_request.rb:10 ActionDispatch::TestRequest::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) # Integration test methods such as Integration::RequestHelpers#get and @@ -20826,7 +19401,7 @@ ActionDispatch::TestRequest::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) # # See Response for more information on controller response objects. # -# source://actionpack//lib/action_dispatch/testing/test_response.rb#13 +# pkg:gem/actionpack#lib/action_dispatch/testing/test_response.rb:13 class ActionDispatch::TestResponse < ::ActionDispatch::Response # Returns a parsed body depending on the response MIME type. When a parser # corresponding to the MIME type is not found, it returns the raw body. @@ -20861,51 +19436,51 @@ class ActionDispatch::TestResponse < ::ActionDispatch::Response # assert_equal 42, id # assert_equal "Title", title # - # source://actionpack//lib/action_dispatch/testing/test_response.rb#50 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_response.rb:50 def parsed_body; end - # source://actionpack//lib/action_dispatch/testing/test_response.rb#54 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_response.rb:54 def response_parser; end class << self - # source://actionpack//lib/action_dispatch/testing/test_response.rb#14 + # pkg:gem/actionpack#lib/action_dispatch/testing/test_response.rb:14 def from_response(response); end end end # :markup: markdown # -# source://actionpack//lib/action_pack/gem_version.rb#5 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:5 module ActionPack class << self # Returns the currently loaded version of Action Pack as a `Gem::Version`. # - # source://actionpack//lib/action_pack/gem_version.rb#7 + # pkg:gem/actionpack#lib/action_pack/gem_version.rb:7 def gem_version; end # Returns the currently loaded version of Action Pack as a `Gem::Version`. # - # source://actionpack//lib/action_pack/version.rb#9 + # pkg:gem/actionpack#lib/action_pack/version.rb:9 def version; end end end -# source://actionpack//lib/action_pack/gem_version.rb#11 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:11 module ActionPack::VERSION; end -# source://actionpack//lib/action_pack/gem_version.rb#12 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:12 ActionPack::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_pack/gem_version.rb#13 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:13 ActionPack::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://actionpack//lib/action_pack/gem_version.rb#15 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:15 ActionPack::VERSION::PRE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_pack/gem_version.rb#17 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:17 ActionPack::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_pack/gem_version.rb#14 +# pkg:gem/actionpack#lib/action_pack/gem_version.rb:14 ActionPack::VERSION::TINY = T.let(T.unsafe(nil), Integer) module ActionView::RoutingUrlFor @@ -20913,21 +19488,19 @@ module ActionView::RoutingUrlFor include ::ActionDispatch::Routing::UrlFor end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#7 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:7 module Mime class << self - # source://actionpack//lib/action_dispatch/http/mime_type.rb#51 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:51 def [](type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#64 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:64 def fetch(type, &block); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#56 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:56 def symbols; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#60 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:60 def valid_symbols?(symbols); end end end @@ -20936,111 +19509,99 @@ end # concrete types. It's a wildcard match that we use for `respond_to` negotiation # internals. # -# source://actionpack//lib/action_dispatch/http/mime_type.rb#363 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:363 Mime::ALL = T.let(T.unsafe(nil), Mime::AllType) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#349 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:349 class Mime::AllType < ::Mime::Type include ::Singleton::SingletonInstanceMethods include ::Singleton extend ::Singleton::SingletonClassMethods - # @return [AllType] a new instance of AllType - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#352 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:352 def initialize; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#356 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:356 def all?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#357 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:357 def html?; end class << self private + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:350 def allocate; end + + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:350 def new(*_arg0); end end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#47 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:47 Mime::EXTENSION_LOOKUP = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#48 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:48 Mime::LOOKUP = T.let(T.unsafe(nil), Hash) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#8 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:8 class Mime::Mimes include ::Enumerable - # @return [Mimes] a new instance of Mimes - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#13 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:13 def initialize; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#23 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:23 def <<(type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#30 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:30 def delete_if; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#19 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:19 def each(&block); end - # Returns the value of attribute symbols. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#9 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:9 def symbols; end - # :nodoc - # - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#41 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:41 def valid_symbols?(symbols); end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#365 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:365 class Mime::NullType include ::Singleton::SingletonInstanceMethods include ::Singleton extend ::Singleton::SingletonClassMethods - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#368 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:368 def nil?; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#376 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:376 def ref; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#372 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:372 def to_s; end private - # source://actionpack//lib/action_dispatch/http/mime_type.rb#383 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:383 + def method_missing(method, *, **, &); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#379 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:379 def respond_to_missing?(method, _); end class << self private + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:366 def allocate; end + + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:366 def new(*_arg0); end end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#46 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:46 Mime::SET = T.let(T.unsafe(nil), Mime::Mimes) # Encapsulates the notion of a MIME type. Can be used at render time, for @@ -21058,100 +19619,80 @@ Mime::SET = T.let(T.unsafe(nil), Mime::Mimes) # end # end # -# source://actionpack//lib/action_dispatch/http/mime_type.rb#84 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:84 class Mime::Type - # @return [Type] a new instance of Type - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#264 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:264 def initialize(string, symbol = T.unsafe(nil), synonyms = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#297 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:297 def ==(mime_type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#289 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:289 def ===(list); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#311 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:311 def =~(mime_type); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#327 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:327 def all?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#304 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:304 def eql?(other); end - # Returns the value of attribute hash. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#255 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:255 def hash; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#323 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:323 def html?; end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#317 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:317 def match?(mime_type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#285 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:285 def ref; end - # Returns the value of attribute symbol. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#85 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:85 def symbol; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#273 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:273 def to_s; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#277 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:277 def to_str; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#281 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:281 def to_sym; end protected - # Returns the value of attribute string. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#330 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:330 def string; end - # Returns the value of attribute synonyms. - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#330 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:330 def synonyms; end private - # source://actionpack//lib/action_dispatch/http/mime_type.rb#336 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:336 + def method_missing(method, *, **, &); end - # @return [Boolean] - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#344 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:344 def respond_to_missing?(method, include_private = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#334 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:334 def to_a; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#333 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:333 def to_ary; end class << self - # source://actionpack//lib/action_dispatch/http/mime_type.rb#167 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:167 def lookup(string); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#175 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:175 def lookup_by_extension(extension); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#200 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:200 def parse(accept_header); end # For an input of `'text'`, returns `[Mime[:json], Mime[:xml], Mime[:ics], @@ -21160,23 +19701,23 @@ class Mime::Type # For an input of `'application'`, returns `[Mime[:html], Mime[:js], Mime[:xml], # Mime[:yaml], Mime[:atom], Mime[:json], Mime[:rss], Mime[:url_encoded_form]]`. # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#236 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:236 def parse_data_with_trailing_star(type); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#227 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:227 def parse_trailing_star(accept_header); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#186 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:186 def register(string, symbol, mime_type_synonyms = T.unsafe(nil), extension_synonyms = T.unsafe(nil), skip_lookup = T.unsafe(nil)); end # Registers an alias that's not used on MIME type lookup, but can be referenced # directly. Especially useful for rendering different HTML versions depending on # the user agent, like an iPhone. # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#182 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:182 def register_alias(string, symbol, extension_synonyms = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#163 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:163 def register_callback(&block); end # This method is opposite of register method. @@ -21185,75 +19726,71 @@ class Mime::Type # # Mime::Type.unregister(:mobile) # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#245 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:245 def unregister(symbol); end end end # A simple helper class used in parsing the accept header. # -# source://actionpack//lib/action_dispatch/http/mime_type.rb#90 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:90 class Mime::Type::AcceptItem - # @return [AcceptItem] a new instance of AcceptItem - # - # source://actionpack//lib/action_dispatch/http/mime_type.rb#94 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:94 def initialize(index, name, q = T.unsafe(nil)); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#101 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:101 def <=>(item); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def index; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def index=(_arg0); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def name; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def name=(_arg0); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def q; end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:91 def q=(_arg0); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#91 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:92 def to_s; end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#108 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:108 class Mime::Type::AcceptList class << self - # source://actionpack//lib/action_dispatch/http/mime_type.rb#151 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:151 def find_item_by_name(array, name); end - # source://actionpack//lib/action_dispatch/http/mime_type.rb#109 + # pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:109 def sort!(list); end end end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#262 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:262 class Mime::Type::InvalidMimeType < ::StandardError; end -# source://actionpack//lib/action_dispatch/http/mime_type.rb#257 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:257 Mime::Type::MIME_NAME = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#259 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:259 Mime::Type::MIME_PARAMETER = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#258 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:258 Mime::Type::MIME_PARAMETER_VALUE = T.let(T.unsafe(nil), String) -# source://actionpack//lib/action_dispatch/http/mime_type.rb#260 +# pkg:gem/actionpack#lib/action_dispatch/http/mime_type.rb:260 Mime::Type::MIME_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://actionpack//lib/action_dispatch.rb#35 -module Rack - class << self - # source://rack/3.2.7/lib/rack/version.rb#14 - def release; end - end -end +# pkg:gem/actionpack#lib/action_dispatch.rb:35 +module Rack; end + +# pkg:gem/actionpack#lib/action_dispatch/http/response.rb:42 +class Rack::Headers < ::Hash; end diff --git a/sorbet/rbi/gems/actiontext@8.0.5.1.rbi b/sorbet/rbi/gems/actiontext@8.0.5.1.rbi deleted file mode 100644 index 9d1a3b7a..00000000 --- a/sorbet/rbi/gems/actiontext@8.0.5.1.rbi +++ /dev/null @@ -1,1897 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `actiontext` gem. -# Please instead update this file by running `bin/tapioca gem actiontext`. - - -# :markup: markdown -# :include: ../README.md -# -# source://actiontext//lib/action_text/gem_version.rb#5 -module ActionText - extend ::ActiveSupport::Autoload - - class << self - # source://actiontext//lib/action_text/deprecator.rb#6 - def deprecator; end - - # Returns the currently loaded version of Action Text as a `Gem::Version`. - # - # source://actiontext//lib/action_text/gem_version.rb#7 - def gem_version; end - - # source://actiontext//lib/action_text.rb#47 - def html_document_class; end - - # source://actiontext//lib/action_text.rb#53 - def html_document_fragment_class; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#413 - def railtie_helpers_paths; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#396 - def railtie_namespace; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#417 - def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - - # source://railties/8.0.5.1/lib/rails/engine.rb#402 - def table_name_prefix; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#409 - def use_relative_model_naming?; end - - # Returns the currently loaded version of Action Text as a `Gem::Version`. - # - # source://actiontext//lib/action_text/version.rb#9 - def version; end - end -end - -# # Action Text Attachable -# -# Include this module to make a record attachable to an ActionText::Content. -# -# class Person < ApplicationRecord -# include ActionText::Attachable -# end -# -# person = Person.create! name: "Javan" -# html = %Q() -# content = ActionText::Content.new(html) -# content.attachables # => [person] -# -# source://actiontext//lib/action_text/attachable.rb#18 -module ActionText::Attachable - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActionText::Attachable::ClassMethods - - # source://actiontext//lib/action_text/attachable.rb#83 - def attachable_content_type; end - - # source://actiontext//lib/action_text/attachable.rb#87 - def attachable_filename; end - - # source://actiontext//lib/action_text/attachable.rb#91 - def attachable_filesize; end - - # source://actiontext//lib/action_text/attachable.rb#95 - def attachable_metadata; end - - # Returns the Signed Global ID for the attachable. The purpose of the ID is set - # to 'attachable' so it can't be reused for other purposes. - # - # source://actiontext//lib/action_text/attachable.rb#79 - def attachable_sgid; end - - # @return [Boolean] - # - # source://actiontext//lib/action_text/attachable.rb#99 - def previewable_attachable?; end - - # Returns the path to the partial that is used for rendering the attachable. - # Defaults to `to_partial_path`. - # - # Override to render a different partial: - # - # class User < ApplicationRecord - # def to_attachable_partial_path - # "users/attachable" - # end - # end - # - # source://actiontext//lib/action_text/attachable.rb#127 - def to_attachable_partial_path; end - - # source://actiontext//lib/action_text/attachable.rb#131 - def to_rich_text_attributes(attributes = T.unsafe(nil)); end - - # Returns the path to the partial that is used for rendering the attachable in - # Trix. Defaults to `to_partial_path`. - # - # Override to render a different partial: - # - # class User < ApplicationRecord - # def to_trix_content_attachment_partial_path - # "users/trix_content_attachment" - # end - # end - # - # source://actiontext//lib/action_text/attachable.rb#113 - def to_trix_content_attachment_partial_path; end - - private - - # source://actiontext//lib/action_text/attachable.rb#144 - def attribute_names_for_serialization; end - - # source://actiontext//lib/action_text/attachable.rb#148 - def read_attribute_for_serialization(key); end - - class << self - # source://actiontext//lib/action_text/attachable.rb#43 - def from_attachable_sgid(sgid, options = T.unsafe(nil)); end - - # Extracts the `ActionText::Attachable` from the attachment HTML node: - # - # person = Person.create! name: "Javan" - # html = %Q() - # fragment = ActionText::Fragment.wrap(html) - # attachment_node = fragment.find_all(ActionText::Attachment.tag_name).first - # ActionText::Attachable.from_node(attachment_node) # => person - # - # source://actiontext//lib/action_text/attachable.rb#31 - def from_node(node); end - - private - - # source://actiontext//lib/action_text/attachable.rb#50 - def attachable_from_sgid(sgid); end - end -end - -# source://actiontext//lib/action_text/attachable.rb#0 -module ActionText::Attachable::ClassMethods - # source://actiontext//lib/action_text/attachable.rb#58 - def from_attachable_sgid(sgid); end - - # source://actiontext//lib/action_text/attachable.rb#72 - def to_missing_attachable_partial_path; end -end - -# source://actiontext//lib/action_text/attachable.rb#21 -ActionText::Attachable::LOCATOR_NAME = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text.rb#30 -module ActionText::Attachables - extend ::ActiveSupport::Autoload -end - -# source://actiontext//lib/action_text/attachables/content_attachment.rb#7 -class ActionText::Attachables::ContentAttachment - include ::ActiveModel::Validations - include ::ActiveSupport::Callbacks - include ::ActiveModel::Validations::HelperMethods - include ::ActiveModel::Conversion - include ::ActiveModel::ForbiddenAttributesProtection - include ::ActiveModel::AttributeAssignment - include ::ActiveModel::API - include ::ActiveModel::Access - include ::ActiveModel::Model - extend ::ActiveModel::Validations::ClassMethods - extend ::ActiveModel::Naming - extend ::ActiveModel::Callbacks - extend ::ActiveSupport::Callbacks::ClassMethods - extend ::ActiveSupport::DescendantsTracker - extend ::ActiveModel::Translation - extend ::ActiveModel::Validations::HelperMethods - extend ::ActiveModel::Conversion::ClassMethods - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_validate_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _validate_callbacks; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators?; end - - # source://actiontext//lib/action_text/attachables/content_attachment.rb#20 - def attachable_plain_text_representation(caption); end - - # Returns the value of attribute content. - # - # source://actiontext//lib/action_text/attachables/content_attachment.rb#15 - def content; end - - # Sets the attribute content - # - # @param value the value to set the attribute content to. - # - # source://actiontext//lib/action_text/attachables/content_attachment.rb#15 - def content=(_arg0); end - - # Returns the value of attribute content_type. - # - # source://actiontext//lib/action_text/attachables/content_attachment.rb#15 - def content_type; end - - # Sets the attribute content_type - # - # @param value the value to set the attribute content_type to. - # - # source://actiontext//lib/action_text/attachables/content_attachment.rb#15 - def content_type=(_arg0); end - - # source://activemodel/8.0.5.1/lib/active_model/naming.rb#255 - def model_name(&_arg0); end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter=(_arg0); end - - # source://actiontext//lib/action_text/attachables/content_attachment.rb#24 - def to_html; end - - # source://actiontext//lib/action_text/attachables/content_attachment.rb#32 - def to_partial_path; end - - # source://actiontext//lib/action_text/attachables/content_attachment.rb#28 - def to_s; end - - private - - # source://actiontext//lib/action_text/attachables/content_attachment.rb#37 - def content_instance; end - - class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _validate_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _validate_callbacks=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators?; end - - # source://actiontext//lib/action_text/attachables/content_attachment.rb#10 - def from_node(node); end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter; end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter?; end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_param_delimiter; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_param_delimiter=(new_value); end - end -end - -# source://actiontext//lib/action_text/attachables/missing_attachable.rb#7 -class ActionText::Attachables::MissingAttachable - extend ::ActiveModel::Naming - - # @return [MissingAttachable] a new instance of MissingAttachable - # - # source://actiontext//lib/action_text/attachables/missing_attachable.rb#12 - def initialize(sgid); end - - # source://actiontext//lib/action_text/attachables/missing_attachable.rb#24 - def model; end - - # source://activemodel/8.0.5.1/lib/active_model/naming.rb#255 - def model_name(&_arg0); end - - # source://actiontext//lib/action_text/attachables/missing_attachable.rb#16 - def to_partial_path; end -end - -# source://actiontext//lib/action_text/attachables/missing_attachable.rb#10 -ActionText::Attachables::MissingAttachable::DEFAULT_PARTIAL_PATH = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/attachables/remote_image.rb#7 -class ActionText::Attachables::RemoteImage - extend ::ActiveModel::Naming - - # @return [RemoteImage] a new instance of RemoteImage - # - # source://actiontext//lib/action_text/attachables/remote_image.rb#32 - def initialize(attributes = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/attachables/remote_image.rb#39 - def attachable_plain_text_representation(caption); end - - # Returns the value of attribute content_type. - # - # source://actiontext//lib/action_text/attachables/remote_image.rb#30 - def content_type; end - - # Returns the value of attribute height. - # - # source://actiontext//lib/action_text/attachables/remote_image.rb#30 - def height; end - - # source://activemodel/8.0.5.1/lib/active_model/naming.rb#255 - def model_name(&_arg0); end - - # source://actiontext//lib/action_text/attachables/remote_image.rb#43 - def to_partial_path; end - - # Returns the value of attribute url. - # - # source://actiontext//lib/action_text/attachables/remote_image.rb#30 - def url; end - - # Returns the value of attribute width. - # - # source://actiontext//lib/action_text/attachables/remote_image.rb#30 - def width; end - - class << self - # source://actiontext//lib/action_text/attachables/remote_image.rb#11 - def from_node(node); end - - private - - # source://actiontext//lib/action_text/attachables/remote_image.rb#22 - def attributes_from_node(node); end - - # @return [Boolean] - # - # source://actiontext//lib/action_text/attachables/remote_image.rb#18 - def content_type_is_image?(content_type); end - end -end - -# # Action Text Attachment -# -# Attachments serialize attachables to HTML or plain text. -# -# class Person < ApplicationRecord -# include ActionText::Attachable -# end -# -# attachable = Person.create! name: "Javan" -# attachment = ActionText::Attachment.from_attachable(attachable) -# attachment.to_html # => " " "[racecar.jpg]" - # - # Use the `caption` when set: - # - # attachment = ActionText::Attachment.from_attachable(attachable, caption: "Vroom vroom") - # attachment.to_plain_text # => "[Vroom vroom]" - # - # The presentation can be overridden by implementing the - # `attachable_plain_text_representation` method: - # - # class Person < ApplicationRecord - # include ActionText::Attachable - # - # def attachable_plain_text_representation - # "[#{name}]" - # end - # end - # - # attachable = Person.create! name: "Javan" - # attachment = ActionText::Attachment.from_attachable(attachable) - # attachment.to_plain_text # => "[Javan]" - # - # source://actiontext//lib/action_text/attachment.rb#110 - def to_plain_text; end - - # source://actiontext//lib/action_text/attachment.rb#127 - def to_s; end - - # source://actiontext//lib/action_text/attachment.rb#81 - def with_full_attributes; end - - private - - # source://actiontext//lib/action_text/attachment.rb#140 - def attachable_attributes; end - - # source://actiontext//lib/action_text/attachment.rb#136 - def node_attributes; end - - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#161 - def respond_to_missing?(name, include_private = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/attachment.rb#144 - def sgid_attributes; end - - class << self - # source://actiontext//lib/action_text/attachment.rb#27 - def fragment_by_canonicalizing_attachments(content); end - - # source://actiontext//lib/action_text/attachment.rb#39 - def from_attachable(attachable, attributes = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/attachment.rb#35 - def from_attachables(attachables); end - - # source://actiontext//lib/action_text/attachment.rb#45 - def from_attributes(attributes, attachable = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/attachment.rb#31 - def from_node(node, attachable = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/attachment.rb#22 - def tag_name; end - - # source://actiontext//lib/action_text/attachment.rb#22 - def tag_name=(val); end - - private - - # source://actiontext//lib/action_text/attachment.rb#52 - def node_from_attributes(attributes); end - - # source://actiontext//lib/action_text/attachment.rb#58 - def process_attributes(attributes); end - end -end - -# source://actiontext//lib/action_text/attachment.rb#24 -ActionText::Attachment::ATTRIBUTES = T.let(T.unsafe(nil), Array) - -# source://actiontext//lib/action_text/attachment_gallery.rb#6 -class ActionText::AttachmentGallery - include ::ActiveModel::Validations - include ::ActiveSupport::Callbacks - include ::ActiveModel::Validations::HelperMethods - include ::ActiveModel::Conversion - include ::ActiveModel::ForbiddenAttributesProtection - include ::ActiveModel::AttributeAssignment - include ::ActiveModel::API - include ::ActiveModel::Access - include ::ActiveModel::Model - extend ::ActiveModel::Validations::ClassMethods - extend ::ActiveModel::Naming - extend ::ActiveModel::Callbacks - extend ::ActiveSupport::Callbacks::ClassMethods - extend ::ActiveSupport::DescendantsTracker - extend ::ActiveModel::Translation - extend ::ActiveModel::Validations::HelperMethods - extend ::ActiveModel::Conversion::ClassMethods - - # @return [AttachmentGallery] a new instance of AttachmentGallery - # - # source://actiontext//lib/action_text/attachment_gallery.rb#54 - def initialize(node); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_validate_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _validate_callbacks; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators?; end - - # source://actiontext//lib/action_text/attachment_gallery.rb#58 - def attachments; end - - # source://actiontext//lib/action_text/attachment_gallery.rb#68 - def inspect; end - - # source://activemodel/8.0.5.1/lib/active_model/naming.rb#255 - def model_name(&_arg0); end - - # Returns the value of attribute node. - # - # source://actiontext//lib/action_text/attachment_gallery.rb#52 - def node; end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter=(_arg0); end - - # source://actiontext//lib/action_text/attachment_gallery.rb#64 - def size; end - - class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _validate_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _validate_callbacks=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators?; end - - # source://actiontext//lib/action_text/attachment_gallery.rb#43 - def attachment_selector; end - - # source://actiontext//lib/action_text/attachment_gallery.rb#27 - def find_attachment_gallery_nodes(content); end - - # source://actiontext//lib/action_text/attachment_gallery.rb#13 - def fragment_by_canonicalizing_attachment_galleries(content); end - - # source://actiontext//lib/action_text/attachment_gallery.rb#19 - def fragment_by_replacing_attachment_gallery_nodes(content); end - - # source://actiontext//lib/action_text/attachment_gallery.rb#39 - def from_node(node); end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter; end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter?; end - - # source://actiontext//lib/action_text/attachment_gallery.rb#47 - def selector; end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_param_delimiter; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_param_delimiter=(new_value); end - end -end - -# source://actiontext//lib/action_text/attachment_gallery.rb#9 -ActionText::AttachmentGallery::TAG_NAME = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text.rb#38 -module ActionText::Attachments - extend ::ActiveSupport::Autoload -end - -# source://actiontext//lib/action_text/attachments/caching.rb#7 -module ActionText::Attachments::Caching - # source://actiontext//lib/action_text/attachments/caching.rb#8 - def cache_key(*args); end - - private - - # source://actiontext//lib/action_text/attachments/caching.rb#13 - def cache_digest; end -end - -# source://actiontext//lib/action_text/attachments/minification.rb#7 -module ActionText::Attachments::Minification - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActionText::Attachments::Minification::ClassMethods -end - -# source://actiontext//lib/action_text/attachments/minification.rb#0 -module ActionText::Attachments::Minification::ClassMethods - # source://actiontext//lib/action_text/attachments/minification.rb#11 - def fragment_by_minifying_attachments(content); end -end - -# source://actiontext//lib/action_text/attachments/trix_conversion.rb#9 -module ActionText::Attachments::TrixConversion - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActionText::Attachments::TrixConversion::ClassMethods - - # source://actiontext//lib/action_text/attachments/trix_conversion.rb#24 - def to_trix_attachment(content = T.unsafe(nil)); end - - private - - # source://actiontext//lib/action_text/attachments/trix_conversion.rb#31 - def trix_attachment_content; end -end - -# source://actiontext//lib/action_text/attachments/trix_conversion.rb#0 -module ActionText::Attachments::TrixConversion::ClassMethods - # source://actiontext//lib/action_text/attachments/trix_conversion.rb#13 - def fragment_by_converting_trix_attachments(content); end - - # source://actiontext//lib/action_text/attachments/trix_conversion.rb#19 - def from_trix_attachment(trix_attachment); end -end - -# source://actiontext//lib/action_text/attribute.rb#6 -module ActionText::Attribute - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActionText::Attribute::ClassMethods -end - -# source://actiontext//lib/action_text/attribute.rb#0 -module ActionText::Attribute::ClassMethods - # source://actiontext//lib/action_text/attribute.rb#53 - def has_rich_text(name, encrypted: T.unsafe(nil), strict_loading: T.unsafe(nil), store_if_blank: T.unsafe(nil)); end - - # source://actiontext//lib/action_text/attribute.rb#100 - def rich_text_association_names; end - - # source://actiontext//lib/action_text/attribute.rb#95 - def with_all_rich_text; end -end - -# # Action Text Content -# -# The `ActionText::Content` class wraps an HTML fragment to add support for -# parsing, rendering and serialization. It can be used to extract links and -# attachments, convert the fragment to plain text, or serialize the fragment to -# the database. -# -# The ActionText::RichText record serializes the `body` attribute as -# `ActionText::Content`. -# -# class Message < ActiveRecord::Base -# has_rich_text :content -# end -# -# message = Message.create!(content: "

Funny times!

") -# body = message.content.body # => # -# body.to_s # => "

Funny times!

" -# body.to_plain_text # => "Funny times!" -# -# source://actiontext//lib/action_text/content.rb#24 -class ActionText::Content - include ::ActionText::ContentHelper - include ::ActionText::Serialization - include ::ActionText::Rendering - extend ::ActionText::Serialization::ClassMethods - extend ::ActionText::Rendering::ClassMethods - - # @return [Content] a new instance of Content - # - # source://actiontext//lib/action_text/content.rb#40 - def initialize(content = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/content.rb#169 - def ==(other); end - - # source://actiontext//lib/action_text/content.rb#93 - def append_attachables(attachables); end - - # source://actiontext//lib/action_text/content.rb#161 - def as_json(*_arg0); end - - # Extracts ActionText::Attachable objects from the HTML fragment: - # - # attachable = ActiveStorage::Blob.first - # html = %Q() - # content = ActionText::Content.new(html) - # content.attachables # => [attachable] - # - # source://actiontext//lib/action_text/content.rb#87 - def attachables; end - - # source://actiontext//lib/action_text/content.rb#71 - def attachment_galleries; end - - # Extracts ActionText::Attachment objects from the HTML fragment: - # - # attachable = ActiveStorage::Blob.first - # html = %Q() - # content = ActionText::Content.new(html) - # content.attachments # => [# ["http://example.com/"] - # - # source://actiontext//lib/action_text/content.rb#55 - def links; end - - # source://actiontext//lib/action_text/content.rb#30 - def present?(*_arg0, **_arg1, &_arg2); end - - # source://actiontext//lib/action_text/rendering.rb#14 - def render(*_arg0, **_arg1, &_arg2); end - - # source://actiontext//lib/action_text/content.rb#109 - def render_attachment_galleries(&block); end - - # source://actiontext//lib/action_text/content.rb#98 - def render_attachments(**options, &block); end - - # source://actiontext//lib/action_text/content.rb#138 - def to_html; end - - # source://actiontext//lib/action_text/content.rb#146 - def to_partial_path; end - - # Returns a plain-text version of the markup contained by the content, with tags - # removed but HTML entities encoded. - # - # content = ActionText::Content.new("

Funny times!

") - # content.to_plain_text # => "Funny times!" - # - # content = ActionText::Content.new("
safe
") - # content.to_plain_text # => "safeunsafe" - # - # NOTE: that the returned string is not HTML safe and should not be rendered in - # browsers. - # - # content = ActionText::Content.new("<script>alert()</script>") - # content.to_plain_text # => "" - # - # source://actiontext//lib/action_text/content.rb#130 - def to_plain_text; end - - # source://actiontext//lib/action_text/content.rb#142 - def to_rendered_html_with_layout; end - - # Safely transforms Content into an HTML String. - # - # content = ActionText::Content.new(content: "

Funny times!

") - # content.to_s # => "

Funny times!

" - # - # content = ActionText::Content.new("
safe
") - # content.to_s # => "
safeunsafe
" - # - # source://actiontext//lib/action_text/content.rb#157 - def to_s; end - - # source://actiontext//lib/action_text/content.rb#134 - def to_trix_html; end - - private - - # source://actiontext//lib/action_text/content.rb#186 - def attachment_for_node(node, with_full_attributes: T.unsafe(nil)); end - - # source://actiontext//lib/action_text/content.rb#191 - def attachment_gallery_for_node(node); end - - # source://actiontext//lib/action_text/content.rb#182 - def attachment_gallery_nodes; end - - # source://actiontext//lib/action_text/content.rb#178 - def attachment_nodes; end - - class << self - # source://actiontext//lib/action_text/content.rb#33 - def fragment_by_canonicalizing_content(content); end - - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 - def renderer; end - - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 - def renderer=(obj); end - end -end - -module ActionText::ContentHelper - def allowed_attributes; end - def allowed_attributes=(val); end - def allowed_tags; end - def allowed_tags=(val); end - def render_action_text_attachment(attachment, locals: T.unsafe(nil)); end - def render_action_text_attachments(content); end - def render_action_text_content(content); end - def sanitize_action_text_content(content); end - def sanitize_content_attachment(content_attachment); end - def sanitizer; end - def sanitizer=(val); end - def sanitizer_allowed_attributes; end - def sanitizer_allowed_tags; end - def scrubber; end - def scrubber=(val); end - - class << self - def allowed_attributes; end - def allowed_attributes=(val); end - def allowed_tags; end - def allowed_tags=(val); end - def sanitizer; end - def sanitizer=(val); end - def scrubber; end - def scrubber=(val); end - end -end - -class ActionText::EncryptedRichText < ::ActionText::RichText - include ::ActionText::EncryptedRichText::GeneratedAttributeMethods - include ::ActionText::EncryptedRichText::GeneratedAssociationMethods - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_encrypted_attributes; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_encrypted_attributes=(new_value); end - end -end - -module ActionText::EncryptedRichText::GeneratedAssociationMethods; end -module ActionText::EncryptedRichText::GeneratedAttributeMethods; end - -# source://actiontext//lib/action_text/encryption.rb#6 -module ActionText::Encryption - # source://actiontext//lib/action_text/encryption.rb#14 - def decrypt; end - - # source://actiontext//lib/action_text/encryption.rb#7 - def encrypt; end - - private - - # source://actiontext//lib/action_text/encryption.rb#26 - def decrypt_rich_texts; end - - # source://actiontext//lib/action_text/encryption.rb#22 - def encrypt_rich_texts; end - - # source://actiontext//lib/action_text/encryption.rb#34 - def encryptable_rich_texts; end - - # @return [Boolean] - # - # source://actiontext//lib/action_text/encryption.rb#30 - def has_encrypted_rich_texts?; end -end - -# source://actiontext//lib/action_text/engine.rb#13 -class ActionText::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end - -# # Action Text FixtureSet -# -# Fixtures are a way of organizing data that you want to test against; in short, -# sample data. -# -# To learn more about fixtures, read the ActiveRecord::FixtureSet documentation. -# -# ### YAML -# -# Like other Active Record-backed models, ActionText::RichText records inherit -# from ActiveRecord::Base instances and can therefore be populated by fixtures. -# -# Consider an `Article` class: -# -# class Article < ApplicationRecord -# has_rich_text :content -# end -# -# To declare fixture data for the related `content`, first declare fixture data -# for `Article` instances in `test/fixtures/articles.yml`: -# -# first: -# title: An Article -# -# Then declare the ActionText::RichText fixture data in -# `test/fixtures/action_text/rich_texts.yml`, making sure to declare each -# entry's `record:` key as a polymorphic relationship: -# -# first: -# record: first (Article) -# name: content -# body:
Hello, world.
-# -# When processed, Active Record will insert database records for each fixture -# entry and will ensure the Action Text relationship is intact. -# -# source://actiontext//lib/action_text/fixture_set.rb#41 -class ActionText::FixtureSet - class << self - # Fixtures support Action Text attachments as part of their `body` HTML. - # - # ### Examples - # - # For example, consider a second `Article` fixture declared in - # `test/fixtures/articles.yml`: - # - # second: - # title: Another Article - # - # You can attach a mention of `articles(:first)` to `second`'s `content` by - # embedding a call to `ActionText::FixtureSet.attachment` in the `body:` value - # in `test/fixtures/action_text/rich_texts.yml`: - # - # second: - # record: second (Article) - # name: content - # body:
Hello, <%= ActionText::FixtureSet.attachment("articles", :first) %>
- # - # source://actiontext//lib/action_text/fixture_set.rb#61 - def attachment(fixture_set_name, label, column_type: T.unsafe(nil)); end - end -end - -# source://actiontext//lib/action_text/fragment.rb#6 -class ActionText::Fragment - # @return [Fragment] a new instance of Fragment - # - # source://actiontext//lib/action_text/fragment.rb#28 - def initialize(source); end - - # source://actiontext//lib/action_text/fragment.rb#26 - def deconstruct(*_arg0, **_arg1, &_arg2); end - - # source://actiontext//lib/action_text/fragment.rb#32 - def find_all(selector); end - - # source://actiontext//lib/action_text/fragment.rb#41 - def replace(selector); end - - # Returns the value of attribute source. - # - # source://actiontext//lib/action_text/fragment.rb#24 - def source; end - - # source://actiontext//lib/action_text/fragment.rb#54 - def to_html; end - - # source://actiontext//lib/action_text/fragment.rb#50 - def to_plain_text; end - - # source://actiontext//lib/action_text/fragment.rb#58 - def to_s; end - - # @yield [source = self.source.dup] - # - # source://actiontext//lib/action_text/fragment.rb#36 - def update; end - - class << self - # source://actiontext//lib/action_text/fragment.rb#19 - def from_html(html); end - - # source://actiontext//lib/action_text/fragment.rb#8 - def wrap(fragment_or_html); end - end -end - -# source://actiontext//lib/action_text/html_conversion.rb#6 -module ActionText::HtmlConversion - extend ::ActionText::HtmlConversion - - # source://actiontext//lib/action_text/html_conversion.rb#17 - def create_element(tag_name, attributes = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/html_conversion.rb#13 - def fragment_for_html(html); end - - # source://actiontext//lib/action_text/html_conversion.rb#9 - def node_to_html(node); end - - private - - # source://actiontext//lib/action_text/html_conversion.rb#22 - def document; end -end - -# source://actiontext//lib/action_text/plain_text_conversion.rb#6 -module ActionText::PlainTextConversion - extend ::ActionText::PlainTextConversion - - # source://actiontext//lib/action_text/plain_text_conversion.rb#9 - def node_to_plain_text(node); end - - private - - # source://actiontext//lib/action_text/plain_text_conversion.rb#111 - def break_if_nested_list(node, text); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#88 - def bullet_for_li_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#100 - def indentation_for_li_node(node); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#107 - def list_node_depth_for_node(node); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#96 - def list_node_name_for_li_node(node); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#34 - def plain_text_for_block(node, index = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#66 - def plain_text_for_blockquote_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#50 - def plain_text_for_br_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#58 - def plain_text_for_div_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#62 - def plain_text_for_figcaption_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#34 - def plain_text_for_h1_node(node, index = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#76 - def plain_text_for_li_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#42 - def plain_text_for_list(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#14 - def plain_text_for_node(node, index = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#22 - def plain_text_for_node_children(node); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#42 - def plain_text_for_ol_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#34 - def plain_text_for_p_node(node, index = T.unsafe(nil)); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#54 - def plain_text_for_text_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#42 - def plain_text_for_ul_node(node, index); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#30 - def plain_text_method_for_node(node); end - - # source://actiontext//lib/action_text/plain_text_conversion.rb#84 - def remove_trailing_newlines(text); end -end - -class ActionText::Record < ::ActiveRecord::Base - include ::ActionText::Record::GeneratedAttributeMethods - include ::ActionText::Record::GeneratedAssociationMethods - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - end -end - -module ActionText::Record::GeneratedAssociationMethods; end -module ActionText::Record::GeneratedAttributeMethods; end - -# source://actiontext//lib/action_text/rendering.rb#9 -module ActionText::Rendering - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActionText::Rendering::ClassMethods -end - -# source://actiontext//lib/action_text/rendering.rb#0 -module ActionText::Rendering::ClassMethods - # source://actiontext//lib/action_text/rendering.rb#18 - def action_controller_renderer; end - - # source://actiontext//lib/action_text/rendering.rb#30 - def render(*args, &block); end - - # source://actiontext//lib/action_text/rendering.rb#22 - def with_renderer(renderer); end -end - -class ActionText::RichText < ::ActionText::Record - include ::ActionText::RichText::GeneratedAttributeMethods - include ::ActionText::RichText::GeneratedAssociationMethods - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_embeds_attachments(*args); end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_embeds_blobs(*args); end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_record(*args); end - - def blank?(*_arg0, **_arg1, &_arg2); end - def empty?(*_arg0, **_arg1, &_arg2); end - def nil?(*_arg0, **_arg1, &_arg2); end - def present?(*_arg0, **_arg1, &_arg2); end - def to_plain_text; end - def to_s(*_arg0, **_arg1, &_arg2); end - def to_trix_html; end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def validate_associated_records_for_embeds_attachments(*args); end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def validate_associated_records_for_embeds_blobs(*args); end - - class << self - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def with_attached_embeds(*args, **_arg1); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_attachment_reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_attachment_reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - end -end - -module ActionText::RichText::GeneratedAssociationMethods - # source://activestorage/8.0.5.1/lib/active_storage/attached/model.rb#215 - def embeds; end - - # source://activestorage/8.0.5.1/lib/active_storage/attached/model.rb#220 - def embeds=(attachables); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/collection_association.rb#62 - def embeds_attachment_ids; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/collection_association.rb#72 - def embeds_attachment_ids=(ids); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def embeds_attachments; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def embeds_attachments=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/collection_association.rb#62 - def embeds_blob_ids; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/collection_association.rb#72 - def embeds_blob_ids=(ids); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def embeds_blobs; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def embeds_blobs=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def record; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def record=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/belongs_to.rb#146 - def record_changed?; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/belongs_to.rb#150 - def record_previously_changed?; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#19 - def reload_record; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#23 - def reset_record; end -end - -module ActionText::RichText::GeneratedAttributeMethods; end - -# source://actiontext//lib/action_text/serialization.rb#6 -module ActionText::Serialization - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActionText::Serialization::ClassMethods - - # source://actiontext//lib/action_text/serialization.rb#34 - def _dump(*_arg0); end -end - -# source://actiontext//lib/action_text/serialization.rb#0 -module ActionText::Serialization::ClassMethods - # source://actiontext//lib/action_text/serialization.rb#10 - def _load(content); end - - # source://actiontext//lib/action_text/serialization.rb#14 - def dump(content); end - - # source://actiontext//lib/action_text/serialization.rb#10 - def load(content); end -end - -module ActionText::TagHelper - def rich_text_area_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - def rich_textarea_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - - class << self - def id; end - def id=(val); end - end -end - -# source://actiontext//lib/action_text/trix_attachment.rb#6 -class ActionText::TrixAttachment - # @return [TrixAttachment] a new instance of TrixAttachment - # - # source://actiontext//lib/action_text/trix_attachment.rb#53 - def initialize(node); end - - # source://actiontext//lib/action_text/trix_attachment.rb#57 - def attributes; end - - # Returns the value of attribute node. - # - # source://actiontext//lib/action_text/trix_attachment.rb#51 - def node; end - - # source://actiontext//lib/action_text/trix_attachment.rb#61 - def to_html; end - - # source://actiontext//lib/action_text/trix_attachment.rb#65 - def to_s; end - - private - - # source://actiontext//lib/action_text/trix_attachment.rb#70 - def attachment_attributes; end - - # source://actiontext//lib/action_text/trix_attachment.rb#74 - def composed_attributes; end - - # source://actiontext//lib/action_text/trix_attachment.rb#82 - def read_json_attribute(name); end - - # source://actiontext//lib/action_text/trix_attachment.rb#78 - def read_json_object_attribute(name); end - - class << self - # source://actiontext//lib/action_text/trix_attachment.rb#21 - def from_attributes(attributes); end - - private - - # source://actiontext//lib/action_text/trix_attachment.rb#35 - def process_attributes(attributes); end - - # source://actiontext//lib/action_text/trix_attachment.rb#39 - def transform_attribute_keys(attributes); end - - # source://actiontext//lib/action_text/trix_attachment.rb#43 - def typecast_attribute_values(attributes); end - end -end - -# source://actiontext//lib/action_text/trix_attachment.rb#11 -ActionText::TrixAttachment::ATTRIBUTES = T.let(T.unsafe(nil), Array) - -# source://actiontext//lib/action_text/trix_attachment.rb#12 -ActionText::TrixAttachment::ATTRIBUTE_TYPES = T.let(T.unsafe(nil), Hash) - -# source://actiontext//lib/action_text/trix_attachment.rb#10 -ActionText::TrixAttachment::COMPOSED_ATTRIBUTES = T.let(T.unsafe(nil), Array) - -# source://actiontext//lib/action_text/trix_attachment.rb#8 -ActionText::TrixAttachment::SELECTOR = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/trix_attachment.rb#7 -ActionText::TrixAttachment::TAG_NAME = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/gem_version.rb#11 -module ActionText::VERSION; end - -# source://actiontext//lib/action_text/gem_version.rb#12 -ActionText::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) - -# source://actiontext//lib/action_text/gem_version.rb#13 -ActionText::VERSION::MINOR = T.let(T.unsafe(nil), Integer) - -# source://actiontext//lib/action_text/gem_version.rb#15 -ActionText::VERSION::PRE = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/gem_version.rb#17 -ActionText::VERSION::STRING = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/gem_version.rb#14 -ActionText::VERSION::TINY = T.let(T.unsafe(nil), Integer) - -module ActionView::Helpers - include ::ActionView::Helpers::SanitizeHelper - include ::ActionView::Helpers::TextHelper - include ::ActionView::Helpers::UrlHelper - include ::ActionView::Helpers::SanitizeHelper - include ::ActionView::Helpers::TextHelper - include ::ActionView::Helpers::FormTagHelper - include ::ActionView::Helpers::FormHelper - include ::ActionView::Helpers::TranslationHelper - - mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods - mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - - class << self - # source://actionview/8.0.5.1/lib/action_view/helpers.rb#35 - def eager_load!; end - end -end - -class ActionView::Helpers::FormBuilder - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1721 - def initialize(object_name, object, template, options); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2650 - def button(value = T.unsafe(nil), options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2474 - def check_box(method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2474 - def checkbox(method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_options_helper.rb#913 - def collection_check_boxes(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_options_helper.rb#913 - def collection_checkboxes(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_options_helper.rb#926 - def collection_radio_buttons(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_options_helper.rb#865 - def collection_select(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def color_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def date_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/date_helper.rb#1244 - def date_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def datetime_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def datetime_local_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/date_helper.rb#1268 - def datetime_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def email_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2671 - def emitted_hidden_id?; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1686 - def field_helpers; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1686 - def field_helpers=(_arg0); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1686 - def field_helpers?; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1778 - def field_id(method, *suffixes, namespace: T.unsafe(nil), index: T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1798 - def field_name(method, *methods, multiple: T.unsafe(nil), index: T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2328 - def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2290 - def fields_for(record_name, record_object = T.unsafe(nil), fields_options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2558 - def file_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_options_helper.rb#877 - def grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2519 - def hidden_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1758 - def id; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1698 - def index; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2405 - def label(method, text = T.unsafe(nil), options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def month_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1698 - def multipart; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1701 - def multipart=(multipart); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1698 - def multipart?; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def number_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1696 - def object; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1696 - def object=(_arg0); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1696 - def object_name; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1696 - def object_name=(_arg0); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1696 - def options; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1696 - def options=(_arg0); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def password_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def phone_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2497 - def radio_button(method, tag_value, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def range_field(method, options = T.unsafe(nil)); end - - def rich_text_area(method, options = T.unsafe(nil)); end - def rich_textarea(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def search_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_options_helper.rb#853 - def select(method, choices = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2590 - def submit(value = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def telephone_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def text_area(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def text_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def textarea(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def time_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/date_helper.rb#1256 - def time_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_options_helper.rb#889 - def time_zone_select(method, priority_zones = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1717 - def to_model; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1713 - def to_partial_path; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def url_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2025 - def week_field(method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_options_helper.rb#901 - def weekday_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - - private - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2756 - def convert_to_legacy_options(options); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2738 - def fields_for_nested_model(name, object, fields_options, block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2709 - def fields_for_with_nested_attributes(association_name, association, options, block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2705 - def nested_attributes_association?(association_name); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2751 - def nested_child_index(name); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2676 - def objectify_options(options); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#2682 - def submit_default_value; end - - class << self - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1709 - def _to_partial_path; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1686 - def field_helpers; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1686 - def field_helpers=(value); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1686 - def field_helpers?; end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_field_helpers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_field_helpers=(new_value); end - end -end - -module ActionView::Helpers::FormHelper - include ::ActionView::Helpers::UrlHelper - include ::ActionView::Helpers::SanitizeHelper - include ::ActionView::Helpers::TextHelper - include ::ActionView::Helpers::FormTagHelper - - mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods - mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1592 - def _object_for_form_builder(object); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1348 - def check_box(object_name, method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1348 - def checkbox(object_name, method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1379 - def color_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1443 - def date_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1516 - def datetime_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1516 - def datetime_local_field(object_name, method, options = T.unsafe(nil)); end - - def default_form_builder; end - def default_form_builder=(_arg0); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1570 - def email_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1081 - def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1030 - def fields_for(record_name, record_object = T.unsafe(nil), options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1249 - def file_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#437 - def form_for(record, options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#757 - def form_with(model: T.unsafe(nil), scope: T.unsafe(nil), url: T.unsafe(nil), format: T.unsafe(nil), **options, &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#483 - def form_with_generates_ids; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#483 - def form_with_generates_ids=(val); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#481 - def form_with_generates_remote_forms; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#481 - def form_with_generates_remote_forms=(val); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1216 - def hidden_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1153 - def label(object_name, method, content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1535 - def month_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#485 - def multiple_file_field_include_hidden; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#485 - def multiple_file_field_include_hidden=(val); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1579 - def number_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1198 - def password_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1411 - def phone_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1371 - def radio_button(object_name, method, tag_value, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1588 - def range_field(object_name, method, options = T.unsafe(nil)); end - - def rich_text_area(object_name, method, options = T.unsafe(nil)); end - def rich_textarea(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1402 - def search_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1411 - def telephone_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1279 - def text_area(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1177 - def text_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1279 - def textarea(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1481 - def time_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1561 - def url_field(object_name, method, options = T.unsafe(nil)); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1552 - def week_field(object_name, method, options = T.unsafe(nil)); end - - private - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#467 - def apply_form_for_options!(object, options); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1626 - def default_form_builder_class; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1597 - def html_options_for_form_with(url_for_options = T.unsafe(nil), model = T.unsafe(nil), html: T.unsafe(nil), local: T.unsafe(nil), skip_enforcing_utf8: T.unsafe(nil), **options); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#1612 - def instantiate_builder(record_name, record_object, options); end - - class << self - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#483 - def form_with_generates_ids; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#483 - def form_with_generates_ids=(val); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#481 - def form_with_generates_remote_forms; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#481 - def form_with_generates_remote_forms=(val); end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#485 - def multiple_file_field_include_hidden; end - - # source://actionview/8.0.5.1/lib/action_view/helpers/form_helper.rb#485 - def multiple_file_field_include_hidden=(val); end - end -end - -module ActionView::Helpers::Tags; end - -class ActionView::Helpers::Tags::ActionText < ::ActionView::Helpers::Tags::Base - include ::ActionView::Helpers::Tags::Placeholderable - - def dom_id(*_arg0, **_arg1, &_arg2); end - def render; end -end diff --git a/sorbet/rbi/gems/actiontext@8.0.5.2.rbi b/sorbet/rbi/gems/actiontext@8.0.5.2.rbi new file mode 100644 index 00000000..685a855d --- /dev/null +++ b/sorbet/rbi/gems/actiontext@8.0.5.2.rbi @@ -0,0 +1,1386 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `actiontext` gem. +# Please instead update this file by running `bin/tapioca gem actiontext`. + + +# :markup: markdown +# :include: ../README.md +# :markup: markdown +# +# pkg:gem/actiontext#lib/action_text/gem_version.rb:5 +module ActionText + extend ::ActiveSupport::Autoload + + class << self + # pkg:gem/actiontext#lib/action_text/deprecator.rb:6 + def deprecator; end + + # Returns the currently loaded version of Action Text as a `Gem::Version`. + # + # pkg:gem/actiontext#lib/action_text/gem_version.rb:7 + def gem_version; end + + # pkg:gem/actiontext#lib/action_text.rb:47 + def html_document_class; end + + # pkg:gem/actiontext#lib/action_text.rb:53 + def html_document_fragment_class; end + + # pkg:gem/actiontext#lib/action_text/engine.rb:14 + def railtie_helpers_paths; end + + # pkg:gem/actiontext#lib/action_text/engine.rb:14 + def railtie_namespace; end + + # pkg:gem/actiontext#lib/action_text/engine.rb:14 + def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/engine.rb:14 + def table_name_prefix; end + + # pkg:gem/actiontext#lib/action_text/engine.rb:14 + def use_relative_model_naming?; end + + # Returns the currently loaded version of Action Text as a `Gem::Version`. + # + # pkg:gem/actiontext#lib/action_text/version.rb:9 + def version; end + end +end + +# # Action Text Attachable +# +# Include this module to make a record attachable to an ActionText::Content. +# +# class Person < ApplicationRecord +# include ActionText::Attachable +# end +# +# person = Person.create! name: "Javan" +# html = %Q() +# content = ActionText::Content.new(html) +# content.attachables # => [person] +# +# pkg:gem/actiontext#lib/action_text/attachable.rb:18 +module ActionText::Attachable + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActionText::Attachable::ClassMethods + + # pkg:gem/actiontext#lib/action_text/attachable.rb:83 + def attachable_content_type; end + + # pkg:gem/actiontext#lib/action_text/attachable.rb:87 + def attachable_filename; end + + # pkg:gem/actiontext#lib/action_text/attachable.rb:91 + def attachable_filesize; end + + # pkg:gem/actiontext#lib/action_text/attachable.rb:95 + def attachable_metadata; end + + # Returns the Signed Global ID for the attachable. The purpose of the ID is set + # to 'attachable' so it can't be reused for other purposes. + # + # pkg:gem/actiontext#lib/action_text/attachable.rb:79 + def attachable_sgid; end + + # pkg:gem/actiontext#lib/action_text/attachable.rb:99 + def previewable_attachable?; end + + # Returns the path to the partial that is used for rendering the attachable. + # Defaults to `to_partial_path`. + # + # Override to render a different partial: + # + # class User < ApplicationRecord + # def to_attachable_partial_path + # "users/attachable" + # end + # end + # + # pkg:gem/actiontext#lib/action_text/attachable.rb:127 + def to_attachable_partial_path; end + + # pkg:gem/actiontext#lib/action_text/attachable.rb:131 + def to_rich_text_attributes(attributes = T.unsafe(nil)); end + + # Returns the path to the partial that is used for rendering the attachable in + # Trix. Defaults to `to_partial_path`. + # + # Override to render a different partial: + # + # class User < ApplicationRecord + # def to_trix_content_attachment_partial_path + # "users/trix_content_attachment" + # end + # end + # + # pkg:gem/actiontext#lib/action_text/attachable.rb:113 + def to_trix_content_attachment_partial_path; end + + private + + # pkg:gem/actiontext#lib/action_text/attachable.rb:144 + def attribute_names_for_serialization; end + + # pkg:gem/actiontext#lib/action_text/attachable.rb:148 + def read_attribute_for_serialization(key); end + + class << self + # pkg:gem/actiontext#lib/action_text/attachable.rb:43 + def from_attachable_sgid(sgid, options = T.unsafe(nil)); end + + # Extracts the `ActionText::Attachable` from the attachment HTML node: + # + # person = Person.create! name: "Javan" + # html = %Q() + # fragment = ActionText::Fragment.wrap(html) + # attachment_node = fragment.find_all(ActionText::Attachment.tag_name).first + # ActionText::Attachable.from_node(attachment_node) # => person + # + # pkg:gem/actiontext#lib/action_text/attachable.rb:31 + def from_node(node); end + + private + + # pkg:gem/actiontext#lib/action_text/attachable.rb:50 + def attachable_from_sgid(sgid); end + end +end + +# pkg:gem/actiontext#lib/action_text/attachable.rb:57 +module ActionText::Attachable::ClassMethods + # pkg:gem/actiontext#lib/action_text/attachable.rb:58 + def from_attachable_sgid(sgid); end + + # pkg:gem/actiontext#lib/action_text/attachable.rb:72 + def to_missing_attachable_partial_path; end +end + +# pkg:gem/actiontext#lib/action_text/attachable.rb:21 +ActionText::Attachable::LOCATOR_NAME = T.let(T.unsafe(nil), String) + +# pkg:gem/actiontext#lib/action_text.rb:30 +module ActionText::Attachables + extend ::ActiveSupport::Autoload +end + +# pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:7 +class ActionText::Attachables::ContentAttachment + include ::ActiveModel::Validations + include ::ActiveSupport::Callbacks + include ::ActiveModel::Validations::HelperMethods + include ::ActiveModel::Conversion + include ::ActiveModel::ForbiddenAttributesProtection + include ::ActiveModel::AttributeAssignment + include ::ActiveModel::API + include ::ActiveModel::Access + include ::ActiveModel::Model + extend ::ActiveModel::Validations::ClassMethods + extend ::ActiveModel::Naming + extend ::ActiveModel::Callbacks + extend ::ActiveSupport::Callbacks::ClassMethods + extend ::ActiveSupport::DescendantsTracker + extend ::ActiveModel::Translation + extend ::ActiveModel::Validations::HelperMethods + extend ::ActiveModel::Conversion::ClassMethods + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _run_validate_callbacks(&block); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _validate_callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _validators; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _validators?; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:20 + def attachable_plain_text_representation(caption); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:15 + def content; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:15 + def content=(_arg0); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:15 + def content_type; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:15 + def content_type=(_arg0); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def model_name(&); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def param_delimiter=(_arg0); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:24 + def to_html; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:32 + def to_partial_path; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:28 + def to_s; end + + private + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:37 + def content_instance; end + + class << self + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __callbacks=(value); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _validate_callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _validate_callbacks=(value); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _validators; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _validators=(value); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def _validators?; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:10 + def from_node(node); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def param_delimiter; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def param_delimiter=(value); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def param_delimiter?; end + + private + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __class_attr___callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __class_attr___callbacks=(new_value); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __class_attr__validators; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __class_attr__validators=(new_value); end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __class_attr_param_delimiter; end + + # pkg:gem/actiontext#lib/action_text/attachables/content_attachment.rb:8 + def __class_attr_param_delimiter=(new_value); end + end +end + +# pkg:gem/actiontext#lib/action_text/attachables/missing_attachable.rb:7 +class ActionText::Attachables::MissingAttachable + extend ::ActiveModel::Naming + + # pkg:gem/actiontext#lib/action_text/attachables/missing_attachable.rb:12 + def initialize(sgid); end + + # pkg:gem/actiontext#lib/action_text/attachables/missing_attachable.rb:24 + def model; end + + # pkg:gem/actiontext#lib/action_text/attachables/missing_attachable.rb:8 + def model_name(&); end + + # pkg:gem/actiontext#lib/action_text/attachables/missing_attachable.rb:16 + def to_partial_path; end +end + +# pkg:gem/actiontext#lib/action_text/attachables/missing_attachable.rb:10 +ActionText::Attachables::MissingAttachable::DEFAULT_PARTIAL_PATH = T.let(T.unsafe(nil), String) + +# pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:7 +class ActionText::Attachables::RemoteImage + extend ::ActiveModel::Naming + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:32 + def initialize(attributes = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:39 + def attachable_plain_text_representation(caption); end + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:30 + def content_type; end + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:30 + def height; end + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:8 + def model_name(&); end + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:43 + def to_partial_path; end + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:30 + def url; end + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:30 + def width; end + + class << self + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:11 + def from_node(node); end + + private + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:22 + def attributes_from_node(node); end + + # pkg:gem/actiontext#lib/action_text/attachables/remote_image.rb:18 + def content_type_is_image?(content_type); end + end +end + +# # Action Text Attachment +# +# Attachments serialize attachables to HTML or plain text. +# +# class Person < ApplicationRecord +# include ActionText::Attachable +# end +# +# attachable = Person.create! name: "Javan" +# attachment = ActionText::Attachment.from_attachable(attachable) +# attachment.to_html # => " " "[racecar.jpg]" + # + # Use the `caption` when set: + # + # attachment = ActionText::Attachment.from_attachable(attachable, caption: "Vroom vroom") + # attachment.to_plain_text # => "[Vroom vroom]" + # + # The presentation can be overridden by implementing the + # `attachable_plain_text_representation` method: + # + # class Person < ApplicationRecord + # include ActionText::Attachable + # + # def attachable_plain_text_representation + # "[#{name}]" + # end + # end + # + # attachable = Person.create! name: "Javan" + # attachment = ActionText::Attachment.from_attachable(attachable) + # attachment.to_plain_text # => "[Javan]" + # + # pkg:gem/actiontext#lib/action_text/attachment.rb:110 + def to_plain_text; end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:127 + def to_s; end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:81 + def with_full_attributes; end + + private + + # pkg:gem/actiontext#lib/action_text/attachment.rb:140 + def attachable_attributes; end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:136 + def node_attributes; end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:66 + def respond_to_missing?(name, include_private = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:144 + def sgid_attributes; end + + class << self + # pkg:gem/actiontext#lib/action_text/attachment.rb:27 + def fragment_by_canonicalizing_attachments(content); end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:39 + def from_attachable(attachable, attributes = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:35 + def from_attachables(attachables); end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:45 + def from_attributes(attributes, attachable = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:31 + def from_node(node, attachable = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:22 + def tag_name; end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:22 + def tag_name=(val); end + + private + + # pkg:gem/actiontext#lib/action_text/attachment.rb:52 + def node_from_attributes(attributes); end + + # pkg:gem/actiontext#lib/action_text/attachment.rb:58 + def process_attributes(attributes); end + end +end + +# pkg:gem/actiontext#lib/action_text/attachment.rb:24 +ActionText::Attachment::ATTRIBUTES = T.let(T.unsafe(nil), Array) + +# pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:6 +class ActionText::AttachmentGallery + include ::ActiveModel::Validations + include ::ActiveSupport::Callbacks + include ::ActiveModel::Validations::HelperMethods + include ::ActiveModel::Conversion + include ::ActiveModel::ForbiddenAttributesProtection + include ::ActiveModel::AttributeAssignment + include ::ActiveModel::API + include ::ActiveModel::Access + include ::ActiveModel::Model + extend ::ActiveModel::Validations::ClassMethods + extend ::ActiveModel::Naming + extend ::ActiveModel::Callbacks + extend ::ActiveSupport::Callbacks::ClassMethods + extend ::ActiveSupport::DescendantsTracker + extend ::ActiveModel::Translation + extend ::ActiveModel::Validations::HelperMethods + extend ::ActiveModel::Conversion::ClassMethods + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:54 + def initialize(node); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _run_validate_callbacks(&block); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _validate_callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _validators; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _validators?; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:58 + def attachments; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:68 + def inspect; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def model_name(&); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:52 + def node; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def param_delimiter=(_arg0); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:64 + def size; end + + class << self + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __callbacks=(value); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _validate_callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _validate_callbacks=(value); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _validators; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _validators=(value); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def _validators?; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:43 + def attachment_selector; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:27 + def find_attachment_gallery_nodes(content); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:13 + def fragment_by_canonicalizing_attachment_galleries(content); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:19 + def fragment_by_replacing_attachment_gallery_nodes(content); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:39 + def from_node(node); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def param_delimiter; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def param_delimiter=(value); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def param_delimiter?; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:47 + def selector; end + + private + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __class_attr___callbacks; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __class_attr___callbacks=(new_value); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __class_attr__validators; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __class_attr__validators=(new_value); end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __class_attr_param_delimiter; end + + # pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:7 + def __class_attr_param_delimiter=(new_value); end + end +end + +# pkg:gem/actiontext#lib/action_text/attachment_gallery.rb:9 +ActionText::AttachmentGallery::TAG_NAME = T.let(T.unsafe(nil), String) + +# pkg:gem/actiontext#lib/action_text.rb:38 +module ActionText::Attachments + extend ::ActiveSupport::Autoload +end + +# pkg:gem/actiontext#lib/action_text/attachments/caching.rb:7 +module ActionText::Attachments::Caching + # pkg:gem/actiontext#lib/action_text/attachments/caching.rb:8 + def cache_key(*args); end + + private + + # pkg:gem/actiontext#lib/action_text/attachments/caching.rb:13 + def cache_digest; end +end + +# pkg:gem/actiontext#lib/action_text/attachments/minification.rb:7 +module ActionText::Attachments::Minification + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActionText::Attachments::Minification::ClassMethods +end + +# pkg:gem/actiontext#lib/action_text/attachments/minification.rb:10 +module ActionText::Attachments::Minification::ClassMethods + # pkg:gem/actiontext#lib/action_text/attachments/minification.rb:11 + def fragment_by_minifying_attachments(content); end +end + +# pkg:gem/actiontext#lib/action_text/attachments/trix_conversion.rb:9 +module ActionText::Attachments::TrixConversion + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActionText::Attachments::TrixConversion::ClassMethods + + # pkg:gem/actiontext#lib/action_text/attachments/trix_conversion.rb:24 + def to_trix_attachment(content = T.unsafe(nil)); end + + private + + # pkg:gem/actiontext#lib/action_text/attachments/trix_conversion.rb:31 + def trix_attachment_content; end +end + +# pkg:gem/actiontext#lib/action_text/attachments/trix_conversion.rb:12 +module ActionText::Attachments::TrixConversion::ClassMethods + # pkg:gem/actiontext#lib/action_text/attachments/trix_conversion.rb:13 + def fragment_by_converting_trix_attachments(content); end + + # pkg:gem/actiontext#lib/action_text/attachments/trix_conversion.rb:19 + def from_trix_attachment(trix_attachment); end +end + +# pkg:gem/actiontext#lib/action_text/attribute.rb:6 +module ActionText::Attribute + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActionText::Attribute::ClassMethods +end + +# pkg:gem/actiontext#lib/action_text/attribute.rb:9 +module ActionText::Attribute::ClassMethods + # pkg:gem/actiontext#lib/action_text/attribute.rb:53 + def has_rich_text(name, encrypted: T.unsafe(nil), strict_loading: T.unsafe(nil), store_if_blank: T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/attribute.rb:100 + def rich_text_association_names; end + + # pkg:gem/actiontext#lib/action_text/attribute.rb:95 + def with_all_rich_text; end +end + +# # Action Text Content +# +# The `ActionText::Content` class wraps an HTML fragment to add support for +# parsing, rendering and serialization. It can be used to extract links and +# attachments, convert the fragment to plain text, or serialize the fragment to +# the database. +# +# The ActionText::RichText record serializes the `body` attribute as +# `ActionText::Content`. +# +# class Message < ActiveRecord::Base +# has_rich_text :content +# end +# +# message = Message.create!(content: "

Funny times!

") +# body = message.content.body # => # +# body.to_s # => "

Funny times!

" +# body.to_plain_text # => "Funny times!" +# +# pkg:gem/actiontext#lib/action_text/content.rb:24 +class ActionText::Content + include ::ActionText::ContentHelper + include ::ActionText::Serialization + include ::ActionText::Rendering + extend ::ActionText::Serialization::ClassMethods + extend ::ActionText::Rendering::ClassMethods + + # pkg:gem/actiontext#lib/action_text/content.rb:40 + def initialize(content = T.unsafe(nil), options = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/content.rb:169 + def ==(other); end + + # pkg:gem/actiontext#lib/action_text/content.rb:93 + def append_attachables(attachables); end + + # pkg:gem/actiontext#lib/action_text/content.rb:161 + def as_json(*); end + + # Extracts ActionText::Attachable objects from the HTML fragment: + # + # attachable = ActiveStorage::Blob.first + # html = %Q() + # content = ActionText::Content.new(html) + # content.attachables # => [attachable] + # + # pkg:gem/actiontext#lib/action_text/content.rb:87 + def attachables; end + + # pkg:gem/actiontext#lib/action_text/content.rb:71 + def attachment_galleries; end + + # Extracts ActionText::Attachment objects from the HTML fragment: + # + # attachable = ActiveStorage::Blob.first + # html = %Q() + # content = ActionText::Content.new(html) + # content.attachments # => [# ["http://example.com/"] + # + # pkg:gem/actiontext#lib/action_text/content.rb:55 + def links; end + + # pkg:gem/actiontext#lib/action_text/content.rb:30 + def present?(*, **, &); end + + # pkg:gem/actiontext#lib/action_text/content.rb:25 + def render(*, **, &); end + + # pkg:gem/actiontext#lib/action_text/content.rb:109 + def render_attachment_galleries(&block); end + + # pkg:gem/actiontext#lib/action_text/content.rb:98 + def render_attachments(**options, &block); end + + # pkg:gem/actiontext#lib/action_text/content.rb:138 + def to_html; end + + # pkg:gem/actiontext#lib/action_text/content.rb:146 + def to_partial_path; end + + # Returns a plain-text version of the markup contained by the content, with tags + # removed but HTML entities encoded. + # + # content = ActionText::Content.new("

Funny times!

") + # content.to_plain_text # => "Funny times!" + # + # content = ActionText::Content.new("
safe
") + # content.to_plain_text # => "safeunsafe" + # + # NOTE: that the returned string is not HTML safe and should not be rendered in + # browsers. + # + # content = ActionText::Content.new("<script>alert()</script>") + # content.to_plain_text # => "" + # + # pkg:gem/actiontext#lib/action_text/content.rb:130 + def to_plain_text; end + + # pkg:gem/actiontext#lib/action_text/content.rb:142 + def to_rendered_html_with_layout; end + + # Safely transforms Content into an HTML String. + # + # content = ActionText::Content.new(content: "

Funny times!

") + # content.to_s # => "

Funny times!

" + # + # content = ActionText::Content.new("
safe
") + # content.to_s # => "
safeunsafe
" + # + # pkg:gem/actiontext#lib/action_text/content.rb:157 + def to_s; end + + # pkg:gem/actiontext#lib/action_text/content.rb:134 + def to_trix_html; end + + private + + # pkg:gem/actiontext#lib/action_text/content.rb:186 + def attachment_for_node(node, with_full_attributes: T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/content.rb:191 + def attachment_gallery_for_node(node); end + + # pkg:gem/actiontext#lib/action_text/content.rb:182 + def attachment_gallery_nodes; end + + # pkg:gem/actiontext#lib/action_text/content.rb:178 + def attachment_nodes; end + + class << self + # pkg:gem/actiontext#lib/action_text/content.rb:33 + def fragment_by_canonicalizing_content(content); end + + # pkg:gem/actiontext#lib/action_text/content.rb:25 + def renderer; end + + # pkg:gem/actiontext#lib/action_text/content.rb:25 + def renderer=(obj); end + end +end + +module ActionText::ContentHelper + def allowed_attributes; end + def allowed_attributes=(val); end + def allowed_tags; end + def allowed_tags=(val); end + def render_action_text_attachment(attachment, locals: T.unsafe(nil)); end + def render_action_text_attachments(content); end + def render_action_text_content(content); end + def sanitize_action_text_content(content); end + def sanitize_content_attachment(content_attachment); end + def sanitizer; end + def sanitizer=(val); end + def sanitizer_allowed_attributes; end + def sanitizer_allowed_tags; end + def scrubber; end + def scrubber=(val); end + + class << self + def allowed_attributes; end + def allowed_attributes=(val); end + def allowed_tags; end + def allowed_tags=(val); end + def sanitizer; end + def sanitizer=(val); end + def scrubber; end + def scrubber=(val); end + end +end + +class ActionText::EncryptedRichText < ::ActionText::RichText + include ::ActionText::EncryptedRichText::GeneratedAttributeMethods + include ::ActionText::EncryptedRichText::GeneratedAssociationMethods + + class << self + private + + def __class_attr__validators; end + def __class_attr__validators=(new_value); end + def __class_attr_defined_enums; end + def __class_attr_defined_enums=(new_value); end + def __class_attr_encrypted_attributes; end + def __class_attr_encrypted_attributes=(new_value); end + end +end + +module ActionText::EncryptedRichText::GeneratedAssociationMethods; end +module ActionText::EncryptedRichText::GeneratedAttributeMethods; end + +# pkg:gem/actiontext#lib/action_text/encryption.rb:6 +module ActionText::Encryption + # pkg:gem/actiontext#lib/action_text/encryption.rb:14 + def decrypt; end + + # pkg:gem/actiontext#lib/action_text/encryption.rb:7 + def encrypt; end + + private + + # pkg:gem/actiontext#lib/action_text/encryption.rb:26 + def decrypt_rich_texts; end + + # pkg:gem/actiontext#lib/action_text/encryption.rb:22 + def encrypt_rich_texts; end + + # pkg:gem/actiontext#lib/action_text/encryption.rb:34 + def encryptable_rich_texts; end + + # pkg:gem/actiontext#lib/action_text/encryption.rb:30 + def has_encrypted_rich_texts?; end +end + +# pkg:gem/actiontext#lib/action_text/engine.rb:13 +class ActionText::Engine < ::Rails::Engine; end + +# # Action Text FixtureSet +# +# Fixtures are a way of organizing data that you want to test against; in short, +# sample data. +# +# To learn more about fixtures, read the ActiveRecord::FixtureSet documentation. +# +# ### YAML +# +# Like other Active Record-backed models, ActionText::RichText records inherit +# from ActiveRecord::Base instances and can therefore be populated by fixtures. +# +# Consider an `Article` class: +# +# class Article < ApplicationRecord +# has_rich_text :content +# end +# +# To declare fixture data for the related `content`, first declare fixture data +# for `Article` instances in `test/fixtures/articles.yml`: +# +# first: +# title: An Article +# +# Then declare the ActionText::RichText fixture data in +# `test/fixtures/action_text/rich_texts.yml`, making sure to declare each +# entry's `record:` key as a polymorphic relationship: +# +# first: +# record: first (Article) +# name: content +# body:
Hello, world.
+# +# When processed, Active Record will insert database records for each fixture +# entry and will ensure the Action Text relationship is intact. +# +# pkg:gem/actiontext#lib/action_text/fixture_set.rb:41 +class ActionText::FixtureSet + class << self + # Fixtures support Action Text attachments as part of their `body` HTML. + # + # ### Examples + # + # For example, consider a second `Article` fixture declared in + # `test/fixtures/articles.yml`: + # + # second: + # title: Another Article + # + # You can attach a mention of `articles(:first)` to `second`'s `content` by + # embedding a call to `ActionText::FixtureSet.attachment` in the `body:` value + # in `test/fixtures/action_text/rich_texts.yml`: + # + # second: + # record: second (Article) + # name: content + # body:
Hello, <%= ActionText::FixtureSet.attachment("articles", :first) %>
+ # + # pkg:gem/actiontext#lib/action_text/fixture_set.rb:61 + def attachment(fixture_set_name, label, column_type: T.unsafe(nil)); end + end +end + +# pkg:gem/actiontext#lib/action_text/fragment.rb:6 +class ActionText::Fragment + # pkg:gem/actiontext#lib/action_text/fragment.rb:28 + def initialize(source); end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:26 + def deconstruct(*, **, &); end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:32 + def find_all(selector); end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:41 + def replace(selector); end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:24 + def source; end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:54 + def to_html; end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:50 + def to_plain_text; end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:58 + def to_s; end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:36 + def update; end + + class << self + # pkg:gem/actiontext#lib/action_text/fragment.rb:19 + def from_html(html); end + + # pkg:gem/actiontext#lib/action_text/fragment.rb:8 + def wrap(fragment_or_html); end + end +end + +# pkg:gem/actiontext#lib/action_text/html_conversion.rb:6 +module ActionText::HtmlConversion + extend ::ActionText::HtmlConversion + + # pkg:gem/actiontext#lib/action_text/html_conversion.rb:17 + def create_element(tag_name, attributes = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/html_conversion.rb:13 + def fragment_for_html(html); end + + # pkg:gem/actiontext#lib/action_text/html_conversion.rb:9 + def node_to_html(node); end + + private + + # pkg:gem/actiontext#lib/action_text/html_conversion.rb:22 + def document; end +end + +# pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:6 +module ActionText::PlainTextConversion + extend ::ActionText::PlainTextConversion + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:9 + def node_to_plain_text(node); end + + private + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:111 + def break_if_nested_list(node, text); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:88 + def bullet_for_li_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:100 + def indentation_for_li_node(node); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:107 + def list_node_depth_for_node(node); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:96 + def list_node_name_for_li_node(node); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:34 + def plain_text_for_block(node, index = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:66 + def plain_text_for_blockquote_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:50 + def plain_text_for_br_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:58 + def plain_text_for_div_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:62 + def plain_text_for_figcaption_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:39 + def plain_text_for_h1_node(node, index = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:76 + def plain_text_for_li_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:42 + def plain_text_for_list(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:14 + def plain_text_for_node(node, index = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:22 + def plain_text_for_node_children(node); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:47 + def plain_text_for_ol_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:39 + def plain_text_for_p_node(node, index = T.unsafe(nil)); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:54 + def plain_text_for_text_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:47 + def plain_text_for_ul_node(node, index); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:30 + def plain_text_method_for_node(node); end + + # pkg:gem/actiontext#lib/action_text/plain_text_conversion.rb:84 + def remove_trailing_newlines(text); end +end + +class ActionText::Record < ::ActiveRecord::Base + include ::ActionText::Record::GeneratedAttributeMethods + include ::ActionText::Record::GeneratedAssociationMethods + + class << self + private + + def __class_attr__validators; end + def __class_attr__validators=(new_value); end + def __class_attr_defined_enums; end + def __class_attr_defined_enums=(new_value); end + end +end + +module ActionText::Record::GeneratedAssociationMethods; end +module ActionText::Record::GeneratedAttributeMethods; end + +# pkg:gem/actiontext#lib/action_text/rendering.rb:9 +module ActionText::Rendering + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActionText::Rendering::ClassMethods +end + +# pkg:gem/actiontext#lib/action_text/rendering.rb:17 +module ActionText::Rendering::ClassMethods + # pkg:gem/actiontext#lib/action_text/rendering.rb:18 + def action_controller_renderer; end + + # pkg:gem/actiontext#lib/action_text/rendering.rb:30 + def render(*args, &block); end + + # pkg:gem/actiontext#lib/action_text/rendering.rb:22 + def with_renderer(renderer); end +end + +class ActionText::RichText < ::ActionText::Record + include ::ActionText::RichText::GeneratedAttributeMethods + include ::ActionText::RichText::GeneratedAssociationMethods + + def autosave_associated_records_for_embeds_attachments(*args); end + def autosave_associated_records_for_embeds_blobs(*args); end + def autosave_associated_records_for_record(*args); end + def blank?(*, **, &); end + def empty?(*, **, &); end + def nil?(*, **, &); end + def present?(*, **, &); end + def to_plain_text; end + def to_s(*, **, &); end + def to_trix_html; end + def validate_associated_records_for_embeds_attachments(*args); end + def validate_associated_records_for_embeds_blobs(*args); end + + class << self + def with_attached_embeds(*args, **); end + + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr__reflections; end + def __class_attr__reflections=(new_value); end + def __class_attr__validators; end + def __class_attr__validators=(new_value); end + def __class_attr_attachment_reflections; end + def __class_attr_attachment_reflections=(new_value); end + def __class_attr_defined_enums; end + def __class_attr_defined_enums=(new_value); end + end +end + +module ActionText::RichText::GeneratedAssociationMethods + def embeds; end + def embeds=(attachables); end + def embeds_attachment_ids; end + def embeds_attachment_ids=(ids); end + def embeds_attachments; end + def embeds_attachments=(value); end + def embeds_blob_ids; end + def embeds_blob_ids=(ids); end + def embeds_blobs; end + def embeds_blobs=(value); end + def record; end + def record=(value); end + def record_changed?; end + def record_previously_changed?; end + def reload_record; end + def reset_record; end +end + +module ActionText::RichText::GeneratedAttributeMethods; end + +# pkg:gem/actiontext#lib/action_text/serialization.rb:6 +module ActionText::Serialization + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActionText::Serialization::ClassMethods + + # pkg:gem/actiontext#lib/action_text/serialization.rb:34 + def _dump(*); end +end + +# pkg:gem/actiontext#lib/action_text/serialization.rb:9 +module ActionText::Serialization::ClassMethods + # pkg:gem/actiontext#lib/action_text/serialization.rb:31 + def _load(content); end + + # pkg:gem/actiontext#lib/action_text/serialization.rb:14 + def dump(content); end + + # pkg:gem/actiontext#lib/action_text/serialization.rb:10 + def load(content); end +end + +module ActionText::TagHelper + def rich_text_area_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end + def rich_textarea_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end + + class << self + def id; end + def id=(val); end + end +end + +# pkg:gem/actiontext#lib/action_text/trix_attachment.rb:6 +class ActionText::TrixAttachment + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:53 + def initialize(node); end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:57 + def attributes; end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:51 + def node; end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:61 + def to_html; end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:65 + def to_s; end + + private + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:70 + def attachment_attributes; end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:74 + def composed_attributes; end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:82 + def read_json_attribute(name); end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:78 + def read_json_object_attribute(name); end + + class << self + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:21 + def from_attributes(attributes); end + + private + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:35 + def process_attributes(attributes); end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:39 + def transform_attribute_keys(attributes); end + + # pkg:gem/actiontext#lib/action_text/trix_attachment.rb:43 + def typecast_attribute_values(attributes); end + end +end + +# pkg:gem/actiontext#lib/action_text/trix_attachment.rb:11 +ActionText::TrixAttachment::ATTRIBUTES = T.let(T.unsafe(nil), Array) + +# pkg:gem/actiontext#lib/action_text/trix_attachment.rb:12 +ActionText::TrixAttachment::ATTRIBUTE_TYPES = T.let(T.unsafe(nil), Hash) + +# pkg:gem/actiontext#lib/action_text/trix_attachment.rb:10 +ActionText::TrixAttachment::COMPOSED_ATTRIBUTES = T.let(T.unsafe(nil), Array) + +# pkg:gem/actiontext#lib/action_text/trix_attachment.rb:8 +ActionText::TrixAttachment::SELECTOR = T.let(T.unsafe(nil), String) + +# pkg:gem/actiontext#lib/action_text/trix_attachment.rb:7 +ActionText::TrixAttachment::TAG_NAME = T.let(T.unsafe(nil), String) + +# pkg:gem/actiontext#lib/action_text/gem_version.rb:11 +module ActionText::VERSION; end + +# pkg:gem/actiontext#lib/action_text/gem_version.rb:12 +ActionText::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) + +# pkg:gem/actiontext#lib/action_text/gem_version.rb:13 +ActionText::VERSION::MINOR = T.let(T.unsafe(nil), Integer) + +# pkg:gem/actiontext#lib/action_text/gem_version.rb:15 +ActionText::VERSION::PRE = T.let(T.unsafe(nil), String) + +# pkg:gem/actiontext#lib/action_text/gem_version.rb:17 +ActionText::VERSION::STRING = T.let(T.unsafe(nil), String) + +# pkg:gem/actiontext#lib/action_text/gem_version.rb:14 +ActionText::VERSION::TINY = T.let(T.unsafe(nil), Integer) + +module ActionView::Helpers + include ::ActionView::Helpers::SanitizeHelper + include ::ActionView::Helpers::TextHelper + include ::ActionView::Helpers::UrlHelper + include ::ActionView::Helpers::SanitizeHelper + include ::ActionView::Helpers::TextHelper + include ::ActionView::Helpers::FormTagHelper + include ::ActionView::Helpers::FormHelper + include ::ActionView::Helpers::TranslationHelper + + mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods + mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods +end + +class ActionView::Helpers::FormBuilder + def rich_text_area(method, options = T.unsafe(nil)); end + def rich_textarea(method, options = T.unsafe(nil)); end +end + +module ActionView::Helpers::FormHelper + include ::ActionView::Helpers::UrlHelper + include ::ActionView::Helpers::SanitizeHelper + include ::ActionView::Helpers::TextHelper + include ::ActionView::Helpers::FormTagHelper + + mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods + mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods + + def rich_text_area(object_name, method, options = T.unsafe(nil)); end + def rich_textarea(object_name, method, options = T.unsafe(nil)); end +end + +module ActionView::Helpers::Tags; end + +class ActionView::Helpers::Tags::ActionText < ::ActionView::Helpers::Tags::Base + include ::ActionView::Helpers::Tags::Placeholderable + + def dom_id(*, **, &); end + def render; end +end diff --git a/sorbet/rbi/gems/actionview@8.0.5.1.rbi b/sorbet/rbi/gems/actionview@8.0.5.2.rbi similarity index 71% rename from sorbet/rbi/gems/actionview@8.0.5.1.rbi rename to sorbet/rbi/gems/actionview@8.0.5.2.rbi index e4768996..af1dd671 100644 --- a/sorbet/rbi/gems/actionview@8.0.5.1.rbi +++ b/sorbet/rbi/gems/actionview@8.0.5.2.rbi @@ -11,647 +11,30 @@ class ActionController::Base < ::ActionController::Metal include ::AbstractController::Caching::ConfigMethods include ::ActionController::BasicImplicitRender extend ::AbstractController::Helpers::Resolution - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods=(_arg0); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods?; end - - # source://actionview//lib/action_view/layouts.rb#212 - def _layout_conditions; end - - # source://actionview//lib/action_view/layouts.rb#212 - def _layout_conditions?; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _process_action_callbacks; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/renderers.rb#31 - def _renderers; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/renderers.rb#31 - def _renderers=(_arg0); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/renderers.rb#31 - def _renderers?; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_process_action_callbacks(&block); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies=(_arg0); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options=(_arg0); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/flash.rb#38 - def alert; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def allow_forgery_protection; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def allow_forgery_protection=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def asset_host; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def asset_host=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def assets_dir; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def assets_dir=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def csrf_token_storage_strategy; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def csrf_token_storage_strategy=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def default_asset_host_protocol; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def default_asset_host_protocol=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def default_static_extension; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def default_static_extension=(value); end - - # source://actionpack/8.0.5.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options; end - - # source://actionpack/8.0.5.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options=(_arg0); end - - # source://actionpack/8.0.5.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options?; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def enable_fragment_cache_logging; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def enable_fragment_cache_logging=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest=(_arg0); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers=(_arg0); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/flash.rb#12 - def flash(*_arg0, **_arg1, &_arg2); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def forgery_protection_origin_check; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def forgery_protection_origin_check=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def forgery_protection_strategy; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def forgery_protection_strategy=(value); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys=(_arg0); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path=(_arg0); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers=(_arg0); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers?; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def javascripts_dir; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def javascripts_dir=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def log_warning_on_csrf_failure; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def log_warning_on_csrf_failure=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def logger; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def logger=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/flash.rb#38 - def notice; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def per_form_csrf_tokens; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def per_form_csrf_tokens=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def perform_caching; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def perform_caching=(value); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions=(val); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects=(val); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def relative_url_root; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def relative_url_root=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def request_forgery_protection_token; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def request_forgery_protection_token=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers=(_arg0); end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def stylesheets_dir; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def stylesheets_dir=(value); end - - private - - # source://actionview//lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - # source://actionpack/8.0.5.1/lib/action_controller/base.rb#324 - def _protected_ivars; end - - class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/form_builder.rb#35 - def _default_form_builder; end - - # source://actionpack/8.0.5.1/lib/action_controller/form_builder.rb#35 - def _default_form_builder=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/form_builder.rb#35 - def _default_form_builder?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/flash.rb#10 - def _flash_types; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/flash.rb#10 - def _flash_types=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/flash.rb#10 - def _flash_types?; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods=(value); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods?; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#17 - def _helpers; end - - # source://actionview//lib/action_view/layouts.rb#211 - def _layout; end - - # source://actionview//lib/action_view/layouts.rb#211 - def _layout=(value); end - - # source://actionview//lib/action_view/layouts.rb#211 - def _layout?; end - - # source://actionview//lib/action_view/layouts.rb#212 - def _layout_conditions; end - - # source://actionview//lib/action_view/layouts.rb#212 - def _layout_conditions=(value); end - - # source://actionview//lib/action_view/layouts.rb#212 - def _layout_conditions?; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _process_action_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _process_action_callbacks=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/renderers.rb#31 - def _renderers; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/renderers.rb#31 - def _renderers=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/renderers.rb#31 - def _renderers?; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies=(value); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options?; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def allow_forgery_protection; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def allow_forgery_protection=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def asset_host; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def asset_host=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def assets_dir; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def assets_dir=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def csrf_token_storage_strategy; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def csrf_token_storage_strategy=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def default_asset_host_protocol; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def default_asset_host_protocol=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def default_static_extension; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def default_static_extension=(value); end - - # source://actionpack/8.0.5.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options; end - - # source://actionpack/8.0.5.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options=(value); end - - # source://actionpack/8.0.5.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options?; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def enable_fragment_cache_logging; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def enable_fragment_cache_logging=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers?; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def forgery_protection_origin_check; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def forgery_protection_origin_check=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def forgery_protection_strategy; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def forgery_protection_strategy=(value); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys=(value); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path?; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers?; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def javascripts_dir; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def javascripts_dir=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def log_warning_on_csrf_failure; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def log_warning_on_csrf_failure=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def logger; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def logger=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def per_form_csrf_tokens; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def per_form_csrf_tokens=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def perform_caching; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def perform_caching=(value); end - - # source://actionpack/8.0.5.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions; end - - # source://actionpack/8.0.5.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions=(val); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects=(val); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def relative_url_root; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def relative_url_root=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def request_forgery_protection_token; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def request_forgery_protection_token=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#115 - def stylesheets_dir; end - - # source://activesupport/8.0.5.1/lib/active_support/configurable.rb#116 - def stylesheets_dir=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/base.rb#222 - def without_modules(*modules); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__default_form_builder; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__default_form_builder=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__flash_types; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__flash_types=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__helper_methods; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__helper_methods=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__layout; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__layout=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__layout_conditions; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__layout_conditions=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__renderers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__renderers=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__view_cache_dependencies; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__view_cache_dependencies=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__wrapper_options; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__wrapper_options=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_url_options; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_url_options=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_etag_with_template_digest; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_etag_with_template_digest=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_etaggers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_etaggers=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_fragment_cache_keys; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_fragment_cache_keys=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_helpers_path; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_helpers_path=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_include_all_helpers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_include_all_helpers=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end end # :include: ../README.rdoc +# :markup: markdown # -# source://actionview//lib/action_view/log_subscriber.rb#5 +# pkg:gem/actionview#lib/action_view/gem_version.rb:3 module ActionView extend ::ActiveSupport::Autoload class << self - # source://actionview//lib/action_view/deprecator.rb#4 + # pkg:gem/actionview#lib/action_view/deprecator.rb:4 def deprecator; end - # source://actionview//lib/action_view.rb#94 + # pkg:gem/actionview#lib/action_view.rb:94 def eager_load!; end # Returns the currently loaded version of Action View as a +Gem::Version+. # - # source://actionview//lib/action_view/gem_version.rb#5 + # pkg:gem/actionview#lib/action_view/gem_version.rb:5 def gem_version; end # Returns the currently loaded version of Action View as a +Gem::Version+. # - # source://actionview//lib/action_view/version.rb#7 + # pkg:gem/actionview#lib/action_view/version.rb:7 def version; end end end @@ -672,56 +55,52 @@ end # that new object is called in turn. This abstracts the set up and rendering # into a separate classes for partials and templates. # -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#21 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:21 class ActionView::AbstractRenderer - # @return [AbstractRenderer] a new instance of AbstractRenderer - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#24 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:24 def initialize(lookup_context); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#22 - def any_templates?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:22 + def any_templates?(*, **, &); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#22 - def formats(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:22 + def formats(*, **, &); end - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#28 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:28 def render; end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#22 - def template_exists?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:22 + def template_exists?(*, **, &); end private - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#182 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:182 def build_rendered_collection(templates, spacer); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#178 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:178 def build_rendered_template(content, template); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#159 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:159 def extract_details(options); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#171 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:171 def prepend_formats(formats); end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#157 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:157 ActionView::AbstractRenderer::NO_DETAILS = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#32 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:32 module ActionView::AbstractRenderer::ObjectRendering - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#37 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:37 def initialize(lookup_context, options); end private - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#43 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:43 def local_variable(path); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#92 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:92 def merge_prefix_into_object_path(prefix, object_path); end # Obtains the path to where the object's partial is located. If the object @@ -732,96 +111,78 @@ module ActionView::AbstractRenderer::ObjectRendering # If +prefix_partial_path_with_controller_namespace+ is true, then this # method will prefix the partial paths with a namespace. # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#76 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:76 def partial_path(object, view); end - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#61 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:61 def raise_invalid_identifier(path); end - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#65 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:65 def raise_invalid_option_as(as); end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#54 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:54 ActionView::AbstractRenderer::ObjectRendering::IDENTIFIER_ERROR_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#57 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:57 ActionView::AbstractRenderer::ObjectRendering::OPTION_AS_ERROR_MESSAGE = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#33 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:33 ActionView::AbstractRenderer::ObjectRendering::PREFIXED_PARTIAL_NAMES = T.let(T.unsafe(nil), Concurrent::Map) -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#110 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:110 class ActionView::AbstractRenderer::RenderedCollection - # @return [RenderedCollection] a new instance of RenderedCollection - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#117 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:117 def initialize(rendered_templates, spacer); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#122 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:122 def body; end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#126 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:126 def format; end - # Returns the value of attribute rendered_templates. - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#115 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:115 def rendered_templates; end class << self - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#111 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:111 def empty(format); end end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#130 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:130 class ActionView::AbstractRenderer::RenderedCollection::EmptyCollection - # @return [EmptyCollection] a new instance of EmptyCollection - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#133 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:133 def initialize(format); end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#137 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:137 def body; end - # Returns the value of attribute format. - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#131 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:131 def format; end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#141 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:141 class ActionView::AbstractRenderer::RenderedTemplate - # @return [RenderedTemplate] a new instance of RenderedTemplate - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#144 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:144 def initialize(body, template); end - # Returns the value of attribute body. - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#142 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:142 def body; end - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#149 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:149 def format; end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/renderer/abstract_renderer.rb#142 + # pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:142 def template; end end -# source://actionview//lib/action_view/renderer/abstract_renderer.rb#153 +# pkg:gem/actionview#lib/action_view/renderer/abstract_renderer.rb:153 ActionView::AbstractRenderer::RenderedTemplate::EMPTY_SPACER = T.let(T.unsafe(nil), T.untyped) # = Action View Errors # -# source://actionview//lib/action_view/template/error.rb#8 +# pkg:gem/actionview#lib/action_view/template/error.rb:8 class ActionView::ActionViewError < ::StandardError; end # = Action View \Base @@ -969,7 +330,7 @@ class ActionView::ActionViewError < ::StandardError; end # # For more information on Builder please consult the {source code}[https://github.com/rails/builder]. # -# source://actionview//lib/action_view/base.rb#157 +# pkg:gem/actionview#lib/action_view/base.rb:157 class ActionView::Base include ::ActionView::Context include ::ERB::Escape @@ -1011,307 +372,289 @@ class ActionView::Base # :startdoc: # - # @return [Base] a new instance of Base - # - # source://actionview//lib/action_view/base.rb#244 + # pkg:gem/actionview#lib/action_view/base.rb:244 def initialize(lookup_context, assigns, controller); end - # source://actionview//lib/action_view/base.rb#181 + # pkg:gem/actionview#lib/action_view/base.rb:181 def _routes; end - # source://actionview//lib/action_view/base.rb#181 + # pkg:gem/actionview#lib/action_view/base.rb:181 def _routes=(_arg0); end - # source://actionview//lib/action_view/base.rb#181 + # pkg:gem/actionview#lib/action_view/base.rb:181 def _routes?; end - # source://actionview//lib/action_view/base.rb#261 + # pkg:gem/actionview#lib/action_view/base.rb:261 def _run(method, template, locals, buffer, add_to_stack: T.unsafe(nil), has_strict_locals: T.unsafe(nil), &block); end - # source://actionview//lib/action_view/base.rb#179 + # pkg:gem/actionview#lib/action_view/base.rb:179 def annotate_rendered_view_with_filenames; end - # source://actionview//lib/action_view/base.rb#179 + # pkg:gem/actionview#lib/action_view/base.rb:179 def annotate_rendered_view_with_filenames=(val); end - # source://actionview//lib/action_view/base.rb#223 + # pkg:gem/actionview#lib/action_view/base.rb:223 def assign(new_assigns); end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionview#lib/action_view/base.rb:219 def assigns; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionview#lib/action_view/base.rb:219 def assigns=(_arg0); end - # source://actionview//lib/action_view/base.rb#176 + # pkg:gem/actionview#lib/action_view/base.rb:176 def automatically_disable_submit_tag; end - # source://actionview//lib/action_view/base.rb#176 + # pkg:gem/actionview#lib/action_view/base.rb:176 def automatically_disable_submit_tag=(val); end - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/base.rb#284 + # pkg:gem/actionview#lib/action_view/base.rb:284 def compiled_method_container; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionview#lib/action_view/base.rb:219 def config; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attr_internal.rb#43 + # pkg:gem/actionview#lib/action_view/base.rb:219 def config=(_arg0); end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # pkg:gem/actionview#lib/action_view/base.rb:158 def debug_missing_translation; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # pkg:gem/actionview#lib/action_view/base.rb:158 def debug_missing_translation=(val); end - # source://actionview//lib/action_view/base.rb#173 + # pkg:gem/actionview#lib/action_view/base.rb:173 def default_formats; end - # source://actionview//lib/action_view/base.rb#173 + # pkg:gem/actionview#lib/action_view/base.rb:173 def default_formats=(val); end - # source://actionview//lib/action_view/base.rb#161 + # pkg:gem/actionview#lib/action_view/base.rb:161 def field_error_proc; end - # source://actionview//lib/action_view/base.rb#161 + # pkg:gem/actionview#lib/action_view/base.rb:161 def field_error_proc=(val); end - # source://actionview//lib/action_view/base.rb#221 - def formats(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/base.rb:221 + def formats(*, **, &); end - # source://actionview//lib/action_view/base.rb#221 + # pkg:gem/actionview#lib/action_view/base.rb:221 def formats=(arg); end - # source://actionview//lib/action_view/base.rb#292 + # pkg:gem/actionview#lib/action_view/base.rb:292 def in_rendering_context(options); end - # source://actionview//lib/action_view/base.rb#221 - def locale(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/base.rb:221 + def locale(*, **, &); end - # source://actionview//lib/action_view/base.rb#221 + # pkg:gem/actionview#lib/action_view/base.rb:221 def locale=(arg); end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def logger; end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def logger=(_arg0); end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def logger?; end - # Returns the value of attribute lookup_context. - # - # source://actionview//lib/action_view/base.rb#218 + # pkg:gem/actionview#lib/action_view/base.rb:218 def lookup_context; end - # source://actionview//lib/action_view/base.rb#170 + # pkg:gem/actionview#lib/action_view/base.rb:170 def prefix_partial_path_with_controller_namespace; end - # source://actionview//lib/action_view/base.rb#170 + # pkg:gem/actionview#lib/action_view/base.rb:170 def prefix_partial_path_with_controller_namespace=(_arg0); end - # source://actionview//lib/action_view/base.rb#170 + # pkg:gem/actionview#lib/action_view/base.rb:170 def prefix_partial_path_with_controller_namespace?; end - # source://actionview//lib/action_view/base.rb#165 + # pkg:gem/actionview#lib/action_view/base.rb:165 def streaming_completion_on_exception; end - # source://actionview//lib/action_view/base.rb#165 + # pkg:gem/actionview#lib/action_view/base.rb:165 def streaming_completion_on_exception=(val); end - # source://actionview//lib/action_view/base.rb#221 - def view_paths(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/base.rb:221 + def view_paths(*, **, &); end - # source://actionview//lib/action_view/base.rb#221 + # pkg:gem/actionview#lib/action_view/base.rb:221 def view_paths=(arg); end - # Returns the value of attribute view_renderer. - # - # source://actionview//lib/action_view/base.rb#218 + # pkg:gem/actionview#lib/action_view/base.rb:218 def view_renderer; end class << self - # source://actionview//lib/action_view/base.rb#181 + # pkg:gem/actionview#lib/action_view/base.rb:181 def _routes; end - # source://actionview//lib/action_view/base.rb#181 + # pkg:gem/actionview#lib/action_view/base.rb:181 def _routes=(value); end - # source://actionview//lib/action_view/base.rb#181 + # pkg:gem/actionview#lib/action_view/base.rb:181 def _routes?; end - # source://actionview//lib/action_view/base.rb#179 + # pkg:gem/actionview#lib/action_view/base.rb:179 def annotate_rendered_view_with_filenames; end - # source://actionview//lib/action_view/base.rb#179 + # pkg:gem/actionview#lib/action_view/base.rb:179 def annotate_rendered_view_with_filenames=(val); end - # source://actionview//lib/action_view/base.rb#176 + # pkg:gem/actionview#lib/action_view/base.rb:176 def automatically_disable_submit_tag; end - # source://actionview//lib/action_view/base.rb#176 + # pkg:gem/actionview#lib/action_view/base.rb:176 def automatically_disable_submit_tag=(val); end - # source://actionview//lib/action_view/base.rb#187 + # pkg:gem/actionview#lib/action_view/base.rb:187 def cache_template_loading; end - # source://actionview//lib/action_view/base.rb#191 + # pkg:gem/actionview#lib/action_view/base.rb:191 def cache_template_loading=(value); end - # @return [Boolean] - # - # source://actionview//lib/action_view/base.rb#213 + # pkg:gem/actionview#lib/action_view/base.rb:213 def changed?(other); end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # pkg:gem/actionview#lib/action_view/base.rb:158 def debug_missing_translation; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # pkg:gem/actionview#lib/action_view/base.rb:158 def debug_missing_translation=(val); end - # source://actionview//lib/action_view/helpers/form_helper.rb#2765 + # pkg:gem/actionview#lib/action_view/base.rb:311 def default_form_builder; end - # source://actionview//lib/action_view/helpers/form_helper.rb#2765 + # pkg:gem/actionview#lib/action_view/base.rb:311 def default_form_builder=(val); end - # source://actionview//lib/action_view/base.rb#173 + # pkg:gem/actionview#lib/action_view/base.rb:173 def default_formats; end - # source://actionview//lib/action_view/base.rb#173 + # pkg:gem/actionview#lib/action_view/base.rb:173 def default_formats=(val); end # :stopdoc: # - # source://actionview//lib/action_view/base.rb#230 + # pkg:gem/actionview#lib/action_view/base.rb:230 def empty; end - # source://actionview//lib/action_view/base.rb#185 + # pkg:gem/actionview#lib/action_view/base.rb:185 def erb_trim_mode=(arg); end - # source://actionview//lib/action_view/base.rb#161 + # pkg:gem/actionview#lib/action_view/base.rb:161 def field_error_proc; end - # source://actionview//lib/action_view/base.rb#161 + # pkg:gem/actionview#lib/action_view/base.rb:161 def field_error_proc=(val); end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def logger; end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def logger=(value); end - # source://actionview//lib/action_view/base.rb#182 + # pkg:gem/actionview#lib/action_view/base.rb:182 def logger?; end - # source://actionview//lib/action_view/base.rb#170 + # pkg:gem/actionview#lib/action_view/base.rb:170 def prefix_partial_path_with_controller_namespace; end - # source://actionview//lib/action_view/base.rb#170 + # pkg:gem/actionview#lib/action_view/base.rb:170 def prefix_partial_path_with_controller_namespace=(value); end - # source://actionview//lib/action_view/base.rb#170 + # pkg:gem/actionview#lib/action_view/base.rb:170 def prefix_partial_path_with_controller_namespace?; end - # source://actionview//lib/action_view/base.rb#165 + # pkg:gem/actionview#lib/action_view/base.rb:165 def streaming_completion_on_exception; end - # source://actionview//lib/action_view/base.rb#165 + # pkg:gem/actionview#lib/action_view/base.rb:165 def streaming_completion_on_exception=(val); end - # source://actionview//lib/action_view/base.rb#238 + # pkg:gem/actionview#lib/action_view/base.rb:238 def with_context(context, assigns = T.unsafe(nil), controller = T.unsafe(nil)); end - # source://actionview//lib/action_view/base.rb#199 + # pkg:gem/actionview#lib/action_view/base.rb:199 def with_empty_template_cache; end - # source://actionview//lib/action_view/base.rb#234 + # pkg:gem/actionview#lib/action_view/base.rb:234 def with_view_paths(view_paths, assigns = T.unsafe(nil), controller = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/base.rb#195 + # pkg:gem/actionview#lib/action_view/base.rb:195 def xss_safe?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/base.rb:181 def __class_attr__routes; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/base.rb:181 def __class_attr__routes=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/base.rb:182 def __class_attr_logger; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/base.rb:182 def __class_attr_logger=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/base.rb:170 def __class_attr_prefix_partial_path_with_controller_namespace; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/base.rb:170 def __class_attr_prefix_partial_path_with_controller_namespace=(new_value); end end end -# source://actionview//lib/action_view/cache_expiry.rb#4 +# pkg:gem/actionview#lib/action_view/cache_expiry.rb:4 module ActionView::CacheExpiry; end -# source://actionview//lib/action_view/cache_expiry.rb#5 +# pkg:gem/actionview#lib/action_view/cache_expiry.rb:5 class ActionView::CacheExpiry::ViewReloader - # @return [ViewReloader] a new instance of ViewReloader - # - # source://actionview//lib/action_view/cache_expiry.rb#6 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:6 def initialize(watcher:, &block); end - # source://actionview//lib/action_view/cache_expiry.rb#21 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:21 def execute; end - # @return [Boolean] - # - # source://actionview//lib/action_view/cache_expiry.rb#16 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:16 def updated?; end private - # source://actionview//lib/action_view/cache_expiry.rb#64 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:64 def all_view_paths; end - # source://actionview//lib/action_view/cache_expiry.rb#37 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:37 def build_watcher; end - # source://actionview//lib/action_view/cache_expiry.rb#60 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:60 def dirs_to_watch; end - # source://actionview//lib/action_view/cache_expiry.rb#55 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:55 def rebuild_watcher; end - # source://actionview//lib/action_view/cache_expiry.rb#33 + # pkg:gem/actionview#lib/action_view/cache_expiry.rb:33 def reload!; end end -# source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#6 +# pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:6 module ActionView::CollectionCaching extend ::ActiveSupport::Concern private - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#20 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:20 def cache_collection_render(instrumentation_payload, view, template, collection); end - # @return [Boolean] - # - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#54 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:54 def callable_cache_key?; end - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#58 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:58 def collection_by_cache_keys(view, template, collection); end - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#71 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:71 def expanded_cache_key(key, view, template, digest_path); end # `order_by` is an enumerable object containing keys of the cache, @@ -1330,98 +673,88 @@ module ActionView::CollectionCaching # If the partial is not already cached it will also be # written back to the underlying cache store. # - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#91 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:91 def fetch_or_cache_partial(cached_partials, template, order_by:); end - # @return [Boolean] - # - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#16 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer/collection_caching.rb:16 def will_cache?(options, view); end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#33 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:33 class ActionView::CollectionRenderer < ::ActionView::PartialRenderer include ::ActionView::AbstractRenderer::ObjectRendering - # source://actionview//lib/action_view/renderer/collection_renderer.rb#130 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:130 def render_collection_derive_partial(collection, context, block); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#112 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:112 def render_collection_with_partial(collection, partial, context, block); end private - # source://actionview//lib/action_view/renderer/collection_renderer.rb#182 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:182 def collection_with_template(view, template, layout, collection); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#153 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:153 def render_collection(collection, view, path, template, layout, block); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#148 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:148 def retrieve_variable(path); end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#36 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:36 class ActionView::CollectionRenderer::CollectionIterator include ::Enumerable - # @return [CollectionIterator] a new instance of CollectionIterator - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#39 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:39 def initialize(collection); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#43 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:43 def each(&blk); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#51 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:51 def length; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#55 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:55 def preload!; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#47 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:47 def size; end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#100 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:100 class ActionView::CollectionRenderer::MixedCollectionIterator < ::ActionView::CollectionRenderer::CollectionIterator - # @return [MixedCollectionIterator] a new instance of MixedCollectionIterator - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#101 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:101 def initialize(collection, paths); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#106 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:106 def each_with_info; end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#78 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:78 class ActionView::CollectionRenderer::PreloadCollectionIterator < ::ActionView::CollectionRenderer::SameCollectionIterator - # @return [PreloadCollectionIterator] a new instance of PreloadCollectionIterator - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#79 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:79 def initialize(collection, path, variables, relation); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#89 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:89 def each_with_info; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#85 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:85 def from_collection(collection); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#95 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:95 def preload!; end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#60 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:60 class ActionView::CollectionRenderer::SameCollectionIterator < ::ActionView::CollectionRenderer::CollectionIterator - # @return [SameCollectionIterator] a new instance of SameCollectionIterator - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#61 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:61 def initialize(collection, path, variables); end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#71 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:71 def each_with_info; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#67 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:67 def from_collection(collection); end end @@ -1436,134 +769,114 @@ end # object that includes this module (although you can call _prepare_context # defined below). # -# source://actionview//lib/action_view/context.rb#14 +# pkg:gem/actionview#lib/action_view/context.rb:14 module ActionView::Context # Encapsulates the interaction with the view flow so it # returns the correct buffer on +yield+. This is usually # overwritten by helpers to add more behavior. # - # source://actionview//lib/action_view/context.rb#27 + # pkg:gem/actionview#lib/action_view/context.rb:27 def _layout_for(name = T.unsafe(nil)); end # Prepares the context by setting the appropriate instance variables. # - # source://actionview//lib/action_view/context.rb#18 + # pkg:gem/actionview#lib/action_view/context.rb:18 def _prepare_context; end - # Returns the value of attribute output_buffer. - # - # source://actionview//lib/action_view/context.rb#15 + # pkg:gem/actionview#lib/action_view/context.rb:15 def output_buffer; end - # Sets the attribute output_buffer - # - # @param value the value to set the attribute output_buffer to. - # - # source://actionview//lib/action_view/context.rb#15 + # pkg:gem/actionview#lib/action_view/context.rb:15 def output_buffer=(_arg0); end - # Returns the value of attribute view_flow. - # - # source://actionview//lib/action_view/context.rb#15 + # pkg:gem/actionview#lib/action_view/context.rb:15 def view_flow; end - # Sets the attribute view_flow - # - # @param value the value to set the attribute view_flow to. - # - # source://actionview//lib/action_view/context.rb#15 + # pkg:gem/actionview#lib/action_view/context.rb:15 def view_flow=(_arg0); end end -# source://actionview//lib/action_view/dependency_tracker.rb#8 +# pkg:gem/actionview#lib/action_view/dependency_tracker.rb:8 class ActionView::DependencyTracker extend ::ActiveSupport::Autoload class << self - # source://actionview//lib/action_view/dependency_tracker.rb#17 + # pkg:gem/actionview#lib/action_view/dependency_tracker.rb:17 def find_dependencies(name, template, view_paths = T.unsafe(nil)); end - # source://actionview//lib/action_view/dependency_tracker.rb#24 + # pkg:gem/actionview#lib/action_view/dependency_tracker.rb:24 def register_tracker(extension, tracker); end - # source://actionview//lib/action_view/dependency_tracker.rb#35 + # pkg:gem/actionview#lib/action_view/dependency_tracker.rb:35 def remove_tracker(handler); end end end -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#5 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:5 class ActionView::DependencyTracker::ERBTracker - # @return [ERBTracker] a new instance of ERBTracker - # - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#72 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:72 def initialize(name, template, view_paths = T.unsafe(nil)); end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#76 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:76 def dependencies; end private - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#104 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:104 def add_dependencies(render_dependencies, arguments, pattern); end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#112 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:112 def add_dynamic_dependency(dependencies, dependency); end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#118 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:118 def add_static_dependency(dependencies, dependency, quote_type); end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#88 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:88 def directory; end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#158 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:158 def explicit_dependencies; end - # Returns the value of attribute name. - # - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#80 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:80 def name; end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#92 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:92 def render_dependencies; end - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#84 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:84 def source; end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#80 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:80 def template; end class << self - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#68 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:68 def call(name, template, view_paths = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#64 + # pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:64 def supports_view_paths?; end end end -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#6 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:6 ActionView::DependencyTracker::ERBTracker::EXPLICIT_DEPENDENCY = T.let(T.unsafe(nil), Regexp) # A valid ruby identifier - suitable for class, method and specially variable names # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#9 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:9 ActionView::DependencyTracker::ERBTracker::IDENTIFIER = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#58 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:58 ActionView::DependencyTracker::ERBTracker::LAYOUT_DEPENDENCY = T.let(T.unsafe(nil), Regexp) # Part of any hash containing the :layout key # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#36 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:36 ActionView::DependencyTracker::ERBTracker::LAYOUT_HASH_KEY = T.let(T.unsafe(nil), Regexp) # Part of any hash containing the :partial key # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#30 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:30 ActionView::DependencyTracker::ERBTracker::PARTIAL_HASH_KEY = T.let(T.unsafe(nil), Regexp) # Matches: @@ -1578,99 +891,81 @@ ActionView::DependencyTracker::ERBTracker::PARTIAL_HASH_KEY = T.let(T.unsafe(nil # topics => "topics/topic" # (message.topics) => "topics/topic" # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#52 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:52 ActionView::DependencyTracker::ERBTracker::RENDER_ARGUMENTS = T.let(T.unsafe(nil), Regexp) # A simple string literal. e.g. "School's out!" # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#23 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:23 ActionView::DependencyTracker::ERBTracker::STRING = T.let(T.unsafe(nil), Regexp) # Any kind of variable name. e.g. @instance, @@class, $global or local. # Possibly following a method call chain # -# source://actionview//lib/action_view/dependency_tracker/erb_tracker.rb#16 +# pkg:gem/actionview#lib/action_view/dependency_tracker/erb_tracker.rb:16 ActionView::DependencyTracker::ERBTracker::VARIABLE_OR_METHOD_CHAIN = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#5 +# pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:5 class ActionView::DependencyTracker::RubyTracker - # @return [RubyTracker] a new instance of RubyTracker - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#20 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:20 def initialize(name, template, view_paths = T.unsafe(nil), parser_class: T.unsafe(nil)); end - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#12 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:12 def dependencies; end private - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#38 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:38 def explicit_dependencies; end - # Returns the value of attribute name. - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#26 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:26 def name; end - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#28 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:28 def render_dependencies; end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#26 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:26 def template; end - # Returns the value of attribute view_paths. - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#26 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:26 def view_paths; end class << self - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#8 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:8 def call(name, template, view_paths = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#16 + # pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:16 def supports_view_paths?; end end end -# source://actionview//lib/action_view/dependency_tracker/ruby_tracker.rb#6 +# pkg:gem/actionview#lib/action_view/dependency_tracker/ruby_tracker.rb:6 ActionView::DependencyTracker::RubyTracker::EXPLICIT_DEPENDENCY = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#5 +# pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:5 class ActionView::DependencyTracker::WildcardResolver - # @return [WildcardResolver] a new instance of WildcardResolver - # - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#6 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:6 def initialize(view_paths, dependencies); end - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#13 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:13 def resolve; end private - # Returns the value of attribute explicit_dependencies. - # - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#20 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:20 def explicit_dependencies; end - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#22 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:22 def resolved_wildcard_dependencies; end - # Returns the value of attribute view_paths. - # - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#20 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:20 def view_paths; end - # Returns the value of attribute wildcard_dependencies. - # - # source://actionview//lib/action_view/dependency_tracker/wildcard_resolver.rb#20 + # pkg:gem/actionview#lib/action_view/dependency_tracker/wildcard_resolver.rb:20 def wildcard_dependencies; end end -# source://actionview//lib/action_view/digestor.rb#6 +# pkg:gem/actionview#lib/action_view/digestor.rb:6 class ActionView::Digestor class << self # Supported options: @@ -1680,165 +975,146 @@ class ActionView::Digestor # * +finder+ - An instance of ActionView::LookupContext # * dependencies - An array of dependent views # - # source://actionview//lib/action_view/digestor.rb#16 + # pkg:gem/actionview#lib/action_view/digestor.rb:16 def digest(name:, finder:, format: T.unsafe(nil), dependencies: T.unsafe(nil)); end - # source://actionview//lib/action_view/digestor.rb#38 + # pkg:gem/actionview#lib/action_view/digestor.rb:38 def logger; end # Create a dependency tree for template named +name+. # - # source://actionview//lib/action_view/digestor.rb#43 + # pkg:gem/actionview#lib/action_view/digestor.rb:43 def tree(name, finder, partial = T.unsafe(nil), seen = T.unsafe(nil)); end private - # source://actionview//lib/action_view/digestor.rb#71 + # pkg:gem/actionview#lib/action_view/digestor.rb:71 def find_template(finder, name, prefixes, partial, keys); end end end -# source://actionview//lib/action_view/digestor.rb#125 +# pkg:gem/actionview#lib/action_view/digestor.rb:125 class ActionView::Digestor::Injected < ::ActionView::Digestor::Node - # source://actionview//lib/action_view/digestor.rb#126 + # pkg:gem/actionview#lib/action_view/digestor.rb:126 def digest(finder, _ = T.unsafe(nil)); end end -# source://actionview//lib/action_view/digestor.rb#121 +# pkg:gem/actionview#lib/action_view/digestor.rb:121 class ActionView::Digestor::Missing < ::ActionView::Digestor::Node - # source://actionview//lib/action_view/digestor.rb#122 + # pkg:gem/actionview#lib/action_view/digestor.rb:122 def digest(finder, _ = T.unsafe(nil)); end end -# source://actionview//lib/action_view/digestor.rb#78 +# pkg:gem/actionview#lib/action_view/digestor.rb:78 class ActionView::Digestor::Node - # @return [Node] a new instance of Node - # - # source://actionview//lib/action_view/digestor.rb#86 + # pkg:gem/actionview#lib/action_view/digestor.rb:86 def initialize(name, logical_name, template, children = T.unsafe(nil)); end - # Returns the value of attribute children. - # - # source://actionview//lib/action_view/digestor.rb#79 + # pkg:gem/actionview#lib/action_view/digestor.rb:79 def children; end - # source://actionview//lib/action_view/digestor.rb#97 + # pkg:gem/actionview#lib/action_view/digestor.rb:97 def dependency_digest(finder, stack); end - # source://actionview//lib/action_view/digestor.rb#93 + # pkg:gem/actionview#lib/action_view/digestor.rb:93 def digest(finder, stack = T.unsafe(nil)); end - # Returns the value of attribute logical_name. - # - # source://actionview//lib/action_view/digestor.rb#79 + # pkg:gem/actionview#lib/action_view/digestor.rb:79 def logical_name; end - # Returns the value of attribute name. - # - # source://actionview//lib/action_view/digestor.rb#79 + # pkg:gem/actionview#lib/action_view/digestor.rb:79 def name; end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/digestor.rb#79 + # pkg:gem/actionview#lib/action_view/digestor.rb:79 def template; end - # source://actionview//lib/action_view/digestor.rb#110 + # pkg:gem/actionview#lib/action_view/digestor.rb:110 def to_dep_map(seen = T.unsafe(nil)); end class << self - # source://actionview//lib/action_view/digestor.rb#81 + # pkg:gem/actionview#lib/action_view/digestor.rb:81 def create(name, logical_name, template, partial); end end end -# source://actionview//lib/action_view/digestor.rb#129 +# pkg:gem/actionview#lib/action_view/digestor.rb:129 class ActionView::Digestor::NullLogger class << self - # source://actionview//lib/action_view/digestor.rb#130 + # pkg:gem/actionview#lib/action_view/digestor.rb:130 def debug(_); end - # source://actionview//lib/action_view/digestor.rb#131 + # pkg:gem/actionview#lib/action_view/digestor.rb:131 def error(_); end end end -# source://actionview//lib/action_view/digestor.rb#119 +# pkg:gem/actionview#lib/action_view/digestor.rb:119 class ActionView::Digestor::Partial < ::ActionView::Digestor::Node; end -# source://actionview//lib/action_view.rb#35 +# pkg:gem/actionview#lib/action_view.rb:35 ActionView::ENCODING_FLAG = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/template/error.rb#11 +# pkg:gem/actionview#lib/action_view/template/error.rb:11 class ActionView::EncodingError < ::StandardError; end # A resolver that loads files from the filesystem. # -# source://actionview//lib/action_view/template/resolver.rb#90 +# pkg:gem/actionview#lib/action_view/template/resolver.rb:90 class ActionView::FileSystemResolver < ::ActionView::Resolver - # @raise [ArgumentError] - # @return [FileSystemResolver] a new instance of FileSystemResolver - # - # source://actionview//lib/action_view/template/resolver.rb#93 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:93 def initialize(path); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/resolver.rb#112 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:115 def ==(resolver); end - # source://actionview//lib/action_view/template/resolver.rb#117 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:117 def all_template_paths; end - # source://actionview//lib/action_view/template/resolver.rb#126 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:126 def built_templates; end - # source://actionview//lib/action_view/template/resolver.rb#101 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:101 def clear_cache; end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/resolver.rb#112 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:112 def eql?(resolver); end - # Returns the value of attribute path. - # - # source://actionview//lib/action_view/template/resolver.rb#91 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:91 def path; end - # source://actionview//lib/action_view/template/resolver.rb#107 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:110 def to_path; end - # source://actionview//lib/action_view/template/resolver.rb#107 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:107 def to_s; end private - # source://actionview//lib/action_view/template/resolver.rb#131 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:131 def _find_all(name, prefix, partial, details, key, locals); end - # source://actionview//lib/action_view/template/resolver.rb#150 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:150 def build_unbound_template(template); end - # source://actionview//lib/action_view/template/resolver.rb#208 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:208 def escape_entry(entry); end - # source://actionview//lib/action_view/template/resolver.rb#180 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:180 def filter_and_sort_by_details(templates, requested_details); end - # source://actionview//lib/action_view/template/resolver.rb#146 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:146 def source_for_template(template); end # Safe glob within @path # - # source://actionview//lib/action_view/template/resolver.rb#195 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:195 def template_glob(glob); end - # source://actionview//lib/action_view/template/resolver.rb#163 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:163 def unbound_templates_from_path(path); end end -# source://actionview//lib/action_view/helpers/capture_helper.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:6 module ActionView::Helpers include ::ActiveSupport::Benchmarkable include ::ActionView::Helpers::ActiveModelHelper @@ -1874,48 +1150,42 @@ module ActionView::Helpers mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods class << self - # source://actionview//lib/action_view/helpers.rb#35 + # pkg:gem/actionview#lib/action_view/helpers.rb:35 def eager_load!; end end end -# source://actionview//lib/action_view/helpers/active_model_helper.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:8 module ActionView::Helpers::ActiveModelHelper; end # = Active \Model Instance Tag \Helpers # -# source://actionview//lib/action_view/helpers/active_model_helper.rb#12 +# pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:12 module ActionView::Helpers::ActiveModelInstanceTag - # source://actionview//lib/action_view/helpers/active_model_helper.rb#20 - def content_tag(type, options, *_arg2); end + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:20 + def content_tag(type, options, *); end - # source://actionview//lib/action_view/helpers/active_model_helper.rb#36 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:36 def error_message; end - # source://actionview//lib/action_view/helpers/active_model_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:28 def error_wrapping(html_tag); end - # source://actionview//lib/action_view/helpers/active_model_helper.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:13 def object; end - # source://actionview//lib/action_view/helpers/active_model_helper.rb#24 - def tag(type, options, *_arg2); end + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:24 + def tag(type, options, *); end private - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/active_model_helper.rb#41 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:41 def object_has_errors?; end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/active_model_helper.rb#45 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:45 def select_markup_helper?(type); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/active_model_helper.rb#49 + # pkg:gem/actionview#lib/action_view/helpers/active_model_helper.rb:49 def tag_generate_errors?(options); end end @@ -1930,17 +1200,17 @@ end # stylesheet_link_tag("application") # # => # -# source://actionview//lib/action_view/helpers/asset_tag_helper.rb#21 +# pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:21 module ActionView::Helpers::AssetTagHelper include ::ActionView::Helpers::AssetUrlHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper include ::ActionView::Helpers::TagHelper - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:28 def apply_stylesheet_media_default; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:28 def apply_stylesheet_media_default=(val); end # Returns an HTML audio tag for the +sources+. If +sources+ is a string, @@ -1966,7 +1236,7 @@ module ActionView::Helpers::AssetTagHelper # audio_tag(user.name_pronunciation_audio) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#593 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:593 def audio_tag(*sources); end # Returns a link tag that browsers and feed readers can use to auto-detect @@ -1997,7 +1267,7 @@ module ActionView::Helpers::AssetTagHelper # auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss", {title: "Example RSS"}) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#271 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:271 def auto_discovery_link_tag(type = T.unsafe(nil), url_options = T.unsafe(nil), tag_options = T.unsafe(nil)); end # Returns a link tag for a favicon managed by the asset pipeline. @@ -2028,19 +1298,19 @@ module ActionView::Helpers::AssetTagHelper # favicon_link_tag 'mb-icon.png', rel: 'apple-touch-icon', type: 'image/png' # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#312 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:312 def favicon_link_tag(source = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:26 def image_decoding; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:26 def image_decoding=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:25 def image_loading; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:25 def image_loading=(val); end # Returns an HTML image tag for the +source+. The +source+ can be a full @@ -2089,7 +1359,7 @@ module ActionView::Helpers::AssetTagHelper # image_tag(user.avatar.variant(resize_to_limit: [100, 100]), size: '100') # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#430 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:430 def image_tag(source, options = T.unsafe(nil)); end # Returns an HTML script tag for each of the +sources+ provided. @@ -2176,7 +1446,7 @@ module ActionView::Helpers::AssetTagHelper # javascript_include_tag "http://www.example.com/xmlhr.js", defer: true # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#113 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:113 def javascript_include_tag(*sources); end # Returns an HTML picture tag for the +sources+. If +sources+ is a string, @@ -2219,7 +1489,7 @@ module ActionView::Helpers::AssetTagHelper # picture_tag(user.profile_picture) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#491 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:491 def picture_tag(*sources, &block); end # Returns a link tag that browsers can use to preload the +source+. @@ -2257,13 +1527,13 @@ module ActionView::Helpers::AssetTagHelper # preload_link_tag("/media/audio.ogg", nopush: true) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#355 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:355 def preload_link_tag(source, options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:27 def preload_links_header; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:27 def preload_links_header=(val); end # Returns a stylesheet link tag for the sources specified as arguments. @@ -2319,7 +1589,7 @@ module ActionView::Helpers::AssetTagHelper # stylesheet_link_tag "style", nonce: true # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#202 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:202 def stylesheet_link_tag(*sources); end # Returns an HTML video tag for the +sources+. If +sources+ is a string, @@ -2371,54 +1641,52 @@ module ActionView::Helpers::AssetTagHelper # video_tag(user.intro_video) # # => # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#561 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:561 def video_tag(*sources); end private - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#634 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:634 def check_for_image_tag_errors(options); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#625 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:625 def extract_dimensions(size); end - # @yield [options] - # - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#598 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:598 def multiple_sources_tag_builder(type, sources); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#615 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:615 def resolve_asset_source(asset_type, source, skip_pipeline); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#640 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:640 def resolve_link_as(extname, mime_type); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#654 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:654 def send_preload_links_header(preload_links, max_header_size: T.unsafe(nil)); end class << self - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:28 def apply_stylesheet_media_default; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:28 def apply_stylesheet_media_default=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:26 def image_decoding; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:26 def image_decoding=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:25 def image_loading; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:25 def image_loading=(val); end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:27 def preload_links_header; end - # source://actionview//lib/action_view/helpers/asset_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:27 def preload_links_header=(val); end end end @@ -2426,7 +1694,7 @@ end # Some HTTP client and proxies have a 4kiB header limit, but more importantly # including preload links has diminishing returns so it's best to not go overboard # -# source://actionview//lib/action_view/helpers/asset_tag_helper.rb#652 +# pkg:gem/actionview#lib/action_view/helpers/asset_tag_helper.rb:652 ActionView::Helpers::AssetTagHelper::MAX_HEADER_SIZE = T.let(T.unsafe(nil), Integer) # = Action View Asset URL \Helpers @@ -2543,7 +1811,7 @@ ActionView::Helpers::AssetTagHelper::MAX_HEADER_SIZE = T.let(T.unsafe(nil), Inte # "http://asset%d.example.com", "https://asset1.example.com" # ) # -# source://actionview//lib/action_view/helpers/asset_url_helper.rb#121 +# pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:121 module ActionView::Helpers::AssetUrlHelper # This is the entry point for all assets. # When using an asset pipeline gem (e.g. propshaft or sprockets-rails), the @@ -2609,9 +1877,7 @@ module ActionView::Helpers::AssetUrlHelper # asset_path("foo", skip_pipeline: true, extname: ".js") # => "/foo.js" # asset_path("foo.css", skip_pipeline: true, extname: ".js") # => "/foo.css.js" # - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#187 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:187 def asset_path(source, options = T.unsafe(nil)); end # Computes the full URL to an asset in the public directory. This @@ -2624,7 +1890,7 @@ module ActionView::Helpers::AssetUrlHelper # asset_url "application.js" # => http://example.com/assets/application.js # asset_url "application.js", host: "http://cdn.example.com" # => http://cdn.example.com/assets/application.js # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#231 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:231 def asset_url(source, options = T.unsafe(nil)); end # Computes the path to an audio asset in the public audios directory. @@ -2637,7 +1903,7 @@ module ActionView::Helpers::AssetUrlHelper # audio_path("/sounds/horse.wav") # => /sounds/horse.wav # audio_path("http://www.example.com/sounds/horse.wav") # => http://www.example.com/sounds/horse.wav # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#430 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:430 def audio_path(source, options = T.unsafe(nil)); end # Computes the full URL to an audio asset in the public audios directory. @@ -2647,187 +1913,30 @@ module ActionView::Helpers::AssetUrlHelper # # audio_url "horse.wav", host: "http://stage.example.com" # => http://stage.example.com/audios/horse.wav # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#442 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:442 def audio_url(source, options = T.unsafe(nil)); end # Compute extname to append to asset path. Returns +nil+ if # nothing should be added. # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#243 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:243 def compute_asset_extname(source, options = T.unsafe(nil)); end # Pick an asset host for this source. Returns +nil+ if no host is set, # the host if no wildcard is set, the host interpolated with the - # numbers 0-3 if it contains %d (the number is the source hash mod 4), - # or the value returned from invoking call on an object responding to call - # (proc or otherwise). - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#277 - def compute_asset_host(source = T.unsafe(nil), options = T.unsafe(nil)); end - - # Computes asset path to public directory. Plugins and - # extensions can override this method to point to custom assets - # or generate digested paths or query strings. - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#266 - def compute_asset_path(source, options = T.unsafe(nil)); end - - # Computes the path to a font asset. - # Full paths from the document root will be passed through. - # - # font_path("font") # => /fonts/font - # font_path("font.ttf") # => /fonts/font.ttf - # font_path("dir/font.ttf") # => /fonts/dir/font.ttf - # font_path("/dir/font.ttf") # => /dir/font.ttf - # font_path("http://www.example.com/dir/font.ttf") # => http://www.example.com/dir/font.ttf - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#455 - def font_path(source, options = T.unsafe(nil)); end - - # Computes the full URL to a font asset. - # This will use +font_path+ internally, so most of their behaviors will be the same. - # Since +font_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # font_url "font.ttf", host: "http://stage.example.com" # => http://stage.example.com/fonts/font.ttf - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#467 - def font_url(source, options = T.unsafe(nil)); end - - # Computes the path to an image asset. - # Full paths from the document root will be passed through. - # Used internally by +image_tag+ to build the image path: - # - # image_path("edit") # => "/assets/edit" - # image_path("edit.png") # => "/assets/edit.png" - # image_path("icons/edit.png") # => "/assets/icons/edit.png" - # image_path("/icons/edit.png") # => "/icons/edit.png" - # image_path("http://www.example.com/img/edit.png") # => "http://www.example.com/img/edit.png" - # - # If you have images as application resources this method may conflict with their named routes. - # The alias +path_to_image+ is provided to avoid that. \Rails uses the alias internally, and - # plugin authors are encouraged to do so. - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#378 - def image_path(source, options = T.unsafe(nil)); end - - # Computes the full URL to an image asset. - # This will use +image_path+ internally, so most of their behaviors will be the same. - # Since +image_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # image_url "edit.png", host: "http://stage.example.com" # => http://stage.example.com/assets/edit.png - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#390 - def image_url(source, options = T.unsafe(nil)); end - - # Computes the path to a JavaScript asset in the public javascripts directory. - # If the +source+ filename has no extension, .js will be appended (except for explicit URIs) - # Full paths from the document root will be passed through. - # Used internally by +javascript_include_tag+ to build the script path. - # - # javascript_path "xmlhr" # => /assets/xmlhr.js - # javascript_path "dir/xmlhr.js" # => /assets/dir/xmlhr.js - # javascript_path "/dir/xmlhr" # => /dir/xmlhr.js - # javascript_path "http://www.example.com/js/xmlhr" # => http://www.example.com/js/xmlhr - # javascript_path "http://www.example.com/js/xmlhr.js" # => http://www.example.com/js/xmlhr.js - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#321 - def javascript_path(source, options = T.unsafe(nil)); end - - # Computes the full URL to a JavaScript asset in the public javascripts directory. - # This will use +javascript_path+ internally, so most of their behaviors will be the same. - # Since +javascript_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # javascript_url "js/xmlhr.js", host: "http://stage.example.com" # => http://stage.example.com/assets/js/xmlhr.js - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#333 - def javascript_url(source, options = T.unsafe(nil)); end - - # This is the entry point for all assets. - # When using an asset pipeline gem (e.g. propshaft or sprockets-rails), the - # behavior is "enhanced". You can bypass the asset pipeline by passing in - # skip_pipeline: true to the options. - # - # All other asset *_path helpers delegate through this method. - # - # === With the asset pipeline - # - # All options passed to +asset_path+ will be passed to +compute_asset_path+ - # which is implemented by asset pipeline gems. - # - # asset_path("application.js") # => "/assets/application-60aa4fdc5cea14baf5400fba1abf4f2a46a5166bad4772b1effe341570f07de9.js" - # asset_path('application.js', host: 'example.com') # => "//example.com/assets/application.js" - # asset_path("application.js", host: 'example.com', protocol: 'https') # => "https://example.com/assets/application.js" - # - # === Without the asset pipeline (skip_pipeline: true) - # - # Accepts a type option that can specify the asset's extension. No error - # checking is done to verify the source passed into +asset_path+ is valid - # and that the file exists on disk. - # - # asset_path("application.js", skip_pipeline: true) # => "application.js" - # asset_path("filedoesnotexist.png", skip_pipeline: true) # => "filedoesnotexist.png" - # asset_path("application", type: :javascript, skip_pipeline: true) # => "/javascripts/application.js" - # asset_path("application", type: :stylesheet, skip_pipeline: true) # => "/stylesheets/application.css" - # - # === Options applying to all assets - # - # Below lists scenarios that apply to +asset_path+ whether or not you're - # using the asset pipeline. - # - # - All fully qualified URLs are returned immediately. This bypasses the - # asset pipeline and all other behavior described. - # - # asset_path("http://www.example.com/js/xmlhr.js") # => "http://www.example.com/js/xmlhr.js" - # - # - All assets that begin with a forward slash are assumed to be full - # URLs and will not be expanded. This will bypass the asset pipeline. - # - # asset_path("/foo.png") # => "/foo.png" - # - # - All blank strings will be returned immediately. This bypasses the - # asset pipeline and all other behavior described. - # - # asset_path("") # => "" - # - # - If config.relative_url_root is specified, all assets will have that - # root prepended. - # - # Rails.application.config.relative_url_root = "bar" - # asset_path("foo.js", skip_pipeline: true) # => "bar/foo.js" - # - # - A different asset host can be specified via config.action_controller.asset_host - # this is commonly used in conjunction with a CDN. - # - # Rails.application.config.action_controller.asset_host = "assets.example.com" - # asset_path("foo.js", skip_pipeline: true) # => "http://assets.example.com/foo.js" - # - # - An extension name can be specified manually with extname. - # - # asset_path("foo", skip_pipeline: true, extname: ".js") # => "/foo.js" - # asset_path("foo.css", skip_pipeline: true, extname: ".js") # => "/foo.css.js" - # aliased to avoid conflicts with an asset_path named route - # - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#187 - def path_to_asset(source, options = T.unsafe(nil)); end - - # Computes the path to an audio asset in the public audios directory. - # Full paths from the document root will be passed through. - # Used internally by +audio_tag+ to build the audio path. - # - # audio_path("horse") # => /audios/horse - # audio_path("horse.wav") # => /audios/horse.wav - # audio_path("sounds/horse.wav") # => /audios/sounds/horse.wav - # audio_path("/sounds/horse.wav") # => /sounds/horse.wav - # audio_path("http://www.example.com/sounds/horse.wav") # => http://www.example.com/sounds/horse.wav - # aliased to avoid conflicts with an audio_path named route + # numbers 0-3 if it contains %d (the number is the source hash mod 4), + # or the value returned from invoking call on an object responding to call + # (proc or otherwise). # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#430 - def path_to_audio(source, options = T.unsafe(nil)); end + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:277 + def compute_asset_host(source = T.unsafe(nil), options = T.unsafe(nil)); end + + # Computes asset path to public directory. Plugins and + # extensions can override this method to point to custom assets + # or generate digested paths or query strings. + # + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:266 + def compute_asset_path(source, options = T.unsafe(nil)); end # Computes the path to a font asset. # Full paths from the document root will be passed through. @@ -2837,10 +1946,19 @@ module ActionView::Helpers::AssetUrlHelper # font_path("dir/font.ttf") # => /fonts/dir/font.ttf # font_path("/dir/font.ttf") # => /dir/font.ttf # font_path("http://www.example.com/dir/font.ttf") # => http://www.example.com/dir/font.ttf - # aliased to avoid conflicts with a font_path named route # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#455 - def path_to_font(source, options = T.unsafe(nil)); end + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:455 + def font_path(source, options = T.unsafe(nil)); end + + # Computes the full URL to a font asset. + # This will use +font_path+ internally, so most of their behaviors will be the same. + # Since +font_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ + # options is set, it overwrites global +config.action_controller.asset_host+ setting. + # + # font_url "font.ttf", host: "http://stage.example.com" # => http://stage.example.com/fonts/font.ttf + # + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:467 + def font_url(source, options = T.unsafe(nil)); end # Computes the path to an image asset. # Full paths from the document root will be passed through. @@ -2855,10 +1973,19 @@ module ActionView::Helpers::AssetUrlHelper # If you have images as application resources this method may conflict with their named routes. # The alias +path_to_image+ is provided to avoid that. \Rails uses the alias internally, and # plugin authors are encouraged to do so. - # aliased to avoid conflicts with an image_path named route # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#378 - def path_to_image(source, options = T.unsafe(nil)); end + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:378 + def image_path(source, options = T.unsafe(nil)); end + + # Computes the full URL to an image asset. + # This will use +image_path+ internally, so most of their behaviors will be the same. + # Since +image_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ + # options is set, it overwrites global +config.action_controller.asset_host+ setting. + # + # image_url "edit.png", host: "http://stage.example.com" # => http://stage.example.com/assets/edit.png + # + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:390 + def image_url(source, options = T.unsafe(nil)); end # Computes the path to a JavaScript asset in the public javascripts directory. # If the +source+ filename has no extension, .js will be appended (except for explicit URIs) @@ -2870,45 +1997,42 @@ module ActionView::Helpers::AssetUrlHelper # javascript_path "/dir/xmlhr" # => /dir/xmlhr.js # javascript_path "http://www.example.com/js/xmlhr" # => http://www.example.com/js/xmlhr # javascript_path "http://www.example.com/js/xmlhr.js" # => http://www.example.com/js/xmlhr.js - # aliased to avoid conflicts with a javascript_path named route # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#321 - def path_to_javascript(source, options = T.unsafe(nil)); end + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:321 + def javascript_path(source, options = T.unsafe(nil)); end - # Computes the path to a stylesheet asset in the public stylesheets directory. - # If the +source+ filename has no extension, .css will be appended (except for explicit URIs). - # Full paths from the document root will be passed through. - # Used internally by +stylesheet_link_tag+ to build the stylesheet path. + # Computes the full URL to a JavaScript asset in the public javascripts directory. + # This will use +javascript_path+ internally, so most of their behaviors will be the same. + # Since +javascript_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ + # options is set, it overwrites global +config.action_controller.asset_host+ setting. # - # stylesheet_path "style" # => /assets/style.css - # stylesheet_path "dir/style.css" # => /assets/dir/style.css - # stylesheet_path "/dir/style.css" # => /dir/style.css - # stylesheet_path "http://www.example.com/css/style" # => http://www.example.com/css/style - # stylesheet_path "http://www.example.com/css/style.css" # => http://www.example.com/css/style.css - # aliased to avoid conflicts with a stylesheet_path named route + # javascript_url "js/xmlhr.js", host: "http://stage.example.com" # => http://stage.example.com/assets/js/xmlhr.js # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#348 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:333 + def javascript_url(source, options = T.unsafe(nil)); end + + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:219 + def path_to_asset(source, options = T.unsafe(nil)); end + + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:433 + def path_to_audio(source, options = T.unsafe(nil)); end + + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:458 + def path_to_font(source, options = T.unsafe(nil)); end + + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:381 + def path_to_image(source, options = T.unsafe(nil)); end + + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:324 + def path_to_javascript(source, options = T.unsafe(nil)); end + + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:351 def path_to_stylesheet(source, options = T.unsafe(nil)); end - # Computes the path to a video asset in the public videos directory. - # Full paths from the document root will be passed through. - # Used internally by +video_tag+ to build the video path. - # - # video_path("hd") # => /videos/hd - # video_path("hd.avi") # => /videos/hd.avi - # video_path("trailers/hd.avi") # => /videos/trailers/hd.avi - # video_path("/trailers/hd.avi") # => /trailers/hd.avi - # video_path("http://www.example.com/vid/hd.avi") # => http://www.example.com/vid/hd.avi - # aliased to avoid conflicts with a video_path named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#404 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:407 def path_to_video(source, options = T.unsafe(nil)); end - # Computes asset path to public directory. Plugins and - # extensions can override this method to point to custom assets - # or generate digested paths or query strings. - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#266 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:270 def public_compute_asset_path(source, options = T.unsafe(nil)); end # Computes the path to a stylesheet asset in the public stylesheets directory. @@ -2922,7 +2046,7 @@ module ActionView::Helpers::AssetUrlHelper # stylesheet_path "http://www.example.com/css/style" # => http://www.example.com/css/style # stylesheet_path "http://www.example.com/css/style.css" # => http://www.example.com/css/style.css # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#348 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:348 def stylesheet_path(source, options = T.unsafe(nil)); end # Computes the full URL to a stylesheet asset in the public stylesheets directory. @@ -2932,87 +2056,28 @@ module ActionView::Helpers::AssetUrlHelper # # stylesheet_url "css/style.css", host: "http://stage.example.com" # => http://stage.example.com/assets/css/style.css # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#360 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:360 def stylesheet_url(source, options = T.unsafe(nil)); end - # Computes the full URL to an asset in the public directory. This - # will use +asset_path+ internally, so most of their behaviors - # will be the same. If +:host+ options is set, it overwrites global - # +config.action_controller.asset_host+ setting. - # - # All other options provided are forwarded to +asset_path+ call. - # - # asset_url "application.js" # => http://example.com/assets/application.js - # asset_url "application.js", host: "http://cdn.example.com" # => http://cdn.example.com/assets/application.js - # aliased to avoid conflicts with an asset_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#231 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:234 def url_to_asset(source, options = T.unsafe(nil)); end - # Computes the full URL to an audio asset in the public audios directory. - # This will use +audio_path+ internally, so most of their behaviors will be the same. - # Since +audio_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # audio_url "horse.wav", host: "http://stage.example.com" # => http://stage.example.com/audios/horse.wav - # aliased to avoid conflicts with an audio_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#442 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:445 def url_to_audio(source, options = T.unsafe(nil)); end - # Computes the full URL to a font asset. - # This will use +font_path+ internally, so most of their behaviors will be the same. - # Since +font_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # font_url "font.ttf", host: "http://stage.example.com" # => http://stage.example.com/fonts/font.ttf - # aliased to avoid conflicts with a font_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#467 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:470 def url_to_font(source, options = T.unsafe(nil)); end - # Computes the full URL to an image asset. - # This will use +image_path+ internally, so most of their behaviors will be the same. - # Since +image_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # image_url "edit.png", host: "http://stage.example.com" # => http://stage.example.com/assets/edit.png - # aliased to avoid conflicts with an image_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#390 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:393 def url_to_image(source, options = T.unsafe(nil)); end - # Computes the full URL to a JavaScript asset in the public javascripts directory. - # This will use +javascript_path+ internally, so most of their behaviors will be the same. - # Since +javascript_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # javascript_url "js/xmlhr.js", host: "http://stage.example.com" # => http://stage.example.com/assets/js/xmlhr.js - # aliased to avoid conflicts with a javascript_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#333 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:336 def url_to_javascript(source, options = T.unsafe(nil)); end - # Computes the full URL to a stylesheet asset in the public stylesheets directory. - # This will use +stylesheet_path+ internally, so most of their behaviors will be the same. - # Since +stylesheet_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # stylesheet_url "css/style.css", host: "http://stage.example.com" # => http://stage.example.com/assets/css/style.css - # aliased to avoid conflicts with a stylesheet_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#360 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:363 def url_to_stylesheet(source, options = T.unsafe(nil)); end - # Computes the full URL to a video asset in the public videos directory. - # This will use +video_path+ internally, so most of their behaviors will be the same. - # Since +video_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+ - # options is set, it overwrites global +config.action_controller.asset_host+ setting. - # - # video_url "hd.avi", host: "http://stage.example.com" # => http://stage.example.com/videos/hd.avi - # aliased to avoid conflicts with a video_url named route - # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#416 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:419 def url_to_video(source, options = T.unsafe(nil)); end # Computes the path to a video asset in the public videos directory. @@ -3025,7 +2090,7 @@ module ActionView::Helpers::AssetUrlHelper # video_path("/trailers/hd.avi") # => /trailers/hd.avi # video_path("http://www.example.com/vid/hd.avi") # => http://www.example.com/vid/hd.avi # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#404 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:404 def video_path(source, options = T.unsafe(nil)); end # Computes the full URL to a video asset in the public videos directory. @@ -3035,24 +2100,26 @@ module ActionView::Helpers::AssetUrlHelper # # video_url "hd.avi", host: "http://stage.example.com" # => http://stage.example.com/videos/hd.avi # - # source://actionview//lib/action_view/helpers/asset_url_helper.rb#416 + # pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:416 def video_url(source, options = T.unsafe(nil)); end end -# source://actionview//lib/action_view/helpers/asset_url_helper.rb#236 +# aliased to avoid conflicts with an asset_url named route +# +# pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:236 ActionView::Helpers::AssetUrlHelper::ASSET_EXTENSIONS = T.let(T.unsafe(nil), Hash) # Maps asset types to public directory. # -# source://actionview//lib/action_view/helpers/asset_url_helper.rb#254 +# pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:254 ActionView::Helpers::AssetUrlHelper::ASSET_PUBLIC_DIRECTORIES = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/helpers/asset_url_helper.rb#122 +# pkg:gem/actionview#lib/action_view/helpers/asset_url_helper.rb:122 ActionView::Helpers::AssetUrlHelper::URI_REGEXP = T.let(T.unsafe(nil), Regexp) # = Action View Atom Feed \Helpers # -# source://actionview//lib/action_view/helpers/atom_feed_helper.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:6 module ActionView::Helpers::AtomFeedHelper # Adds easy defaults to writing Atom feeds with the Builder template engine (this does not work on ERB or any other # template languages). @@ -3144,15 +2211,13 @@ module ActionView::Helpers::AtomFeedHelper # atom_feed yields an +AtomFeedBuilder+ instance. Nested elements yield # an +AtomBuilder+ instance. # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#96 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:96 def atom_feed(options = T.unsafe(nil), &block); end end -# source://actionview//lib/action_view/helpers/atom_feed_helper.rb#127 +# pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:127 class ActionView::Helpers::AtomFeedHelper::AtomBuilder - # @return [AtomBuilder] a new instance of AtomBuilder - # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#130 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:130 def initialize(xml); end private @@ -3161,27 +2226,23 @@ class ActionView::Helpers::AtomFeedHelper::AtomBuilder # namespaced div element if the method and arguments indicate # that an xhtml_block? is desired. # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#138 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:138 def method_missing(method, *arguments, &block); end # True if the method name matches one of the five elements defined # in the Atom spec as potentially containing XHTML content and # if type: 'xhtml' is, in fact, specified. # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#153 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:153 def xhtml_block?(method, arguments); end end -# source://actionview//lib/action_view/helpers/atom_feed_helper.rb#128 +# pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:128 ActionView::Helpers::AtomFeedHelper::AtomBuilder::XHTML_TAG_NAMES = T.let(T.unsafe(nil), Set) -# source://actionview//lib/action_view/helpers/atom_feed_helper.rb#161 +# pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:161 class ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder < ::ActionView::Helpers::AtomFeedHelper::AtomBuilder - # @return [AtomFeedBuilder] a new instance of AtomFeedBuilder - # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#162 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:162 def initialize(xml, view, feed_options = T.unsafe(nil)); end # Creates an entry tag for a specific record and prefills the id using class and id. @@ -3194,18 +2255,18 @@ class ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder < ::ActionView::Helpe # * :id: The ID for this entry. Defaults to "tag:#{@view.request.host},#{@feed_options[:schema_date]}:#{record.class}/#{record.id}" # * :type: The TYPE for this entry. Defaults to "text/html". # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#180 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:180 def entry(record, options = T.unsafe(nil)); end # Accepts a Date or Time object and inserts it in the proper format. If +nil+ is passed, current time in UTC is used. # - # source://actionview//lib/action_view/helpers/atom_feed_helper.rb#167 + # pkg:gem/actionview#lib/action_view/helpers/atom_feed_helper.rb:167 def updated(date_or_time = T.unsafe(nil)); end end # = Action View Cache \Helpers # -# source://actionview//lib/action_view/helpers/cache_helper.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:6 module ActionView::Helpers::CacheHelper # This helper exposes a method for caching fragments of a view # rather than an entire action or page. This technique is useful @@ -3375,7 +2436,7 @@ module ActionView::Helpers::CacheHelper # This will include both records as part of the cache key and updating either of them will # expire the cache. # - # source://actionview//lib/action_view/helpers/cache_helper.rb#176 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:176 def cache(name = T.unsafe(nil), options = T.unsafe(nil), &block); end # This helper returns the name of a cache key for a given fragment cache @@ -3384,7 +2445,7 @@ module ActionView::Helpers::CacheHelper # cannot be manually expired unless you know the exact key which is the # case when using memcached. # - # source://actionview//lib/action_view/helpers/cache_helper.rb#248 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:248 def cache_fragment_name(name = T.unsafe(nil), skip_digest: T.unsafe(nil), digest_path: T.unsafe(nil)); end # Cache fragments of a view if +condition+ is true @@ -3394,7 +2455,7 @@ module ActionView::Helpers::CacheHelper # <%= render project.topics %> # <% end %> # - # source://actionview//lib/action_view/helpers/cache_helper.rb#223 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:223 def cache_if(condition, name = T.unsafe(nil), options = T.unsafe(nil), &block); end # Cache fragments of a view unless +condition+ is true @@ -3404,7 +2465,7 @@ module ActionView::Helpers::CacheHelper # <%= render project.topics %> # <% end %> # - # source://actionview//lib/action_view/helpers/cache_helper.rb#239 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:239 def cache_unless(condition, name = T.unsafe(nil), options = T.unsafe(nil), &block); end # Returns whether the current view fragment is within a +cache+ block. @@ -3415,12 +2476,10 @@ module ActionView::Helpers::CacheHelper # <% raise StandardError, "Caching private data!" if caching? %> # <% end %> # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/cache_helper.rb#196 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:196 def caching?; end - # source://actionview//lib/action_view/helpers/cache_helper.rb#256 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:256 def digest_path_from_template(template); end # Raises UncacheableFragmentError when called from within a +cache+ block. @@ -3437,40 +2496,36 @@ module ActionView::Helpers::CacheHelper # <%= project_name_with_time(project) %> # <% end %> # - # @raise [UncacheableFragmentError] - # - # source://actionview//lib/action_view/helpers/cache_helper.rb#213 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:213 def uncacheable!; end private - # source://actionview//lib/action_view/helpers/cache_helper.rb#278 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:278 def fragment_for(name = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview//lib/action_view/helpers/cache_helper.rb#267 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:267 def fragment_name_with_digest(name, digest_path); end - # source://actionview//lib/action_view/helpers/cache_helper.rb#288 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:288 def read_fragment_for(name, options); end - # source://actionview//lib/action_view/helpers/cache_helper.rb#292 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:292 def write_fragment_for(name, options, &block); end end -# source://actionview//lib/action_view/helpers/cache_helper.rb#297 +# pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:297 module ActionView::Helpers::CacheHelper::CachingRegistry extend ::ActionView::Helpers::CacheHelper::CachingRegistry - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/cache_helper.rb#300 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:300 def caching?; end - # source://actionview//lib/action_view/helpers/cache_helper.rb#304 + # pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:304 def track_caching; end end -# source://actionview//lib/action_view/helpers/cache_helper.rb#7 +# pkg:gem/actionview#lib/action_view/helpers/cache_helper.rb:7 class ActionView::Helpers::CacheHelper::UncacheableFragmentError < ::StandardError; end # = Action View Capture \Helpers @@ -3484,7 +2539,7 @@ class ActionView::Helpers::CacheHelper::UncacheableFragmentError < ::StandardErr # As well as provides a method when using streaming responses through #provide. # See ActionController::Streaming for more information. # -# source://actionview//lib/action_view/helpers/capture_helper.rb#17 +# pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:17 module ActionView::Helpers::CaptureHelper # The capture method extracts part of a template as a string object. # You can then use this object anywhere in your templates, layout, or helpers. @@ -3515,7 +2570,7 @@ module ActionView::Helpers::CaptureHelper # # @greeting # => "Welcome to my shiny new web page! The date and time is 2018-09-06 11:09:16 -0500" # - # source://actionview//lib/action_view/helpers/capture_helper.rb#47 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:47 def capture(*args, &block); end # Calling content_for stores a block of markup in an identifier for later use. @@ -3623,7 +2678,7 @@ module ActionView::Helpers::CaptureHelper # # WARNING: content_for is ignored in caches. So you shouldn't use it for elements that will be fragment cached. # - # source://actionview//lib/action_view/helpers/capture_helper.rb#172 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:172 def content_for(name, content = T.unsafe(nil), options = T.unsafe(nil), &block); end # content_for? checks whether any content has been captured yet using content_for. @@ -3642,9 +2697,7 @@ module ActionView::Helpers::CaptureHelper # # # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/capture_helper.rb#215 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:215 def content_for?(name); end # The same as +content_for+ but when used with streaming flushes @@ -3655,32 +2708,32 @@ module ActionView::Helpers::CaptureHelper # # See ActionController::Streaming for more information. # - # source://actionview//lib/action_view/helpers/capture_helper.rb#194 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:194 def provide(name, content = T.unsafe(nil), &block); end # Use an alternate output buffer for the duration of the block. # Defaults to a new empty string. # - # source://actionview//lib/action_view/helpers/capture_helper.rb#221 + # pkg:gem/actionview#lib/action_view/helpers/capture_helper.rb:221 def with_output_buffer(buf = T.unsafe(nil)); end end -# source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#5 +# pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:5 module ActionView::Helpers::ContentExfiltrationPreventionHelper - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#6 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:6 def prepend_content_exfiltration_prevention; end - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#6 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:6 def prepend_content_exfiltration_prevention=(val); end - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#61 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:61 def prevent_content_exfiltration(html); end class << self - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#6 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:6 def prepend_content_exfiltration_prevention; end - # source://actionview//lib/action_view/helpers/content_exfiltration_prevention_helper.rb#6 + # pkg:gem/actionview#lib/action_view/helpers/content_exfiltration_prevention_helper.rb:6 def prepend_content_exfiltration_prevention=(val); end end end @@ -3698,7 +2751,7 @@ end # - # - # textarea(:comment, :text, size: "20x30") - # # => - # - # textarea(:application, :notes, cols: 40, rows: 15, class: 'app_input') - # # => - # - # textarea(:entry, :body, size: "20x20", disabled: 'disabled') - # # => - # - # source://actionview//lib/action_view/helpers/form_helper.rb#1279 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1282 def text_area(object_name, method, options = T.unsafe(nil)); end # Returns an input tag of the "text" type tailored for accessing a specified attribute (identified by +method+) on an object @@ -7446,7 +6233,7 @@ module ActionView::Helpers::FormHelper # text_field(:snippet, :code, size: 20, class: 'code_input') # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1177 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1177 def text_field(object_name, method, options = T.unsafe(nil)); end # Returns a textarea opening and closing tag set tailored for accessing a specified attribute (identified by +method+) @@ -7474,7 +6261,7 @@ module ActionView::Helpers::FormHelper # # #{@entry.body} # # # - # source://actionview//lib/action_view/helpers/form_helper.rb#1279 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1279 def textarea(object_name, method, options = T.unsafe(nil)); end # Returns a text_field of type "time". @@ -7512,7 +6299,7 @@ module ActionView::Helpers::FormHelper # time_field("task", "started_at", value: Time.now, include_seconds: false) # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1481 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1481 def time_field(object_name, method, options = T.unsafe(nil)); end # Returns a text_field of type "url". @@ -7520,7 +6307,7 @@ module ActionView::Helpers::FormHelper # url_field("user", "homepage") # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1561 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1561 def url_field(object_name, method, options = T.unsafe(nil)); end # Returns a text_field of type "week". @@ -7536,40 +6323,40 @@ module ActionView::Helpers::FormHelper # week_field("user", "born_on") # # => # - # source://actionview//lib/action_view/helpers/form_helper.rb#1552 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1552 def week_field(object_name, method, options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/form_helper.rb#467 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:467 def apply_form_for_options!(object, options); end - # source://actionview//lib/action_view/helpers/form_helper.rb#1626 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1626 def default_form_builder_class; end - # source://actionview//lib/action_view/helpers/form_helper.rb#1597 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1597 def html_options_for_form_with(url_for_options = T.unsafe(nil), model = T.unsafe(nil), html: T.unsafe(nil), local: T.unsafe(nil), skip_enforcing_utf8: T.unsafe(nil), **options); end - # source://actionview//lib/action_view/helpers/form_helper.rb#1612 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:1612 def instantiate_builder(record_name, record_object, options); end class << self - # source://actionview//lib/action_view/helpers/form_helper.rb#483 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:483 def form_with_generates_ids; end - # source://actionview//lib/action_view/helpers/form_helper.rb#483 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:483 def form_with_generates_ids=(val); end - # source://actionview//lib/action_view/helpers/form_helper.rb#481 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:481 def form_with_generates_remote_forms; end - # source://actionview//lib/action_view/helpers/form_helper.rb#481 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:481 def form_with_generates_remote_forms=(val); end - # source://actionview//lib/action_view/helpers/form_helper.rb#485 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:485 def multiple_file_field_include_hidden; end - # source://actionview//lib/action_view/helpers/form_helper.rb#485 + # pkg:gem/actionview#lib/action_view/helpers/form_helper.rb:485 def multiple_file_field_include_hidden=(val); end end end @@ -7626,128 +6413,47 @@ end # select("album[]", :genre, %w[ rap rock country ], {}, { index: nil }) # # becomes: -# -# -# -# * :disabled - can be a single value or an array of values that will be disabled options in the final output. -# -# select(:post, :category, Post::CATEGORIES, { disabled: "restricted" }) -# -# could become: -# -# -# -# When used with the collection_select helper, :disabled can also be a Proc that identifies those options that should be disabled. -# -# collection_select(:post, :category_id, Category.all, :id, :name, { disabled: -> (category) { category.archived? } }) -# -# If the categories "2008 stuff" and "Christmas" return true when the method archived? is called, this would return: -# -# -# source://actionview//lib/action_view/helpers/form_options_helper.rb#95 -module ActionView::Helpers::FormOptionsHelper - include ::ActionView::Helpers::SanitizeHelper - include ::ActionView::Helpers::CaptureHelper - include ::ActionView::Helpers::OutputSafetyHelper - include ::ActionView::Helpers::TagHelper - include ::ActionView::Helpers::TextHelper - extend ::ActionView::Helpers::SanitizeHelper::ClassMethods - - # Returns check box tags for the collection of existing return values of - # +method+ for +object+'s class. The value returned from calling +method+ - # on the instance +object+ will be selected. If calling +method+ returns - # +nil+, no selection is made. - # - # The :value_method and :text_method parameters are - # methods to be called on each member of +collection+. The return values - # are used as the +value+ attribute and contents of each check box tag, - # respectively. They can also be any object that responds to +call+, such - # as a +proc+, that will be called for each member of the +collection+ to - # retrieve the value/text. - # - # Example object structure for use with this method: - # class Post < ActiveRecord::Base - # has_and_belongs_to_many :authors - # end - # class Author < ActiveRecord::Base - # has_and_belongs_to_many :posts - # def name_with_initial - # "#{first_name.first}. #{last_name}" - # end - # end - # - # Sample usage (selecting the associated Author for an instance of Post, @post): - # collection_checkboxes(:post, :author_ids, Author.all, :id, :name_with_initial) - # - # If @post.author_ids is already [1], this would return: - # - # - # - # - # - # - # - # - # It is also possible to customize the way the elements will be shown by - # giving a block to the method: - # collection_checkboxes(:post, :author_ids, Author.all, :id, :name_with_initial) do |b| - # b.label { b.checkbox } - # end - # - # The argument passed to the block is a special kind of builder for this - # collection, which has the ability to generate the label and check box - # for the current item in the collection, with proper text and value. - # Using it, you can change the label and check box display order or even - # use the label as wrapper, as in the example above. - # - # The builder methods label and checkbox also accept - # extra HTML options: - # collection_checkboxes(:post, :author_ids, Author.all, :id, :name_with_initial) do |b| - # b.label(class: "checkbox") { b.checkbox(class: "checkbox") } - # end - # - # There are also three special methods available: object, text and - # value, which are the current item being rendered, its text and value methods, - # respectively. You can use them like this: - # collection_checkboxes(:post, :author_ids, Author.all, :id, :name_with_initial) do |b| - # b.label(:"data-value" => b.value) { b.checkbox + b.text } - # end - # - # ==== Gotcha - # - # When no selection is made for a collection of checkboxes most - # web browsers will not send any value. - # - # For example, if we have a +User+ model with +category_ids+ field and we - # have the following code in our update action: - # - # @user.update(params[:user]) - # - # If no +category_ids+ are selected then we can safely assume this field - # will not be updated. - # - # This is possible thanks to a hidden field generated by the helper method - # for every collection of checkboxes. - # This hidden field is given the same field name as the checkboxes with a - # blank value. - # - # In the rare case you don't want this hidden field, you can pass the - # include_hidden: false option to the helper method. - # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#786 +# +# +# +# * :disabled - can be a single value or an array of values that will be disabled options in the final output. +# +# select(:post, :category, Post::CATEGORIES, { disabled: "restricted" }) +# +# could become: +# +# +# +# When used with the collection_select helper, :disabled can also be a Proc that identifies those options that should be disabled. +# +# collection_select(:post, :category_id, Category.all, :id, :name, { disabled: -> (category) { category.archived? } }) +# +# If the categories "2008 stuff" and "Christmas" return true when the method archived? is called, this would return: +# +# +# pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:95 +module ActionView::Helpers::FormOptionsHelper + include ::ActionView::Helpers::SanitizeHelper + include ::ActionView::Helpers::CaptureHelper + include ::ActionView::Helpers::OutputSafetyHelper + include ::ActionView::Helpers::TagHelper + include ::ActionView::Helpers::TextHelper + extend ::ActionView::Helpers::SanitizeHelper::ClassMethods + + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:789 def collection_check_boxes(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Returns check box tags for the collection of existing return values of @@ -7831,7 +6537,7 @@ module ActionView::Helpers::FormOptionsHelper # In the rare case you don't want this hidden field, you can pass the # include_hidden: false option to the helper method. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#786 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:786 def collection_checkboxes(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Returns radio button tags for the collection of existing return values @@ -7914,7 +6620,7 @@ module ActionView::Helpers::FormOptionsHelper # In case if you don't want the helper to generate this hidden field you can specify # include_hidden: false option. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#702 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:702 def collection_radio_buttons(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Returns # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#200 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:200 def collection_select(object, method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end # Returns # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#259 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:259 def grouped_collection_select(object, method, collection, group_method, group_label_method, option_key_method, option_value_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end # Returns a string of tags, like options_for_select, but @@ -8082,7 +6788,7 @@ module ActionView::Helpers::FormOptionsHelper # Note: Only the and tags are returned, so you still have to # wrap the output in an appropriate tag. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#463 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:463 def option_groups_from_collection_for_select(collection, group_method, group_label_method, option_key_method, option_value_method, selected_key = T.unsafe(nil)); end # Accepts a container (hash, array, enumerable, your type) and returns a string of option tags. Given a container @@ -8194,7 +6900,7 @@ module ActionView::Helpers::FormOptionsHelper # # NOTE: Only the option tags are returned, you have to wrap this call in a regular HTML select tag. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#359 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:359 def options_for_select(container, selected = T.unsafe(nil)); end # Returns a string of option tags that have been compiled by iterating over the +collection+ and assigning @@ -8222,7 +6928,7 @@ module ActionView::Helpers::FormOptionsHelper # options_from_collection_for_select(@people, 'id', 'name', 1) # should produce the desired results. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#402 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:402 def options_from_collection_for_select(collection, value_method, text_method, selected = T.unsafe(nil)); end # Create a select tag and a series of contained option tags for the provided object and method. @@ -8287,7 +6993,7 @@ module ActionView::Helpers::FormOptionsHelper # In case if you don't want the helper to generate this hidden field you can specify # include_hidden: false option. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#160 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:160 def select(object, method, choices = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Returns a string of option tags for pretty much any time zone in the @@ -8310,7 +7016,7 @@ module ActionView::Helpers::FormOptionsHelper # NOTE: Only the option tags are returned, you have to wrap this call in # a regular HTML select tag. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#582 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:582 def time_zone_options_for_select(selected = T.unsafe(nil), priority_zones = T.unsafe(nil), model = T.unsafe(nil)); end # Returns select and option tags for the given object and method, using @@ -8344,7 +7050,7 @@ module ActionView::Helpers::FormOptionsHelper # # time_zone_select(:user, :time_zone, ActiveSupport::TimeZone.all.sort, model: ActiveSupport::TimeZone) # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#293 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:293 def time_zone_select(object, method, priority_zones = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end # Returns a string of option tags for the days of the week. @@ -8360,38 +7066,36 @@ module ActionView::Helpers::FormOptionsHelper # NOTE: Only the option tags are returned, you have to wrap this call in # a regular HTML select tag. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#615 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:615 def weekday_options_for_select(selected = T.unsafe(nil), index_as_value: T.unsafe(nil), day_format: T.unsafe(nil), beginning_of_week: T.unsafe(nil)); end # Returns select and option tags for the given object and method, using # weekday_options_for_select to generate the list of option tags. # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#299 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:299 def weekday_select(object, method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end private - # source://actionview//lib/action_view/helpers/form_options_helper.rb#814 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:814 def extract_selected_and_disabled(selected); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#825 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:825 def extract_values_from_collection(collection, value_method, selected); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#792 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:792 def option_html_attributes(element); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#800 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:800 def option_text_and_value(option); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/form_options_helper.rb#810 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:810 def option_value_selected?(value, selected); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#839 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:839 def prompt_text(prompt); end - # source://actionview//lib/action_view/helpers/form_options_helper.rb#835 + # pkg:gem/actionview#lib/action_view/helpers/form_options_helper.rb:835 def value_for_collection(item, value); end end @@ -8403,7 +7107,7 @@ end # NOTE: The HTML options disabled, readonly, and multiple can all be treated as booleans. So specifying # disabled: true will give disabled="disabled". # -# source://actionview//lib/action_view/helpers/form_tag_helper.rb#20 +# pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:20 module ActionView::Helpers::FormTagHelper include ::ActionView::Helpers::ContentExfiltrationPreventionHelper extend ::ActiveSupport::Concern @@ -8448,39 +7152,10 @@ module ActionView::Helpers::FormTagHelper # # Ask me! # # # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#569 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:569 def button_tag(content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end - # :call-seq: - # checkbox_tag(name, options = {}) - # checkbox_tag(name, value, options = {}) - # checkbox_tag(name, value, checked, options = {}) - # - # Creates a check box form input tag. - # - # ==== Options - # * :value - The value of the input. Defaults to "1". - # * :checked - If set to true, the checkbox will be checked by default. - # * :disabled - If set to true, the user will not be able to use this input. - # * Any other key creates standard HTML options for the tag. - # - # ==== Examples - # checkbox_tag 'accept' - # # => - # - # checkbox_tag 'rock', 'rock music' - # # => - # - # checkbox_tag 'receive_email', 'yes', true - # # => - # - # checkbox_tag 'tos', 'yes', false, class: 'accept_tos' - # # => - # - # checkbox_tag 'eula', 'accepted', false, disabled: true - # # => - # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#457 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:467 def check_box_tag(name, *args); end # :call-seq: @@ -8512,7 +7187,7 @@ module ActionView::Helpers::FormTagHelper # checkbox_tag 'eula', 'accepted', false, disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#457 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:457 def checkbox_tag(name, *args); end # Creates a text field of type "color". @@ -8535,7 +7210,7 @@ module ActionView::Helpers::FormTagHelper # color_field_tag 'color', '#DEF726', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#669 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:669 def color_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "date". @@ -8558,7 +7233,7 @@ module ActionView::Helpers::FormTagHelper # date_field_tag 'date', '2014-12-31', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#739 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:739 def date_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "datetime-local". @@ -8586,41 +7261,16 @@ module ActionView::Helpers::FormTagHelper # datetime_field_tag 'datetime', '2014-01-01T01:01', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#798 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:798 def datetime_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - # Creates a text field of type "datetime-local". - # - # ==== Options - # - # Supports the same options as #text_field_tag. Additionally, supports: - # - # * :min - The minimum acceptable value. - # * :max - The maximum acceptable value. - # * :step - The acceptable value granularity. - # * :include_seconds - Include seconds in the output timestamp format (true by default). - # - # ==== Examples - # - # datetime_field_tag 'name' - # # => - # - # datetime_field_tag 'datetime', '2014-01-01T01:01' - # # => - # - # datetime_field_tag 'datetime', nil, class: 'special_input' - # # => - # - # datetime_field_tag 'datetime', '2014-01-01T01:01', class: 'special_input', disabled: true - # # => - # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#798 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:802 def datetime_local_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:30 def default_enforce_utf8; end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:30 def default_enforce_utf8=(val); end # Creates a text field of type "email". @@ -8643,13 +7293,13 @@ module ActionView::Helpers::FormTagHelper # email_field_tag 'email', 'email@example.com', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#900 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:900 def email_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:27 def embed_authenticity_token_in_remote_forms; end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:27 def embed_authenticity_token_in_remote_forms=(val); end # Generate an HTML id attribute value for the given name and @@ -8668,7 +7318,7 @@ module ActionView::Helpers::FormTagHelper # element, sharing a common id root (post_title, in this # case). # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#103 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:103 def field_id(object_name, method_name, *suffixes, index: T.unsafe(nil), namespace: T.unsafe(nil)); end # Generate an HTML name attribute value for the given name and @@ -8683,7 +7333,7 @@ module ActionView::Helpers::FormTagHelper # <%= text_field :post, :tag, name: field_name(:post, :tag, multiple: true) %> # <%# => %> # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#133 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:133 def field_name(object_name, method_name, *method_names, multiple: T.unsafe(nil), index: T.unsafe(nil)); end # Creates a field set for grouping HTML form elements. @@ -8707,31 +7357,10 @@ module ActionView::Helpers::FormTagHelper # <% end %> # # =>

# - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#641 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:641 def field_set_tag(legend = T.unsafe(nil), options = T.unsafe(nil), &block); end - # Creates a field set for grouping HTML form elements. - # - # legend will become the fieldset's title (optional as per W3C). - # options accept the same values as tag. - # - # ==== Examples - # <%= field_set_tag do %> - #

<%= text_field_tag 'name' %>

- # <% end %> - # # =>

- # - # <%= field_set_tag 'Your details' do %> - #

<%= text_field_tag 'name' %>

- # <% end %> - # # =>
Your details

- # - # <%= field_set_tag nil, class: 'format' do %> - #

<%= text_field_tag 'name' %>

- # <% end %> - # # =>

- # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#641 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:648 def fieldset_tag(legend = T.unsafe(nil), options = T.unsafe(nil), &block); end # Creates a file upload field. If you are using file uploads then you will also need @@ -8770,7 +7399,7 @@ module ActionView::Helpers::FormTagHelper # file_field_tag 'file', accept: 'text/html', class: 'upload', value: 'index.html' # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#348 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:348 def file_field_tag(name, options = T.unsafe(nil)); end # Starts a form tag that points the action to a URL configured with url_for_options just like @@ -8820,7 +7449,7 @@ module ActionView::Helpers::FormTagHelper # form_tag('http://far.away.com/form', authenticity_token: "cf50faa3fe97702ca1ae") # # form with custom authenticity token # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#79 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:79 def form_tag(url_for_options = T.unsafe(nil), options = T.unsafe(nil), &block); end # Creates a hidden form input field used to transmit data that would be lost due to HTTP's statelessness or @@ -8840,7 +7469,7 @@ module ActionView::Helpers::FormTagHelper # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#309 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:309 def hidden_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Displays an image which when clicked will submit the form. @@ -8874,7 +7503,7 @@ module ActionView::Helpers::FormTagHelper # image_submit_tag("save.png", data: { confirm: "Are you sure?" }) # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#615 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:615 def image_submit_tag(source, options = T.unsafe(nil)); end # Creates a label element. Accepts a block. @@ -8892,7 +7521,7 @@ module ActionView::Helpers::FormTagHelper # label_tag 'name', nil, class: 'small_label' # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#282 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:282 def label_tag(name = T.unsafe(nil), content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end # Creates a text field of type "month". @@ -8919,7 +7548,7 @@ module ActionView::Helpers::FormTagHelper # month_field_tag 'month', '2014-01', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#827 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:827 def month_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a number field. @@ -8967,7 +7596,7 @@ module ActionView::Helpers::FormTagHelper # number_field_tag 'quantity', '1', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#948 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:948 def number_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a password field, a masked text field that will hide the users input behind a mask character. @@ -9000,30 +7629,10 @@ module ActionView::Helpers::FormTagHelper # password_field_tag 'pin', '1234', maxlength: 4, size: 6, class: "pin_input" # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#381 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:381 def password_field_tag(name = T.unsafe(nil), value = T.unsafe(nil), options = T.unsafe(nil)); end - # Creates a text field of type "tel". - # - # ==== Options - # - # Supports the same options as #text_field_tag. - # - # ==== Examples - # - # telephone_field_tag 'name' - # # => - # - # telephone_field_tag 'tel', '0123456789' - # # => - # - # telephone_field_tag 'tel', nil, class: 'special_input' - # # => - # - # telephone_field_tag 'tel', '0123456789', class: 'special_input', disabled: true - # # => - # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#715 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:718 def phone_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -9051,7 +7660,7 @@ module ActionView::Helpers::FormTagHelper # radio_button_tag 'color', "green", true, class: "color_input" # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#494 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:494 def radio_button_tag(name, value, *args); end # Creates a range form element. @@ -9071,7 +7680,7 @@ module ActionView::Helpers::FormTagHelper # range_field_tag 'quantity', min: 1, max: 10, step: 2 # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#692 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:692 def search_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a dropdown selection box, or if the :multiple option is set to true, a multiple @@ -9153,7 +7762,7 @@ module ActionView::Helpers::FormTagHelper # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#202 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:202 def select_tag(name, option_tags = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a submit button with the text value as the caption. @@ -9179,7 +7788,7 @@ module ActionView::Helpers::FormTagHelper # submit_tag "Edit", class: "edit_button" # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#528 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:528 def submit_tag(value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "tel". @@ -9202,40 +7811,10 @@ module ActionView::Helpers::FormTagHelper # telephone_field_tag 'tel', '0123456789', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#715 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:715 def telephone_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - # Creates a text input area; use a textarea for longer text inputs such as blog posts or descriptions. - # - # ==== Options - # * :size - A string specifying the dimensions (columns by rows) of the textarea (e.g., "25x10"). - # * :rows - Specify the number of rows in the textarea - # * :cols - Specify the number of columns in the textarea - # * :disabled - If set to true, the user will not be able to use this input. - # * :escape - By default, the contents of the text input are HTML escaped. - # If you need unescaped contents, set this to false. - # * Any other key creates standard HTML attributes for the tag. - # - # ==== Examples - # textarea_tag 'post' - # # => - # - # textarea_tag 'bio', @user.bio - # # => - # - # textarea_tag 'body', nil, rows: 10, cols: 25 - # # => - # - # textarea_tag 'body', nil, size: "25x10" - # # => - # - # textarea_tag 'description', "Description goes here.", disabled: true - # # => - # - # textarea_tag 'comment', nil, class: 'comment_input' - # # => - # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#414 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:426 def text_area_tag(name, content = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a standard text field; use these text fields to input smaller chunks of text like a username @@ -9275,7 +7854,7 @@ module ActionView::Helpers::FormTagHelper # text_field_tag 'ip', '0.0.0.0', maxlength: 15, size: 20, class: "ip-input" # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#264 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:264 def text_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text input area; use a textarea for longer text inputs such as blog posts or descriptions. @@ -9308,7 +7887,7 @@ module ActionView::Helpers::FormTagHelper # textarea_tag 'comment', nil, class: 'comment_input' # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#414 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:414 def textarea_tag(name, content = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "time". @@ -9339,7 +7918,7 @@ module ActionView::Helpers::FormTagHelper # time_field_tag 'time', '01:01', min: '00:00', max: '23:59', step: 1 # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#770 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:770 def time_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates a text field of type "url". @@ -9362,13 +7941,13 @@ module ActionView::Helpers::FormTagHelper # url_field_tag 'url', 'http://rubyonrails.org', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#877 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:877 def url_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end # Creates the hidden UTF-8 enforcer tag. Override this method in a helper # to customize the tag. # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#979 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:979 def utf8_enforcer_tag; end # Creates a text field of type "week". @@ -9395,52 +7974,52 @@ module ActionView::Helpers::FormTagHelper # week_field_tag 'week', '2014-W01', class: 'special_input', disabled: true # # => # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#854 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:854 def week_field_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1076 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1076 def convert_direct_upload_option_to_url(options); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1014 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1014 def extra_tags_for_form(html_options); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1044 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1044 def form_tag_html(html_options); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1050 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1050 def form_tag_with_body(html_options, content); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#987 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:987 def html_options_for_form(url_for_options, options); end # see http://www.w3.org/TR/html4/types.html#type-name # - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1057 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1057 def sanitize_to_id(name); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#1061 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:1061 def set_default_disable_with(value, tag_options); end class << self - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:30 def default_enforce_utf8; end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:30 def default_enforce_utf8=(val); end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:27 def embed_authenticity_token_in_remote_forms; end - # source://actionview//lib/action_view/helpers/form_tag_helper.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/form_tag_helper.rb:27 def embed_authenticity_token_in_remote_forms=(val); end end end # = Action View JavaScript \Helpers # -# source://actionview//lib/action_view/helpers/javascript_helper.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:6 module ActionView::Helpers::JavaScriptHelper # Escapes carriage returns and single and double quotes for JavaScript segments. # @@ -9449,20 +8028,13 @@ module ActionView::Helpers::JavaScriptHelper # # $('some_element').replaceWith('<%= j render 'some/element_template' %>'); # - # source://actionview//lib/action_view/helpers/javascript_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:28 def escape_javascript(javascript); end - # Escapes carriage returns and single and double quotes for JavaScript segments. - # - # Also available through the alias j(). This is particularly helpful in JavaScript - # responses, like: - # - # $('some_element').replaceWith('<%= j render 'some/element_template' %>'); - # - # source://actionview//lib/action_view/helpers/javascript_helper.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:38 def j(javascript); end - # source://actionview//lib/action_view/helpers/javascript_helper.rb#91 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:91 def javascript_cdata_section(content); end # Returns a JavaScript tag with the +content+ inside. Example: @@ -9501,11 +8073,11 @@ module ActionView::Helpers::JavaScriptHelper # alert('All is good') # <% end -%> # - # source://actionview//lib/action_view/helpers/javascript_helper.rb#75 + # pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:75 def javascript_tag(content_or_options_with_block = T.unsafe(nil), html_options = T.unsafe(nil), &block); end end -# source://actionview//lib/action_view/helpers/javascript_helper.rb#7 +# pkg:gem/actionview#lib/action_view/helpers/javascript_helper.rb:7 ActionView::Helpers::JavaScriptHelper::JS_ESCAPE_MAP = T.let(T.unsafe(nil), Hash) # = Action View Number \Helpers @@ -9517,7 +8089,7 @@ ActionView::Helpers::JavaScriptHelper::JS_ESCAPE_MAP = T.let(T.unsafe(nil), Hash # Most methods expect a +number+ argument, and will return it # unchanged if can't be converted into a valid number. # -# source://actionview//lib/action_view/helpers/number_helper.rb#17 +# pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:17 module ActionView::Helpers::NumberHelper # Delegates to ActiveSupport::NumberHelper#number_to_currency. # @@ -9527,7 +8099,7 @@ module ActionView::Helpers::NumberHelper # number_to_currency("12x34") # => "$12x34" # number_to_currency("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#51 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:51 def number_to_currency(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_human. @@ -9538,7 +8110,7 @@ module ActionView::Helpers::NumberHelper # number_to_human("12x34") # => "12x34" # number_to_human("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#111 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:111 def number_to_human(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_human_size. @@ -9549,7 +8121,7 @@ module ActionView::Helpers::NumberHelper # number_to_human_size("12x34") # => "12x34" # number_to_human_size("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#99 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:99 def number_to_human_size(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_percentage. @@ -9560,7 +8132,7 @@ module ActionView::Helpers::NumberHelper # number_to_percentage("99x") # => "99x%" # number_to_percentage("99x", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#63 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:63 def number_to_percentage(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_phone. @@ -9571,7 +8143,7 @@ module ActionView::Helpers::NumberHelper # number_to_phone("12x34") # => "12x34" # number_to_phone("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:35 def number_to_phone(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_delimited. @@ -9582,7 +8154,7 @@ module ActionView::Helpers::NumberHelper # number_with_delimiter("12x34") # => "12x34" # number_with_delimiter("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#75 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:75 def number_with_delimiter(number, options = T.unsafe(nil)); end # Delegates to ActiveSupport::NumberHelper#number_to_rounded. @@ -9593,62 +8165,48 @@ module ActionView::Helpers::NumberHelper # number_with_precision("12x34") # => "12x34" # number_with_precision("12x34", raise: true) # => InvalidNumberError # - # source://actionview//lib/action_view/helpers/number_helper.rb#87 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:87 def number_with_precision(number, options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/number_helper.rb#116 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:116 def delegate_number_helper_method(method, number, options); end - # source://actionview//lib/action_view/helpers/number_helper.rb#135 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:135 def escape_units(units); end - # source://actionview//lib/action_view/helpers/number_helper.rb#125 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:125 def escape_unsafe_options(options); end - # @raise [InvalidNumberError] - # - # source://actionview//lib/action_view/helpers/number_helper.rb#158 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:158 def parse_float(number, raise_error); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/number_helper.rb#154 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:154 def valid_float?(number); end - # @raise [InvalidNumberError] - # - # source://actionview//lib/action_view/helpers/number_helper.rb#141 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:141 def wrap_with_output_safety_handling(number, raise_on_invalid, &block); end end # Raised when argument +number+ param given to the helpers is invalid and # the option +:raise+ is set to +true+. # -# source://actionview//lib/action_view/helpers/number_helper.rb#20 +# pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:20 class ActionView::Helpers::NumberHelper::InvalidNumberError < ::StandardError - # @return [InvalidNumberError] a new instance of InvalidNumberError - # - # source://actionview//lib/action_view/helpers/number_helper.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:22 def initialize(number); end - # Returns the value of attribute number. - # - # source://actionview//lib/action_view/helpers/number_helper.rb#21 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:21 def number; end - # Sets the attribute number - # - # @param value the value to set the attribute number to. - # - # source://actionview//lib/action_view/helpers/number_helper.rb#21 + # pkg:gem/actionview#lib/action_view/helpers/number_helper.rb:21 def number=(_arg0); end end # = Action View Raw Output \Helpers # -# source://actionview//lib/action_view/helpers/output_safety_helper.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/output_safety_helper.rb:8 module ActionView::Helpers::OutputSafetyHelper # This method outputs without escaping a string. Since escaping tags is # now default, this can be used when you don't want \Rails to automatically @@ -9660,7 +8218,7 @@ module ActionView::Helpers::OutputSafetyHelper # raw @user.name # # => 'Jimmy Tables' # - # source://actionview//lib/action_view/helpers/output_safety_helper.rb#18 + # pkg:gem/actionview#lib/action_view/helpers/output_safety_helper.rb:18 def raw(stringish); end # This method returns an HTML safe string similar to what Array#join @@ -9674,14 +8232,14 @@ module ActionView::Helpers::OutputSafetyHelper # safe_join([tag.p("foo"), tag.p("bar")], tag.br) # # => "

foo


bar

" # - # source://actionview//lib/action_view/helpers/output_safety_helper.rb#33 + # pkg:gem/actionview#lib/action_view/helpers/output_safety_helper.rb:33 def safe_join(array, sep = T.unsafe(nil)); end # Converts the array to a comma-separated sentence where the last element is # joined by the connector word. This is the html_safe-aware version of # ActiveSupport's Array#to_sentence. # - # source://actionview//lib/action_view/helpers/output_safety_helper.rb#42 + # pkg:gem/actionview#lib/action_view/helpers/output_safety_helper.rb:42 def to_sentence(array, options = T.unsafe(nil)); end end @@ -9691,7 +8249,7 @@ end # this module, all you need is to implement view_renderer that returns an # ActionView::Renderer object. # -# source://actionview//lib/action_view/helpers/rendering_helper.rb#12 +# pkg:gem/actionview#lib/action_view/helpers/rendering_helper.rb:12 module ActionView::Helpers::RenderingHelper # Overrides _layout_for in the context object so it supports the case a block is # passed to a partial. Returns the contents that are yielded to a layout, given @@ -9743,7 +8301,7 @@ module ActionView::Helpers::RenderingHelper # Hello David # # - # source://actionview//lib/action_view/helpers/rendering_helper.rb#207 + # pkg:gem/actionview#lib/action_view/helpers/rendering_helper.rb:207 def _layout_for(*args, &block); end # Renders a template and returns the result. @@ -9791,39 +8349,33 @@ module ActionView::Helpers::RenderingHelper # Pass the rendering mode as first argument to override it. # # `:partial` - # : See ActionView::PartialRenderer for details. # # <%= render partial: "form", locals: { post: Post.new } %> # # => renders app/views/posts/_form.html.erb # # `:file` - # : Renders the contents of a file. This option should **not** be used with # unsanitized user input. # # <%= render file: "/path/to/some/file" %> # # => renders /path/to/some/file # # `:inline` - # : Renders an ERB template string. # # <% name = "World" %> # <%= render inline: "

Hello, <%= name %>!

" %> # # => renders "

Hello, World!

" # # `:body` - # : Renders the provided text, and sets the format as `:text`. # # <%= render body: "Hello, World!" %> # # => renders "Hello, World!" # # `:plain` - # : Renders the provided text, and sets the format as `:text`. # # <%= render plain: "Hello, World!" %> # # => renders "Hello, World!" # # `:html` - # : Renders the provided HTML string, and sets the format as # `:html`. If the string is not `html_safe?`, performs HTML escaping on # the string before rendering. # @@ -9834,7 +8386,6 @@ module ActionView::Helpers::RenderingHelper # # => renders "<h1>Hello, World!</h1>" # # `:renderable` - # : Renders the provided object by calling `render_in` with the current view # context. The format is determined by calling `format` on the # renderable if it responds to `format`, falling back to `:html` by # default. @@ -9846,33 +8397,29 @@ module ActionView::Helpers::RenderingHelper # #### Options # # `:locals` - # : Hash of local variable assignments for the template. # # <%= render inline: "

Hello, <%= name %>!

", locals: { name: "World" } %> # # => renders "

Hello, World!

" # # `:formats` - # : Override the current format to render a template for a different format. # # <% # app/views/posts/show.html.erb %> # <%= render template: "posts/content", formats: [:text] %> # # => renders app/views/posts/content.text.erb # # `:variants` - # : Render a template for a different variant. # # <% # app/views/posts/show.html.erb %> # <%= render template: "posts/content", variants: [:tablet] %> # # => renders app/views/posts/content.html+tablet.erb # # `:handlers` - # : Render a template for a different handler. # # <% # app/views/posts/show.html.erb %> # <%= render template: "posts/content", handlers: [:builder] %> # # => renders app/views/posts/content.html.builder # - # source://actionview//lib/action_view/helpers/rendering_helper.rb#138 + # pkg:gem/actionview#lib/action_view/helpers/rendering_helper.rb:138 def render(options = T.unsafe(nil), locals = T.unsafe(nil), &block); end end @@ -9881,7 +8428,7 @@ end # The SanitizeHelper module provides a set of methods for scrubbing text of undesired HTML elements. # These helper methods extend Action View making them callable within your template files. # -# source://actionview//lib/action_view/helpers/sanitize_helper.rb#11 +# pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:12 module ActionView::Helpers::SanitizeHelper extend ::ActiveSupport::Concern @@ -9907,6 +8454,9 @@ module ActionView::Helpers::SanitizeHelper # Please note that sanitizing user-provided text does not guarantee that the # resulting markup is valid or even well-formed. # + # The output is markup, which is safe only as element content. Do not use it in an attribute + # value; use +strip_tags+ or a tag helper such as tag.a(title: ...) instead. + # # ==== Options # # [+:tags+] @@ -9989,18 +8539,18 @@ module ActionView::Helpers::SanitizeHelper # NOTE: +Rails::HTML5::Sanitizer+ is not supported on JRuby, so on JRuby platforms \Rails will # fall back to using +Rails::HTML4::Sanitizer+. # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#117 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:121 def sanitize(html, options = T.unsafe(nil)); end # Sanitizes a block of CSS code. Used by #sanitize when it comes across a style attribute. # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#122 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:126 def sanitize_css(style); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:13 def sanitizer_vendor; end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:13 def sanitizer_vendor=(val); end # Strips all link tags from +html+ leaving just the link text. @@ -10017,7 +8567,7 @@ module ActionView::Helpers::SanitizeHelper # strip_links('<malformed & link') # # => <malformed & link # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#156 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:161 def strip_links(html); end # Strips all HTML tags from +html+, including comments and special characters. @@ -10034,19 +8584,19 @@ module ActionView::Helpers::SanitizeHelper # strip_tags("> A quote from Smith & Wesson") # # => > A quote from Smith & Wesson # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#139 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:143 def strip_tags(html); end class << self - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:13 def sanitizer_vendor; end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#12 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:13 def sanitizer_vendor=(val); end end end -# source://actionview//lib/action_view/helpers/sanitize_helper.rb#160 +# pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:165 module ActionView::Helpers::SanitizeHelper::ClassMethods # Gets the Rails::HTML::FullSanitizer instance used by +strip_tags+. Replace with # any object that responds to +sanitize+. @@ -10055,14 +8605,17 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.full_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#181 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:186 def full_sanitizer; end - # Sets the attribute full_sanitizer + # Gets the Rails::HTML::FullSanitizer instance used by +strip_tags+. Replace with + # any object that responds to +sanitize+. # - # @param value the value to set the attribute full_sanitizer to. + # class Application < Rails::Application + # config.action_view.full_sanitizer = MySpecialSanitizer.new + # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:166 def full_sanitizer=(_arg0); end # Gets the Rails::HTML::LinkSanitizer instance used by +strip_links+. @@ -10072,14 +8625,17 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.link_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#191 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:196 def link_sanitizer; end - # Sets the attribute link_sanitizer + # Gets the Rails::HTML::LinkSanitizer instance used by +strip_links+. + # Replace with any object that responds to +sanitize+. # - # @param value the value to set the attribute link_sanitizer to. + # class Application < Rails::Application + # config.action_view.link_sanitizer = MySpecialSanitizer.new + # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:166 def link_sanitizer=(_arg0); end # Gets the Rails::HTML::SafeListSanitizer instance used by sanitize and +sanitize_css+. @@ -10089,77 +8645,27 @@ module ActionView::Helpers::SanitizeHelper::ClassMethods # config.action_view.safe_list_sanitizer = MySpecialSanitizer.new # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#201 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:206 def safe_list_sanitizer; end - # Sets the attribute safe_list_sanitizer + # Gets the Rails::HTML::SafeListSanitizer instance used by sanitize and +sanitize_css+. + # Replace with any object that responds to +sanitize+. # - # @param value the value to set the attribute safe_list_sanitizer to. + # class Application < Rails::Application + # config.action_view.safe_list_sanitizer = MySpecialSanitizer.new + # end # - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#161 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:166 def safe_list_sanitizer=(_arg0); end - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#171 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:176 def sanitized_allowed_attributes; end - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#34 - def sanitized_allowed_attributes=(attributes); end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#47 - def sanitized_allowed_css_keywords; end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#48 - def sanitized_allowed_css_keywords=(_); end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#47 - def sanitized_allowed_css_properties; end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#48 - def sanitized_allowed_css_properties=(_); end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#47 - def sanitized_allowed_protocols; end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#48 - def sanitized_allowed_protocols=(_); end - - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#167 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:172 def sanitized_allowed_tags; end - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#24 - def sanitized_allowed_tags=(tags); end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#47 - def sanitized_bad_tags; end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#48 - def sanitized_bad_tags=(_); end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#47 - def sanitized_protocol_separator; end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#48 - def sanitized_protocol_separator=(_); end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#47 - def sanitized_shorthand_css_properties; end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#48 - def sanitized_shorthand_css_properties=(_); end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#47 - def sanitized_uri_attributes; end - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#48 - def sanitized_uri_attributes=(_); end - - # source://actionview//lib/action_view/helpers/sanitize_helper.rb#163 + # pkg:gem/actionview#lib/action_view/helpers/sanitize_helper.rb:168 def sanitizer_vendor; end - - private - - # source://rails-html-sanitizer/1.7.1/lib/rails-html-sanitizer.rb#52 - def deprecate_option(name); end end # = Action View Tag \Helpers @@ -10167,7 +8673,7 @@ end # Provides methods to generate HTML tags programmatically both as a modern # HTML5 compliant builder style and legacy XHTML compliant tags. # -# source://actionview//lib/action_view/helpers/tag_helper.rb#16 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:16 module ActionView::Helpers::TagHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper @@ -10186,22 +8692,10 @@ module ActionView::Helpers::TagHelper # cdata_section("hello]]>world") # # => world]]> # - # source://actionview//lib/action_view/helpers/tag_helper.rb#561 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:570 def cdata_section(content); end - # Returns a string of tokens built from +args+. - # - # ==== Examples - # token_list("foo", "bar") - # # => "foo bar" - # token_list("foo", "foo bar") - # # => "foo bar" - # token_list({ foo: true, bar: false }) - # # => "foo" - # token_list(nil, false, 123, "", "foo", { bar: true }) - # # => "123 foo bar" - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#541 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:555 def class_names(*args); end # Returns an HTML block tag of type +name+ surrounding the +content+. Add @@ -10233,7 +8727,7 @@ module ActionView::Helpers::TagHelper # <% end -%> # # =>
Hello world!
# - # source://actionview//lib/action_view/helpers/tag_helper.rb#519 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:528 def content_tag(name, content_or_options_with_block = T.unsafe(nil), options = T.unsafe(nil), escape = T.unsafe(nil), &block); end # Returns an escaped version of +html+ without affecting existing escaped entities. @@ -10244,7 +8738,7 @@ module ActionView::Helpers::TagHelper # escape_once("<< Accept & Checkout") # # => "<< Accept & Checkout" # - # source://actionview//lib/action_view/helpers/tag_helper.rb#573 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:582 def escape_once(html); end # Returns an HTML tag. @@ -10394,7 +8888,7 @@ module ActionView::Helpers::TagHelper # tag("div", class: { highlight: current_user.admin? }) # # =>
# - # source://actionview//lib/action_view/helpers/tag_helper.rb#482 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:491 def tag(name = T.unsafe(nil), options = T.unsafe(nil), open = T.unsafe(nil), escape = T.unsafe(nil)); end # Returns a string of tokens built from +args+. @@ -10409,83 +8903,77 @@ module ActionView::Helpers::TagHelper # token_list(nil, false, 123, "", "foo", { bar: true }) # # => "123 foo bar" # - # source://actionview//lib/action_view/helpers/tag_helper.rb#541 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:550 def token_list(*args); end private - # source://actionview//lib/action_view/helpers/tag_helper.rb#583 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:592 def build_tag_values(*args); end - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#578 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:587 def ensure_valid_html5_tag_name(name); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#603 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:612 def tag_builder; end class << self - # source://actionview//lib/action_view/helpers/tag_helper.rb#583 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:610 def build_tag_values(*args); end - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#578 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:590 def ensure_valid_html5_tag_name(name); end end end -# source://actionview//lib/action_view/helpers/tag_helper.rb#33 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:33 ActionView::Helpers::TagHelper::ARIA_PREFIXES = T.let(T.unsafe(nil), Set) -# source://actionview//lib/action_view/helpers/tag_helper.rb#20 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:20 ActionView::Helpers::TagHelper::BOOLEAN_ATTRIBUTES = T.let(T.unsafe(nil), Set) -# source://actionview//lib/action_view/helpers/tag_helper.rb#34 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:34 ActionView::Helpers::TagHelper::DATA_PREFIXES = T.let(T.unsafe(nil), Set) -# source://actionview//lib/action_view/helpers/tag_helper.rb#42 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:42 ActionView::Helpers::TagHelper::PRE_CONTENT_STRINGS = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/helpers/tag_helper.rb#36 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:36 ActionView::Helpers::TagHelper::TAG_TYPES = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/helpers/tag_helper.rb#46 +# pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:46 class ActionView::Helpers::TagHelper::TagBuilder include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper - # @return [TagBuilder] a new instance of TagBuilder - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#216 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:216 def initialize(view_context); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#112 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def a(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#113 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def abbr(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#114 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def address(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#98 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def animate(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#99 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def animate_motion(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#100 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def animate_transform(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#84 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def area(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#115 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def article(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#116 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def aside(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end # Transforms a Hash into HTML Attributes, ready to be interpolated into @@ -10494,415 +8982,413 @@ class ActionView::Helpers::TagHelper::TagBuilder # > # # => # - # source://actionview//lib/action_view/helpers/tag_helper.rb#225 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:225 def attributes(attributes); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#117 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def audio(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#118 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def b(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#85 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def base(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#119 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def bdi(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#120 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def bdo(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#121 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def blockquote(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#122 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def body(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#293 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:302 def boolean_tag_option(key); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#86 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def br(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#123 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def button(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#124 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def canvas(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#125 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def caption(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#101 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def circle(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#126 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def cite(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#127 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def code(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#87 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def col(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#128 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def colgroup(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#239 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:239 def content_tag_string(name, content, options, escape = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#129 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def data(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#130 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def datalist(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#131 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def dd(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#132 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def del(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#133 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def details(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#134 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def dfn(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#135 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def dialog(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#136 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def div(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#137 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def dl(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#138 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def dt(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#102 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def ellipse(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#139 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def em(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#88 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def embed(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#140 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def fieldset(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#141 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def figcaption(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#142 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def figure(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#143 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def footer(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#144 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def form(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#145 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def h1(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#146 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def h2(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#147 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def h3(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#148 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def h4(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#149 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def h5(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#150 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def h6(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#151 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def head(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#152 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def header(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#153 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def hgroup(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#89 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def hr(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#154 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def html(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#155 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def i(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#156 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def iframe(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#90 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def img(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#91 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def input(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#157 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def ins(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#158 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def kbd(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#92 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def keygen(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#159 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def label(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#160 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def legend(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#161 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def li(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#103 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def line(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#93 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def link(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#162 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def main(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#163 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def map(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#164 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def mark(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#165 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def menu(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#94 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def meta(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#166 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def meter(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#167 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def nav(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#168 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def noscript(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#169 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def object(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#170 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def ol(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#171 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def optgroup(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#172 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def option(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#173 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def output(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#174 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def p(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#104 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def path(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#175 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def picture(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#105 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def polygon(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#106 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def polyline(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#176 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def portal(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#177 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def pre(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#178 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def progress(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#179 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def q(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#107 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def rect(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#180 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def rp(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#181 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def rt(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#182 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def ruby(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#183 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def s(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#184 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def samp(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#185 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def script(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#186 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def search(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#187 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def section(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#188 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def select(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#235 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:235 def self_closing_tag_string(name, options, escape = T.unsafe(nil), tag_suffix = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#108 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def set(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#189 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def slot(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#190 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def small(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#95 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def source(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#191 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def span(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#109 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def stop(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#192 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def strong(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#193 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def style(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#194 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def sub(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#195 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def summary(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#196 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def sup(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#197 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def table(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#297 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:306 def tag_option(key, value, escape); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#248 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:248 def tag_options(options, escape = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#229 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:229 def tag_string(name, content = T.unsafe(nil), options, escape: T.unsafe(nil), &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#198 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def tbody(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#199 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def td(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#200 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def template(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#201 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def textarea(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#202 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def tfoot(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#203 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def th(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#204 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def thead(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#205 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def time(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#206 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def title(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#207 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def tr(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#96 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def track(escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#208 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def u(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#209 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def ul(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#110 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def use(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#210 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def var(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#211 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def video(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#111 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def view(content = T.unsafe(nil), escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#97 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:83 def wbr(escape: T.unsafe(nil), **options, &block); end private - # source://actionview//lib/action_view/helpers/tag_helper.rb#327 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:336 def method_missing(called, *args, escape: T.unsafe(nil), **options, &block); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#315 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:324 def prefix_tag_option(prefix, key, value, escape); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tag_helper.rb#323 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:332 def respond_to_missing?(*args); end class << self - # source://actionview//lib/action_view/helpers/tag_helper.rb#50 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:50 def define_element(name, code_generator:, method_name: T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#70 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:70 def define_self_closing_element(name, code_generator:, method_name: T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tag_helper.rb#61 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:61 def define_void_element(name, code_generator:, method_name: T.unsafe(nil)); end end end -# source://actionview//lib/action_view/helpers/tags.rb#5 +# pkg:gem/actionview#lib/action_view/helpers/tags.rb:5 module ActionView::Helpers::Tags extend ::ActiveSupport::Autoload end -# source://actionview//lib/action_view/helpers/tags/base.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:6 class ActionView::Helpers::Tags::Base include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper @@ -10916,135 +9402,119 @@ class ActionView::Helpers::Tags::Base extend ::ActionView::Helpers::UrlHelper::ClassMethods extend ::ActionView::Helpers::SanitizeHelper::ClassMethods - # @return [Base] a new instance of Base - # - # source://actionview//lib/action_view/helpers/tags/base.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:11 def initialize(object_name, method_name, template_object, options = T.unsafe(nil)); end - # Returns the value of attribute object. - # - # source://actionview//lib/action_view/helpers/tags/base.rb#9 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:9 def object; end # This is what child classes implement. # - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/helpers/tags/base.rb#31 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:31 def render; end private - # source://actionview//lib/action_view/helpers/tags/base.rb#97 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:97 def add_default_name_and_field(options, field = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#83 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:83 def add_default_name_and_field_for_value(tag_value, options, field = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#97 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:108 def add_default_name_and_id(options, field = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#83 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:95 def add_default_name_and_id_for_value(tag_value, options, field = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/base.rb#134 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:134 def generate_ids?; end - # source://actionview//lib/action_view/helpers/tags/base.rb#126 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:126 def name_and_id_index(options); end - # source://actionview//lib/action_view/helpers/tags/base.rb#74 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:74 def retrieve_autoindex(pre_match); end - # source://actionview//lib/action_view/helpers/tags/base.rb#63 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:63 def retrieve_object(object); end - # source://actionview//lib/action_view/helpers/tags/base.rb#118 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:118 def sanitized_method_name; end - # source://actionview//lib/action_view/helpers/tags/base.rb#122 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:122 def sanitized_value(value); end - # source://actionview//lib/action_view/helpers/tags/base.rb#114 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:114 def tag_id(index = T.unsafe(nil), namespace = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#110 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:110 def tag_name(multiple = T.unsafe(nil), index = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/base.rb#36 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:36 def value; end - # source://actionview//lib/action_view/helpers/tags/base.rb#46 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:46 def value_before_type_cast; end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/base.rb#58 + # pkg:gem/actionview#lib/action_view/helpers/tags/base.rb:58 def value_came_from_user?; end end -# source://actionview//lib/action_view/helpers/tags/check_box.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:8 class ActionView::Helpers::Tags::CheckBox < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::Checkable - # @return [CheckBox] a new instance of CheckBox - # - # source://actionview//lib/action_view/helpers/tags/check_box.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:11 def initialize(object_name, method_name, template_object, checked_value, unchecked_value, options); end - # source://actionview//lib/action_view/helpers/tags/check_box.rb#17 + # pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:17 def render; end private - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/check_box.rb#42 + # pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:42 def checked?(value); end - # source://actionview//lib/action_view/helpers/tags/check_box.rb#59 + # pkg:gem/actionview#lib/action_view/helpers/tags/check_box.rb:59 def hidden_field_for_checkbox(options); end end -# source://actionview//lib/action_view/helpers/tags/checkable.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/checkable.rb:6 module ActionView::Helpers::Tags::Checkable - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/checkable.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/checkable.rb:7 def input_checked?(options); end end -# source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:8 class ActionView::Helpers::Tags::CollectionCheckBoxes < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::CollectionHelpers include ::ActionView::Helpers::FormOptionsHelper - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:22 def render(&block); end private - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#31 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:31 def hidden_field_name; end - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:27 def render_component(builder); end end -# source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#12 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:12 class ActionView::Helpers::Tags::CollectionCheckBoxes::CheckBoxBuilder < ::ActionView::Helpers::Tags::CollectionHelpers::Builder - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:19 def check_box(extra_html_options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/collection_check_boxes.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_check_boxes.rb:13 def checkbox(extra_html_options = T.unsafe(nil)); end end -# source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:6 module ActionView::Helpers::Tags::CollectionHelpers - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:30 def initialize(object_name, method_name, template_object, collection, value_method, text_method, options, html_options); end private @@ -11052,311 +9522,281 @@ module ActionView::Helpers::Tags::CollectionHelpers # Generate default options for collection helpers, such as :checked and # :disabled. # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#47 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:47 def default_html_options_for_collection(item, value); end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#107 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:107 def hidden_field; end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#113 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:113 def hidden_field_name; end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#40 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:40 def instantiate_builder(builder_class, item, value, text, html_options); end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#75 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:75 def render_collection; end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#86 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:86 def render_collection_for(builder_class, &block); end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#71 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:71 def sanitize_attribute_name(value); end end -# source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#7 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:7 class ActionView::Helpers::Tags::CollectionHelpers::Builder - # @return [Builder] a new instance of Builder - # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:10 def initialize(template_object, object_name, method_name, object, sanitized_attribute_name, text, value, input_html_options); end - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:22 def label(label_html_options = T.unsafe(nil), &block); end - # Returns the value of attribute object. - # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:8 def object; end - # Returns the value of attribute text. - # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:8 def text; end - # Returns the value of attribute value. - # - # source://actionview//lib/action_view/helpers/tags/collection_helpers.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_helpers.rb:8 def value; end end -# source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:8 class ActionView::Helpers::Tags::CollectionRadioButtons < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::CollectionHelpers include ::ActionView::Helpers::FormOptionsHelper - # source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:20 def render(&block); end private - # source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:25 def render_component(builder); end end -# source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#12 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:12 class ActionView::Helpers::Tags::CollectionRadioButtons::RadioButtonBuilder < ::ActionView::Helpers::Tags::CollectionHelpers::Builder - # source://actionview//lib/action_view/helpers/tags/collection_radio_buttons.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_radio_buttons.rb:13 def radio_button(extra_html_options = T.unsafe(nil)); end end -# source://actionview//lib/action_view/helpers/tags/collection_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/collection_select.rb:6 class ActionView::Helpers::Tags::CollectionSelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [CollectionSelect] a new instance of CollectionSelect - # - # source://actionview//lib/action_view/helpers/tags/collection_select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_select.rb:10 def initialize(object_name, method_name, template_object, collection, value_method, text_method, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/collection_select.rb#19 + # pkg:gem/actionview#lib/action_view/helpers/tags/collection_select.rb:19 def render; end end -# source://actionview//lib/action_view/helpers/tags/color_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/color_field.rb:6 class ActionView::Helpers::Tags::ColorField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/color_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/color_field.rb:7 def render; end private - # source://actionview//lib/action_view/helpers/tags/color_field.rb#15 + # pkg:gem/actionview#lib/action_view/helpers/tags/color_field.rb:15 def validate_color_string(string); end end -# source://actionview//lib/action_view/helpers/tags/date_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/date_field.rb:6 class ActionView::Helpers::Tags::DateField < ::ActionView::Helpers::Tags::DatetimeField private - # source://actionview//lib/action_view/helpers/tags/date_field.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_field.rb:8 def format_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/date_select.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:8 class ActionView::Helpers::Tags::DateSelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer - # @return [DateSelect] a new instance of DateSelect - # - # source://actionview//lib/action_view/helpers/tags/date_select.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:11 def initialize(object_name, method_name, template_object, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/date_select.rb#17 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:17 def render; end private - # source://actionview//lib/action_view/helpers/tags/date_select.rb#32 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:32 def datetime_selector(options, html_options); end - # source://actionview//lib/action_view/helpers/tags/date_select.rb#45 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:45 def default_datetime(options); end - # source://actionview//lib/action_view/helpers/tags/date_select.rb#28 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:28 def select_type; end class << self - # source://actionview//lib/action_view/helpers/tags/date_select.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/tags/date_select.rb:22 def select_type; end end end -# source://actionview//lib/action_view/helpers/tags/datetime_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:6 class ActionView::Helpers::Tags::DatetimeField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/datetime_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:7 def render; end private - # source://actionview//lib/action_view/helpers/tags/datetime_field.rb#17 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:17 def datetime_value(value); end - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/helpers/tags/datetime_field.rb#25 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:25 def format_datetime(value); end - # source://actionview//lib/action_view/helpers/tags/datetime_field.rb#29 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_field.rb:29 def parse_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/datetime_local_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/datetime_local_field.rb:6 class ActionView::Helpers::Tags::DatetimeLocalField < ::ActionView::Helpers::Tags::DatetimeField - # @return [DatetimeLocalField] a new instance of DatetimeLocalField - # - # source://actionview//lib/action_view/helpers/tags/datetime_local_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_local_field.rb:7 def initialize(object_name, method_name, template_object, options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/tags/datetime_local_field.rb#19 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_local_field.rb:19 def format_datetime(value); end class << self - # source://actionview//lib/action_view/helpers/tags/datetime_local_field.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/datetime_local_field.rb:13 def field_type; end end end -# source://actionview//lib/action_view/helpers/tags/datetime_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/datetime_select.rb:6 class ActionView::Helpers::Tags::DatetimeSelect < ::ActionView::Helpers::Tags::DateSelect; end -# source://actionview//lib/action_view/helpers/tags/email_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/email_field.rb:6 class ActionView::Helpers::Tags::EmailField < ::ActionView::Helpers::Tags::TextField; end -# source://actionview//lib/action_view/helpers/tags/file_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/file_field.rb:6 class ActionView::Helpers::Tags::FileField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/file_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/file_field.rb:7 def render; end private - # source://actionview//lib/action_view/helpers/tags/file_field.rb#23 + # pkg:gem/actionview#lib/action_view/helpers/tags/file_field.rb:23 def hidden_field_for_multiple_file(options); end end -# source://actionview//lib/action_view/helpers/tags/grouped_collection_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/grouped_collection_select.rb:6 class ActionView::Helpers::Tags::GroupedCollectionSelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [GroupedCollectionSelect] a new instance of GroupedCollectionSelect - # - # source://actionview//lib/action_view/helpers/tags/grouped_collection_select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/grouped_collection_select.rb:10 def initialize(object_name, method_name, template_object, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/grouped_collection_select.rb#21 + # pkg:gem/actionview#lib/action_view/helpers/tags/grouped_collection_select.rb:21 def render; end end -# source://actionview//lib/action_view/helpers/tags/hidden_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/hidden_field.rb:6 class ActionView::Helpers::Tags::HiddenField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/hidden_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/hidden_field.rb:7 def render; end end -# source://actionview//lib/action_view/helpers/tags/label.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:6 class ActionView::Helpers::Tags::Label < ::ActionView::Helpers::Tags::Base - # @return [Label] a new instance of Label - # - # source://actionview//lib/action_view/helpers/tags/label.rb#34 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:34 def initialize(object_name, method_name, template_object, content_or_options = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/tags/label.rb#48 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:48 def render(&block); end private - # source://actionview//lib/action_view/helpers/tags/label.rb#71 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:71 def render_component(builder); end end -# source://actionview//lib/action_view/helpers/tags/label.rb#7 +# pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:7 class ActionView::Helpers::Tags::Label::LabelBuilder - # @return [LabelBuilder] a new instance of LabelBuilder - # - # source://actionview//lib/action_view/helpers/tags/label.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:10 def initialize(template_object, object_name, method_name, object, tag_value); end - # Returns the value of attribute object. - # - # source://actionview//lib/action_view/helpers/tags/label.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:8 def object; end - # source://actionview//lib/action_view/helpers/tags/label.rb#29 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:29 def to_s; end - # source://actionview//lib/action_view/helpers/tags/label.rb#18 + # pkg:gem/actionview#lib/action_view/helpers/tags/label.rb:18 def translation; end end -# source://actionview//lib/action_view/helpers/tags/month_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/month_field.rb:6 class ActionView::Helpers::Tags::MonthField < ::ActionView::Helpers::Tags::DatetimeField private - # source://actionview//lib/action_view/helpers/tags/month_field.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/month_field.rb:8 def format_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/number_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/number_field.rb:6 class ActionView::Helpers::Tags::NumberField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/number_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/number_field.rb:7 def render; end end -# source://actionview//lib/action_view/helpers/tags/password_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/password_field.rb:6 class ActionView::Helpers::Tags::PasswordField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/password_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/password_field.rb:7 def render; end end -# source://actionview//lib/action_view/helpers/tags/placeholderable.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/placeholderable.rb:6 module ActionView::Helpers::Tags::Placeholderable - # source://actionview//lib/action_view/helpers/tags/placeholderable.rb#7 - def initialize(*_arg0); end + # pkg:gem/actionview#lib/action_view/helpers/tags/placeholderable.rb:7 + def initialize(*); end end -# source://actionview//lib/action_view/helpers/tags/radio_button.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/radio_button.rb:8 class ActionView::Helpers::Tags::RadioButton < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::Checkable - # @return [RadioButton] a new instance of RadioButton - # - # source://actionview//lib/action_view/helpers/tags/radio_button.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/radio_button.rb:11 def initialize(object_name, method_name, template_object, tag_value, options); end - # source://actionview//lib/action_view/helpers/tags/radio_button.rb#16 + # pkg:gem/actionview#lib/action_view/helpers/tags/radio_button.rb:16 def render; end private - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/radio_button.rb#26 + # pkg:gem/actionview#lib/action_view/helpers/tags/radio_button.rb:26 def checked?(value); end end -# source://actionview//lib/action_view/helpers/tags/range_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/range_field.rb:6 class ActionView::Helpers::Tags::RangeField < ::ActionView::Helpers::Tags::NumberField; end -# source://actionview//lib/action_view/helpers/tags/search_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/search_field.rb:6 class ActionView::Helpers::Tags::SearchField < ::ActionView::Helpers::Tags::TextField - # source://actionview//lib/action_view/helpers/tags/search_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/search_field.rb:7 def render; end end -# source://actionview//lib/action_view/helpers/tags/select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/select.rb:6 class ActionView::Helpers::Tags::Select < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [Select] a new instance of Select - # - # source://actionview//lib/action_view/helpers/tags/select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/select.rb:10 def initialize(object_name, method_name, template_object, choices, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/select.rb#19 + # pkg:gem/actionview#lib/action_view/helpers/tags/select.rb:19 def render; end private @@ -11366,148 +9806,128 @@ class ActionView::Helpers::Tags::Select < ::ActionView::Helpers::Tags::Base # [nil, []] # { nil => [] } # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/select.rb#39 + # pkg:gem/actionview#lib/action_view/helpers/tags/select.rb:39 def grouped_choices?; end end -# source://actionview//lib/action_view/helpers/tags/select_renderer.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/select_renderer.rb:6 module ActionView::Helpers::Tags::SelectRenderer private - # source://actionview//lib/action_view/helpers/tags/select_renderer.rb#36 + # pkg:gem/actionview#lib/action_view/helpers/tags/select_renderer.rb:36 def add_options(option_tags, options, value = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/tags/select_renderer.rb#31 + # pkg:gem/actionview#lib/action_view/helpers/tags/select_renderer.rb:31 def placeholder_required?(html_options); end - # source://actionview//lib/action_view/helpers/tags/select_renderer.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/select_renderer.rb:8 def select_content_tag(option_tags, options, html_options); end end -# source://actionview//lib/action_view/helpers/tags/tel_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/tel_field.rb:6 class ActionView::Helpers::Tags::TelField < ::ActionView::Helpers::Tags::TextField; end -# source://actionview//lib/action_view/helpers/tags/text_area.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/text_area.rb:8 class ActionView::Helpers::Tags::TextArea < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::Placeholderable - # source://actionview//lib/action_view/helpers/tags/text_area.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/text_area.rb:11 def render; end end -# source://actionview//lib/action_view/helpers/tags/text_field.rb#8 +# pkg:gem/actionview#lib/action_view/helpers/tags/text_field.rb:8 class ActionView::Helpers::Tags::TextField < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::Placeholderable - # source://actionview//lib/action_view/helpers/tags/text_field.rb#11 + # pkg:gem/actionview#lib/action_view/helpers/tags/text_field.rb:11 def render; end private - # source://actionview//lib/action_view/helpers/tags/text_field.rb#27 + # pkg:gem/actionview#lib/action_view/helpers/tags/text_field.rb:27 def field_type; end class << self - # source://actionview//lib/action_view/helpers/tags/text_field.rb#21 + # pkg:gem/actionview#lib/action_view/helpers/tags/text_field.rb:21 def field_type; end end end -# source://actionview//lib/action_view/helpers/tags/time_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/time_field.rb:6 class ActionView::Helpers::Tags::TimeField < ::ActionView::Helpers::Tags::DatetimeField - # @return [TimeField] a new instance of TimeField - # - # source://actionview//lib/action_view/helpers/tags/time_field.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/time_field.rb:7 def initialize(object_name, method_name, template_object, options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/tags/time_field.rb#13 + # pkg:gem/actionview#lib/action_view/helpers/tags/time_field.rb:13 def format_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/time_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/time_select.rb:6 class ActionView::Helpers::Tags::TimeSelect < ::ActionView::Helpers::Tags::DateSelect; end -# source://actionview//lib/action_view/helpers/tags/time_zone_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/time_zone_select.rb:6 class ActionView::Helpers::Tags::TimeZoneSelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [TimeZoneSelect] a new instance of TimeZoneSelect - # - # source://actionview//lib/action_view/helpers/tags/time_zone_select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/time_zone_select.rb:10 def initialize(object_name, method_name, template_object, priority_zones, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/time_zone_select.rb#17 + # pkg:gem/actionview#lib/action_view/helpers/tags/time_zone_select.rb:17 def render; end end -# source://actionview//lib/action_view/helpers/tags/translator.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:6 class ActionView::Helpers::Tags::Translator - # @return [Translator] a new instance of Translator - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#7 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:7 def initialize(object, object_name, method_and_value, scope:); end - # source://actionview//lib/action_view/helpers/tags/translator.rb#14 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:14 def translate; end private - # source://actionview//lib/action_view/helpers/tags/translator.rb#31 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:31 def human_attribute_name; end - # source://actionview//lib/action_view/helpers/tags/translator.rb#22 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:22 def i18n_default; end - # Returns the value of attribute method_and_value. - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:20 def method_and_value; end - # Returns the value of attribute model. - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:20 def model; end - # Returns the value of attribute object_name. - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:20 def object_name; end - # Returns the value of attribute scope. - # - # source://actionview//lib/action_view/helpers/tags/translator.rb#20 + # pkg:gem/actionview#lib/action_view/helpers/tags/translator.rb:20 def scope; end end -# source://actionview//lib/action_view/helpers/tags/url_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/url_field.rb:6 class ActionView::Helpers::Tags::UrlField < ::ActionView::Helpers::Tags::TextField; end -# source://actionview//lib/action_view/helpers/tags/week_field.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/week_field.rb:6 class ActionView::Helpers::Tags::WeekField < ::ActionView::Helpers::Tags::DatetimeField private - # source://actionview//lib/action_view/helpers/tags/week_field.rb#8 + # pkg:gem/actionview#lib/action_view/helpers/tags/week_field.rb:8 def format_datetime(value); end end -# source://actionview//lib/action_view/helpers/tags/weekday_select.rb#6 +# pkg:gem/actionview#lib/action_view/helpers/tags/weekday_select.rb:6 class ActionView::Helpers::Tags::WeekdaySelect < ::ActionView::Helpers::Tags::Base include ::ActionView::Helpers::Tags::SelectRenderer include ::ActionView::Helpers::FormOptionsHelper - # @return [WeekdaySelect] a new instance of WeekdaySelect - # - # source://actionview//lib/action_view/helpers/tags/weekday_select.rb#10 + # pkg:gem/actionview#lib/action_view/helpers/tags/weekday_select.rb:10 def initialize(object_name, method_name, template_object, options, html_options); end - # source://actionview//lib/action_view/helpers/tags/weekday_select.rb#16 + # pkg:gem/actionview#lib/action_view/helpers/tags/weekday_select.rb:16 def render; end end @@ -11536,7 +9956,7 @@ end # simple_format h('Example') # # => "

<a href=\"http://example.com/\">Example</a>

" # -# source://actionview//lib/action_view/helpers/text_helper.rb#36 +# pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:36 module ActionView::Helpers::TextHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper @@ -11566,7 +9986,7 @@ module ActionView::Helpers::TextHelper # <%= link_to "Sign In", action: :sign_in %> # <% end %> # - # source://actionview//lib/action_view/helpers/text_helper.rb#63 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:63 def concat(string); end # Returns the current cycle string after a cycle has been started. Useful @@ -11581,7 +10001,7 @@ module ActionView::Helpers::TextHelper #
# <% end %> # - # source://actionview//lib/action_view/helpers/text_helper.rb#461 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:477 def current_cycle(name = T.unsafe(nil)); end # Creates a Cycle object whose +to_s+ method cycles through elements of an @@ -11624,7 +10044,7 @@ module ActionView::Helpers::TextHelper # # <% end %> # - # source://actionview//lib/action_view/helpers/text_helper.rb#437 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:453 def cycle(first_value, *values); end # Extracts the first occurrence of +phrase+ plus surrounding text from @@ -11667,7 +10087,7 @@ module ActionView::Helpers::TextHelper # excerpt('This is a very beautiful morning', 'very', separator: ' ', radius: 1) # # => "...a very beautiful..." # - # source://actionview//lib/action_view/helpers/text_helper.rb#235 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:251 def excerpt(text, phrase, options = T.unsafe(nil)); end # Highlights occurrences of +phrases+ in +text+ by formatting them with a @@ -11683,8 +10103,15 @@ module ActionView::Helpers::TextHelper # # [+:highlighter+] # The highlighter string. Uses \1 as the placeholder for a - # phrase, similar to +String#sub+. Defaults to "\1". - # This option is ignored if a block is specified. + # phrase. Defaults to "\1". The numbered placeholders + # \0 to \9 are expanded; other +String#sub+ replacement escapes + # are not. The phrase is HTML escaped, quotes included. This option + # is ignored if a block is specified. + # + # WARNING: Put a placeholder only in element content or inside a + # quoted attribute value. HTML escaping does not make the phrase safe + # in an unquoted attribute value, in a URL, JavaScript or CSS + # context, or in an attribute whose value is HTML, such as +srcdoc+. # # [+:sanitize+] # Whether to sanitize +text+ before highlighting. Defaults to true. @@ -11703,8 +10130,8 @@ module ActionView::Helpers::TextHelper # highlight('You searched for: rails', ['for', 'rails'], highlighter: '\1') # # => "You searched for: rails" # - # highlight('You searched for: rails', 'rails', highlighter: '\1') - # # => "You searched for: rails" + # highlight('You searched for: rails', 'rails', highlighter: '\1') + # # => "You searched for: rails" # # highlight('You searched for: rails', 'rails') { |match| link_to(search_path(q: match)) } # # => "You searched for: rails" @@ -11712,7 +10139,7 @@ module ActionView::Helpers::TextHelper # highlight('ruby on rails', 'rails', sanitize: false) # # => "ruby on rails" # - # source://actionview//lib/action_view/helpers/text_helper.rb#174 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:181 def highlight(text, phrases, options = T.unsafe(nil), &block); end # Attempts to pluralize the +singular+ word unless +count+ is 1. If @@ -11739,7 +10166,7 @@ module ActionView::Helpers::TextHelper # pluralize(2, 'Person', locale: :de) # # => "2 Personen" # - # source://actionview//lib/action_view/helpers/text_helper.rb#297 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:313 def pluralize(count, singular, plural_arg = T.unsafe(nil), plural: T.unsafe(nil), locale: T.unsafe(nil)); end # Resets a cycle so that it starts from the first element the next time @@ -11761,10 +10188,10 @@ module ActionView::Helpers::TextHelper # <% end %> # # - # source://actionview//lib/action_view/helpers/text_helper.rb#484 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:500 def reset_cycle(name = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/text_helper.rb#67 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:67 def safe_concat(string); end # Returns +text+ transformed into HTML using simple formatting rules. @@ -11808,7 +10235,7 @@ module ActionView::Helpers::TextHelper # simple_format("Continue", {}, { sanitize_options: { attributes: %w[target href] } }) # # => "

Continue

" # - # source://actionview//lib/action_view/helpers/text_helper.rb#383 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:399 def simple_format(text, html_options = T.unsafe(nil), options = T.unsafe(nil)); end # Truncates +text+ if it is longer than a specified +:length+. If +text+ @@ -11863,7 +10290,7 @@ module ActionView::Helpers::TextHelper # truncate("Once upon a time in a world far far away") { link_to "Continue", "#" } # # => "Once upon a time in a world...Continue" # - # source://actionview//lib/action_view/helpers/text_helper.rb#122 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:122 def truncate(text, options = T.unsafe(nil), &block); end # Wraps the +text+ into lines no longer than +line_width+ width. This method @@ -11887,76 +10314,67 @@ module ActionView::Helpers::TextHelper # word_wrap('Once upon a time', line_width: 1, break_sequence: "\r\n") # # => "Once\r\nupon\r\na\r\ntime" # - # source://actionview//lib/action_view/helpers/text_helper.rb#327 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:343 def word_wrap(text, line_width: T.unsafe(nil), break_sequence: T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/text_helper.rb#547 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:563 def cut_excerpt_part(part_position, part, separator, options); end # The cycle helpers need to store the cycles in a place that is # guaranteed to be reset every time a page is rendered, so it # uses an instance variable of ActionView::Base. # - # source://actionview//lib/action_view/helpers/text_helper.rb#529 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:545 def get_cycle(name); end - # source://actionview//lib/action_view/helpers/text_helper.rb#534 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:550 def set_cycle(name, cycle_object); end - # source://actionview//lib/action_view/helpers/text_helper.rb#539 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:555 def split_paragraphs(text); end end -# source://actionview//lib/action_view/helpers/text_helper.rb#489 +# pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:505 class ActionView::Helpers::TextHelper::Cycle - # @return [Cycle] a new instance of Cycle - # - # source://actionview//lib/action_view/helpers/text_helper.rb#492 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:508 def initialize(first_value, *values); end - # source://actionview//lib/action_view/helpers/text_helper.rb#501 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:517 def current_value; end - # source://actionview//lib/action_view/helpers/text_helper.rb#497 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:513 def reset; end - # source://actionview//lib/action_view/helpers/text_helper.rb#505 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:521 def to_s; end - # Returns the value of attribute values. - # - # source://actionview//lib/action_view/helpers/text_helper.rb#490 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:506 def values; end private - # source://actionview//lib/action_view/helpers/text_helper.rb#512 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:528 def next_index; end - # source://actionview//lib/action_view/helpers/text_helper.rb#516 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:532 def previous_index; end - # source://actionview//lib/action_view/helpers/text_helper.rb#520 + # pkg:gem/actionview#lib/action_view/helpers/text_helper.rb:536 def step_index(n); end end # = Action View Translation \Helpers # -# source://actionview//lib/action_view/helpers/translation_helper.rb#9 +# pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:9 module ActionView::Helpers::TranslationHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper include ::ActionView::Helpers::TagHelper extend ::ActiveSupport::Concern - # Delegates to I18n.localize with no additional functionality. - # - # See https://www.rubydoc.info/gems/i18n/I18n/Backend/Base:localize - # for more information. - # - # source://actionview//lib/action_view/helpers/translation_helper.rb#116 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:119 def l(object, **options); end # Delegates to I18n.localize with no additional functionality. @@ -11964,62 +10382,10 @@ module ActionView::Helpers::TranslationHelper # See https://www.rubydoc.info/gems/i18n/I18n/Backend/Base:localize # for more information. # - # source://actionview//lib/action_view/helpers/translation_helper.rb#116 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:116 def localize(object, **options); end - # Delegates to I18n#translate but also performs three additional - # functions. - # - # First, it will ensure that any thrown +MissingTranslation+ messages will - # be rendered as inline spans that: - # - # * Have a translation-missing class applied - # * Contain the missing key as the value of the +title+ attribute - # * Have a titleized version of the last key segment as text - # - # For example, the value returned for the missing translation key - # "blog.post.title" will be: - # - # Title - # - # This allows for views to display rather reasonable strings while still - # giving developers a way to find missing translations. - # - # If you would prefer missing translations to raise an error, you can - # opt out of span-wrapping behavior globally by setting - # config.i18n.raise_on_missing_translations = true or - # individually by passing raise: true as an option to - # translate. - # - # Second, if the key starts with a period translate will scope - # the key by the current partial. Calling translate(".foo") from - # the people/index.html.erb template is equivalent to calling - # translate("people.index.foo"). This makes it less - # repetitive to translate many keys within the same partial and provides - # a convention to scope keys consistently. - # - # Third, the translation will be marked as html_safe if the key - # has the suffix "_html" or the last element of the key is "html". Calling - # translate("footer_html") or translate("footer.html") - # will return an HTML safe string that won't be escaped by other HTML - # helper methods. This naming convention helps to identify translations - # that include HTML tags so that you know what kind of output to expect - # when you call translate in a template and translators know which keys - # they can provide HTML values for. - # - # To access the translated text along with the fully resolved - # translation key, translate accepts a block: - # - # <%= translate(".relative_key") do |translation, resolved_key| %> - # <%= translation %> - # <% end %> - # - # This enables annotate translated text to be aware of the scope it was - # resolved against. - # - # source://actionview//lib/action_view/helpers/translation_helper.rb#73 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:110 def t(key, **options); end # Delegates to I18n#translate but also performs three additional @@ -12074,30 +10440,30 @@ module ActionView::Helpers::TranslationHelper # This enables annotate translated text to be aware of the scope it was # resolved against. # - # source://actionview//lib/action_view/helpers/translation_helper.rb#73 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:73 def translate(key, **options); end private - # source://actionview//lib/action_view/helpers/translation_helper.rb#142 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:142 def missing_translation(key, options); end - # source://actionview//lib/action_view/helpers/translation_helper.rb#128 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:128 def scope_key_by_partial(key); end class << self - # source://actionview//lib/action_view/helpers/translation_helper.rb#15 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:15 def raise_on_missing_translations; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#15 + # pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:15 def raise_on_missing_translations=(_arg0); end end end -# source://actionview//lib/action_view/helpers/translation_helper.rb#122 +# pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:122 ActionView::Helpers::TranslationHelper::MISSING_TRANSLATION = T.let(T.unsafe(nil), Integer) -# source://actionview//lib/action_view/helpers/translation_helper.rb#125 +# pkg:gem/actionview#lib/action_view/helpers/translation_helper.rb:125 ActionView::Helpers::TranslationHelper::NO_DEFAULT = T.let(T.unsafe(nil), Array) # = Action View URL \Helpers @@ -12107,7 +10473,7 @@ ActionView::Helpers::TranslationHelper::NO_DEFAULT = T.let(T.unsafe(nil), Array) # This allows you to use the same format for links in views # and controllers. # -# source://actionview//lib/action_view/helpers/url_helper.rb#17 +# pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:17 module ActionView::Helpers::UrlHelper include ::ActionView::Helpers::CaptureHelper include ::ActionView::Helpers::OutputSafetyHelper @@ -12203,13 +10569,13 @@ module ActionView::Helpers::UrlHelper # # # # " # - # source://actionview//lib/action_view/helpers/url_helper.rb#296 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:296 def button_to(name = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - # source://actionview//lib/action_view/helpers/url_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:35 def button_to_generates_button_tag; end - # source://actionview//lib/action_view/helpers/url_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:35 def button_to_generates_button_tag=(val); end # True if the current request URI was generated by the given +options+. @@ -12257,9 +10623,7 @@ module ActionView::Helpers::UrlHelper # # We can also pass in the symbol arguments instead of strings. # - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/url_helper.rb#548 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:548 def current_page?(options = T.unsafe(nil), check_parameters: T.unsafe(nil), **options_as_kwargs); end # Creates an anchor element of the given +name+ using a URL created by the set of +options+. @@ -12394,7 +10758,7 @@ module ActionView::Helpers::UrlHelper # link_to "Visit Other Site", "https://rubyonrails.org/", data: { turbo_confirm: "Are you sure?" } # # => Visit Other Site # - # source://actionview//lib/action_view/helpers/url_helper.rb#198 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:198 def link_to(name = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a link tag of the given +name+ using a URL created by the set of @@ -12417,7 +10781,7 @@ module ActionView::Helpers::UrlHelper # # If they are logged in... # # => my_username # - # source://actionview//lib/action_view/helpers/url_helper.rb#437 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:437 def link_to_if(condition, name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a link tag of the given +name+ using a URL created by the set of @@ -12441,7 +10805,7 @@ module ActionView::Helpers::UrlHelper # # If not... # # => Reply # - # source://actionview//lib/action_view/helpers/url_helper.rb#414 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:414 def link_to_unless(condition, name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a link tag of the given +name+ using a URL created by the set of @@ -12483,7 +10847,7 @@ module ActionView::Helpers::UrlHelper # end # %> # - # source://actionview//lib/action_view/helpers/url_helper.rb#390 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:390 def link_to_unless_current(name, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a mailto link tag to the specified +email_address+, which is @@ -12525,7 +10889,7 @@ module ActionView::Helpers::UrlHelper # Email me: me@domain.com # # - # source://actionview//lib/action_view/helpers/url_helper.rb#487 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:487 def mail_to(email_address, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates a TEL anchor link tag to the specified +phone_number+. When the @@ -12564,7 +10928,7 @@ module ActionView::Helpers::UrlHelper # Phone me: # # - # source://actionview//lib/action_view/helpers/url_helper.rb#669 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:669 def phone_to(phone_number, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Creates an SMS anchor link tag to the specified +phone_number+. When the @@ -12608,45 +10972,41 @@ module ActionView::Helpers::UrlHelper # Text me: # # - # source://actionview//lib/action_view/helpers/url_helper.rb#618 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:618 def sms_to(phone_number, name = T.unsafe(nil), html_options = T.unsafe(nil), &block); end # Basic implementation of url_for to allow use helpers without routes existence # - # source://actionview//lib/action_view/helpers/url_helper.rb#38 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:38 def url_for(options = T.unsafe(nil)); end private - # source://actionview//lib/action_view/helpers/url_helper.rb#50 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:50 def _back_url; end - # source://actionview//lib/action_view/helpers/url_helper.rb#55 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:55 def _filtered_referrer; end - # source://actionview//lib/action_view/helpers/url_helper.rb#712 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:712 def add_method_to_attributes!(html_options, method); end - # source://actionview//lib/action_view/helpers/url_helper.rb#683 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:683 def convert_options_to_data_attributes(options, html_options); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/url_helper.rb#706 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:706 def link_to_remote_options?(options); end - # source://actionview//lib/action_view/helpers/url_helper.rb#723 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:723 def method_for_options(options); end - # @return [Boolean] - # - # source://actionview//lib/action_view/helpers/url_helper.rb#741 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:741 def method_not_get_method?(method); end - # source://actionview//lib/action_view/helpers/url_helper.rb#760 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:760 def method_tag(method); end - # source://actionview//lib/action_view/helpers/url_helper.rb#806 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:806 def remove_trailing_slash!(url_string); end # Returns an array of hashes each containing :name and :value keys @@ -12666,20 +11026,20 @@ module ActionView::Helpers::UrlHelper # to_form_params({ name: 'Denmark' }, 'country') # # => [{name: 'country[name]', value: 'Denmark'}] # - # source://actionview//lib/action_view/helpers/url_helper.rb#780 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:780 def to_form_params(attribute, namespace = T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/url_helper.rb#746 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:746 def token_tag(token = T.unsafe(nil), form_options: T.unsafe(nil)); end - # source://actionview//lib/action_view/helpers/url_helper.rb#698 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:698 def url_target(name, options); end class << self - # source://actionview//lib/action_view/helpers/url_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:35 def button_to_generates_button_tag; end - # source://actionview//lib/action_view/helpers/url_helper.rb#35 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:35 def button_to_generates_button_tag=(val); end end end @@ -12690,38 +11050,36 @@ end # (link_to_unless_current, for instance), which must be provided # as a method called #request on the context. # -# source://actionview//lib/action_view/helpers/url_helper.rb#23 +# pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:23 ActionView::Helpers::UrlHelper::BUTTON_TAG_METHOD_VERBS = T.let(T.unsafe(nil), Array) -# source://actionview//lib/action_view/helpers/url_helper.rb#29 +# pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:29 module ActionView::Helpers::UrlHelper::ClassMethods - # source://actionview//lib/action_view/helpers/url_helper.rb#30 + # pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:30 def _url_for_modules; end end -# source://actionview//lib/action_view/helpers/url_helper.rb#733 +# pkg:gem/actionview#lib/action_view/helpers/url_helper.rb:733 ActionView::Helpers::UrlHelper::STRINGIFIED_COMMON_METHODS = T.let(T.unsafe(nil), Hash) # This is a class to fix I18n global state. Whenever you provide I18n.locale during a request, # it will trigger the lookup_context and consequently expire the cache. # -# source://actionview//lib/action_view/rendering.rb#8 +# pkg:gem/actionview#lib/action_view/rendering.rb:8 class ActionView::I18nProxy < ::I18n::Config - # @return [I18nProxy] a new instance of I18nProxy - # - # source://actionview//lib/action_view/rendering.rb#11 + # pkg:gem/actionview#lib/action_view/rendering.rb:11 def initialize(original_config, lookup_context); end - # source://actionview//lib/action_view/rendering.rb#17 + # pkg:gem/actionview#lib/action_view/rendering.rb:17 def locale; end - # source://actionview//lib/action_view/rendering.rb#21 + # pkg:gem/actionview#lib/action_view/rendering.rb:21 def locale=(value); end - # source://actionview//lib/action_view/rendering.rb#9 + # pkg:gem/actionview#lib/action_view/rendering.rb:9 def lookup_context; end - # source://actionview//lib/action_view/rendering.rb#9 + # pkg:gem/actionview#lib/action_view/rendering.rb:9 def original_config; end end @@ -12924,7 +11282,7 @@ end # # This will override the controller-wide "weblog_standard" layout, and will render the help action with the "help" layout instead. # -# source://actionview//lib/action_view/layouts.rb#205 +# pkg:gem/actionview#lib/action_view/layouts.rb:205 module ActionView::Layouts extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -12936,12 +11294,13 @@ module ActionView::Layouts mixes_in_class_methods ::ActionView::Rendering::ClassMethods mixes_in_class_methods ::ActionView::Layouts::ClassMethods - # source://actionview//lib/action_view/layouts.rb#361 - def initialize(*_arg0); end + # pkg:gem/actionview#lib/action_view/layouts.rb:361 + def initialize(*); end - # source://actionview//lib/action_view/layouts.rb#350 + # pkg:gem/actionview#lib/action_view/layouts.rb:350 def _process_render_template_options(options); end + # pkg:gem/actionview#lib/action_view/layouts.rb:359 def action_has_layout=(_arg0); end # Controls whether an action should be rendered using a layout. @@ -12951,16 +11310,12 @@ module ActionView::Layouts # for that action or set the action_has_layout attribute # to false before rendering. # - # @return [Boolean] - # - # source://actionview//lib/action_view/layouts.rb#372 + # pkg:gem/actionview#lib/action_view/layouts.rb:372 def action_has_layout?; end private - # @return [Boolean] - # - # source://actionview//lib/action_view/layouts.rb#377 + # pkg:gem/actionview#lib/action_view/layouts.rb:377 def _conditional_layout?; end # Returns the default layout for this controller. @@ -12974,28 +11329,26 @@ module ActionView::Layouts # ==== Returns # * template - The template object for the default layout (or +nil+) # - # source://actionview//lib/action_view/layouts.rb#415 + # pkg:gem/actionview#lib/action_view/layouts.rb:415 def _default_layout(lookup_context, formats, keys, require_layout = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/layouts.rb#430 + # pkg:gem/actionview#lib/action_view/layouts.rb:430 def _include_layout?(options); end # This will be overwritten by _write_layout_method # - # source://actionview//lib/action_view/layouts.rb#382 - def _layout(*_arg0); end + # pkg:gem/actionview#lib/action_view/layouts.rb:382 + def _layout(*); end # Determine the layout for a given name, taking into account the name type. # # ==== Parameters # * name - The name of the template # - # source://actionview//lib/action_view/layouts.rb#388 + # pkg:gem/actionview#lib/action_view/layouts.rb:388 def _layout_for_option(name); end - # source://actionview//lib/action_view/layouts.rb#401 + # pkg:gem/actionview#lib/action_view/layouts.rb:401 def _normalize_layout(value); end module GeneratedClassMethods @@ -13013,17 +11366,17 @@ module ActionView::Layouts end end -# source://actionview//lib/action_view/layouts.rb#217 +# pkg:gem/actionview#lib/action_view/layouts.rb:217 module ActionView::Layouts::ClassMethods # Creates a _layout method to be called by _default_layout . # # If a layout is not explicitly mentioned then look for a layout with the controller's name. # if nothing is found then try same procedure to find super class's layout. # - # source://actionview//lib/action_view/layouts.rb#283 + # pkg:gem/actionview#lib/action_view/layouts.rb:283 def _write_layout_method; end - # source://actionview//lib/action_view/layouts.rb#218 + # pkg:gem/actionview#lib/action_view/layouts.rb:218 def inherited(klass); end # Specify the layout to use for this class. @@ -13048,7 +11401,7 @@ module ActionView::Layouts::ClassMethods # * +:only+ - A list of actions to apply this layout to. # * +:except+ - Apply this layout to all actions but this one. # - # source://actionview//lib/action_view/layouts.rb#269 + # pkg:gem/actionview#lib/action_view/layouts.rb:269 def layout(layout, conditions = T.unsafe(nil)); end private @@ -13059,14 +11412,14 @@ module ActionView::Layouts::ClassMethods # ==== Returns # * String - A template name # - # source://actionview//lib/action_view/layouts.rb#345 + # pkg:gem/actionview#lib/action_view/layouts.rb:345 def _implied_layout_name; end end # This module is mixed in if layout conditions are provided. This means # that if no layout conditions are used, this method is not used # -# source://actionview//lib/action_view/layouts.rb#225 +# pkg:gem/actionview#lib/action_view/layouts.rb:225 module ActionView::Layouts::ClassMethods::LayoutConditions private @@ -13077,9 +11430,7 @@ module ActionView::Layouts::ClassMethods::LayoutConditions # ==== Returns # * Boolean - True if the action has a layout definition, false otherwise. # - # @return [Boolean] - # - # source://actionview//lib/action_view/layouts.rb#233 + # pkg:gem/actionview#lib/action_view/layouts.rb:233 def _conditional_layout?; end end @@ -13087,80 +11438,76 @@ end # # Provides functionality so that \Rails can output logs from Action View. # -# source://actionview//lib/action_view/log_subscriber.rb#9 +# pkg:gem/actionview#lib/action_view/log_subscriber.rb:9 class ActionView::LogSubscriber < ::ActiveSupport::LogSubscriber include ::ActionView::LogSubscriber::Utils - # @return [LogSubscriber] a new instance of LogSubscriber - # - # source://actionview//lib/action_view/log_subscriber.rb#12 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:12 def initialize; end - # source://actionview//lib/action_view/log_subscriber.rb#45 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:45 def render_collection(event); end - # source://actionview//lib/action_view/log_subscriber.rb#37 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:37 def render_layout(event); end - # source://actionview//lib/action_view/log_subscriber.rb#26 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:26 def render_partial(event); end - # source://actionview//lib/action_view/log_subscriber.rb#17 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:17 def render_template(event); end private - # source://actionview//lib/action_view/log_subscriber.rb#121 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:121 def cache_message(payload); end - # source://actionview//lib/action_view/log_subscriber.rb#113 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:113 def render_count(payload); end class << self - # source://actionview//lib/action_view/log_subscriber.rb#105 - def attach_to(*_arg0); end + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:105 + def attach_to(*); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:24 def __class_attr_log_levels; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:24 def __class_attr_log_levels=(new_value); end end end -# source://actionview//lib/action_view/log_subscriber.rb#76 +# pkg:gem/actionview#lib/action_view/log_subscriber.rb:76 class ActionView::LogSubscriber::Start include ::ActionView::LogSubscriber::Utils - # source://actionview//lib/action_view/log_subscriber.rb#97 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:97 def finish(name, id, payload); end - # @return [Boolean] - # - # source://actionview//lib/action_view/log_subscriber.rb#100 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:100 def silenced?(_); end - # source://actionview//lib/action_view/log_subscriber.rb#79 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:79 def start(name, id, payload); end end -# source://actionview//lib/action_view/log_subscriber.rb#57 +# pkg:gem/actionview#lib/action_view/log_subscriber.rb:57 module ActionView::LogSubscriber::Utils - # source://actionview//lib/action_view/log_subscriber.rb#58 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:58 def logger; end private - # source://actionview//lib/action_view/log_subscriber.rb#63 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:63 def from_rails_root(string); end - # source://actionview//lib/action_view/log_subscriber.rb#69 + # pkg:gem/actionview#lib/action_view/log_subscriber.rb:69 def rails_root; end end -# source://actionview//lib/action_view/log_subscriber.rb#10 +# pkg:gem/actionview#lib/action_view/log_subscriber.rb:10 ActionView::LogSubscriber::VIEWS_PATTERN = T.let(T.unsafe(nil), Regexp) # = Action View Lookup Context @@ -13171,210 +11518,191 @@ ActionView::LogSubscriber::VIEWS_PATTERN = T.let(T.unsafe(nil), Regexp) # view paths, used in the resolver cache lookup. Since this key is generated # only once during the request, it speeds up all cache accesses. # -# source://actionview//lib/action_view/lookup_context.rb#15 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:15 class ActionView::LookupContext include ::ActionView::LookupContext::Accessors include ::ActionView::LookupContext::DetailsCache include ::ActionView::LookupContext::ViewPaths - # @return [LookupContext] a new instance of LookupContext - # - # source://actionview//lib/action_view/lookup_context.rb#232 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:232 def initialize(view_paths, details = T.unsafe(nil), prefixes = T.unsafe(nil)); end - # source://actionview//lib/action_view/lookup_context.rb#242 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:242 def digest_cache; end # Override formats= to expand ["*/*"] values and automatically # add :html as fallback to :js. # - # source://actionview//lib/action_view/lookup_context.rb#263 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:263 def formats=(values); end # Override locale to return a symbol instead of array. # - # source://actionview//lib/action_view/lookup_context.rb#283 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:283 def locale; end # Overload locale= to also set the I18n.locale. If the current I18n.config object responds # to original_config, it means that it has a copy of the original I18n configuration and it's # acting as proxy, which we need to skip. # - # source://actionview//lib/action_view/lookup_context.rb#290 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:290 def locale=(value); end - # source://actionview//lib/action_view/lookup_context.rb#16 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:16 def prefixes; end - # source://actionview//lib/action_view/lookup_context.rb#16 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:16 def prefixes=(_arg0); end - # source://actionview//lib/action_view/lookup_context.rb#246 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:246 def with_prepended_formats(formats); end private - # source://actionview//lib/action_view/lookup_context.rb#253 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:253 def initialize_details(target, details); end class << self - # source://actionview//lib/action_view/lookup_context.rb#21 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:21 def register_detail(name, &block); end - # source://actionview//lib/action_view/lookup_context.rb#18 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:18 def registered_details; end - # source://actionview//lib/action_view/lookup_context.rb#18 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:18 def registered_details=(_arg0); end end end # Holds accessors for the registered details. # -# source://actionview//lib/action_view/lookup_context.rb#39 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:39 module ActionView::LookupContext::Accessors - # source://actionview//lib/action_view/lookup_context.rb#50 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:25 def default_formats; end - # source://actionview//lib/action_view/lookup_context.rb#52 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:25 def default_handlers; end - # source://actionview//lib/action_view/lookup_context.rb#43 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:25 def default_locale; end - # source://actionview//lib/action_view/lookup_context.rb#51 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:25 def default_variants; end - # source://actionview//lib/action_view/lookup_context.rb#27 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def formats; end - # source://actionview//lib/action_view/lookup_context.rb#31 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def formats=(value); end - # source://actionview//lib/action_view/lookup_context.rb#27 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def handlers; end - # source://actionview//lib/action_view/lookup_context.rb#31 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def handlers=(value); end - # source://actionview//lib/action_view/lookup_context.rb#27 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def locale; end - # source://actionview//lib/action_view/lookup_context.rb#31 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def locale=(value); end - # source://actionview//lib/action_view/lookup_context.rb#27 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def variants; end - # source://actionview//lib/action_view/lookup_context.rb#31 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:26 def variants=(value); end end -# source://actionview//lib/action_view/lookup_context.rb#40 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:40 ActionView::LookupContext::Accessors::DEFAULT_PROCS = T.let(T.unsafe(nil), Hash) # Add caching behavior on top of Details. # -# source://actionview//lib/action_view/lookup_context.rb#98 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:98 module ActionView::LookupContext::DetailsCache - # Returns the value of attribute cache. - # - # source://actionview//lib/action_view/lookup_context.rb#99 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:99 def cache; end - # Sets the attribute cache - # - # @param value the value to set the attribute cache to. - # - # source://actionview//lib/action_view/lookup_context.rb#99 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:99 def cache=(_arg0); end # Calculate the details key. Remove the handlers from calculation to improve performance # since the user cannot modify it explicitly. # - # source://actionview//lib/action_view/lookup_context.rb#103 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:103 def details_key; end # Temporary skip passing the details_key forward. # - # source://actionview//lib/action_view/lookup_context.rb#108 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:108 def disable_cache; end private - # source://actionview//lib/action_view/lookup_context.rb#116 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:116 def _set_detail(key, value); end end -# source://actionview//lib/action_view/lookup_context.rb#54 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:54 class ActionView::LookupContext::DetailsKey + # pkg:gem/actionview#lib/action_view/lookup_context.rb:55 def eql?(_arg0); end class << self - # source://actionview//lib/action_view/lookup_context.rb#77 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:77 def clear; end - # source://actionview//lib/action_view/lookup_context.rb#65 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:65 def details_cache_key(details); end - # source://actionview//lib/action_view/lookup_context.rb#61 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:61 def digest_cache(details); end - # source://actionview//lib/action_view/lookup_context.rb#86 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:86 def digest_caches; end - # source://actionview//lib/action_view/lookup_context.rb#90 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:90 def view_context_class; end end end # Helpers related to template lookup using the lookup context information. # -# source://actionview//lib/action_view/lookup_context.rb#125 +# pkg:gem/actionview#lib/action_view/lookup_context.rb:125 module ActionView::LookupContext::ViewPaths - # @return [Boolean] - # - # source://actionview//lib/action_view/lookup_context.rb#148 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:148 def any?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil)); end - # @return [Boolean] - # - # source://actionview//lib/action_view/lookup_context.rb#148 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:153 def any_templates?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil)); end - # source://actionview//lib/action_view/lookup_context.rb#155 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:155 def append_view_paths(paths); end - # @return [Boolean] - # - # source://actionview//lib/action_view/lookup_context.rb#141 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:141 def exists?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), **options); end - # source://actionview//lib/action_view/lookup_context.rb#128 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:128 def find(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/lookup_context.rb#135 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:135 def find_all(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview//lib/action_view/lookup_context.rb#128 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:133 def find_template(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), options = T.unsafe(nil)); end - # Returns the value of attribute html_fallback_for_js. - # - # source://actionview//lib/action_view/lookup_context.rb#126 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:126 def html_fallback_for_js; end - # source://actionview//lib/action_view/lookup_context.rb#159 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:159 def prepend_view_paths(paths); end - # @return [Boolean] - # - # source://actionview//lib/action_view/lookup_context.rb#141 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:146 def template_exists?(name, prefixes = T.unsafe(nil), partial = T.unsafe(nil), keys = T.unsafe(nil), **options); end - # Returns the value of attribute view_paths. - # - # source://actionview//lib/action_view/lookup_context.rb#126 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:126 def view_paths; end private @@ -13382,145 +11710,128 @@ module ActionView::LookupContext::ViewPaths # Whenever setting view paths, makes a copy so that we can manipulate them in # instance objects as we wish. # - # source://actionview//lib/action_view/lookup_context.rb#166 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:166 def build_view_paths(paths); end # Compute details hash and key according to user options (e.g. passed from #render). # - # source://actionview//lib/action_view/lookup_context.rb#175 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:175 def detail_args_for(options); end - # source://actionview//lib/action_view/lookup_context.rb#188 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:188 def detail_args_for_any; end # Fix when prefix is specified as part of the template name # - # source://actionview//lib/action_view/lookup_context.rb#209 + # pkg:gem/actionview#lib/action_view/lookup_context.rb:209 def normalize_name(name, prefixes); end end -# source://actionview//lib/action_view/template/error.rb#41 +# pkg:gem/actionview#lib/action_view/template/error.rb:41 class ActionView::MissingTemplate < ::ActionView::ActionViewError include ::DidYouMean::Correctable - # @return [MissingTemplate] a new instance of MissingTemplate - # - # source://actionview//lib/action_view/template/error.rb#44 - def initialize(paths, path, prefixes, partial, details, *_arg5); end + # pkg:gem/actionview#lib/action_view/template/error.rb:44 + def initialize(paths, path, prefixes, partial, details, *); end # Apps may have thousands of candidate templates so we attempt to # generate the suggestions as efficiently as possible. # First we split templates into prefixes and basenames, so that those can # be matched separately. # - # source://actionview//lib/action_view/template/error.rb#104 + # pkg:gem/actionview#lib/action_view/template/error.rb:104 def corrections; end - # Returns the value of attribute partial. - # - # source://actionview//lib/action_view/template/error.rb#42 + # pkg:gem/actionview#lib/action_view/template/error.rb:42 def partial; end - # Returns the value of attribute path. - # - # source://actionview//lib/action_view/template/error.rb#42 + # pkg:gem/actionview#lib/action_view/template/error.rb:42 def path; end - # Returns the value of attribute paths. - # - # source://actionview//lib/action_view/template/error.rb#42 + # pkg:gem/actionview#lib/action_view/template/error.rb:42 def paths; end - # Returns the value of attribute prefixes. - # - # source://actionview//lib/action_view/template/error.rb#42 + # pkg:gem/actionview#lib/action_view/template/error.rb:42 def prefixes; end end -# source://actionview//lib/action_view/template/error.rb#71 +# pkg:gem/actionview#lib/action_view/template/error.rb:71 class ActionView::MissingTemplate::Results - # @return [Results] a new instance of Results - # - # source://actionview//lib/action_view/template/error.rb#74 + # pkg:gem/actionview#lib/action_view/template/error.rb:74 def initialize(size); end - # source://actionview//lib/action_view/template/error.rb#91 + # pkg:gem/actionview#lib/action_view/template/error.rb:91 def add(path, score); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/error.rb#83 + # pkg:gem/actionview#lib/action_view/template/error.rb:83 def should_record?(score); end - # source://actionview//lib/action_view/template/error.rb#79 + # pkg:gem/actionview#lib/action_view/template/error.rb:79 def to_a; end end -# source://actionview//lib/action_view/template/error.rb#72 +# pkg:gem/actionview#lib/action_view/template/error.rb:72 class ActionView::MissingTemplate::Results::Result < ::Struct - # Returns the value of attribute path - # - # @return [Object] the current value of path + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def path; end - # Sets the attribute path - # - # @param value [Object] the value to set the attribute path to. - # @return [Object] the newly set value + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def path=(_); end - # Returns the value of attribute score - # - # @return [Object] the current value of score + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def score; end - # Sets the attribute score - # - # @param value [Object] the value to set the attribute score to. - # @return [Object] the newly set value + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def score=(_); end class << self + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def [](*_arg0); end + + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def inspect; end + + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def keyword_init?; end + + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def members; end + + # pkg:gem/actionview#lib/action_view/template/error.rb:72 def new(*_arg0); end end end -# source://actionview//lib/action_view/model_naming.rb#4 +# pkg:gem/actionview#lib/action_view/model_naming.rb:4 module ActionView::ModelNaming # Converts the given object to an Active Model compliant one. # - # source://actionview//lib/action_view/model_naming.rb#6 + # pkg:gem/actionview#lib/action_view/model_naming.rb:6 def convert_to_model(object); end - # source://actionview//lib/action_view/model_naming.rb#10 + # pkg:gem/actionview#lib/action_view/model_naming.rb:10 def model_name_from_record_or_class(record_or_class); end end -# source://actionview//lib/action_view/renderer/object_renderer.rb#4 +# pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:4 class ActionView::ObjectRenderer < ::ActionView::PartialRenderer include ::ActionView::AbstractRenderer::ObjectRendering - # @return [ObjectRenderer] a new instance of ObjectRenderer - # - # source://actionview//lib/action_view/renderer/object_renderer.rb#7 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:7 def initialize(lookup_context, options); end - # source://actionview//lib/action_view/renderer/object_renderer.rb#19 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:19 def render_object_derive_partial(object, context, block); end - # source://actionview//lib/action_view/renderer/object_renderer.rb#13 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:13 def render_object_with_partial(object, partial, context, block); end private - # source://actionview//lib/action_view/renderer/object_renderer.rb#29 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:29 def render_partial_template(view, locals, template, layout, block); end - # source://actionview//lib/action_view/renderer/object_renderer.rb#25 + # pkg:gem/actionview#lib/action_view/renderer/object_renderer.rb:25 def template_keys(path); end end @@ -13539,148 +11850,130 @@ end # sbuf << 5 # puts sbuf # => "hello\u0005" # -# source://actionview//lib/action_view/buffers.rb#21 +# pkg:gem/actionview#lib/action_view/buffers.rb:21 class ActionView::OutputBuffer - # @return [OutputBuffer] a new instance of OutputBuffer - # - # source://actionview//lib/action_view/buffers.rb#22 + # pkg:gem/actionview#lib/action_view/buffers.rb:22 def initialize(buffer = T.unsafe(nil)); end - # source://actionview//lib/action_view/buffers.rb#42 + # pkg:gem/actionview#lib/action_view/buffers.rb:42 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#81 + # pkg:gem/actionview#lib/action_view/buffers.rb:81 def ==(other); end - # source://actionview//lib/action_view/buffers.rb#42 + # pkg:gem/actionview#lib/action_view/buffers.rb:54 def append=(value); end - # source://actionview//lib/action_view/buffers.rb#27 - def blank?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/buffers.rb:27 + def blank?(*, **, &); end - # source://actionview//lib/action_view/buffers.rb#72 + # pkg:gem/actionview#lib/action_view/buffers.rb:72 def capture(*args); end - # source://actionview//lib/action_view/buffers.rb#42 + # pkg:gem/actionview#lib/action_view/buffers.rb:53 def concat(value); end - # source://actionview//lib/action_view/buffers.rb#27 - def empty?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/buffers.rb:27 + def empty?(*, **, &); end - # source://actionview//lib/action_view/buffers.rb#27 - def encode!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/buffers.rb:27 + def encode!(*, **, &); end - # source://actionview//lib/action_view/buffers.rb#27 - def encoding(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/buffers.rb:27 + def encoding(*, **, &); end - # source://actionview//lib/action_view/buffers.rb#27 - def force_encoding(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/buffers.rb:27 + def force_encoding(*, **, &); end - # source://actionview//lib/action_view/buffers.rb#29 + # pkg:gem/actionview#lib/action_view/buffers.rb:32 def html_safe; end - # @return [Boolean] - # - # source://actionview//lib/action_view/buffers.rb#38 + # pkg:gem/actionview#lib/action_view/buffers.rb:38 def html_safe?; end - # source://actionview//lib/action_view/buffers.rb#27 - def length(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/buffers.rb:27 + def length(*, **, &); end - # source://actionview//lib/action_view/buffers.rb#85 + # pkg:gem/actionview#lib/action_view/buffers.rb:85 def raw; end - # Returns the value of attribute raw_buffer. - # - # source://actionview//lib/action_view/buffers.rb#89 + # pkg:gem/actionview#lib/action_view/buffers.rb:89 def raw_buffer; end - # source://actionview//lib/action_view/buffers.rb#56 + # pkg:gem/actionview#lib/action_view/buffers.rb:60 def safe_append=(value); end - # source://actionview//lib/action_view/buffers.rb#56 + # pkg:gem/actionview#lib/action_view/buffers.rb:56 def safe_concat(value); end - # source://actionview//lib/action_view/buffers.rb#62 + # pkg:gem/actionview#lib/action_view/buffers.rb:62 def safe_expr_append=(val); end - # source://actionview//lib/action_view/buffers.rb#29 + # pkg:gem/actionview#lib/action_view/buffers.rb:29 def to_s; end - # source://actionview//lib/action_view/buffers.rb#34 + # pkg:gem/actionview#lib/action_view/buffers.rb:34 def to_str; end private - # source://actionview//lib/action_view/buffers.rb#68 + # pkg:gem/actionview#lib/action_view/buffers.rb:68 def initialize_copy(other); end end -# source://actionview//lib/action_view/flows.rb#6 +# pkg:gem/actionview#lib/action_view/flows.rb:6 class ActionView::OutputFlow - # @return [OutputFlow] a new instance of OutputFlow - # - # source://actionview//lib/action_view/flows.rb#9 + # pkg:gem/actionview#lib/action_view/flows.rb:9 def initialize; end # Called by content_for # - # source://actionview//lib/action_view/flows.rb#24 + # pkg:gem/actionview#lib/action_view/flows.rb:24 def append(key, value); end - # Called by content_for - # - # source://actionview//lib/action_view/flows.rb#24 + # pkg:gem/actionview#lib/action_view/flows.rb:27 def append!(key, value); end - # Returns the value of attribute content. - # - # source://actionview//lib/action_view/flows.rb#7 + # pkg:gem/actionview#lib/action_view/flows.rb:7 def content; end # Called by _layout_for to read stored values. # - # source://actionview//lib/action_view/flows.rb#14 + # pkg:gem/actionview#lib/action_view/flows.rb:14 def get(key); end # Called by each renderer object to set the layout contents. # - # source://actionview//lib/action_view/flows.rb#19 + # pkg:gem/actionview#lib/action_view/flows.rb:19 def set(key, value); end end -# source://actionview//lib/action_view/renderer/collection_renderer.rb#6 +# pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:6 class ActionView::PartialIteration - # @return [PartialIteration] a new instance of PartialIteration - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#13 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:13 def initialize(size); end # Check if this is the first iteration of the partial. # - # @return [Boolean] - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#19 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:19 def first?; end # The current iteration of the partial. # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#11 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:11 def index; end - # source://actionview//lib/action_view/renderer/collection_renderer.rb#28 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:28 def iterate!; end # Check if this is the last iteration of the partial. # - # @return [Boolean] - # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#24 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:24 def last?; end # The number of iterations that will be done by the partial. # - # source://actionview//lib/action_view/renderer/collection_renderer.rb#8 + # pkg:gem/actionview#lib/action_view/renderer/collection_renderer.rb:8 def size; end end @@ -13899,65 +12192,61 @@ end # # As you can see, the :locals hash is shared between both the partial and its layout. # -# source://actionview//lib/action_view/renderer/partial_renderer.rb#220 +# pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:220 class ActionView::PartialRenderer < ::ActionView::AbstractRenderer include ::ActionView::CollectionCaching - # @return [PartialRenderer] a new instance of PartialRenderer - # - # source://actionview//lib/action_view/renderer/partial_renderer.rb#223 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:223 def initialize(lookup_context, options); end - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#12 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:221 def collection_cache; end - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#12 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:221 def collection_cache=(val); end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#230 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:230 def render(partial, context, block); end private - # source://actionview//lib/action_view/renderer/partial_renderer.rb#262 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:262 def find_template(path, locals); end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#245 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:245 def render_partial_template(view, locals, template, layout, block); end - # source://actionview//lib/action_view/renderer/partial_renderer.rb#241 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:241 def template_keys(_); end class << self - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#12 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:221 def collection_cache; end - # source://actionview//lib/action_view/renderer/partial_renderer/collection_caching.rb#12 + # pkg:gem/actionview#lib/action_view/renderer/partial_renderer.rb:221 def collection_cache=(val); end end end -# source://actionview//lib/action_view/path_registry.rb#4 +# pkg:gem/actionview#lib/action_view/path_registry.rb:4 module ActionView::PathRegistry class << self - # source://actionview//lib/action_view/path_registry.rb#53 + # pkg:gem/actionview#lib/action_view/path_registry.rb:53 def all_file_system_resolvers; end - # source://actionview//lib/action_view/path_registry.rb#47 + # pkg:gem/actionview#lib/action_view/path_registry.rb:47 def all_resolvers; end - # source://actionview//lib/action_view/path_registry.rb#22 + # pkg:gem/actionview#lib/action_view/path_registry.rb:22 def cast_file_system_resolvers(paths); end - # Returns the value of attribute file_system_resolver_hooks. - # - # source://actionview//lib/action_view/path_registry.rb#11 + # pkg:gem/actionview#lib/action_view/path_registry.rb:11 def file_system_resolver_hooks; end - # source://actionview//lib/action_view/path_registry.rb#14 + # pkg:gem/actionview#lib/action_view/path_registry.rb:14 def get_view_paths(klass); end - # source://actionview//lib/action_view/path_registry.rb#18 + # pkg:gem/actionview#lib/action_view/path_registry.rb:18 def set_view_paths(klass, paths); end end end @@ -13970,104 +12259,84 @@ end # # A +LookupContext+ will use a +PathSet+ to store the paths in its context. # -# source://actionview//lib/action_view/path_set.rb#11 +# pkg:gem/actionview#lib/action_view/path_set.rb:11 class ActionView::PathSet include ::Enumerable - # @return [PathSet] a new instance of PathSet - # - # source://actionview//lib/action_view/path_set.rb#18 + # pkg:gem/actionview#lib/action_view/path_set.rb:18 def initialize(paths = T.unsafe(nil)); end - # source://actionview//lib/action_view/path_set.rb#35 + # pkg:gem/actionview#lib/action_view/path_set.rb:35 def +(other); end - # source://actionview//lib/action_view/path_set.rb#16 - def [](*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/path_set.rb:16 + def [](*, **, &); end - # source://actionview//lib/action_view/path_set.rb#31 + # pkg:gem/actionview#lib/action_view/path_set.rb:31 def compact; end - # source://actionview//lib/action_view/path_set.rb#16 - def each(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/path_set.rb:16 + def each(*, **, &); end - # @return [Boolean] - # - # source://actionview//lib/action_view/path_set.rb#53 + # pkg:gem/actionview#lib/action_view/path_set.rb:53 def exists?(path, prefixes, partial, details, details_key, locals); end - # source://actionview//lib/action_view/path_set.rb#40 + # pkg:gem/actionview#lib/action_view/path_set.rb:40 def find(path, prefixes, partial, details, details_key, locals); end - # source://actionview//lib/action_view/path_set.rb#45 + # pkg:gem/actionview#lib/action_view/path_set.rb:45 def find_all(path, prefixes, partial, details, details_key, locals); end - # source://actionview//lib/action_view/path_set.rb#16 - def include?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/path_set.rb:16 + def include?(*, **, &); end - # Returns the value of attribute paths. - # - # source://actionview//lib/action_view/path_set.rb#14 + # pkg:gem/actionview#lib/action_view/path_set.rb:14 def paths; end - # source://actionview//lib/action_view/path_set.rb#16 - def size(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/path_set.rb:16 + def size(*, **, &); end - # source://actionview//lib/action_view/path_set.rb#27 + # pkg:gem/actionview#lib/action_view/path_set.rb:27 def to_ary; end private - # source://actionview//lib/action_view/path_set.rb#22 + # pkg:gem/actionview#lib/action_view/path_set.rb:22 def initialize_copy(other); end - # source://actionview//lib/action_view/path_set.rb#58 + # pkg:gem/actionview#lib/action_view/path_set.rb:58 def search_combinations(prefixes); end - # source://actionview//lib/action_view/path_set.rb#67 + # pkg:gem/actionview#lib/action_view/path_set.rb:67 def typecast(paths); end end # = Action View Railtie # -# source://actionview//lib/action_view/railtie.rb#8 -class ActionView::Railtie < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end +# pkg:gem/actionview#lib/action_view/railtie.rb:8 +class ActionView::Railtie < ::Rails::Engine; end -# source://actionview//lib/action_view/buffers.rb#92 +# pkg:gem/actionview#lib/action_view/buffers.rb:92 class ActionView::RawOutputBuffer - # @return [RawOutputBuffer] a new instance of RawOutputBuffer - # - # source://actionview//lib/action_view/buffers.rb#93 + # pkg:gem/actionview#lib/action_view/buffers.rb:93 def initialize(buffer); end - # source://actionview//lib/action_view/buffers.rb#97 + # pkg:gem/actionview#lib/action_view/buffers.rb:97 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#103 + # pkg:gem/actionview#lib/action_view/buffers.rb:103 def raw; end end -# source://actionview//lib/action_view/buffers.rb#150 +# pkg:gem/actionview#lib/action_view/buffers.rb:150 class ActionView::RawStreamingBuffer - # @return [RawStreamingBuffer] a new instance of RawStreamingBuffer - # - # source://actionview//lib/action_view/buffers.rb#151 + # pkg:gem/actionview#lib/action_view/buffers.rb:151 def initialize(buffer); end - # source://actionview//lib/action_view/buffers.rb#155 + # pkg:gem/actionview#lib/action_view/buffers.rb:155 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#161 + # pkg:gem/actionview#lib/action_view/buffers.rb:161 def raw; end end @@ -14125,7 +12394,7 @@ end # end # end # -# source://actionview//lib/action_view/record_identifier.rb#60 +# pkg:gem/actionview#lib/action_view/record_identifier.rb:60 module ActionView::RecordIdentifier include ::ActionView::ModelNaming extend ::ActionView::RecordIdentifier @@ -14141,7 +12410,7 @@ module ActionView::RecordIdentifier # dom_class(post, :edit) # => "edit_post" # dom_class(Person, :edit) # => "edit_person" # - # source://actionview//lib/action_view/record_identifier.rb#78 + # pkg:gem/actionview#lib/action_view/record_identifier.rb:78 def dom_class(record_or_class, prefix = T.unsafe(nil)); end # The DOM id convention is to use the singular form of an object or class with the id following an underscore. @@ -14155,9 +12424,7 @@ module ActionView::RecordIdentifier # dom_id(Post.find(45), :edit) # => "edit_post_45" # dom_id(Post, :custom) # => "custom_post" # - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/record_identifier.rb#93 + # pkg:gem/actionview#lib/action_view/record_identifier.rb:93 def dom_id(record_or_class, prefix = T.unsafe(nil)); end private @@ -14171,44 +12438,42 @@ module ActionView::RecordIdentifier # method that replaces all characters that are invalid inside DOM ids, with valid ones. You need to # make sure yourself that your dom ids are valid, in case you override this method. # - # source://actionview//lib/action_view/record_identifier.rb#113 + # pkg:gem/actionview#lib/action_view/record_identifier.rb:113 def record_key_for_dom_id(record); end end -# source://actionview//lib/action_view/record_identifier.rb#66 +# pkg:gem/actionview#lib/action_view/record_identifier.rb:66 ActionView::RecordIdentifier::JOIN = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/record_identifier.rb#67 +# pkg:gem/actionview#lib/action_view/record_identifier.rb:67 ActionView::RecordIdentifier::NEW = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/render_parser.rb#4 +# pkg:gem/actionview#lib/action_view/render_parser.rb:4 module ActionView::RenderParser; end -# source://actionview//lib/action_view/render_parser.rb#5 +# pkg:gem/actionview#lib/action_view/render_parser.rb:5 ActionView::RenderParser::ALL_KNOWN_KEYS = T.let(T.unsafe(nil), Array) -# source://actionview//lib/action_view/render_parser.rb#8 +# pkg:gem/actionview#lib/action_view/render_parser.rb:8 class ActionView::RenderParser::Base - # @return [Base] a new instance of Base - # - # source://actionview//lib/action_view/render_parser.rb#9 + # pkg:gem/actionview#lib/action_view/render_parser.rb:9 def initialize(name, code); end private - # source://actionview//lib/action_view/render_parser.rb#15 + # pkg:gem/actionview#lib/action_view/render_parser.rb:15 def directory; end - # source://actionview//lib/action_view/render_parser.rb#19 + # pkg:gem/actionview#lib/action_view/render_parser.rb:19 def partial_to_virtual_path(render_type, partial_path); end end -# source://actionview//lib/action_view/render_parser.rb#37 +# pkg:gem/actionview#lib/action_view/render_parser.rb:37 ActionView::RenderParser::Default = ActionView::RenderParser::PrismRenderParser -# source://actionview//lib/action_view/render_parser/prism_render_parser.rb#5 +# pkg:gem/actionview#lib/action_view/render_parser/prism_render_parser.rb:5 class ActionView::RenderParser::PrismRenderParser < ::ActionView::RenderParser::Base - # source://actionview//lib/action_view/render_parser/prism_render_parser.rb#6 + # pkg:gem/actionview#lib/action_view/render_parser/prism_render_parser.rb:6 def render_calls; end private @@ -14216,18 +12481,18 @@ class ActionView::RenderParser::PrismRenderParser < ::ActionView::RenderParser:: # Accept a call node and return a hash of options for the render call. # If it doesn't match the expected format, return nil. # - # source://actionview//lib/action_view/render_parser/prism_render_parser.rb#43 + # pkg:gem/actionview#lib/action_view/render_parser/prism_render_parser.rb:43 def render_call_options(node); end # Accept the node that is being passed in the position of the template # and return the template name and whether or not it is an object # template. # - # source://actionview//lib/action_view/render_parser/prism_render_parser.rb#97 + # pkg:gem/actionview#lib/action_view/render_parser/prism_render_parser.rb:97 def render_call_template(node); end end -# source://actionview//lib/action_view/render_parser.rb#6 +# pkg:gem/actionview#lib/action_view/render_parser.rb:6 ActionView::RenderParser::RENDER_TYPE_KEYS = T.let(T.unsafe(nil), Array) # = Action View \Renderer @@ -14242,31 +12507,23 @@ ActionView::RenderParser::RENDER_TYPE_KEYS = T.let(T.unsafe(nil), Array) # the setup and logic necessary to render a view and a new object is created # each time +render+ is called. # -# source://actionview//lib/action_view/renderer/renderer.rb#15 +# pkg:gem/actionview#lib/action_view/renderer/renderer.rb:15 class ActionView::Renderer - # @return [Renderer] a new instance of Renderer - # - # source://actionview//lib/action_view/renderer/renderer.rb#18 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:18 def initialize(lookup_context); end - # source://actionview//lib/action_view/renderer/renderer.rb#52 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:52 def cache_hits; end - # Returns the value of attribute lookup_context. - # - # source://actionview//lib/action_view/renderer/renderer.rb#16 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:16 def lookup_context; end - # Sets the attribute lookup_context - # - # @param value the value to set the attribute lookup_context to. - # - # source://actionview//lib/action_view/renderer/renderer.rb#16 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:16 def lookup_context=(_arg0); end # Main render entry point shared by Action View and Action Controller. # - # source://actionview//lib/action_view/renderer/renderer.rb#23 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:23 def render(context, options); end # Render but returns a valid Rack body. If fibers are defined, we return @@ -14275,31 +12532,31 @@ class ActionView::Renderer # Note that partials are not supported to be rendered with streaming, # so in such cases, we just wrap them in an array. # - # source://actionview//lib/action_view/renderer/renderer.rb#40 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:40 def render_body(context, options); end - # source://actionview//lib/action_view/renderer/renderer.rb#48 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:48 def render_partial(context, options, &block); end - # source://actionview//lib/action_view/renderer/renderer.rb#27 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:27 def render_to_object(context, options); end private - # source://actionview//lib/action_view/renderer/renderer.rb#103 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:103 def collection_from_object(object); end - # source://actionview//lib/action_view/renderer/renderer.rb#96 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:96 def collection_from_options(options); end - # source://actionview//lib/action_view/renderer/renderer.rb#61 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:61 def render_partial_to_object(context, options, &block); end - # source://actionview//lib/action_view/renderer/renderer.rb#57 + # pkg:gem/actionview#lib/action_view/renderer/renderer.rb:57 def render_template_to_object(context, options); end end -# source://actionview//lib/action_view/rendering.rb#26 +# pkg:gem/actionview#lib/action_view/rendering.rb:26 module ActionView::Rendering extend ::ActiveSupport::Concern include ::ActionView::ViewPaths @@ -14307,17 +12564,18 @@ module ActionView::Rendering mixes_in_class_methods ::ActionView::ViewPaths::ClassMethods mixes_in_class_methods ::ActionView::Rendering::ClassMethods - # source://actionview//lib/action_view/rendering.rb#32 + # pkg:gem/actionview#lib/action_view/rendering.rb:32 def initialize; end # Override process to set up I18n proxy. # - # source://actionview//lib/action_view/rendering.rb#38 - def process(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/rendering.rb:38 + def process(*, **, &); end - # source://actionview//lib/action_view/rendering.rb#119 + # pkg:gem/actionview#lib/action_view/rendering.rb:119 def render_to_body(options = T.unsafe(nil)); end + # pkg:gem/actionview#lib/action_view/rendering.rb:30 def rendered_format; end # An instance of a view class. The default view class is ActionView::Base. @@ -14331,15 +12589,15 @@ module ActionView::Rendering # # Override this method in a module to change the default behavior. # - # source://actionview//lib/action_view/rendering.rb#109 + # pkg:gem/actionview#lib/action_view/rendering.rb:109 def view_context; end - # source://actionview//lib/action_view/rendering.rb#95 + # pkg:gem/actionview#lib/action_view/rendering.rb:95 def view_context_class; end # Returns an object that is able to render templates. # - # source://actionview//lib/action_view/rendering.rb#114 + # pkg:gem/actionview#lib/action_view/rendering.rb:114 def view_renderer; end private @@ -14347,150 +12605,142 @@ module ActionView::Rendering # Normalize args by converting render "foo" to render action: "foo" and # render "foo/bar" to render template: "foo/bar". # - # source://actionview//lib/action_view/rendering.rb#153 + # pkg:gem/actionview#lib/action_view/rendering.rb:153 def _normalize_args(action = T.unsafe(nil), options = T.unsafe(nil)); end # Assign the rendered format to look up context. # - # source://actionview//lib/action_view/rendering.rb#146 + # pkg:gem/actionview#lib/action_view/rendering.rb:146 def _process_format(format); end # Normalize options. # - # source://actionview//lib/action_view/rendering.rb#177 + # pkg:gem/actionview#lib/action_view/rendering.rb:177 def _process_render_template_options(options); end # Find and render a template based on the options given. # - # source://actionview//lib/action_view/rendering.rb#127 + # pkg:gem/actionview#lib/action_view/rendering.rb:127 def _render_template(options); end end -# source://actionview//lib/action_view/rendering.rb#45 +# pkg:gem/actionview#lib/action_view/rendering.rb:45 module ActionView::Rendering::ClassMethods - # source://actionview//lib/action_view/rendering.rb#49 + # pkg:gem/actionview#lib/action_view/rendering.rb:49 def _helpers; end - # source://actionview//lib/action_view/rendering.rb#46 + # pkg:gem/actionview#lib/action_view/rendering.rb:46 def _routes; end - # source://actionview//lib/action_view/rendering.rb#59 + # pkg:gem/actionview#lib/action_view/rendering.rb:59 def build_view_context_class(klass, supports_path, routes, helpers); end - # source://actionview//lib/action_view/rendering.rb#76 + # pkg:gem/actionview#lib/action_view/rendering.rb:76 def eager_load!; end - # @return [Boolean] - # - # source://actionview//lib/action_view/rendering.rb#52 + # pkg:gem/actionview#lib/action_view/rendering.rb:52 def inherit_view_context_class?; end - # source://actionview//lib/action_view/rendering.rb#82 + # pkg:gem/actionview#lib/action_view/rendering.rb:82 def view_context_class; end end # = Action View Resolver # -# source://actionview//lib/action_view/template/resolver.rb#11 +# pkg:gem/actionview#lib/action_view/template/resolver.rb:11 class ActionView::Resolver - # source://actionview//lib/action_view/template/resolver.rb#69 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:69 def all_template_paths; end - # source://actionview//lib/action_view/template/resolver.rb#64 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:64 def built_templates; end - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:50 def caching; end - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:50 def caching=(val); end - # source://actionview//lib/action_view/template/resolver.rb#79 - def caching?(&_arg0); end + # pkg:gem/actionview#lib/action_view/template/resolver.rb:79 + def caching?(&); end - # source://actionview//lib/action_view/template/resolver.rb#56 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:56 def clear_cache; end # Normalizes the arguments and passes it on to find_templates. # - # source://actionview//lib/action_view/template/resolver.rb#60 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:60 def find_all(name, prefix = T.unsafe(nil), partial = T.unsafe(nil), details = T.unsafe(nil), key = T.unsafe(nil), locals = T.unsafe(nil)); end private - # source://actionview//lib/action_view/template/resolver.rb#75 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:75 def _find_all(name, prefix, partial, details, key, locals); end # This is what child classes implement. No defaults are needed # because Resolver guarantees that the arguments are present and # normalized. # - # @raise [NotImplementedError] - # - # source://actionview//lib/action_view/template/resolver.rb#84 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:84 def find_templates(name, prefix, partial, details, locals = T.unsafe(nil)); end class << self - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:50 def caching; end - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:50 def caching=(val); end - # source://actionview//lib/action_view/template/resolver.rb#50 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:53 def caching?; end end end -# source://actionview//lib/action_view/template/resolver.rb#12 +# pkg:gem/actionview#lib/action_view/template/resolver.rb:12 class ActionView::Resolver::PathParser - # source://actionview//lib/action_view/template/resolver.rb#15 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:15 def build_path_regex; end - # source://actionview//lib/action_view/template/resolver.rb#36 + # pkg:gem/actionview#lib/action_view/template/resolver.rb:36 def parse(path); end end -# source://actionview//lib/action_view/template/resolver.rb#13 +# pkg:gem/actionview#lib/action_view/template/resolver.rb:13 class ActionView::Resolver::PathParser::ParsedPath < ::Struct - # Returns the value of attribute details - # - # @return [Object] the current value of details + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def details; end - # Sets the attribute details - # - # @param value [Object] the value to set the attribute details to. - # @return [Object] the newly set value + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def details=(_); end - # Returns the value of attribute path - # - # @return [Object] the current value of path + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def path; end - # Sets the attribute path - # - # @param value [Object] the value to set the attribute path to. - # @return [Object] the newly set value + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def path=(_); end class << self + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def [](*_arg0); end + + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def inspect; end + + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def keyword_init?; end + + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def members; end + + # pkg:gem/actionview#lib/action_view/template/resolver.rb:13 def new(*_arg0); end end end -# source://actionview//lib/action_view/routing_url_for.rb#6 +# pkg:gem/actionview#lib/action_view/routing_url_for.rb:6 module ActionView::RoutingUrlFor include ::ActionDispatch::Routing::PolymorphicRoutes - # source://actionpack/8.0.5.1/lib/action_dispatch/routing/url_for.rb#102 - def default_url_options=(val); end - # Returns the URL for the set of +options+ provided. This takes the # same options as +url_for+ in Action Controller (see the # documentation for ActionDispatch::Routing::UrlFor#url_for). Note that by default @@ -14567,102 +12817,85 @@ module ActionView::RoutingUrlFor # # Specify absolute path with beginning slash # # => /users # - # source://actionview//lib/action_view/routing_url_for.rb#82 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:82 def url_for(options = T.unsafe(nil)); end - # source://actionview//lib/action_view/routing_url_for.rb#124 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:124 def url_options; end private - # source://actionview//lib/action_view/routing_url_for.rb#139 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:139 def _generate_paths_by_default; end - # source://actionview//lib/action_view/routing_url_for.rb#130 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:130 def _routes_context; end - # source://actionview//lib/action_view/routing_url_for.rb#143 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:143 def ensure_only_path_option(options); end - # @return [Boolean] - # - # source://actionview//lib/action_view/routing_url_for.rb#134 + # pkg:gem/actionview#lib/action_view/routing_url_for.rb:134 def optimize_routes_generation?; end - - class << self - # source://actionpack/8.0.5.1/lib/action_dispatch/routing/url_for.rb#102 - def default_url_options=(val); end - end end -# source://actionview//lib/action_view/buffers.rb#108 +# pkg:gem/actionview#lib/action_view/buffers.rb:108 class ActionView::StreamingBuffer - # @return [StreamingBuffer] a new instance of StreamingBuffer - # - # source://actionview//lib/action_view/buffers.rb#109 + # pkg:gem/actionview#lib/action_view/buffers.rb:109 def initialize(block); end - # source://actionview//lib/action_view/buffers.rb#113 + # pkg:gem/actionview#lib/action_view/buffers.rb:113 def <<(value); end - # source://actionview//lib/action_view/buffers.rb#113 + # pkg:gem/actionview#lib/action_view/buffers.rb:119 def append=(value); end - # Returns the value of attribute block. - # - # source://actionview//lib/action_view/buffers.rb#147 + # pkg:gem/actionview#lib/action_view/buffers.rb:147 def block; end - # source://actionview//lib/action_view/buffers.rb#126 + # pkg:gem/actionview#lib/action_view/buffers.rb:126 def capture; end - # source://actionview//lib/action_view/buffers.rb#113 + # pkg:gem/actionview#lib/action_view/buffers.rb:118 def concat(value); end - # source://actionview//lib/action_view/buffers.rb#139 + # pkg:gem/actionview#lib/action_view/buffers.rb:139 def html_safe; end - # @return [Boolean] - # - # source://actionview//lib/action_view/buffers.rb#135 + # pkg:gem/actionview#lib/action_view/buffers.rb:135 def html_safe?; end - # source://actionview//lib/action_view/buffers.rb#143 + # pkg:gem/actionview#lib/action_view/buffers.rb:143 def raw; end - # source://actionview//lib/action_view/buffers.rb#121 + # pkg:gem/actionview#lib/action_view/buffers.rb:124 def safe_append=(value); end - # source://actionview//lib/action_view/buffers.rb#121 + # pkg:gem/actionview#lib/action_view/buffers.rb:121 def safe_concat(value); end end -# source://actionview//lib/action_view/flows.rb#30 +# pkg:gem/actionview#lib/action_view/flows.rb:30 class ActionView::StreamingFlow < ::ActionView::OutputFlow - # @return [StreamingFlow] a new instance of StreamingFlow - # - # source://actionview//lib/action_view/flows.rb#31 + # pkg:gem/actionview#lib/action_view/flows.rb:31 def initialize(view, fiber); end # Appends the contents for the given key. This is called # by providing and resuming back to the fiber, # if that's the key it's waiting for. # - # source://actionview//lib/action_view/flows.rb#65 + # pkg:gem/actionview#lib/action_view/flows.rb:65 def append!(key, value); end # Try to get stored content. If the content # is not available and we're inside the layout fiber, # then it will begin waiting for the given key and yield. # - # source://actionview//lib/action_view/flows.rb#43 + # pkg:gem/actionview#lib/action_view/flows.rb:43 def get(key); end private - # @return [Boolean] - # - # source://actionview//lib/action_view/flows.rb#71 + # pkg:gem/actionview#lib/action_view/flows.rb:71 def inside_fiber?; end end @@ -14671,18 +12904,18 @@ end # * Support streaming from child templates, partials and so on. # * Rack::Cache needs to support streaming bodies # -# source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#9 +# pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:12 class ActionView::StreamingTemplateRenderer < ::ActionView::TemplateRenderer # For streaming, instead of rendering a given a template, we return a Body # object that responds to each. This object is initialized with a block # that knows how to render the template. # - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#51 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:51 def render_template(view, template, layout_name = T.unsafe(nil), locals = T.unsafe(nil)); end private - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#63 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:63 def delayed_render(buffer, template, layout, view, locals); end end @@ -14690,61 +12923,53 @@ end # It is initialized with a block that, when called, starts # rendering the template. # -# source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#13 +# pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:13 class ActionView::StreamingTemplateRenderer::Body - # @return [Body] a new instance of Body - # - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#14 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:14 def initialize(&start); end # Returns the complete body as a string. # - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#29 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:29 def body; end - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#18 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:18 def each(&block); end private # This is the same logging logic as in ShowExceptions middleware. # - # source://actionview//lib/action_view/renderer/streaming_template_renderer.rb#37 + # pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:37 def log_error(exception); end end -# source://actionview//lib/action_view/template/error.rb#30 +# pkg:gem/actionview#lib/action_view/template/error.rb:30 class ActionView::StrictLocalsError < ::ArgumentError - # @return [StrictLocalsError] a new instance of StrictLocalsError - # - # source://actionview//lib/action_view/template/error.rb#31 + # pkg:gem/actionview#lib/action_view/template/error.rb:31 def initialize(argument_error, template); end end -# source://actionview//lib/action_view/template/error.rb#256 +# pkg:gem/actionview#lib/action_view/template/error.rb:256 class ActionView::SyntaxErrorInTemplate < ::ActionView::Template::Error - # @return [SyntaxErrorInTemplate] a new instance of SyntaxErrorInTemplate - # - # source://actionview//lib/action_view/template/error.rb#257 + # pkg:gem/actionview#lib/action_view/template/error.rb:257 def initialize(template, offending_code_string); end - # source://actionview//lib/action_view/template/error.rb#268 + # pkg:gem/actionview#lib/action_view/template/error.rb:268 def annotated_source_code; end - # source://actionview//lib/action_view/template/error.rb#262 + # pkg:gem/actionview#lib/action_view/template/error.rb:262 def message; end end # = Action View \Template # -# source://actionview//lib/action_view/template.rb#7 +# pkg:gem/actionview#lib/action_view/template.rb:7 class ActionView::Template extend ::ActiveSupport::Autoload extend ::ActionView::Template::Handlers - # @return [Template] a new instance of Template - # - # source://actionview//lib/action_view/template.rb#199 + # pkg:gem/actionview#lib/action_view/template.rb:199 def initialize(source, identifier, handler, locals:, format: T.unsafe(nil), variant: T.unsafe(nil), virtual_path: T.unsafe(nil)); end # This method is responsible for properly setting the encoding of the @@ -14757,44 +12982,38 @@ class ActionView::Template # before passing the source on to the template engine, leaving a # blank line in its stead. # - # source://actionview//lib/action_view/template.rb#321 + # pkg:gem/actionview#lib/action_view/template.rb:321 def encode!; end - # Returns the value of attribute format. - # - # source://actionview//lib/action_view/template.rb#195 + # pkg:gem/actionview#lib/action_view/template.rb:195 def format; end - # Returns the value of attribute handler. - # - # source://actionview//lib/action_view/template.rb#194 + # pkg:gem/actionview#lib/action_view/template.rb:194 def handler; end - # Returns the value of attribute identifier. - # - # source://actionview//lib/action_view/template.rb#194 + # pkg:gem/actionview#lib/action_view/template.rb:194 def identifier; end - # source://actionview//lib/action_view/template.rb#300 + # pkg:gem/actionview#lib/action_view/template.rb:300 def inspect; end # The locals this template has been or will be compiled for, or nil if this # is a strict locals template. # - # source://actionview//lib/action_view/template.rb#223 + # pkg:gem/actionview#lib/action_view/template.rb:223 def locals; end # Exceptions are marshalled when using the parallel test runner with DRb, so we need # to ensure that references to the template object can be marshalled as well. This means forgoing # the marshalling of the compiler mutex and instantiating that again on unmarshalling. # - # source://actionview//lib/action_view/template.rb#393 + # pkg:gem/actionview#lib/action_view/template.rb:393 def marshal_dump; end - # source://actionview//lib/action_view/template.rb#397 + # pkg:gem/actionview#lib/action_view/template.rb:397 def marshal_load(array); end - # source://actionview//lib/action_view/template.rb#402 + # pkg:gem/actionview#lib/action_view/template.rb:402 def method_name; end # Render a template. If the template was not compiled yet, it is done @@ -14804,16 +13023,16 @@ class ActionView::Template # we use a bang in this instrumentation because you don't want to # consume this in production. This is only slow if it's being listened to. # - # source://actionview//lib/action_view/template.rb#271 + # pkg:gem/actionview#lib/action_view/template.rb:271 def render(view, locals, buffer = T.unsafe(nil), implicit_locals: T.unsafe(nil), add_to_stack: T.unsafe(nil), &block); end - # source://actionview//lib/action_view/template.rb#296 + # pkg:gem/actionview#lib/action_view/template.rb:296 def short_identifier; end - # source://actionview//lib/action_view/template.rb#304 + # pkg:gem/actionview#lib/action_view/template.rb:304 def source; end - # source://actionview//lib/action_view/template.rb#231 + # pkg:gem/actionview#lib/action_view/template.rb:231 def spot(location); end # This method is responsible for marking a template as having strict locals @@ -14826,46 +13045,36 @@ class ActionView::Template # Strict locals are useful for validating template arguments and for # specifying defaults. # - # source://actionview//lib/action_view/template.rb#366 + # pkg:gem/actionview#lib/action_view/template.rb:366 def strict_locals!; end # Returns whether a template is using strict locals. # - # @return [Boolean] - # - # source://actionview//lib/action_view/template.rb#386 + # pkg:gem/actionview#lib/action_view/template.rb:386 def strict_locals?; end # Returns whether the underlying handler supports streaming. If so, # a streaming buffer *may* be passed when it starts rendering. # - # @return [Boolean] - # - # source://actionview//lib/action_view/template.rb#261 + # pkg:gem/actionview#lib/action_view/template.rb:261 def supports_streaming?; end # Translate an error location returned by ErrorHighlight to the correct # source location inside the template. # - # source://actionview//lib/action_view/template.rb#251 + # pkg:gem/actionview#lib/action_view/template.rb:251 def translate_location(backtrace_location, spot); end - # source://actionview//lib/action_view/template.rb#292 + # pkg:gem/actionview#lib/action_view/template.rb:292 def type; end - # Returns the value of attribute variable. - # - # source://actionview//lib/action_view/template.rb#195 + # pkg:gem/actionview#lib/action_view/template.rb:195 def variable; end - # Returns the value of attribute variant. - # - # source://actionview//lib/action_view/template.rb#195 + # pkg:gem/actionview#lib/action_view/template.rb:195 def variant; end - # Returns the value of attribute virtual_path. - # - # source://actionview//lib/action_view/template.rb#195 + # pkg:gem/actionview#lib/action_view/template.rb:195 def virtual_path; end private @@ -14882,54 +13091,54 @@ class ActionView::Template # In general, this means that templates will be UTF-8 inside of Rails, # regardless of the original source encoding. # - # source://actionview//lib/action_view/template.rb#506 + # pkg:gem/actionview#lib/action_view/template.rb:506 def compile(mod); end # Compile a template. This method ensures a template is compiled # just once and removes the source after it is compiled. # - # source://actionview//lib/action_view/template.rb#424 + # pkg:gem/actionview#lib/action_view/template.rb:424 def compile!(view); end # This method compiles the source of the template. The compilation of templates # involves setting strict_locals! if applicable, encoding the template, and setting # frozen string literal. # - # source://actionview//lib/action_view/template.rb#449 + # pkg:gem/actionview#lib/action_view/template.rb:449 def compiled_source; end - # source://actionview//lib/action_view/template.rb#411 + # pkg:gem/actionview#lib/action_view/template.rb:411 def find_node_by_id(node, node_id); end - # source://actionview//lib/action_view/template.rb#555 + # pkg:gem/actionview#lib/action_view/template.rb:555 def handle_render_error(view, e); end - # source://actionview//lib/action_view/template.rb#580 + # pkg:gem/actionview#lib/action_view/template.rb:580 def identifier_method_name; end - # source://actionview//lib/action_view/template.rb#584 + # pkg:gem/actionview#lib/action_view/template.rb:584 def instrument(action, &block); end - # source://actionview//lib/action_view/template.rb#592 + # pkg:gem/actionview#lib/action_view/template.rb:592 def instrument_payload; end - # source://actionview//lib/action_view/template.rb#588 + # pkg:gem/actionview#lib/action_view/template.rb:588 def instrument_render_template(&block); end - # source://actionview//lib/action_view/template.rb#567 + # pkg:gem/actionview#lib/action_view/template.rb:567 def locals_code; end - # source://actionview//lib/action_view/template.rb#547 + # pkg:gem/actionview#lib/action_view/template.rb:547 def offset; end class << self - # source://actionview//lib/action_view/template.rb#180 + # pkg:gem/actionview#lib/action_view/template.rb:180 def frozen_string_literal; end - # source://actionview//lib/action_view/template.rb#180 + # pkg:gem/actionview#lib/action_view/template.rb:180 def frozen_string_literal=(_arg0); end - # source://actionview//lib/action_view/template.rb#184 + # pkg:gem/actionview#lib/action_view/template.rb:184 def mime_types_implementation=(implementation); end end end @@ -14938,95 +13147,89 @@ end # fails. This exception then gathers a bunch of intimate details and uses it to report a # precise exception message. # -# source://actionview//lib/action_view/template/error.rb#165 +# pkg:gem/actionview#lib/action_view/template/error.rb:165 class ActionView::Template::Error < ::ActionView::ActionViewError - # @return [Error] a new instance of Error - # - # source://actionview//lib/action_view/template/error.rb#173 + # pkg:gem/actionview#lib/action_view/template/error.rb:173 def initialize(template); end - # source://actionview//lib/action_view/template/error.rb#231 + # pkg:gem/actionview#lib/action_view/template/error.rb:231 def annotated_source_code; end - # source://actionview//lib/action_view/template/error.rb#182 + # pkg:gem/actionview#lib/action_view/template/error.rb:182 def backtrace; end - # source://actionview//lib/action_view/template/error.rb#186 + # pkg:gem/actionview#lib/action_view/template/error.rb:186 def backtrace_locations; end # Override to prevent #cause resetting during re-raise. # - # source://actionview//lib/action_view/template/error.rb#169 + # pkg:gem/actionview#lib/action_view/template/error.rb:169 def cause; end - # source://actionview//lib/action_view/template/error.rb#190 + # pkg:gem/actionview#lib/action_view/template/error.rb:190 def file_name; end - # source://actionview//lib/action_view/template/error.rb#223 + # pkg:gem/actionview#lib/action_view/template/error.rb:223 def line_number; end - # source://actionview//lib/action_view/template/error.rb#203 + # pkg:gem/actionview#lib/action_view/template/error.rb:203 def source_extract(indentation = T.unsafe(nil)); end - # source://actionview//lib/action_view/template/error.rb#194 + # pkg:gem/actionview#lib/action_view/template/error.rb:194 def sub_template_message; end - # source://actionview//lib/action_view/template/error.rb#218 + # pkg:gem/actionview#lib/action_view/template/error.rb:218 def sub_template_of(template_path); end - # Returns the value of attribute template. - # - # source://actionview//lib/action_view/template/error.rb#171 + # pkg:gem/actionview#lib/action_view/template/error.rb:171 def template; end private - # source://actionview//lib/action_view/template/error.rb#244 + # pkg:gem/actionview#lib/action_view/template/error.rb:244 def formatted_code_for(source_code, line_counter, indent); end - # source://actionview//lib/action_view/template/error.rb#236 + # pkg:gem/actionview#lib/action_view/template/error.rb:236 def source_location; end end -# source://actionview//lib/action_view/template/error.rb#166 +# pkg:gem/actionview#lib/action_view/template/error.rb:166 ActionView::Template::Error::SOURCE_CODE_RADIUS = T.let(T.unsafe(nil), Integer) # = Action View HTML Template # -# source://actionview//lib/action_view/template/html.rb#6 +# pkg:gem/actionview#lib/action_view/template/html.rb:6 class ActionView::Template::HTML - # @return [HTML] a new instance of HTML - # - # source://actionview//lib/action_view/template/html.rb#9 + # pkg:gem/actionview#lib/action_view/template/html.rb:9 def initialize(string, type); end - # source://actionview//lib/action_view/template/html.rb#28 + # pkg:gem/actionview#lib/action_view/template/html.rb:28 def format; end - # source://actionview//lib/action_view/template/html.rb#14 + # pkg:gem/actionview#lib/action_view/template/html.rb:14 def identifier; end - # source://actionview//lib/action_view/template/html.rb#14 + # pkg:gem/actionview#lib/action_view/template/html.rb:18 def inspect; end - # source://actionview//lib/action_view/template/html.rb#24 + # pkg:gem/actionview#lib/action_view/template/html.rb:24 def render(*args); end - # source://actionview//lib/action_view/template/html.rb#20 + # pkg:gem/actionview#lib/action_view/template/html.rb:20 def to_str; end - # source://actionview//lib/action_view/template/html.rb#7 + # pkg:gem/actionview#lib/action_view/template/html.rb:7 def type; end end # = Action View Template Handlers # -# source://actionview//lib/action_view/template/handlers.rb#6 +# pkg:gem/actionview#lib/action_view/template/handlers.rb:6 module ActionView::Template::Handlers - # source://actionview//lib/action_view/template/handlers.rb#61 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:61 def handler_for_extension(extension); end - # source://actionview//lib/action_view/template/handlers.rb#56 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:56 def register_default_template_handler(extension, klass); end # Register an object that knows how to handle template files with the given @@ -15034,127 +13237,119 @@ module ActionView::Template::Handlers # The handler must respond to +:call+, which will be passed the template # and should return the rendered template as a String. # - # @raise [ArgumentError] - # - # source://actionview//lib/action_view/template/handlers.rb#31 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:31 def register_template_handler(*extensions, handler); end - # source://actionview//lib/action_view/template/handlers.rb#52 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:52 def registered_template_handler(extension); end - # source://actionview//lib/action_view/template/handlers.rb#48 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:48 def template_handler_extensions; end # Opposite to register_template_handler. # - # source://actionview//lib/action_view/template/handlers.rb#40 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:40 def unregister_template_handler(*extensions); end class << self - # @private - # - # source://actionview//lib/action_view/template/handlers.rb#12 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:12 def extended(base); end - # source://actionview//lib/action_view/template/handlers.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers.rb:23 def extensions; end end end -# source://actionview//lib/action_view/template/handlers/builder.rb#5 +# pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:5 class ActionView::Template::Handlers::Builder - # source://actionview//lib/action_view/template/handlers/builder.rb#8 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:8 def call(template, source); end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format; end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format=(_arg0); end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format?; end private - # source://actionview//lib/action_view/template/handlers/builder.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:17 def require_engine; end class << self - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format; end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format=(value); end - # source://actionview//lib/action_view/template/handlers/builder.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def default_format?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def __class_attr_default_format; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/builder.rb:6 def __class_attr_default_format=(new_value); end end end -# source://actionview//lib/action_view/template/handlers/erb.rb#9 +# pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:9 class ActionView::Template::Handlers::ERB - # source://actionview//lib/action_view/template/handlers/erb.rb#63 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:63 def call(template, source); end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation; end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation=(_arg0); end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode=(_arg0); end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list=(_arg0); end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list?; end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#37 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:37 def handles_encoding?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines=(_arg0); end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines?; end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#33 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:33 def supports_streaming?; end # Translate an error location returned by ErrorHighlight to the correct # source location inside the template. # - # source://actionview//lib/action_view/template/handlers/erb.rb#43 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:43 def translate_location(spot, backtrace_location, source); end private @@ -15178,406 +13373,350 @@ class ActionView::Template::Handlers::ERB # the current token from looping past the next token if they both # match (i.e. if the current token is a single space character). # - # @raise [LocationParsingError] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#128 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:128 def find_offset(compiled, source_tokens, error_column); end - # source://actionview//lib/action_view/template/handlers/erb.rb#153 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:153 def offset_source_tokens(source_tokens); end - # @raise [WrongEncodingError] - # - # source://actionview//lib/action_view/template/handlers/erb.rb#95 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:95 def valid_encoding(string, encoding); end class << self - # source://actionview//lib/action_view/template/handlers/erb.rb#29 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:29 def call(template, source); end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation; end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation=(value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def erb_implementation?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode; end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode=(value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#14 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def erb_trim_mode?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list; end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list=(value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#20 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def escape_ignore_list?; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines; end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines=(value); end - # source://actionview//lib/action_view/template/handlers/erb.rb#23 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def strip_trailing_newlines?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def __class_attr_erb_implementation; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:17 def __class_attr_erb_implementation=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def __class_attr_erb_trim_mode; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:14 def __class_attr_erb_trim_mode=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def __class_attr_escape_ignore_list; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:20 def __class_attr_escape_ignore_list=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def __class_attr_strip_trailing_newlines; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:23 def __class_attr_strip_trailing_newlines=(new_value); end end end -# source://actionview//lib/action_view/template/handlers/erb.rb#25 +# pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:25 ActionView::Template::Handlers::ERB::ENCODING_TAG = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/template/handlers/erb/erubi.rb#9 +# pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:9 class ActionView::Template::Handlers::ERB::Erubi < ::Erubi::Engine - # @return [Erubi] a new instance of Erubi - # - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#11 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:11 def initialize(input, properties = T.unsafe(nil)); end private - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#65 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:65 def add_code(code); end - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#47 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:47 def add_expression(indicator, code); end - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#70 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:70 def add_postamble(_); end - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#30 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:30 def add_text(text); end - # source://actionview//lib/action_view/template/handlers/erb/erubi.rb#75 + # pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:75 def flush_newline_if_pending(src); end end -# source://actionview//lib/action_view/template/handlers/erb/erubi.rb#45 +# pkg:gem/actionview#lib/action_view/template/handlers/erb/erubi.rb:45 ActionView::Template::Handlers::ERB::Erubi::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/template/handlers/erb.rb#27 +# pkg:gem/actionview#lib/action_view/template/handlers/erb.rb:27 class ActionView::Template::Handlers::ERB::LocationParsingError < ::StandardError; end -# source://actionview//lib/action_view/template/handlers/html.rb#5 +# pkg:gem/actionview#lib/action_view/template/handlers/html.rb:5 class ActionView::Template::Handlers::Html < ::ActionView::Template::Handlers::Raw - # source://actionview//lib/action_view/template/handlers/html.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/html.rb:6 def call(template, source); end end -# source://actionview//lib/action_view/template/handlers/raw.rb#5 +# pkg:gem/actionview#lib/action_view/template/handlers/raw.rb:5 class ActionView::Template::Handlers::Raw - # source://actionview//lib/action_view/template/handlers/raw.rb#6 + # pkg:gem/actionview#lib/action_view/template/handlers/raw.rb:6 def call(template, source); end end -# source://actionview//lib/action_view/template/inline.rb#5 +# pkg:gem/actionview#lib/action_view/template/inline.rb:7 class ActionView::Template::Inline < ::ActionView::Template - # source://actionview//lib/action_view/template/inline.rb#16 + # pkg:gem/actionview#lib/action_view/template/inline.rb:16 def compile(mod); end end # This finalizer is needed (and exactly with a proc inside another proc) # otherwise templates leak in development. # -# source://actionview//lib/action_view/template/inline.rb#8 +# pkg:gem/actionview#lib/action_view/template/inline.rb:8 ActionView::Template::Inline::Finalizer = T.let(T.unsafe(nil), Proc) -# source://actionview//lib/action_view/template.rb#308 +# pkg:gem/actionview#lib/action_view/template.rb:308 ActionView::Template::LEADING_ENCODING_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://actionview//lib/action_view/template.rb#197 +# pkg:gem/actionview#lib/action_view/template.rb:197 ActionView::Template::NONE = T.let(T.unsafe(nil), Object) -# source://actionview//lib/action_view/template.rb#564 +# pkg:gem/actionview#lib/action_view/template.rb:564 ActionView::Template::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) # = Action View RawFile Template # -# source://actionview//lib/action_view/template/raw_file.rb#6 +# pkg:gem/actionview#lib/action_view/template/raw_file.rb:6 class ActionView::Template::RawFile - # @return [RawFile] a new instance of RawFile - # - # source://actionview//lib/action_view/template/raw_file.rb#9 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:9 def initialize(filename); end - # source://actionview//lib/action_view/template/raw_file.rb#7 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:7 def format; end - # source://actionview//lib/action_view/template/raw_file.rb#7 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:7 def format=(_arg0); end - # source://actionview//lib/action_view/template/raw_file.rb#16 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:16 def identifier; end - # source://actionview//lib/action_view/template/raw_file.rb#20 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:20 def render(*args); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template/raw_file.rb#24 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:24 def supports_streaming?; end - # source://actionview//lib/action_view/template/raw_file.rb#7 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:7 def type; end - # source://actionview//lib/action_view/template/raw_file.rb#7 + # pkg:gem/actionview#lib/action_view/template/raw_file.rb:7 def type=(_arg0); end end # = Action View Renderable Template for objects that respond to #render_in # -# source://actionview//lib/action_view/template/renderable.rb#6 +# pkg:gem/actionview#lib/action_view/template/renderable.rb:6 class ActionView::Template::Renderable - # @return [Renderable] a new instance of Renderable - # - # source://actionview//lib/action_view/template/renderable.rb#7 + # pkg:gem/actionview#lib/action_view/template/renderable.rb:7 def initialize(renderable); end - # source://actionview//lib/action_view/template/renderable.rb#25 + # pkg:gem/actionview#lib/action_view/template/renderable.rb:25 def format; end - # source://actionview//lib/action_view/template/renderable.rb#11 + # pkg:gem/actionview#lib/action_view/template/renderable.rb:11 def identifier; end - # source://actionview//lib/action_view/template/renderable.rb#15 + # pkg:gem/actionview#lib/action_view/template/renderable.rb:15 def render(context, *args); end end -# source://actionview//lib/action_view/template.rb#10 +# pkg:gem/actionview#lib/action_view/template.rb:10 ActionView::Template::STRICT_LOCALS_REGEX = T.let(T.unsafe(nil), Regexp) # SimpleType is mostly just a stub implementation for when Action View # is used without Action Dispatch. # -# source://actionview//lib/action_view/template/types.rb#9 +# pkg:gem/actionview#lib/action_view/template/types.rb:9 class ActionView::Template::SimpleType - # @return [SimpleType] a new instance of SimpleType - # - # source://actionview//lib/action_view/template/types.rb#29 + # pkg:gem/actionview#lib/action_view/template/types.rb:29 def initialize(symbol); end - # source://actionview//lib/action_view/template/types.rb#43 + # pkg:gem/actionview#lib/action_view/template/types.rb:43 def ==(type); end - # source://actionview//lib/action_view/template/types.rb#38 + # pkg:gem/actionview#lib/action_view/template/types.rb:38 def ref; end - # Returns the value of attribute symbol. - # - # source://actionview//lib/action_view/template/types.rb#27 + # pkg:gem/actionview#lib/action_view/template/types.rb:27 def symbol; end - # source://actionview//lib/action_view/template/types.rb#33 + # pkg:gem/actionview#lib/action_view/template/types.rb:33 def to_s; end - # source://actionview//lib/action_view/template/types.rb#33 + # pkg:gem/actionview#lib/action_view/template/types.rb:36 def to_str; end - # source://actionview//lib/action_view/template/types.rb#38 + # pkg:gem/actionview#lib/action_view/template/types.rb:41 def to_sym; end class << self - # source://actionview//lib/action_view/template/types.rb#14 + # pkg:gem/actionview#lib/action_view/template/types.rb:14 def [](type); end - # Returns the value of attribute symbols. - # - # source://actionview//lib/action_view/template/types.rb#12 + # pkg:gem/actionview#lib/action_view/template/types.rb:12 def symbols; end - # :nodoc - # - # @return [Boolean] - # - # source://actionview//lib/action_view/template/types.rb#22 + # pkg:gem/actionview#lib/action_view/template/types.rb:22 def valid_symbols?(symbols); end end end -# source://actionview//lib/action_view/template/sources.rb#5 +# pkg:gem/actionview#lib/action_view/template/sources.rb:5 module ActionView::Template::Sources extend ::ActiveSupport::Autoload end -# source://actionview//lib/action_view/template/sources/file.rb#6 +# pkg:gem/actionview#lib/action_view/template/sources/file.rb:6 class ActionView::Template::Sources::File - # @return [File] a new instance of File - # - # source://actionview//lib/action_view/template/sources/file.rb#7 + # pkg:gem/actionview#lib/action_view/template/sources/file.rb:7 def initialize(filename); end - # source://actionview//lib/action_view/template/sources/file.rb#11 + # pkg:gem/actionview#lib/action_view/template/sources/file.rb:11 def to_s; end end # = Action View Text Template # -# source://actionview//lib/action_view/template/text.rb#6 +# pkg:gem/actionview#lib/action_view/template/text.rb:6 class ActionView::Template::Text - # @return [Text] a new instance of Text - # - # source://actionview//lib/action_view/template/text.rb#9 + # pkg:gem/actionview#lib/action_view/template/text.rb:9 def initialize(string); end - # source://actionview//lib/action_view/template/text.rb#27 + # pkg:gem/actionview#lib/action_view/template/text.rb:27 def format; end - # source://actionview//lib/action_view/template/text.rb#13 + # pkg:gem/actionview#lib/action_view/template/text.rb:13 def identifier; end - # source://actionview//lib/action_view/template/text.rb#13 + # pkg:gem/actionview#lib/action_view/template/text.rb:17 def inspect; end - # source://actionview//lib/action_view/template/text.rb#23 + # pkg:gem/actionview#lib/action_view/template/text.rb:23 def render(*args); end - # source://actionview//lib/action_view/template/text.rb#19 + # pkg:gem/actionview#lib/action_view/template/text.rb:19 def to_str; end - # source://actionview//lib/action_view/template/text.rb#7 + # pkg:gem/actionview#lib/action_view/template/text.rb:7 def type; end - # source://actionview//lib/action_view/template/text.rb#7 + # pkg:gem/actionview#lib/action_view/template/text.rb:7 def type=(_arg0); end end -# source://actionview//lib/action_view/template.rb#189 +# pkg:gem/actionview#lib/action_view/template.rb:189 ActionView::Template::Types = Mime -# source://actionview//lib/action_view/template_details.rb#4 +# pkg:gem/actionview#lib/action_view/template_details.rb:4 class ActionView::TemplateDetails - # @return [TemplateDetails] a new instance of TemplateDetails - # - # source://actionview//lib/action_view/template_details.rb#35 + # pkg:gem/actionview#lib/action_view/template_details.rb:35 def initialize(locale, handler, format, variant); end - # Returns the value of attribute format. - # - # source://actionview//lib/action_view/template_details.rb#33 + # pkg:gem/actionview#lib/action_view/template_details.rb:33 def format; end - # source://actionview//lib/action_view/template_details.rb#62 + # pkg:gem/actionview#lib/action_view/template_details.rb:62 def format_or_default; end - # Returns the value of attribute handler. - # - # source://actionview//lib/action_view/template_details.rb#33 + # pkg:gem/actionview#lib/action_view/template_details.rb:33 def handler; end - # source://actionview//lib/action_view/template_details.rb#58 + # pkg:gem/actionview#lib/action_view/template_details.rb:58 def handler_class; end - # Returns the value of attribute locale. - # - # source://actionview//lib/action_view/template_details.rb#33 + # pkg:gem/actionview#lib/action_view/template_details.rb:33 def locale; end - # @return [Boolean] - # - # source://actionview//lib/action_view/template_details.rb#42 + # pkg:gem/actionview#lib/action_view/template_details.rb:42 def matches?(requested); end - # source://actionview//lib/action_view/template_details.rb#49 + # pkg:gem/actionview#lib/action_view/template_details.rb:49 def sort_key_for(requested); end - # Returns the value of attribute variant. - # - # source://actionview//lib/action_view/template_details.rb#33 + # pkg:gem/actionview#lib/action_view/template_details.rb:33 def variant; end end -# source://actionview//lib/action_view/template_details.rb#5 +# pkg:gem/actionview#lib/action_view/template_details.rb:5 class ActionView::TemplateDetails::Requested - # @return [Requested] a new instance of Requested - # - # source://actionview//lib/action_view/template_details.rb#11 + # pkg:gem/actionview#lib/action_view/template_details.rb:11 def initialize(locale:, handlers:, formats:, variants:); end - # Returns the value of attribute formats. - # - # source://actionview//lib/action_view/template_details.rb#6 + # pkg:gem/actionview#lib/action_view/template_details.rb:6 def formats; end - # Returns the value of attribute formats_idx. - # - # source://actionview//lib/action_view/template_details.rb#7 + # pkg:gem/actionview#lib/action_view/template_details.rb:7 def formats_idx; end - # Returns the value of attribute handlers. - # - # source://actionview//lib/action_view/template_details.rb#6 + # pkg:gem/actionview#lib/action_view/template_details.rb:6 def handlers; end - # Returns the value of attribute handlers_idx. - # - # source://actionview//lib/action_view/template_details.rb#7 + # pkg:gem/actionview#lib/action_view/template_details.rb:7 def handlers_idx; end - # Returns the value of attribute locale. - # - # source://actionview//lib/action_view/template_details.rb#6 + # pkg:gem/actionview#lib/action_view/template_details.rb:6 def locale; end - # Returns the value of attribute locale_idx. - # - # source://actionview//lib/action_view/template_details.rb#7 + # pkg:gem/actionview#lib/action_view/template_details.rb:7 def locale_idx; end - # Returns the value of attribute variants. - # - # source://actionview//lib/action_view/template_details.rb#6 + # pkg:gem/actionview#lib/action_view/template_details.rb:6 def variants; end - # Returns the value of attribute variants_idx. - # - # source://actionview//lib/action_view/template_details.rb#7 + # pkg:gem/actionview#lib/action_view/template_details.rb:7 def variants_idx; end private - # source://actionview//lib/action_view/template_details.rb#28 + # pkg:gem/actionview#lib/action_view/template_details.rb:28 def build_idx_hash(arr); end end -# source://actionview//lib/action_view/template_details.rb#9 +# pkg:gem/actionview#lib/action_view/template_details.rb:9 ActionView::TemplateDetails::Requested::ANY_HASH = T.let(T.unsafe(nil), Hash) -# source://actionview//lib/action_view/template/error.rb#254 +# pkg:gem/actionview#lib/action_view/template/error.rb:254 ActionView::TemplateError = ActionView::Template::Error # = Action View \TemplatePath @@ -15588,113 +13727,91 @@ ActionView::TemplateError = ActionView::Template::Error # TemplatePath makes it convenient to convert between separate name, prefix, # partial arguments and the virtual path. # -# source://actionview//lib/action_view/template_path.rb#11 +# pkg:gem/actionview#lib/action_view/template_path.rb:11 class ActionView::TemplatePath - # @return [TemplatePath] a new instance of TemplatePath - # - # source://actionview//lib/action_view/template_path.rb#47 + # pkg:gem/actionview#lib/action_view/template_path.rb:47 def initialize(name, prefix, partial, virtual); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template_path.rb#61 + # pkg:gem/actionview#lib/action_view/template_path.rb:64 def ==(other); end - # @return [Boolean] - # - # source://actionview//lib/action_view/template_path.rb#61 + # pkg:gem/actionview#lib/action_view/template_path.rb:61 def eql?(other); end - # source://actionview//lib/action_view/template_path.rb#57 + # pkg:gem/actionview#lib/action_view/template_path.rb:57 def hash; end - # Returns the value of attribute name. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:12 def name; end - # Returns the value of attribute partial. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:12 def partial; end - # Returns the value of attribute partial. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:13 def partial?; end - # Returns the value of attribute prefix. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:12 def prefix; end - # Returns the value of attribute virtual. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:55 def to_s; end - # Returns the value of attribute virtual. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:54 def to_str; end - # Returns the value of attribute virtual. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:12 def virtual; end - # Returns the value of attribute virtual. - # - # source://actionview//lib/action_view/template_path.rb#12 + # pkg:gem/actionview#lib/action_view/template_path.rb:14 def virtual_path; end class << self # Convert name, prefix, and partial into a TemplatePath # - # source://actionview//lib/action_view/template_path.rb#43 + # pkg:gem/actionview#lib/action_view/template_path.rb:43 def build(name, prefix, partial); end # Build a TemplatePath form a virtual path # - # source://actionview//lib/action_view/template_path.rb#28 + # pkg:gem/actionview#lib/action_view/template_path.rb:28 def parse(virtual); end # Convert name, prefix, and partial into a virtual path string # - # source://actionview//lib/action_view/template_path.rb#17 + # pkg:gem/actionview#lib/action_view/template_path.rb:17 def virtual(name, prefix, partial); end end end -# source://actionview//lib/action_view/renderer/template_renderer.rb#4 +# pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:4 class ActionView::TemplateRenderer < ::ActionView::AbstractRenderer - # source://actionview//lib/action_view/renderer/template_renderer.rb#5 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:5 def render(context, options); end private # Determine the template to be rendered using the given options. # - # source://actionview//lib/action_view/renderer/template_renderer.rb#16 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:16 def determine_template(options); end # This is the method which actually finds the layout using details in the lookup # context object. If no layout is found, it checks if at least a layout with # the given name exists across all details before raising the error. # - # source://actionview//lib/action_view/renderer/template_renderer.rb#88 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:88 def find_layout(layout, keys, formats); end # Renders the given template. A string representing the layout can be # supplied as well. # - # source://actionview//lib/action_view/renderer/template_renderer.rb#58 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:58 def render_template(view, template, layout_name, locals); end - # source://actionview//lib/action_view/renderer/template_renderer.rb#71 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:71 def render_with_layout(view, template, path, locals); end - # source://actionview//lib/action_view/renderer/template_renderer.rb#92 + # pkg:gem/actionview#lib/action_view/renderer/template_renderer.rb:92 def resolve_layout(layout, keys, formats); end end @@ -15703,7 +13820,7 @@ end # Read more about ActionView::TestCase in {Testing Rails Applications}[https://guides.rubyonrails.org/testing.html#testing-view-partials] # in the guides. # -# source://actionview//lib/action_view/test_case.rb#15 +# pkg:gem/actionview#lib/action_view/test_case.rb:15 class ActionView::TestCase < ::ActiveSupport::TestCase include ::ActionDispatch::Assertions::RoutingAssertions include ::ActionDispatch::Assertions::ResponseAssertions @@ -15757,72 +13874,72 @@ class ActionView::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionView::TestCase::Behavior::ClassMethods - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def _helper_methods; end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def _helper_methods=(_arg0); end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def _helper_methods?; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def debug_missing_translation; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def debug_missing_translation=(val); end class << self - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def _helper_methods; end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def _helper_methods=(value); end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#13 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def _helper_methods?; end - # source://actionpack/8.0.5.1/lib/abstract_controller/helpers.rb#17 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def _helpers; end - # source://actionview//lib/action_view/test_case.rb#200 + # pkg:gem/actionview#lib/action_view/test_case.rb:200 def content_class; end - # source://actionview//lib/action_view/test_case.rb#200 + # pkg:gem/actionview#lib/action_view/test_case.rb:200 def content_class=(value); end - # source://actionview//lib/action_view/test_case.rb#200 + # pkg:gem/actionview#lib/action_view/test_case.rb:200 def content_class?; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def debug_missing_translation; end - # source://actionview//lib/action_view/helpers/translation_helper.rb#18 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def debug_missing_translation=(val); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/test_case.rb:202 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/test_case.rb:202 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def __class_attr__helper_methods; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/test_case.rb:446 def __class_attr__helper_methods=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/test_case.rb:200 def __class_attr_content_class; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/test_case.rb:200 def __class_attr_content_class=(new_value); end end end -# source://actionview//lib/action_view/test_case.rb#45 +# pkg:gem/actionview#lib/action_view/test_case.rb:45 module ActionView::TestCase::Behavior include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::TestProcess @@ -15908,98 +14025,70 @@ module ActionView::TestCase::Behavior # assert_pattern { rendered.json => { title: "Hello, world" } } # end # - # source://actionview//lib/action_view/test_case.rb#297 + # pkg:gem/actionview#lib/action_view/test_case.rb:297 def _routes; end - # source://actionview//lib/action_view/test_case.rb#232 + # pkg:gem/actionview#lib/action_view/test_case.rb:232 def config; end - # Returns the value of attribute controller. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def controller; end - # Sets the attribute controller - # - # @param value the value to set the attribute controller to. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def controller=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#62 - def lookup_context(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/test_case.rb:62 + def lookup_context(*, **, &); end - # Returns the value of attribute output_buffer. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def output_buffer; end - # Sets the attribute output_buffer - # - # @param value the value to set the attribute output_buffer to. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def output_buffer=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#236 + # pkg:gem/actionview#lib/action_view/test_case.rb:236 def render(options = T.unsafe(nil), local_assigns = T.unsafe(nil), &block); end - # Returns the value of attribute rendered. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def rendered; end - # Sets the attribute rendered - # - # @param value the value to set the attribute rendered to. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def rendered=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#242 + # pkg:gem/actionview#lib/action_view/test_case.rb:242 def rendered_views; end - # Returns the value of attribute request. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def request; end - # Sets the attribute request - # - # @param value the value to set the attribute request to. - # - # source://actionview//lib/action_view/test_case.rb#63 + # pkg:gem/actionview#lib/action_view/test_case.rb:63 def request=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#220 + # pkg:gem/actionview#lib/action_view/test_case.rb:220 def setup_with_controller; end private - # source://actionview//lib/action_view/test_case.rb#403 + # pkg:gem/actionview#lib/action_view/test_case.rb:403 def _user_defined_ivars; end - # The instance of ActionView::Base that is used by +render+. - # - # source://actionview//lib/action_view/test_case.rb#355 + # pkg:gem/actionview#lib/action_view/test_case.rb:366 def _view; end # Need to experiment if this priority is the best one: rendered => output_buffer # - # source://actionview//lib/action_view/test_case.rb#331 + # pkg:gem/actionview#lib/action_view/test_case.rb:331 def document_root_element; end - # source://actionview//lib/action_view/test_case.rb#417 - def method_missing(selector, *_arg1, **_arg2, &_arg3); end + # pkg:gem/actionview#lib/action_view/test_case.rb:417 + def method_missing(selector, *, **, &); end - # @return [Boolean] - # - # source://actionview//lib/action_view/test_case.rb#433 + # pkg:gem/actionview#lib/action_view/test_case.rb:433 def respond_to_missing?(name, include_private = T.unsafe(nil)); end # The instance of ActionView::Base that is used by +render+. # - # source://actionview//lib/action_view/test_case.rb#355 + # pkg:gem/actionview#lib/action_view/test_case.rb:355 def view; end # Returns a Hash of instance variables and their values, as defined by @@ -16007,7 +14096,7 @@ module ActionView::TestCase::Behavior # rendered. This is generally intended for internal use and extension # frameworks. # - # source://actionview//lib/action_view/test_case.rb#411 + # pkg:gem/actionview#lib/action_view/test_case.rb:411 def view_assigns; end module GeneratedClassMethods @@ -16026,29 +14115,25 @@ module ActionView::TestCase::Behavior end end -# source://actionview//lib/action_view/test_case.rb#65 +# pkg:gem/actionview#lib/action_view/test_case.rb:65 module ActionView::TestCase::Behavior::ClassMethods - # source://actionview//lib/action_view/test_case.rb#164 + # pkg:gem/actionview#lib/action_view/test_case.rb:164 def determine_default_helper_class(name); end - # source://actionview//lib/action_view/test_case.rb#183 + # pkg:gem/actionview#lib/action_view/test_case.rb:183 def helper_class; end - # Sets the attribute helper_class - # - # @param value the value to set the attribute helper_class to. - # - # source://actionview//lib/action_view/test_case.rb#181 + # pkg:gem/actionview#lib/action_view/test_case.rb:181 def helper_class=(_arg0); end - # source://actionview//lib/action_view/test_case.rb#170 + # pkg:gem/actionview#lib/action_view/test_case.rb:170 def helper_method(*methods); end - # source://actionview//lib/action_view/test_case.rb#66 + # pkg:gem/actionview#lib/action_view/test_case.rb:66 def inherited(descendant); end - # source://actionview//lib/action_view/test_case.rb#187 - def new(*_arg0); end + # pkg:gem/actionview#lib/action_view/test_case.rb:187 + def new(*); end # Register a callable to parse rendered content for a given template # format. @@ -16120,220 +14205,184 @@ module ActionView::TestCase::Behavior::ClassMethods # rendered.html.assert_css "h1", text: "Hello, world" # end # - # source://actionview//lib/action_view/test_case.rb#148 + # pkg:gem/actionview#lib/action_view/test_case.rb:148 def register_parser(format, callable = T.unsafe(nil), &block); end - # source://actionview//lib/action_view/test_case.rb#155 + # pkg:gem/actionview#lib/action_view/test_case.rb:155 def tests(helper_class); end private - # source://actionview//lib/action_view/test_case.rb#193 + # pkg:gem/actionview#lib/action_view/test_case.rb:193 def include_helper_modules!; end end -# source://actionview//lib/action_view/test_case.rb#368 +# pkg:gem/actionview#lib/action_view/test_case.rb:368 ActionView::TestCase::Behavior::INTERNAL_IVARS = T.let(T.unsafe(nil), Array) -# source://actionview//lib/action_view/test_case.rb#335 +# pkg:gem/actionview#lib/action_view/test_case.rb:335 module ActionView::TestCase::Behavior::Locals - # source://actionview//lib/action_view/test_case.rb#338 + # pkg:gem/actionview#lib/action_view/test_case.rb:338 def render(options = T.unsafe(nil), local_assigns = T.unsafe(nil)); end - # Returns the value of attribute rendered_views. - # - # source://actionview//lib/action_view/test_case.rb#336 + # pkg:gem/actionview#lib/action_view/test_case.rb:336 def rendered_views; end - # Sets the attribute rendered_views - # - # @param value the value to set the attribute rendered_views to. - # - # source://actionview//lib/action_view/test_case.rb#336 + # pkg:gem/actionview#lib/action_view/test_case.rb:336 def rendered_views=(_arg0); end end -# source://actionview//lib/action_view/test_case.rb#301 +# pkg:gem/actionview#lib/action_view/test_case.rb:301 class ActionView::TestCase::Behavior::RenderedViewContent < ::String - # source://actionview//lib/action_view/test_case.rb#150 + # pkg:gem/actionview#lib/action_view/test_case.rb:150 def html; end - # source://actionview//lib/action_view/test_case.rb#150 + # pkg:gem/actionview#lib/action_view/test_case.rb:150 def json; end end -# source://actionview//lib/action_view/test_case.rb#304 +# pkg:gem/actionview#lib/action_view/test_case.rb:304 class ActionView::TestCase::Behavior::RenderedViewsCollection - # @return [RenderedViewsCollection] a new instance of RenderedViewsCollection - # - # source://actionview//lib/action_view/test_case.rb#305 + # pkg:gem/actionview#lib/action_view/test_case.rb:305 def initialize; end - # source://actionview//lib/action_view/test_case.rb#309 + # pkg:gem/actionview#lib/action_view/test_case.rb:309 def add(view, locals); end - # source://actionview//lib/action_view/test_case.rb#314 + # pkg:gem/actionview#lib/action_view/test_case.rb:314 def locals_for(view); end - # source://actionview//lib/action_view/test_case.rb#318 + # pkg:gem/actionview#lib/action_view/test_case.rb:318 def rendered_views; end - # @return [Boolean] - # - # source://actionview//lib/action_view/test_case.rb#322 + # pkg:gem/actionview#lib/action_view/test_case.rb:322 def view_rendered?(view, expected_locals); end end -# source://actionview//lib/action_view/test_case.rb#0 +# pkg:gem/actionview#lib/action_view/test_case.rb:446 module ActionView::TestCase::HelperMethods - # source://actionview//lib/action_view/test_case.rb#214 + # pkg:gem/actionview#lib/action_view/test_case.rb:214 def _test_case; end - # source://actionview//lib/action_view/test_case.rb#210 + # pkg:gem/actionview#lib/action_view/test_case.rb:210 def protect_against_forgery?; end end -# source://actionview//lib/action_view/test_case.rb#16 +# pkg:gem/actionview#lib/action_view/test_case.rb:16 class ActionView::TestCase::TestController < ::ActionController::Base include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::TestProcess - # @return [TestController] a new instance of TestController - # - # source://actionview//lib/action_view/test_case.rb#34 + # pkg:gem/actionview#lib/action_view/test_case.rb:34 def initialize; end - # source://actionview//lib/action_view/test_case.rb#26 + # pkg:gem/actionview#lib/action_view/test_case.rb:26 def controller_path=(path); end - # Returns the value of attribute params. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def params; end - # Sets the attribute params - # - # @param value the value to set the attribute params to. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def params=(_arg0); end - # Returns the value of attribute request. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def request; end - # Sets the attribute request - # - # @param value the value to set the attribute request to. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def request=(_arg0); end - # Returns the value of attribute response. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def response; end - # Sets the attribute response - # - # @param value the value to set the attribute response to. - # - # source://actionview//lib/action_view/test_case.rb#19 + # pkg:gem/actionview#lib/action_view/test_case.rb:19 def response=(_arg0); end private - # source://actionview//lib/action_view/layouts.rb#328 + # pkg:gem/actionview#lib/action_view/test_case.rb:16 def _layout(lookup_context, formats, keys); end class << self - # source://actionview//lib/action_view/test_case.rb#30 + # pkg:gem/actionview#lib/action_view/test_case.rb:30 def controller_name; end # Overrides AbstractController::Base#controller_path # - # source://actionview//lib/action_view/test_case.rb#23 + # pkg:gem/actionview#lib/action_view/test_case.rb:23 def controller_path; end # Overrides AbstractController::Base#controller_path # - # source://actionview//lib/action_view/test_case.rb#23 + # pkg:gem/actionview#lib/action_view/test_case.rb:23 def controller_path=(_arg0); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/actionview#lib/action_view/test_case.rb:16 def __class_attr_middleware_stack; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/actionview#lib/action_view/test_case.rb:16 def __class_attr_middleware_stack=(new_value); end end end -# source://actionview//lib/action_view/unbound_template.rb#6 +# pkg:gem/actionview#lib/action_view/unbound_template.rb:6 class ActionView::UnboundTemplate - # @return [UnboundTemplate] a new instance of UnboundTemplate - # - # source://actionview//lib/action_view/unbound_template.rb#10 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:10 def initialize(source, identifier, details:, virtual_path:); end - # source://actionview//lib/action_view/unbound_template.rb#20 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:20 def bind_locals(locals); end - # source://actionview//lib/action_view/unbound_template.rb#44 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:44 def built_templates; end - # Returns the value of attribute details. - # - # source://actionview//lib/action_view/unbound_template.rb#7 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:7 def details; end - # source://actionview//lib/action_view/unbound_template.rb#8 - def format(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/unbound_template.rb:8 + def format(*, **, &); end - # source://actionview//lib/action_view/unbound_template.rb#8 - def handler(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/unbound_template.rb:8 + def handler(*, **, &); end - # source://actionview//lib/action_view/unbound_template.rb#8 - def locale(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/unbound_template.rb:8 + def locale(*, **, &); end - # source://actionview//lib/action_view/unbound_template.rb#8 - def variant(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/unbound_template.rb:8 + def variant(*, **, &); end - # Returns the value of attribute virtual_path. - # - # source://actionview//lib/action_view/unbound_template.rb#7 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:7 def virtual_path; end private - # source://actionview//lib/action_view/unbound_template.rb#49 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:49 def build_template(locals); end - # source://actionview//lib/action_view/unbound_template.rb#63 + # pkg:gem/actionview#lib/action_view/unbound_template.rb:63 def normalize_locals(locals); end end -# source://actionview//lib/action_view/gem_version.rb#9 +# pkg:gem/actionview#lib/action_view/gem_version.rb:9 module ActionView::VERSION; end -# source://actionview//lib/action_view/gem_version.rb#10 +# pkg:gem/actionview#lib/action_view/gem_version.rb:10 ActionView::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://actionview//lib/action_view/gem_version.rb#11 +# pkg:gem/actionview#lib/action_view/gem_version.rb:11 ActionView::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://actionview//lib/action_view/gem_version.rb#13 +# pkg:gem/actionview#lib/action_view/gem_version.rb:13 ActionView::VERSION::PRE = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/gem_version.rb#15 +# pkg:gem/actionview#lib/action_view/gem_version.rb:15 ActionView::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://actionview//lib/action_view/gem_version.rb#12 +# pkg:gem/actionview#lib/action_view/gem_version.rb:12 ActionView::VERSION::TINY = T.let(T.unsafe(nil), Integer) -# source://actionview//lib/action_view/view_paths.rb#4 +# pkg:gem/actionview#lib/action_view/view_paths.rb:4 module ActionView::ViewPaths extend ::ActiveSupport::Concern @@ -16341,11 +14390,11 @@ module ActionView::ViewPaths # The prefixes used in render "foo" shortcuts. # - # source://actionview//lib/action_view/view_paths.rb#81 + # pkg:gem/actionview#lib/action_view/view_paths.rb:81 def _prefixes; end - # source://actionview//lib/action_view/view_paths.rb#11 - def any_templates?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 + def any_templates?(*, **, &); end # Append a path to the list of view paths for the current LookupContext. # @@ -16354,29 +14403,29 @@ module ActionView::ViewPaths # the default view path. You may also provide a custom view path # (see ActionView::PathSet for more information) # - # source://actionview//lib/action_view/view_paths.rb#103 + # pkg:gem/actionview#lib/action_view/view_paths.rb:103 def append_view_path(path); end - # source://actionview//lib/action_view/view_paths.rb#93 + # pkg:gem/actionview#lib/action_view/view_paths.rb:93 def details_for_lookup; end - # source://actionview//lib/action_view/view_paths.rb#11 - def formats(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 + def formats(*, **, &); end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def formats=(arg); end - # source://actionview//lib/action_view/view_paths.rb#11 - def locale(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 + def locale(*, **, &); end - # source://actionview//lib/action_view/view_paths.rb#11 + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 def locale=(arg); end # LookupContext is the object responsible for holding all # information required for looking up templates, i.e. view paths and # details. Check ActionView::LookupContext for more information. # - # source://actionview//lib/action_view/view_paths.rb#88 + # pkg:gem/actionview#lib/action_view/view_paths.rb:88 def lookup_context; end # Prepend a path to the list of view paths for the current LookupContext. @@ -16386,28 +14435,28 @@ module ActionView::ViewPaths # the default view path. You may also provide a custom view path # (see ActionView::PathSet for more information) # - # source://actionview//lib/action_view/view_paths.rb#113 + # pkg:gem/actionview#lib/action_view/view_paths.rb:113 def prepend_view_path(path); end - # source://actionview//lib/action_view/view_paths.rb#11 - def template_exists?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 + def template_exists?(*, **, &); end - # source://actionview//lib/action_view/view_paths.rb#11 - def view_paths(*_arg0, **_arg1, &_arg2); end + # pkg:gem/actionview#lib/action_view/view_paths.rb:11 + def view_paths(*, **, &); end end -# source://actionview//lib/action_view/view_paths.rb#14 +# pkg:gem/actionview#lib/action_view/view_paths.rb:14 module ActionView::ViewPaths::ClassMethods - # source://actionview//lib/action_view/view_paths.rb#31 + # pkg:gem/actionview#lib/action_view/view_paths.rb:31 def _build_view_paths(paths); end - # source://actionview//lib/action_view/view_paths.rb#23 + # pkg:gem/actionview#lib/action_view/view_paths.rb:23 def _prefixes; end - # source://actionview//lib/action_view/view_paths.rb#15 + # pkg:gem/actionview#lib/action_view/view_paths.rb:15 def _view_paths; end - # source://actionview//lib/action_view/view_paths.rb#19 + # pkg:gem/actionview#lib/action_view/view_paths.rb:19 def _view_paths=(paths); end # Append a path to the list of view paths for this controller. @@ -16417,7 +14466,7 @@ module ActionView::ViewPaths::ClassMethods # the default view path. You may also provide a custom view path # (see ActionView::PathSet for more information) # - # source://actionview//lib/action_view/view_paths.rb#44 + # pkg:gem/actionview#lib/action_view/view_paths.rb:44 def append_view_path(path); end # Prepend a path to the list of view paths for this controller. @@ -16427,12 +14476,12 @@ module ActionView::ViewPaths::ClassMethods # the default view path. You may also provide a custom view path # (see ActionView::PathSet for more information) # - # source://actionview//lib/action_view/view_paths.rb#54 + # pkg:gem/actionview#lib/action_view/view_paths.rb:54 def prepend_view_path(path); end # A list of all of the default view paths for this controller. # - # source://actionview//lib/action_view/view_paths.rb#59 + # pkg:gem/actionview#lib/action_view/view_paths.rb:59 def view_paths; end # Set the view paths. @@ -16441,7 +14490,7 @@ module ActionView::ViewPaths::ClassMethods # * paths - If a PathSet is provided, use that; # otherwise, process the parameter into a PathSet. # - # source://actionview//lib/action_view/view_paths.rb#68 + # pkg:gem/actionview#lib/action_view/view_paths.rb:68 def view_paths=(paths); end private @@ -16449,27 +14498,15 @@ module ActionView::ViewPaths::ClassMethods # Override this method in your controller if you want to change paths prefixes for finding views. # Prefixes defined here will still be added to parents' ._prefixes. # - # source://actionview//lib/action_view/view_paths.rb#75 + # pkg:gem/actionview#lib/action_view/view_paths.rb:75 def local_prefixes; end end -# source://actionview//lib/action_view/template/error.rb#14 +# pkg:gem/actionview#lib/action_view/template/error.rb:14 class ActionView::WrongEncodingError < ::ActionView::EncodingError - # @return [WrongEncodingError] a new instance of WrongEncodingError - # - # source://actionview//lib/action_view/template/error.rb#15 + # pkg:gem/actionview#lib/action_view/template/error.rb:15 def initialize(string, encoding); end - # source://actionview//lib/action_view/template/error.rb#19 + # pkg:gem/actionview#lib/action_view/template/error.rb:19 def message; end end - -module ERB::Escape - private - - def html_escape(_arg0); end - - class << self - def html_escape(_arg0); end - end -end diff --git a/sorbet/rbi/gems/active_model_serializers@0.10.15.rbi b/sorbet/rbi/gems/active_model_serializers@0.10.15.rbi deleted file mode 100644 index ac7ee902..00000000 --- a/sorbet/rbi/gems/active_model_serializers@0.10.15.rbi +++ /dev/null @@ -1,5029 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `active_model_serializers` gem. -# Please instead update this file by running `bin/tapioca gem active_model_serializers`. - - -# source://active_model_serializers//lib/action_controller/serialization.rb#6 -module ActionController - class << self - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#7 - def add_renderer(key, &block); end - - # source://actionpack/8.0.2.1/lib/action_controller/deprecator.rb#6 - def deprecator; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#12 - def remove_renderer(key); end - end -end - -class ActionController::API < ::ActionController::Metal - include ::ActionDispatch::Routing::PolymorphicRoutes - include ::ActionController::Head - include ::AbstractController::Caching::ConfigMethods - include ::Rollbar::RequestDataExtractor - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#924 - def _process_action_callbacks; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers?; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#912 - def _run_process_action_callbacks(&block); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope; end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope=(_arg0); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope?; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies=(_arg0); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def default_static_extension; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def default_static_extension=(value); end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options; end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def enable_fragment_cache_logging; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def enable_fragment_cache_logging=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers?; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys=(_arg0); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def logger; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def logger=(value); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#22 - def namespace_for_serializer=(_arg0); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def perform_caching; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def perform_caching=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions=(val); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects=(val); end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers=(_arg0); end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - class << self - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#916 - def _process_action_callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#920 - def _process_action_callbacks=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers?; end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope; end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope=(value); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope?; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def default_static_extension; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def default_static_extension=(value); end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options; end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options=(value); end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def enable_fragment_cache_logging; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def enable_fragment_cache_logging=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers?; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def logger; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def logger=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def perform_caching; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def perform_caching=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions=(val); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects=(val); end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - # source://actionpack/8.0.2.1/lib/action_controller/api.rb#107 - def without_modules(*modules); end - - private - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__renderers; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__renderers=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__serialization_scope; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__serialization_scope=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__view_cache_dependencies; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__view_cache_dependencies=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__wrapper_options; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__wrapper_options=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_url_options; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_url_options=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_etaggers; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_etaggers=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_fragment_cache_keys; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_fragment_cache_keys=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -class ActionController::Base < ::ActionController::Metal - include ::ActionDispatch::Routing::PolymorphicRoutes - include ::ActionController::Head - include ::AbstractController::Caching::ConfigMethods - include ::ActionController::BasicImplicitRender - include ::Rollbar::RequestDataExtractor - extend ::AbstractController::Helpers::Resolution - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods=(_arg0); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods?; end - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#212 - def _layout_conditions; end - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#212 - def _layout_conditions?; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#924 - def _process_action_callbacks; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers?; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#912 - def _run_process_action_callbacks(&block); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope; end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope=(_arg0); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope?; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies=(_arg0); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/flash.rb#38 - def alert; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def allow_forgery_protection; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def allow_forgery_protection=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def asset_host; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def asset_host=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def assets_dir; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def assets_dir=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def csrf_token_storage_strategy; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def csrf_token_storage_strategy=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def default_asset_host_protocol; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def default_asset_host_protocol=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def default_static_extension; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def default_static_extension=(value); end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options; end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def enable_fragment_cache_logging; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def enable_fragment_cache_logging=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/flash.rb#12 - def flash(*_arg0, **_arg1, &_arg2); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def forgery_protection_origin_check; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def forgery_protection_origin_check=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def forgery_protection_strategy; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def forgery_protection_strategy=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys=(_arg0); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def javascripts_dir; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def javascripts_dir=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def log_warning_on_csrf_failure; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def log_warning_on_csrf_failure=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def logger; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def logger=(value); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#22 - def namespace_for_serializer=(_arg0); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/flash.rb#38 - def notice; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def per_form_csrf_tokens; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def per_form_csrf_tokens=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def perform_caching; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def perform_caching=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions=(val); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects=(val); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def relative_url_root; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def relative_url_root=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def request_forgery_protection_token; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def request_forgery_protection_token=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers=(_arg0); end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def stylesheets_dir; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def stylesheets_dir=(value); end - - private - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - # source://actionpack/8.0.2.1/lib/action_controller/base.rb#324 - def _protected_ivars; end - - class << self - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/form_builder.rb#35 - def _default_form_builder; end - - # source://actionpack/8.0.2.1/lib/action_controller/form_builder.rb#35 - def _default_form_builder=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/form_builder.rb#35 - def _default_form_builder?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/flash.rb#10 - def _flash_types; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/flash.rb#10 - def _flash_types=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/flash.rb#10 - def _flash_types?; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/helpers.rb#13 - def _helper_methods?; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/helpers.rb#17 - def _helpers; end - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#211 - def _layout; end - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#211 - def _layout=(value); end - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#211 - def _layout?; end - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#212 - def _layout_conditions; end - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#212 - def _layout_conditions=(value); end - - # source://actionview/8.0.2.1/lib/action_view/layouts.rb#212 - def _layout_conditions?; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#916 - def _process_action_callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#920 - def _process_action_callbacks=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/renderers.rb#31 - def _renderers?; end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope; end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope=(value); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#19 - def _serialization_scope?; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching.rb#44 - def _view_cache_dependencies?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/params_wrapper.rb#185 - def _wrapper_options?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def allow_forgery_protection; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def allow_forgery_protection=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def asset_host; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def asset_host=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def assets_dir; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def assets_dir=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def csrf_token_storage_strategy; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def csrf_token_storage_strategy=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def default_asset_host_protocol; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def default_asset_host_protocol=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def default_static_extension; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def default_static_extension=(value); end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options; end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options=(value); end - - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/url_for.rb#100 - def default_url_options?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def enable_fragment_cache_logging; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def enable_fragment_cache_logging=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/etag_with_template_digest.rb#31 - def etag_with_template_digest?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/conditional_get.rb#15 - def etaggers?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def forgery_protection_origin_check; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def forgery_protection_origin_check=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def forgery_protection_strategy; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def forgery_protection_strategy=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/caching/fragments.rb#26 - def fragment_cache_keys?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#70 - def helpers_path?; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/helpers.rb#71 - def include_all_helpers?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def javascripts_dir; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def javascripts_dir=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def log_warning_on_csrf_failure; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def log_warning_on_csrf_failure=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def logger; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def logger=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def per_form_csrf_tokens; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def per_form_csrf_tokens=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def perform_caching; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def perform_caching=(value); end - - # source://actionpack/8.0.2.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions; end - - # source://actionpack/8.0.2.1/lib/abstract_controller/callbacks.rb#36 - def raise_on_missing_callback_actions=(val); end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects; end - - # source://actionpack/8.0.2.1/lib/action_controller/metal/redirecting.rb#17 - def raise_on_open_redirects=(val); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def relative_url_root; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def relative_url_root=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def request_forgery_protection_token; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def request_forgery_protection_token=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers; end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/rescuable.rb#15 - def rescue_handlers?; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#115 - def stylesheets_dir; end - - # source://activesupport/8.0.2.1/lib/active_support/configurable.rb#116 - def stylesheets_dir=(value); end - - # source://actionpack/8.0.2.1/lib/action_controller/base.rb#222 - def without_modules(*modules); end - - private - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__default_form_builder; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__default_form_builder=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__flash_types; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__flash_types=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__helper_methods; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__helper_methods=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__layout; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__layout=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__layout_conditions; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__layout_conditions=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__renderers; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__renderers=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__serialization_scope; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__serialization_scope=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__view_cache_dependencies; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__view_cache_dependencies=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__wrapper_options; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__wrapper_options=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_url_options; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_url_options=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_etag_with_template_digest; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_etag_with_template_digest=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_etaggers; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_etaggers=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_fragment_cache_keys; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_fragment_cache_keys=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_helpers_path; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_helpers_path=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_include_all_helpers; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_include_all_helpers=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -# source://active_model_serializers//lib/action_controller/serialization.rb#7 -module ActionController::Serialization - extend ::ActiveSupport::Concern - include GeneratedInstanceMethods - include ::ActionController::Renderers - - mixes_in_class_methods GeneratedClassMethods - mixes_in_class_methods ::ActionController::Renderers::ClassMethods - mixes_in_class_methods ::ActionController::Serialization::ClassMethods - - # source://active_model_serializers//lib/action_controller/serialization.rb#67 - def _render_option_json(resource, options); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#67 - def _render_with_renderer_json(resource, options); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#43 - def get_serializer(resource, options = T.unsafe(nil)); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#29 - def namespace_for_class(klass); end - - # source://active_model_serializers//lib/action_controller/serialization.rb#25 - def namespace_for_serializer; end - - # source://active_model_serializers//lib/action_controller/serialization.rb#37 - def serialization_scope; end - - # Deprecated - # - # @return [Boolean] - # - # source://active_model_serializers//lib/action_controller/serialization.rb#62 - def use_adapter?; end - - module GeneratedClassMethods - def _renderers; end - def _renderers=(value); end - def _renderers?; end - def _serialization_scope; end - def _serialization_scope=(value); end - def _serialization_scope?; end - end - - module GeneratedInstanceMethods - def _renderers; end - def _renderers=(value); end - def _renderers?; end - def _serialization_scope; end - def _serialization_scope=(value); end - def _serialization_scope?; end - end -end - -# source://active_model_serializers//lib/action_controller/serialization.rb#12 -module ActionController::Serialization::ClassMethods - # source://active_model_serializers//lib/action_controller/serialization.rb#13 - def serialization_scope(scope); end -end - -# ActiveModel::Serializer is an abstract class that is -# reified when subclassed to decorate a resource. -# -# source://active_model_serializers//lib/active_model/serializer/version.rb#3 -module ActiveModel - class << self - # source://activemodel/8.0.2.1/lib/active_model/deprecator.rb#4 - def deprecator; end - - # source://activemodel/8.0.2.1/lib/active_model.rb#76 - def eager_load!; end - - # source://activemodel/8.0.2.1/lib/active_model/gem_version.rb#5 - def gem_version; end - - # source://activemodel/8.0.2.1/lib/active_model/version.rb#7 - def version; end - end -end - -# source://active_model_serializers//lib/active_model/serializable_resource.rb#6 -class ActiveModel::SerializableResource - class << self - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#49 - def _deprecated_new(*_arg0, **_arg1, &_arg2); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def new(*args, &block); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/version.rb#4 -class ActiveModel::Serializer - include ::ActiveSupport::Configurable - include ::ActiveModel::Serializer::Caching - extend ::ActiveSupport::Autoload - extend ::ActiveSupport::Configurable::ClassMethods - extend ::ActiveModel::Serializer::Caching::ClassMethods - - # `scope_name` is set as :current_user by default in the controller. - # If the instance does not have a method named `scope_name`, it - # defines the method so that it calls the +scope+. - # - # @return [Serializer] a new instance of Serializer - # - # source://active_model_serializers//lib/active_model/serializer.rb#319 - def initialize(object, options = T.unsafe(nil)); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _links; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _links?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _meta; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _meta?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _reflections; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _reflections?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _type; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _type?; end - - # @see #serializable_hash - # - # source://active_model_serializers//lib/active_model/serializer.rb#380 - def as_json(adapter_opts = T.unsafe(nil)); end - - # @param include_directive [JSONAPI::IncludeDirective] (defaults to the - # +default_include_directive+ config value when not provided) - # @return [Enumerator] - # - # source://active_model_serializers//lib/active_model/serializer.rb#348 - def associations(include_directive = T.unsafe(nil), include_slice = T.unsafe(nil)); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer.rb#414 - def associations_hash(adapter_options, options, adapter_instance); end - - # Return the +attributes+ of +object+ as presented - # by the serializer. - # - # source://active_model_serializers//lib/active_model/serializer.rb#336 - def attributes(requested_attrs = T.unsafe(nil), reload = T.unsafe(nil)); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer.rb#403 - def attributes_hash(_adapter_options, options, adapter_instance); end - - # Used by adapter as resource root. - # - # source://active_model_serializers//lib/active_model/serializer.rb#385 - def json_key; end - - # END SERIALIZER MACROS - # - # source://active_model_serializers//lib/active_model/serializer.rb#314 - def object; end - - # END SERIALIZER MACROS - # - # source://active_model_serializers//lib/active_model/serializer.rb#314 - def object=(_arg0); end - - # source://active_model_serializers//lib/active_model/serializer.rb#394 - def read_attribute_for_serialization(attr); end - - # END SERIALIZER MACROS - # - # source://active_model_serializers//lib/active_model/serializer.rb#314 - def root; end - - # END SERIALIZER MACROS - # - # source://active_model_serializers//lib/active_model/serializer.rb#314 - def root=(_arg0); end - - # END SERIALIZER MACROS - # - # source://active_model_serializers//lib/active_model/serializer.rb#314 - def scope; end - - # END SERIALIZER MACROS - # - # source://active_model_serializers//lib/active_model/serializer.rb#314 - def scope=(_arg0); end - - # associations, similar to how ActiveModel::Serializers::JSON is used - # in ActiveRecord::Base. - # - # @return [Hash] containing the attributes and first level - # - # source://active_model_serializers//lib/active_model/serializer.rb#366 - def serializable_hash(adapter_options = T.unsafe(nil), options = T.unsafe(nil), adapter_instance = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer.rb#330 - def success?; end - - # associations, similar to how ActiveModel::Serializers::JSON is used - # in ActiveRecord::Base. - # - # @return [Hash] containing the attributes and first level - # - # source://active_model_serializers//lib/active_model/serializer.rb#366 - def to_h(adapter_options = T.unsafe(nil), options = T.unsafe(nil), adapter_instance = T.unsafe(nil)); end - - # associations, similar to how ActiveModel::Serializers::JSON is used - # in ActiveRecord::Base. - # - # @return [Hash] containing the attributes and first level - # - # source://active_model_serializers//lib/active_model/serializer.rb#366 - def to_hash(adapter_options = T.unsafe(nil), options = T.unsafe(nil), adapter_instance = T.unsafe(nil)); end - - protected - - # Returns the value of attribute instance_options. - # - # source://active_model_serializers//lib/active_model/serializer.rb#425 - def instance_options; end - - # Sets the attribute instance_options - # - # @param value the value to set the attribute instance_options to. - # - # source://active_model_serializers//lib/active_model/serializer.rb#425 - def instance_options=(_arg0); end - - # Returns the value of attribute instance_reflections. - # - # source://active_model_serializers//lib/active_model/serializer.rb#425 - def instance_reflections; end - - # Sets the attribute instance_reflections - # - # @param value the value to set the attribute instance_reflections to. - # - # source://active_model_serializers//lib/active_model/serializer.rb#425 - def instance_reflections=(_arg0); end - - class << self - # @return [Array] Key names of declared attributes - # @see Serializer::attribute - # - # source://active_model_serializers//lib/active_model/serializer.rb#197 - def _attributes; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _attributes_data; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _attributes_data=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _attributes_data?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_digest_file_path; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_digest_file_path=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_digest_file_path?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_except; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_except=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_except?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_key; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_key=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_key?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_only; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_only=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_only?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_options; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_options=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _cache_options?; end - - # source://active_model_serializers//lib/active_model/serializer.rb#56 - def _deprecated_adapter; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _links; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _links=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _links?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _meta; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _meta=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _meta?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _reflections; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _reflections=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _reflections?; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _type; end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _type=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/option_merger.rb#28 - def _type?; end - - # Deprecated - # - # @see ActiveModelSerializers::Adapter.lookup - # - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def adapter(*args, &block); end - - # @example - # class AdminAuthorSerializer < ActiveModel::Serializer - # attributes :id, :recent_edits - # attribute :name, key: :title - # - # attribute :full_name do - # "#{object.first_name} #{object.last_name}" - # end - # - # def recent_edits - # object.edits.last(5) - # end - # - # source://active_model_serializers//lib/active_model/serializer.rb#226 - def attribute(attr, options = T.unsafe(nil), &block); end - - # @example - # class AdminAuthorSerializer < ActiveModel::Serializer - # attributes :id, :name, :recent_edits - # - # source://active_model_serializers//lib/active_model/serializer.rb#206 - def attributes(*attrs); end - - # @example - # belongs_to :author, serializer: AuthorSerializer - # @param name [Symbol] of the association - # @param options [Hash any>] for the reflection - # @return [void] - # - # source://active_model_serializers//lib/active_model/serializer.rb#249 - def belongs_to(name, options = T.unsafe(nil), &block); end - - # Find a serializer from a class and caches the lookup. - # Preferentially returns: - # 1. class name appended with "Serializer" - # 2. try again with superclass, if present - # 3. nil - # - # @api private - # - # source://active_model_serializers//lib/active_model/serializer.rb#84 - def get_serializer_for(klass, namespace = T.unsafe(nil)); end - - # @example - # has_many :comments, serializer: CommentSummarySerializer - # @param name [Symbol] of the association - # @param options [Hash any>] for the reflection - # @return [void] - # - # source://active_model_serializers//lib/active_model/serializer.rb#238 - def has_many(name, options = T.unsafe(nil), &block); end - - # @example - # has_one :author, serializer: AuthorSerializer - # @param name [Symbol] of the association - # @param options [Hash any>] for the reflection - # @return [void] - # - # source://active_model_serializers//lib/active_model/serializer.rb#260 - def has_one(name, options = T.unsafe(nil), &block); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer.rb#104 - def include_directive_from_options(options); end - - # @private - # - # source://active_model_serializers//lib/active_model/serializer.rb#188 - def inherited(base); end - - # Define a link on a serializer. - # - # @example - # link(:self) { resource_url(object) } - # @example - # link(:self) { "http://example.com/resource/#{object.id}" } - # @example - # link :resource, "http://example.com/resource" - # @example - # link(:callback, if: :internal?), { "http://example.com/callback" } - # - # source://active_model_serializers//lib/active_model/serializer.rb#285 - def link(name, *args, &block); end - - # Set the JSON API meta attribute of a serializer. - # - # @example - # class AdminAuthorSerializer < ActiveModel::Serializer - # meta { stuff: 'value' } - # @example - # meta do - # { comment_count: object.comments.count } - # end - # - # source://active_model_serializers//lib/active_model/serializer.rb#300 - def meta(value = T.unsafe(nil), &block); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer.rb#115 - def serialization_adapter_instance; end - - # @param resource [ActiveRecord::Base, ActiveModelSerializers::Model] - # @return [ActiveModel::Serializer] Preferentially returns - # 1. resource.serializer_class - # 2. ArraySerializer when resource is a collection - # 3. options[:serializer] - # 4. lookup serializer when resource is a Class - # - # source://active_model_serializers//lib/active_model/serializer.rb#43 - def serializer_for(resource_or_class, options = T.unsafe(nil)); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer.rb#65 - def serializer_lookup_chain_for(klass, namespace = T.unsafe(nil)); end - - # Used to cache serializer name => serializer class - # when looked up by Serializer.get_serializer_for. - # - # source://active_model_serializers//lib/active_model/serializer.rb#74 - def serializers_cache; end - - # Set the JSON API type of a serializer. - # - # @example - # class AdminAuthorSerializer < ActiveModel::Serializer - # type 'authors' - # - # source://active_model_serializers//lib/active_model/serializer.rb#308 - def type(type); end - - private - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__attributes_data; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__attributes_data=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__cache; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__cache=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__cache_digest_file_path; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__cache_digest_file_path=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__cache_except; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__cache_except=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__cache_key; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__cache_key=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__cache_only; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__cache_only=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__cache_options; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__cache_options=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__links; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__links=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__meta; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__meta=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__reflections; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__type; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__type=(new_value); end - - # Add reflection and define {name} accessor. - # - # @api private - # @param reflection [ActiveModel::Serializer::Reflection] - # @return [void] - # - # source://active_model_serializers//lib/active_model/serializer.rb#269 - def associate(reflection); end - end -end - -# @deprecated Use ActiveModelSerializers::Adapter instead -# -# source://active_model_serializers//lib/active_model/serializer/adapter.rb#9 -module ActiveModel::Serializer::Adapter - class << self - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#49 - def _deprecated_adapter_class(adapter, &_arg1); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#49 - def _deprecated_adapter_map(&_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#49 - def _deprecated_adapters(&_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#49 - def _deprecated_create(*_arg0, **_arg1, &_arg2); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#49 - def _deprecated_lookup(adapter, &_arg1); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#49 - def _deprecated_register(*_arg0, **_arg1, &_arg2); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def adapter_class(*args, &block); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def adapter_map(*args, &block); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def adapters(*args, &block); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def create(*args, &block); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def lookup(*args, &block); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def register(*args, &block); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/adapter/attributes.rb#6 -class ActiveModel::Serializer::Adapter::Attributes - # @return [Attributes] a new instance of Attributes - # - # source://active_model_serializers//lib/active_model/serializer/adapter/attributes.rb#7 - def initialize(serializer, options = T.unsafe(nil)); end - - class << self - def _deprecated_new(*_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def new(*args, &block); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/adapter/base.rb#6 -class ActiveModel::Serializer::Adapter::Base - # :nocov: - # - # @return [Base] a new instance of Base - # - # source://active_model_serializers//lib/active_model/serializer/adapter/base.rb#13 - def initialize(serializer, options = T.unsafe(nil)); end - - class << self - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def inherited(*args, &block); end - - private - - def _deprecated_inherited(_arg0); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/adapter/json.rb#6 -class ActiveModel::Serializer::Adapter::Json - # @return [Json] a new instance of Json - # - # source://active_model_serializers//lib/active_model/serializer/adapter/json.rb#7 - def initialize(serializer, options = T.unsafe(nil)); end - - class << self - def _deprecated_new(*_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def new(*args, &block); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/adapter/json_api.rb#6 -class ActiveModel::Serializer::Adapter::JsonApi - # @return [JsonApi] a new instance of JsonApi - # - # source://active_model_serializers//lib/active_model/serializer/adapter/json_api.rb#7 - def initialize(serializer, options = T.unsafe(nil)); end - - class << self - def _deprecated_new(*_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def new(*args, &block); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/adapter/null.rb#6 -class ActiveModel::Serializer::Adapter::Null - # @return [Null] a new instance of Null - # - # source://active_model_serializers//lib/active_model/serializer/adapter/null.rb#7 - def initialize(serializer, options = T.unsafe(nil)); end - - class << self - def _deprecated_new(*_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def new(*args, &block); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/array_serializer.rb#7 -class ActiveModel::Serializer::ArraySerializer < ::ActiveModel::Serializer::CollectionSerializer - class << self - def _deprecated_new(*_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#37 - def new(*args, &block); end - end -end - -# This class holds all information about serializer's association. -# -# @api private -# -# source://active_model_serializers//lib/active_model/serializer/association.rb#10 -class ActiveModel::Serializer::Association < ::Struct - # @api private - # @return [Association] a new instance of Association - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#14 - def initialize(*_arg0); end - - # Returns the value of attribute association_options - # - # @return [Object] the current value of association_options - def association_options; end - - # Sets the attribute association_options - # - # @param value [Object] the value to set the attribute association_options to. - # @return [Object] the newly set value - def association_options=(_); end - - # @api private - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#43 - def belongs_to?; end - - # source://active_model_serializers//lib/active_model/serializer/association.rb#12 - def collection?(*_arg0, **_arg1, &_arg2); end - - # source://active_model_serializers//lib/active_model/serializer/association.rb#12 - def include_data?(*_arg0, **_arg1, &_arg2); end - - # @api private - # @return [Symbol] - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#23 - def key; end - - # @api private - # @return [True, False] - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#28 - def key?; end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#11 - def lazy_association; end - - # @api private - # @return [Hash] - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#33 - def links; end - - # This gets mutated, so cannot use the cached reflection_options - # - # @api private - # @return [Hash, nil] - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#39 - def meta; end - - # @api private - # @return [Symbol] - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#20 - def name(*_arg0, **_arg1, &_arg2); end - - # source://active_model_serializers//lib/active_model/serializer/association.rb#12 - def object(*_arg0, **_arg1, &_arg2); end - - # @api private - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#47 - def polymorphic?; end - - # Returns the value of attribute reflection - # - # @return [Object] the current value of reflection - def reflection; end - - # Sets the attribute reflection - # - # @param value [Object] the value to set the attribute reflection to. - # @return [Object] the newly set value - def reflection=(_); end - - # source://active_model_serializers//lib/active_model/serializer/association.rb#70 - def reflection_options(*_arg0, **_arg1, &_arg2); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/association.rb#52 - def serializable_hash(adapter_options, adapter_instance); end - - # source://active_model_serializers//lib/active_model/serializer/association.rb#12 - def virtual_value(*_arg0, **_arg1, &_arg2); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# Holds all the meta-data about an attribute as it was specified in the -# ActiveModel::Serializer class. -# -# @example -# class PostSerializer < ActiveModel::Serializer -# attribute :content -# attribute :name, key: :title -# attribute :email, key: :author_email, if: :user_logged_in? -# attribute :preview do -# truncate(object.content) -# end -# -# def user_logged_in? -# current_user.logged_in? -# end -# end -# -# source://active_model_serializers//lib/active_model/serializer/attribute.rb#24 -class ActiveModel::Serializer::Attribute < ::ActiveModel::Serializer::Field; end - -# @api private -# -# source://active_model_serializers//lib/active_model/serializer/belongs_to_reflection.rb#6 -class ActiveModel::Serializer::BelongsToReflection < ::ActiveModel::Serializer::Reflection - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/belongs_to_reflection.rb#8 - def foreign_key_on; end -end - -# source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#6 -module ActiveModel::Serializer::Caching - extend ::ActiveSupport::Concern - include GeneratedInstanceMethods - - mixes_in_class_methods GeneratedClassMethods - mixes_in_class_methods ::ActiveModel::Serializer::Caching::ClassMethods - - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#270 - def cache_key(adapter_instance); end - - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#280 - def expand_cache_key(parts); end - - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#232 - def fetch(adapter_instance, cache_options = T.unsafe(nil), key = T.unsafe(nil)); end - - # INSTANCE METHODS - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#223 - def fetch_attributes(fields, cached_attributes, adapter_instance); end - - # 1. Determine cached fields from serializer class options - # 2. Get non_cached_fields and fetch cache_fields - # 3. Merge the two hashes using adapter_instance#fragment_cache - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#246 - def fetch_attributes_fragment(adapter_instance, cached_attributes = T.unsafe(nil)); end - - # Use object's cache_key if available, else derive a key from the object - # Pass the `key` option to the `cache` declaration or override this method to customize the cache key - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#286 - def object_cache_key; end - - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#300 - def serializer_class; end - - module GeneratedClassMethods - def _cache; end - def _cache=(value); end - def _cache?; end - def _cache_digest_file_path; end - def _cache_digest_file_path=(value); end - def _cache_digest_file_path?; end - def _cache_except; end - def _cache_except=(value); end - def _cache_except?; end - def _cache_key; end - def _cache_key=(value); end - def _cache_key?; end - def _cache_only; end - def _cache_only=(value); end - def _cache_only?; end - def _cache_options; end - def _cache_options=(value); end - def _cache_options?; end - end - - module GeneratedInstanceMethods; end -end - -# Matches -# "c:/git/emberjs/ember-crm-backend/app/serializers/lead_serializer.rb:1:in `'" -# AND -# "/c/git/emberjs/ember-crm-backend/app/serializers/lead_serializer.rb:1:in `'" -# AS -# c/git/emberjs/ember-crm-backend/app/serializers/lead_serializer.rb -# -# source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#34 -ActiveModel::Serializer::Caching::CALLER_FILE = T.let(T.unsafe(nil), Regexp) - -# source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#43 -module ActiveModel::Serializer::Caching::ClassMethods - # maps attribute value to explicit key name - # - # @api private - # @see Serializer::attribute - # @see Serializer::fragmented_attributes - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#78 - def _attributes_keys; end - - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#50 - def _cache_digest; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#70 - def _skip_digest?; end - - # Enables a serializer to be automatically cached - # - # Sets +::_cache+ object to ActionController::Base.cache_store - # when Rails.configuration.action_controller.perform_caching - # - # https://github.com/rails-api/active_model_serializers/pull/1249#issuecomment-146567837 - # - # @example - # class PostSerializer < ActiveModel::Serializer - # cache key: 'post', expires_in: 3.hours - # attributes :title, :body - # - # has_many :comments - # end - # @param options [Hash] with valid keys: - # cache_store : @see ::_cache - # key : @see ::_cache_key - # only : @see ::_cache_only - # except : @see ::_cache_except - # skip_digest : does not include digest in cache_key - # all else : @see ::_cache_options - # @todo require less code comments. See - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#120 - def cache(options = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#165 - def cache_enabled?; end - - # Read cache from cache_store - # Used in CollectionSerializer to set :cached_attributes - # - # @return [Hash] - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#177 - def cache_read_multi(collection_serializer, adapter_instance, include_directive); end - - # The canonical method for getting the cache store for the serializer. - # - # @return [nil] when _cache is not set (i.e. when `cache` has not been called) - # @return [._cache] when _cache is not the NullStore - # @return [ActiveModelSerializers.config.cache_store] when _cache is the NullStore. - # This is so we can use `cache` being called to mean the serializer should be cached - # even if ActiveModelSerializers.config.cache_store has not yet been set. - # That means that when _cache is the NullStore and ActiveModelSerializers.config.cache_store - # is configured, `cache_store` becomes `ActiveModelSerializers.config.cache_store`. - # @return [nil] when _cache is the NullStore and ActiveModelSerializers.config.cache_store is nil. - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#155 - def cache_store; end - - # Hashes contents of file for +_cache_digest+ - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#56 - def digest_caller_file(caller_line); end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#169 - def fragment_cache_enabled?; end - - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#86 - def fragmented_attributes; end - - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#44 - def inherited(base); end - - # @return [String, nil] the cache_key of the serializer or nil - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#215 - def object_cache_key(serializer, adapter_instance); end - - # Find all cache_key for the collection_serializer - # - # @param serializers [ActiveModel::Serializer::CollectionSerializer] - # @param adapter_instance [ActiveModelSerializers::Adapter::Base] - # @param include_directive [JSONAPI::IncludeDirective] - # @return [Array] all cache_key of collection_serializer - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#192 - def object_cache_keys(collection_serializer, adapter_instance, include_directive); end - - # Value is from ActiveModelSerializers.config.perform_caching. Is used to - # globally enable or disable all serializer caching, just like - # Rails.configuration.action_controller.perform_caching, which is its - # default value in a Rails application. - # Memoizes value of config first time it is called with a non-nil value. - # - # @return [true, false] - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#138 - def perform_caching; end - - # Value is from ActiveModelSerializers.config.perform_caching. Is used to - # globally enable or disable all serializer caching, just like - # Rails.configuration.action_controller.perform_caching, which is its - # default value in a Rails application. - # Memoizes value of config first time it is called with a non-nil value. - # - # @return [true, false] - # - # source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#138 - def perform_caching?; end -end - -# source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#5 -class ActiveModel::Serializer::CollectionSerializer - include ::Enumerable - - # @return [CollectionSerializer] a new instance of CollectionSerializer - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#11 - def initialize(resources, options = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#7 - def each(*_arg0, **_arg1, &_arg2); end - - # TODO: unify naming of root, json_key, and _type. Right now, a serializer's - # json_key comes from the root option or the object's model name, by default. - # But, if a dev defines a custom `json_key` method with an explicit value, - # we have no simple way to know that it is safe to call that instance method. - # (which is really a class property at this point, anyhow). - # Disabling cop since it's good to highlight the complexity of this method by - # including all the logic right here. - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#39 - def json_key; end - - # Returns the value of attribute object. - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#9 - def object; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#59 - def paginated?; end - - # Returns the value of attribute root. - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#9 - def root; end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#23 - def serializable_hash(adapter_options, options, adapter_instance); end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#18 - def success?; end - - protected - - # Returns the value of attribute options. - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#70 - def options; end - - # Returns the value of attribute serializers. - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#70 - def serializers; end - - private - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#74 - def raise_cannot_infer_root_key_error?; end - - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#85 - def serializer_from_resource(resource, serializer_context_class, options); end - - # source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#78 - def serializers_from_resources; end -end - -# source://active_model_serializers//lib/active_model/serializer/collection_serializer.rb#66 -class ActiveModel::Serializer::CollectionSerializer::CannotInferRootKeyError < ::StandardError; end - -# source://active_model_serializers//lib/active_model/serializer/error_serializer.rb#5 -class ActiveModel::Serializer::ErrorSerializer < ::ActiveModel::Serializer - # @return [Hash>] - # - # source://active_model_serializers//lib/active_model/serializer/error_serializer.rb#7 - def as_json; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/error_serializer.rb#11 - def success?; end -end - -# source://active_model_serializers//lib/active_model/serializer/errors_serializer.rb#7 -class ActiveModel::Serializer::ErrorsSerializer - include ::Enumerable - - # @return [ErrorsSerializer] a new instance of ErrorsSerializer - # - # source://active_model_serializers//lib/active_model/serializer/errors_serializer.rb#12 - def initialize(resources, options = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model/serializer/errors_serializer.rb#9 - def each(*_arg0, **_arg1, &_arg2); end - - # source://active_model_serializers//lib/active_model/serializer/errors_serializer.rb#25 - def json_key; end - - # Returns the value of attribute object. - # - # source://active_model_serializers//lib/active_model/serializer/errors_serializer.rb#10 - def object; end - - # Returns the value of attribute root. - # - # source://active_model_serializers//lib/active_model/serializer/errors_serializer.rb#10 - def root; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/errors_serializer.rb#21 - def success?; end - - protected - - # Returns the value of attribute serializers. - # - # source://active_model_serializers//lib/active_model/serializer/errors_serializer.rb#31 - def serializers; end -end - -# Holds all the meta-data about a field (i.e. attribute or association) as it was -# specified in the ActiveModel::Serializer class. -# Notice that the field block is evaluated in the context of the serializer. -# -# source://active_model_serializers//lib/active_model/serializer/field.rb#8 -class ActiveModel::Serializer::Field < ::Struct - # @return [Field] a new instance of Field - # - # source://active_model_serializers//lib/active_model/serializer/field.rb#9 - def initialize(*_arg0); end - - # Returns the value of attribute block - # - # @return [Object] the current value of block - def block; end - - # Sets the attribute block - # - # @param value [Object] the value to set the attribute block to. - # @return [Object] the newly set value - def block=(_); end - - # Decide whether the field should be serialized by the given serializer instance. - # - # @api private - # @param The [Serializer] serializer instance - # @return [Bool] - # - # source://active_model_serializers//lib/active_model/serializer/field.rb#35 - def excluded?(serializer); end - - # Returns the value of attribute name - # - # @return [Object] the current value of name - def name; end - - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value - def name=(_); end - - # Returns the value of attribute options - # - # @return [Object] the current value of options - def options; end - - # Sets the attribute options - # - # @param value [Object] the value to set the attribute options to. - # @return [Object] the newly set value - def options=(_); end - - # Compute the actual value of a field for a given serializer instance. - # - # @api private - # @param The [Serializer] serializer instance for which the value is computed. - # @return [Object] value - # - # source://active_model_serializers//lib/active_model/serializer/field.rb#21 - def value(serializer); end - - private - - # source://active_model_serializers//lib/active_model/serializer/field.rb#87 - def condition; end - - # source://active_model_serializers//lib/active_model/serializer/field.rb#76 - def condition_type; end - - # source://active_model_serializers//lib/active_model/serializer/field.rb#59 - def evaluate_condition(serializer); end - - # source://active_model_serializers//lib/active_model/serializer/field.rb#48 - def validate_condition!; end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/fieldset.rb#5 -class ActiveModel::Serializer::Fieldset - # @return [Fieldset] a new instance of Fieldset - # - # source://active_model_serializers//lib/active_model/serializer/fieldset.rb#6 - def initialize(fields); end - - # source://active_model_serializers//lib/active_model/serializer/fieldset.rb#10 - def fields; end - - # source://active_model_serializers//lib/active_model/serializer/fieldset.rb#14 - def fields_for(type); end - - protected - - # Returns the value of attribute raw_fields. - # - # source://active_model_serializers//lib/active_model/serializer/fieldset.rb#20 - def raw_fields; end - - private - - # source://active_model_serializers//lib/active_model/serializer/fieldset.rb#24 - def parsed_fields; end -end - -# @api private -# -# source://active_model_serializers//lib/active_model/serializer/has_many_reflection.rb#6 -class ActiveModel::Serializer::HasManyReflection < ::ActiveModel::Serializer::Reflection - # @api private - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/has_many_reflection.rb#7 - def collection?; end -end - -# @api private -# -# source://active_model_serializers//lib/active_model/serializer/has_one_reflection.rb#6 -class ActiveModel::Serializer::HasOneReflection < ::ActiveModel::Serializer::Reflection; end - -# @api private -# -# source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#6 -class ActiveModel::Serializer::LazyAssociation < ::Struct - # Returns the value of attribute association_options - # - # @return [Object] the current value of association_options - def association_options; end - - # Sets the attribute association_options - # - # @param value [Object] the value to set the attribute association_options to. - # @return [Object] the newly set value - def association_options=(_); end - - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#9 - def collection?(*_arg0, **_arg1, &_arg2); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#15 - def eval_reflection_block; end - - # @api private - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#24 - def include_data?; end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#15 - def object; end - - # Returns the value of attribute reflection - # - # @return [Object] the current value of reflection - def reflection; end - - # Sets the attribute reflection - # - # @param value [Object] the value to set the attribute reflection to. - # @return [Object] the newly set value - def reflection=(_); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#11 - def reflection_options; end - - # @api private - # @return [ActiveModel::Serializer, nil] - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#32 - def serializer; end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#46 - def serializer_class; end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#42 - def virtual_value; end - - private - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#55 - def cached_result; end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#86 - def instantiate_collection_serializer(object); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#77 - def instantiate_serializer(object); end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#93 - def namespace; end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#59 - def serialize_object!(object); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# Holds all the data about a serializer link -# -# @example -# class PostSerializer < ActiveModel::Serializer -# link :callback, if: :internal? do -# object.callback_link -# end -# -# def internal? -# instance_options[:internal] == true -# end -# end -# -# source://active_model_serializers//lib/active_model/serializer/link.rb#20 -class ActiveModel::Serializer::Link < ::ActiveModel::Serializer::Field; end - -# source://active_model_serializers//lib/active_model/serializer/lint.rb#5 -module ActiveModel::Serializer::Lint; end - -# == Active \Model \Serializer \Lint \Tests -# -# You can test whether an object is compliant with the Active \Model \Serializers -# API by including ActiveModel::Serializer::Lint::Tests in your TestCase. -# It will include tests that tell you whether your object is fully compliant, -# or if not, which aspects of the API are not implemented. -# -# Note an object is not required to implement all APIs in order to work -# with Active \Model \Serializers. This module only intends to provide guidance in case -# you want all features out of the box. -# -# These tests do not attempt to determine the semantic correctness of the -# returned values. For instance, you could implement serializable_hash to -# always return +{}+, and the tests would pass. It is up to you to ensure -# that the values are semantically meaningful. -# -# source://active_model_serializers//lib/active_model/serializer/lint.rb#21 -module ActiveModel::Serializer::Lint::Tests - # source://active_model_serializers//lib/active_model/serializer/lint.rb#126 - def test_active_model_errors; end - - # source://active_model_serializers//lib/active_model/serializer/lint.rb#130 - def test_active_model_errors_human_attribute_name; end - - # source://active_model_serializers//lib/active_model/serializer/lint.rb#135 - def test_active_model_errors_lookup_ancestors; end - - # Passes if the object responds to as_json and if it takes - # zero or one arguments. - # Fails otherwise. - # - # as_json returns a hash representation of a serialized object. - # It may delegate to serializable_hash - # Typically, it is implemented either by including ActiveModel::Serialization - # which includes ActiveModel::Serializers::JSON. - # or by the JSON gem when required. - # - # source://active_model_serializers//lib/active_model/serializer/lint.rb#58 - def test_as_json; end - - # Passes if the object responds to cache_key - # Fails otherwise. - # - # cache_key returns a (self-expiring) unique key for the object, - # and is part of the (self-expiring) cache_key, which is used by the - # adapter. It is not required unless caching is enabled. - # - # source://active_model_serializers//lib/active_model/serializer/lint.rb#83 - def test_cache_key; end - - # Passes if the object responds to id and if it takes no - # arguments. - # Fails otherwise. - # - # id returns a unique identifier for the object. - # It is not required unless caching is enabled. - # - # source://active_model_serializers//lib/active_model/serializer/lint.rb#108 - def test_id; end - - # Passes if the object's class responds to model_name and if it - # is in an instance of +ActiveModel::Name+. - # Fails otherwise. - # - # model_name returns an ActiveModel::Name instance. - # It is used by the serializer to identify the object's type. - # It is not required unless caching is enabled. - # - # source://active_model_serializers//lib/active_model/serializer/lint.rb#120 - def test_model_name; end - - # Passes if the object responds to read_attribute_for_serialization - # and if it requires one argument (the attribute to be read). - # Fails otherwise. - # - # read_attribute_for_serialization gets the attribute value for serialization - # Typically, it is implemented by including ActiveModel::Serialization. - # - # source://active_model_serializers//lib/active_model/serializer/lint.rb#40 - def test_read_attribute_for_serialization; end - - # Passes if the object responds to serializable_hash and if it takes - # zero or one arguments. - # Fails otherwise. - # - # serializable_hash returns a hash representation of a object's attributes. - # Typically, it is implemented by including ActiveModel::Serialization. - # - # source://active_model_serializers//lib/active_model/serializer/lint.rb#28 - def test_serializable_hash; end - - # Passes if the object responds to to_json and if it takes - # zero or one arguments. - # Fails otherwise. - # - # to_json returns a string representation (JSON) of a serialized object. - # It may be called on the result of as_json. - # Typically, it is implemented on all objects when the JSON gem is required. - # - # source://active_model_serializers//lib/active_model/serializer/lint.rb#71 - def test_to_json; end - - # Passes if the object responds to updated_at and if it takes no - # arguments. - # Fails otherwise. - # - # updated_at returns a Time object or iso8601 string and - # is part of the (self-expiring) cache_key, which is used by the adapter. - # It is not required unless caching is enabled. - # - # source://active_model_serializers//lib/active_model/serializer/lint.rb#96 - def test_updated_at; end - - private - - # source://active_model_serializers//lib/active_model/serializer/lint.rb#146 - def assert_instance_of(result, name); end - - # source://active_model_serializers//lib/active_model/serializer/lint.rb#142 - def resource; end -end - -# source://active_model_serializers//lib/active_model/serializer/null.rb#5 -class ActiveModel::Serializer::Null < ::ActiveModel::Serializer - # source://active_model_serializers//lib/active_model/serializer/null.rb#10 - def associations(*_arg0); end - - # source://active_model_serializers//lib/active_model/serializer/null.rb#6 - def attributes(*_arg0); end - - # source://active_model_serializers//lib/active_model/serializer/null.rb#14 - def serializable_hash(*_arg0); end - - class << self - private - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__attributes_data; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__attributes_data=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__cache_digest_file_path; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__cache_digest_file_path=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__links; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__links=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__reflections; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__reflections=(new_value); end - end -end - -# source://active_model_serializers//lib/active_model/serializer/lazy_association.rb#7 -ActiveModel::Serializer::REFLECTION_OPTIONS = T.let(T.unsafe(nil), Array) - -# Holds all the meta-data about an association as it was specified in the -# ActiveModel::Serializer class. -# -# Specifically, the association 'comments' is evaluated two different ways: -# 1) as 'comments' and named 'comments'. -# 2) as 'object.comments.last(1)' and named 'last_comments'. -# -# PostSerializer._reflections # => -# # { -# # author: HasOneReflection.new(:author, serializer: AuthorSerializer), -# # comments: HasManyReflection.new(:comments) -# # last_comments: HasManyReflection.new(:comments, { key: :last_comments }, #) -# # secret_meta_data: HasManyReflection.new(:secret_meta_data, { if: :is_admin? }) -# # } -# -# So you can inspect reflections in your Adapters. -# -# @example -# class PostSerializer < ActiveModel::Serializer -# has_one :author, serializer: AuthorSerializer -# belongs_to :boss, type: :users, foreign_key: :boss_id -# has_many :comments -# has_many :comments, key: :last_comments do -# object.comments.last(1) -# end -# has_many :secret_meta_data, if: :is_admin? -# -# has_one :blog do |serializer| -# meta count: object.roles.count -# serializer.cached_blog -# end -# -# private -# -# def cached_blog -# cache_store.fetch("cached_blog:#{object.updated_at}") do -# Blog.find(object.blog_id) -# end -# end -# -# def is_admin? -# current_user.admin? -# end -# end -# -# source://active_model_serializers//lib/active_model/serializer/reflection.rb#52 -class ActiveModel::Serializer::Reflection < ::ActiveModel::Serializer::Field - # @return [Reflection] a new instance of Reflection - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#55 - def initialize(*_arg0); end - - # Build association. This method is used internally to - # build serializer's association by its reflection. - # - # @api private - # @example - # # Given the following serializer defined: - # class PostSerializer < ActiveModel::Serializer - # has_many :comments, serializer: CommentSummarySerializer - # end - # - # # Then you instantiate your serializer - # post_serializer = PostSerializer.new(post, foo: 'bar') # - # # to build association for comments you need to get reflection - # comments_reflection = PostSerializer._reflections.detect { |r| r.name == :comments } - # # and #build_association - # comments_reflection.build_association(post_serializer, foo: 'bar') - # @param parent_serializer [Serializer] for given association - # @param parent_serializer_options [Hash{Symbol => Object}] - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#197 - def build_association(parent_serializer, parent_serializer_options, include_slice = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#138 - def collection?; end - - # Returns the value of attribute foreign_key. - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#53 - def foreign_key; end - - # @api private - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#173 - def foreign_key_on; end - - # @api public - # @example - # has_one :blog do - # include_data false - # link :self, 'a link' - # link :related, 'another link' - # end - # - # has_one :blog do - # include_data false - # link :self, 'a link' - # link :related, 'another link' - # end - # - # belongs_to :reviewer do - # meta name: 'Dan Brown' - # include_data true - # end - # - # has_many :tags, serializer: TagSerializer do - # link :self, '//example.com/link_author/relationships/tags' - # include_data :if_sideloaded - # end - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#133 - def include_data(value = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#142 - def include_data?(include_slice); end - - # @api public - # @example - # has_one :blog do - # include_data false - # link :self, 'a link' - # link :related, 'another link' - # link :self, '//example.com/link_author/relationships/bio' - # id = object.profile.id - # link :related do - # "//example.com/profiles/#{id}" if id != 123 - # end - # link :related do - # ids = object.likes.map(&:id).join(',') - # href "//example.com/likes/#{ids}" - # meta ids: ids - # end - # end - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#90 - def link(name, value = T.unsafe(nil), &block); end - - # @api public - # @example - # has_one :blog do - # include_data false - # meta(id: object.blog.id) - # meta liked: object.likes.any? - # link :self do - # href object.blog.id.to_s - # meta(id: object.blog.id) - # end - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#105 - def meta(value = T.unsafe(nil), &block); end - - # Returns the value of attribute type. - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#53 - def type; end - - # @param serializer [ActiveModel::Serializer] - # @return [:nil, associated resource or resource collection] - # @yield [ActiveModel::Serializer] - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#155 - def value(serializer, include_slice); end - - protected - - # used in instance exec - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#209 - def object; end - - # used in instance exec - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#209 - def object=(_arg0); end - - # used in instance exec - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#209 - def scope; end - - # used in instance exec - # - # source://active_model_serializers//lib/active_model/serializer/reflection.rb#209 - def scope=(_arg0); end -end - -# @see #serializable_hash for more details on these valid keys. -# -# source://active_model_serializers//lib/active_model/serializer.rb#20 -ActiveModel::Serializer::SERIALIZABLE_HASH_VALID_KEYS = T.let(T.unsafe(nil), Array) - -# source://active_model_serializers//lib/active_model/serializer/concerns/caching.rb#5 -class ActiveModel::Serializer::UndefinedCacheKey < ::StandardError; end - -# source://active_model_serializers//lib/active_model/serializer/version.rb#5 -ActiveModel::Serializer::VERSION = T.let(T.unsafe(nil), String) - -# Based on discussion in https://github.com/rails/rails/pull/23712#issuecomment-184977238, -# the JSON API media type will have its own format/renderer. -# -# > We recommend the media type be registered on its own as jsonapi -# when a jsonapi Renderer and deserializer (Http::Parameters::DEFAULT_PARSERS) are added. -# -# Usage: -# -# ActiveSupport.on_load(:action_controller) do -# require 'active_model_serializers/register_jsonapi_renderer' -# end -# -# And then in controllers, use `render jsonapi: model` rather than `render json: model, adapter: :json_api`. -# -# For example, in a controller action, we can: -# respond_to do |format| -# format.jsonapi { render jsonapi: model } -# end -# -# or -# -# render jsonapi: model -# -# No wrapper format needed as it does not apply (i.e. no `wrap_parameters format: [jsonapi]`) -# -# source://active_model_serializers//lib/active_model_serializers.rb#8 -module ActiveModelSerializers - extend ::ActiveSupport::Autoload - - class << self - # source://active_model_serializers//lib/active_model_serializers.rb#27 - def config; end - - # Memoized default include directive - # - # @return [JSONAPI::IncludeDirective] - # - # source://active_model_serializers//lib/active_model_serializers.rb#42 - def default_include_directive; end - - # source://active_model_serializers//lib/active_model_serializers.rb#54 - def eager_load!; end - - # The file name and line number of the caller of the caller of this method. - # - # source://active_model_serializers//lib/active_model_serializers.rb#32 - def location_of_caller; end - - # Returns the value of attribute logger. - # - # source://active_model_serializers//lib/active_model_serializers.rb#24 - def logger; end - - # Sets the attribute logger - # - # @param value the value to set the attribute logger to. - # - # source://active_model_serializers//lib/active_model_serializers.rb#24 - def logger=(_arg0); end - - # source://active_model_serializers//lib/active_model_serializers.rb#46 - def silence_warnings; end - end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter.rb#4 -module ActiveModelSerializers::Adapter - extend ::ActiveSupport::Autoload - - class << self - # @see ActiveModelSerializers::Adapter.lookup - # - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#29 - def adapter_class(adapter); end - - # @return [Hash] - # - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#34 - def adapter_map; end - - # @return [Array] list of adapter names - # - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#39 - def adapters; end - - # :nocov: - # - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#18 - def configured_adapter; end - - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#22 - def create(resource, options = T.unsafe(nil)); end - - # @param adapter [String, Symbol, Class] name to fetch adapter by - # @raise [UnknownAdapterError] - # @return [ActiveModelSerializers::Adapter] subclass of Adapter - # - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#65 - def lookup(adapter); end - - # :nocov: - # - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#11 - def new(*args); end - - # Adds an adapter 'klass' with 'name' to the 'adapter_map' - # Names are stringified and underscored - # - # @example - # AMS::Adapter.register(:my_adapter, MyAdapter) - # @note The registered name strips out 'ActiveModelSerializers::Adapter::' - # so that registering 'ActiveModelSerializers::Adapter::Json' and - # 'Json' will both register as 'json'. - # @param name [Symbol, String, Class] name of the registered adapter - # @param klass [Class] adapter class itself, optional if name is the class - # - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#52 - def register(name, klass = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#58 - def registered_name(adapter_class); end - - private - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter.rb#83 - def find_by_name(adapter_name); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter.rb#6 -ActiveModelSerializers::Adapter::ADAPTER_MAP = T.let(T.unsafe(nil), Hash) - -# source://active_model_serializers//lib/active_model_serializers/adapter/attributes.rb#5 -class ActiveModelSerializers::Adapter::Attributes < ::ActiveModelSerializers::Adapter::Base - # @return [Attributes] a new instance of Attributes - # - # source://active_model_serializers//lib/active_model_serializers/adapter/attributes.rb#6 - def initialize(*_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/attributes.rb#11 - def serializable_hash(options = T.unsafe(nil)); end - - private - - # source://active_model_serializers//lib/active_model_serializers/adapter/attributes.rb#21 - def fields_to_fieldset(fields); end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#7 -class ActiveModelSerializers::Adapter::Base - # @return [Base] a new instance of Base - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#49 - def initialize(serializer, options = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#60 - def as_json(options = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#64 - def cache_key; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#68 - def fragment_cache(cached_hash, non_cached_hash); end - - # Returns the value of attribute instance_options. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#47 - def instance_options; end - - # Subclasses that implement this method must first call - # options = serialization_options(options) - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#56 - def serializable_hash(_options = T.unsafe(nil)); end - - # Returns the value of attribute serializer. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#47 - def serializer; end - - private - - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#80 - def root; end - - # see https://github.com/rails-api/active_model_serializers/pull/965 - # When options is +nil+, sets it to +{}+ - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#76 - def serialization_options(options); end - - class << self - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#39 - def cache_key; end - - # Sets the default transform for the adapter. - # - # @return [Symbol] the default transform for the adapter - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#16 - def default_key_transform; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#43 - def fragment_cache(cached_hash, non_cached_hash); end - - # Automatically register adapters when subclassing - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#9 - def inherited(subclass); end - - # Determines the transform to use in order of precedence: - # adapter option, global config, adapter default. - # - # @param options [Object] - # @return [Symbol] the transform to use - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#25 - def transform(options); end - - # Transforms the casing of the supplied value. - # - # @param value [Object] the value to be transformed - # @param options [Object] serializable resource options - # @return [Symbol] the default transform for the adapter - # - # source://active_model_serializers//lib/active_model_serializers/adapter/base.rb#35 - def transform_key_casing!(value, options); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json.rb#5 -class ActiveModelSerializers::Adapter::Json < ::ActiveModelSerializers::Adapter::Base - # source://active_model_serializers//lib/active_model_serializers/adapter/json.rb#14 - def meta; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json.rb#18 - def meta_key; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json.rb#6 - def serializable_hash(options = T.unsafe(nil)); end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#25 -class ActiveModelSerializers::Adapter::JsonApi < ::ActiveModelSerializers::Adapter::Base - extend ::ActiveSupport::Autoload - - # @return [JsonApi] a new instance of JsonApi - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#53 - def initialize(serializer, options = T.unsafe(nil)); end - - # {http://jsonapi.org/format/#errors JSON API Errors} - # TODO: look into caching - # definition: - # ☑ toplevel_errors array (required) - # ☐ toplevel_meta - # ☐ toplevel_jsonapi - # structure: - # { - # errors: toplevel_errors, - # meta: toplevel_meta, - # jsonapi: toplevel_jsonapi - # }.reject! {|_,v| v.nil? } - # prs: - # https://github.com/rails-api/active_model_serializers/pull/1004 - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#174 - def failure_document; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#70 - def fragment_cache(cached_hash, non_cached_hash); end - - # {http://jsonapi.org/format/#crud Requests are transactional, i.e. success or failure} - # {http://jsonapi.org/format/#document-top-level data and errors MUST NOT coexist in the same document.} - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#61 - def serializable_hash(*_arg0); end - - # {http://jsonapi.org/format/#document-top-level Primary data} - # definition: - # ☐ toplevel_data (required) - # ☐ toplevel_included - # ☑ toplevel_meta - # ☑ toplevel_links - # ☑ toplevel_jsonapi - # structure: - # { - # data: toplevel_data, - # included: toplevel_included, - # meta: toplevel_meta, - # links: toplevel_links, - # jsonapi: toplevel_jsonapi - # }.reject! {|_,v| v.nil? } - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#91 - def success_document; end - - protected - - # Returns the value of attribute fieldset. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#199 - def fieldset; end - - private - - # {http://jsonapi.org/format/#document-resource-object-attributes Document Resource Object Attributes} - # attributes - # definition: - # JSON Object - # - # patternProperties: - # ^(?!relationships$|links$)\\w[-\\w_]*$ - # - # description: - # Members of the attributes object ("attributes") represent information about the resource - # object in which it's defined. - # Attributes may contain any valid JSON value - # structure: - # { - # foo: 'bar' - # } - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#296 - def attributes_for(serializer, fields); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#338 - def data_for(serializer, include_slice); end - - # {http://jsonapi.org/format/#document-links Document Links} - # links - # definition: - # JSON Object - # - # properties: - # self : URI - # related : link - # - # description: - # A resource object **MAY** contain references to other resource objects ("relationships"). - # Relationships may be to-one or to-many. Relationships can be specified by including a member - # in a resource's links object. - # - # A `self` member’s value is a URL for the relationship itself (a "relationship URL"). This - # URL allows the client to directly manipulate the relationship. For example, it would allow - # a client to remove an `author` from an `article` without deleting the people resource - # itself. - # structure: - # { - # self: 'http://example.com/etc', - # related: link - # }.reject! {|_,v| v.nil? } - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#485 - def links_for(serializer); end - - # {http://jsonapi.org/format/#document-meta Docment Meta} - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#529 - def meta_for(serializer); end - - # {http://jsonapi.org/format/#fetching-pagination Pagination Links} - # pagination - # definition: - # first : pageObject - # last : pageObject - # prev : pageObject - # next : pageObject - # structure: - # { - # first: pageObject, - # last: pageObject, - # prev: pageObject, - # next: pageObject - # } - # - # pageObject - # definition: - # oneOf - # URI - # null - # - # description: - # The page of data - # structure: - # if has_page? - # 'http://example.com/some-page?page[number][x]' - # else - # nil - # end - # prs: - # https://github.com/rails-api/active_model_serializers/pull/1041 - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#524 - def pagination_links_for(serializer); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#269 - def process_relationship(serializer, include_slice); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#262 - def process_relationships(serializer, include_slice); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#248 - def process_resource(serializer, primary, include_slice = T.unsafe(nil)); end - - # {http://jsonapi.org/format/#document-resource-object-relationships Document Resource Object Relationship} - # relationships - # definition: - # JSON Object - # - # patternProperties: - # ^\\w[-\\w_]*$" - # - # properties: - # data : relationshipsData - # links - # meta - # - # description: - # - # Members of the relationships object ("relationships") represent references from the - # resource object in which it's defined to other resource objects." - # structure: - # { - # links: links, - # meta: meta, - # data: relationshipsData - # }.reject! {|_,v| v.nil? } - # - # prs: - # links - # [x] https://github.com/rails-api/active_model_serializers/pull/1454 - # meta - # [x] https://github.com/rails-api/active_model_serializers/pull/1454 - # polymorphic - # [ ] https://github.com/rails-api/active_model_serializers/pull/1420 - # - # relationshipsData - # definition: - # oneOf - # relationshipToOne - # relationshipToMany - # - # description: - # Member, whose value represents "resource linkage" - # structure: - # if has_one? - # relationshipToOne - # else - # relationshipToMany - # end - # - # definition: - # anyOf - # null - # linkage - # - # relationshipToOne - # description: - # - # References to other resource objects in a to-one ("relationship"). Relationships can be - # specified by including a member in a resource's links object. - # - # None: Describes an empty to-one relationship. - # structure: - # if has_related? - # linkage - # else - # nil - # end - # - # relationshipToMany - # definition: - # array of unique items of type 'linkage' - # - # description: - # An array of objects each containing "type" and "id" members for to-many relationships - # structure: - # [ - # linkage, - # linkage - # ] - # prs: - # polymorphic - # [ ] https://github.com/rails-api/active_model_serializers/pull/1282 - # - # linkage - # definition: - # type (required) : String - # id (required) : String - # meta - # - # description: - # The "type" and "id" to non-empty members. - # structure: - # { - # type: 'required-type', - # id: 'required-id', - # meta: meta - # }.reject! {|_,v| v.nil? } - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#452 - def relationships_for(serializer, requested_associations, include_slice); end - - # {http://jsonapi.org/format/#document-resource-objects Document Resource Objects} - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#301 - def resource_object_for(serializer, include_slice = T.unsafe(nil)); end - - # {http://jsonapi.org/format/#document-resource-objects Primary data} - # resource - # definition: - # JSON Object - # - # properties: - # type (required) : String - # id (required) : String - # attributes - # relationships - # links - # meta - # - # description: - # "Resource objects" appear in a JSON API document to represent resources - # structure: - # { - # type: 'admin--some-user', - # id: '1336', - # attributes: attributes, - # relationships: relationships, - # links: links, - # meta: meta, - # }.reject! {|_,v| v.nil? } - # prs: - # type - # https://github.com/rails-api/active_model_serializers/pull/1122 - # [x] https://github.com/rails-api/active_model_serializers/pull/1213 - # https://github.com/rails-api/active_model_serializers/pull/1216 - # https://github.com/rails-api/active_model_serializers/pull/1029 - # links - # [x] https://github.com/rails-api/active_model_serializers/pull/1246 - # [x] url helpers https://github.com/rails-api/active_model_serializers/issues/1269 - # meta - # [x] https://github.com/rails-api/active_model_serializers/pull/1340 - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#238 - def resource_objects_for(serializers); end - - class << self - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#38 - def default_key_transform; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api.rb#42 - def fragment_cache(cached_hash, non_cached_hash, root = T.unsafe(nil)); end - end -end - -# NOTE(Experimental): -# This is an experimental feature. Both the interface and internals could be subject -# to changes. -# -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#9 -module ActiveModelSerializers::Adapter::JsonApi::Deserialization - private - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#154 - def field_key(field, options); end - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#145 - def filter_fields(fields, options); end - - # Same as parse!, but returns an empty hash instead of raising InvalidDocument - # on invalid payloads. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#85 - def parse(document, options = T.unsafe(nil)); end - - # Transform a JSON API document, containing a single data object, - # into a hash that is ready for ActiveRecord::Base.new() and such. - # Raises InvalidDocument if the payload is not properly formatted. - # - # @example - # document = { - # data: { - # id: 1, - # type: 'post', - # attributes: { - # title: 'Title 1', - # date: '2015-12-20' - # }, - # associations: { - # author: { - # data: { - # type: 'user', - # id: 2 - # } - # }, - # second_author: { - # data: nil - # }, - # comments: { - # data: [{ - # type: 'comment', - # id: 3 - # },{ - # type: 'comment', - # id: 4 - # }] - # } - # } - # } - # } - # - # parse(document) #=> - # # { - # # title: 'Title 1', - # # date: '2015-12-20', - # # author_id: 2, - # # second_author_id: nil - # # comment_ids: [3, 4] - # # } - # - # parse(document, only: [:title, :date, :author], - # keys: { date: :published_at }, - # polymorphic: [:author]) #=> - # # { - # # title: 'Title 1', - # # published_at: '2015-12-20', - # # author_id: '2', - # # author_type: 'people' - # # } - # @param document [Hash|ActionController::Parameters] - # @param options [Hash] only: Array of symbols of whitelisted fields. - # except: Array of symbols of blacklisted fields. - # keys: Hash of translated keys (e.g. :author => :user). - # polymorphic: Array of symbols of polymorphic fields. - # @return [Hash] - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#77 - def parse!(document, options = T.unsafe(nil)); end - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#159 - def parse_attributes(attributes, options); end - - # Given an association name, and a relationship data attribute, build a hash - # mapping the corresponding ActiveRecord attribute to the corresponding value. - # - # @api private - # @example - # parse_relationship(:comments, [{ 'id' => '1', 'type' => 'comments' }, - # { 'id' => '2', 'type' => 'comments' }], - # {}) - # # => { :comment_ids => ['1', '2'] } - # parse_relationship(:author, { 'id' => '1', 'type' => 'users' }, {}) - # # => { :author_id => '1' } - # parse_relationship(:author, nil, {}) - # # => { :author_id => nil } - # @param assoc_name [Symbol] - # @param assoc_data [Hash] - # @param options [Hash] - # @return [Hash{Symbol, Object}] - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#183 - def parse_relationship(assoc_name, assoc_data, options); end - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#201 - def parse_relationships(relationships, options); end - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#208 - def transform_keys(hash, options); end - - # Checks whether a payload is compliant with the JSON API spec. - # - # - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#112 - def validate_payload(payload); end - - class << self - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#154 - def field_key(field, options); end - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#145 - def filter_fields(fields, options); end - - # Same as parse!, but returns an empty hash instead of raising InvalidDocument - # on invalid payloads. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#85 - def parse(document, options = T.unsafe(nil)); end - - # Transform a JSON API document, containing a single data object, - # into a hash that is ready for ActiveRecord::Base.new() and such. - # Raises InvalidDocument if the payload is not properly formatted. - # - # @example - # document = { - # data: { - # id: 1, - # type: 'post', - # attributes: { - # title: 'Title 1', - # date: '2015-12-20' - # }, - # associations: { - # author: { - # data: { - # type: 'user', - # id: 2 - # } - # }, - # second_author: { - # data: nil - # }, - # comments: { - # data: [{ - # type: 'comment', - # id: 3 - # },{ - # type: 'comment', - # id: 4 - # }] - # } - # } - # } - # } - # - # parse(document) #=> - # # { - # # title: 'Title 1', - # # date: '2015-12-20', - # # author_id: 2, - # # second_author_id: nil - # # comment_ids: [3, 4] - # # } - # - # parse(document, only: [:title, :date, :author], - # keys: { date: :published_at }, - # polymorphic: [:author]) #=> - # # { - # # title: 'Title 1', - # # published_at: '2015-12-20', - # # author_id: '2', - # # author_type: 'people' - # # } - # @param document [Hash|ActionController::Parameters] - # @param options [Hash] only: Array of symbols of whitelisted fields. - # except: Array of symbols of blacklisted fields. - # keys: Hash of translated keys (e.g. :author => :user). - # polymorphic: Array of symbols of polymorphic fields. - # @return [Hash] - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#77 - def parse!(document, options = T.unsafe(nil)); end - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#159 - def parse_attributes(attributes, options); end - - # Given an association name, and a relationship data attribute, build a hash - # mapping the corresponding ActiveRecord attribute to the corresponding value. - # - # @api private - # @example - # parse_relationship(:comments, [{ 'id' => '1', 'type' => 'comments' }, - # { 'id' => '2', 'type' => 'comments' }], - # {}) - # # => { :comment_ids => ['1', '2'] } - # parse_relationship(:author, { 'id' => '1', 'type' => 'users' }, {}) - # # => { :author_id => '1' } - # parse_relationship(:author, nil, {}) - # # => { :author_id => nil } - # @param assoc_name [Symbol] - # @param assoc_data [Hash] - # @param options [Hash] - # @return [Hash{Symbol, Object}] - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#183 - def parse_relationship(assoc_name, assoc_data, options); end - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#201 - def parse_relationships(relationships, options); end - - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#208 - def transform_keys(hash, options); end - - # Checks whether a payload is compliant with the JSON API spec. - # - # - # @api private - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#112 - def validate_payload(payload); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/deserialization.rb#10 -class ActiveModelSerializers::Adapter::JsonApi::Deserialization::InvalidDocument < ::ArgumentError; end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/error.rb#6 -module ActiveModelSerializers::Adapter::JsonApi::Error - class << self - # definition: - # JSON Object - # - # properties: - # ☐ id : String - # ☐ status : String - # ☐ code : String - # ☐ title : String - # ☑ detail : String - # ☐ links - # ☐ meta - # ☑ error_source - # - # description: - # id : A unique identifier for this particular occurrence of the problem. - # status : The HTTP status code applicable to this problem, expressed as a string value - # code : An application-specific error code, expressed as a string value. - # title : A short, human-readable summary of the problem. It **SHOULD NOT** change from - # occurrence to occurrence of the problem, except for purposes of localization. - # detail : A human-readable explanation specific to this occurrence of the problem. - # structure: - # { - # title: 'SystemFailure', - # detail: 'something went terribly wrong', - # status: '500' - # }.merge!(errorSource) - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/error.rb#49 - def attribute_error_objects(attribute_name, attribute_errors); end - - # errorSource - # description: - # oneOf - # ☑ pointer : String - # ☑ parameter : String - # - # description: - # pointer: A JSON Pointer RFC6901 to the associated entity in the request document e.g. "/data" - # for a primary data object, or "/data/attributes/title" for a specific attribute. - # https://tools.ietf.org/html/rfc6901 - # - # parameter: A string indicating which query parameter caused the error - # structure: - # if is_attribute? - # { - # pointer: '/data/attributes/red-button' - # } - # else - # { - # parameter: 'pres' - # } - # end - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/error.rb#80 - def error_source(source_type, attribute_name); end - - # Builds a JSON API Errors Object - # {http://jsonapi.org/format/#errors JSON API Errors} - # - # @param error_serializer [ActiveModel::Serializer::ErrorSerializer] - # @return [Array>] i.e. attribute_name, [attribute_errors] - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/error.rb#15 - def resource_errors(error_serializer, options); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/error.rb#8 -class ActiveModelSerializers::Adapter::JsonApi::Error::UnknownSourceTypeError < ::ArgumentError; end - -# toplevel_jsonapi -# definition: -# JSON Object -# -# properties: -# version : String -# meta -# -# description: -# An object describing the server's implementation -# structure: -# { -# version: ActiveModelSerializers.config.jsonapi_version, -# meta: ActiveModelSerializers.config.jsonapi_toplevel_meta -# }.reject! { |_, v| v.blank? } -# prs: -# https://github.com/rails-api/active_model_serializers/pull/1050 -# -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/jsonapi.rb#25 -module ActiveModelSerializers::Adapter::JsonApi::Jsonapi - private - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/jsonapi.rb#28 - def add!(hash); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/jsonapi.rb#32 - def include_object?; end - - # TODO: see if we can cache this - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/jsonapi.rb#37 - def object; end - - class << self - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/jsonapi.rb#28 - def add!(hash); end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/jsonapi.rb#32 - def include_object?; end - - # TODO: see if we can cache this - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/jsonapi.rb#37 - def object; end - end -end - -# link -# definition: -# oneOf -# linkString -# linkObject -# -# description: -# A link **MUST** be represented as either: a string containing the link's URL or a link -# object." -# structure: -# if href? -# linkString -# else -# linkObject -# end -# -# linkString -# definition: -# URI -# -# description: -# A string containing the link's URL. -# structure: -# 'http://example.com/link-string' -# -# linkObject -# definition: -# JSON Object -# -# properties: -# href (required) : URI -# meta -# structure: -# { -# href: 'http://example.com/link-object', -# meta: meta, -# }.reject! {|_,v| v.nil? } -# -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/link.rb#43 -class ActiveModelSerializers::Adapter::JsonApi::Link - include ::ActiveModelSerializers::SerializationContext::UrlHelpers - include ::ActionDispatch::Routing::PolymorphicRoutes - include ::ActionDispatch::Routing::UrlFor - - # @return [Link] a new instance of Link - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/link.rb#46 - def initialize(serializer, value); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/link.rb#69 - def as_json; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/link.rb#59 - def href(value); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/link.rb#64 - def meta(value); end - - protected - - # Returns the value of attribute object. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/link.rb#81 - def object; end - - # Returns the value of attribute scope. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/link.rb#81 - def scope; end - - class << self - # source://actionpack/8.0.2.1/lib/action_dispatch/routing/route_set.rb#612 - def _routes; end - end -end - -# meta -# definition: -# JSON Object -# -# description: -# Non-standard meta-information that can not be represented as an attribute or relationship. -# structure: -# { -# attitude: 'adjustable' -# } -# -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/meta.rb#16 -class ActiveModelSerializers::Adapter::JsonApi::Meta - # @return [Meta] a new instance of Meta - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/meta.rb#17 - def initialize(serializer); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/meta.rb#29 - def as_json; end - - protected - - # Returns the value of attribute object. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/meta.rb#35 - def object; end - - # Returns the value of attribute scope. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/meta.rb#35 - def scope; end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#6 -class ActiveModelSerializers::Adapter::JsonApi::PaginationLinks - # @return [PaginationLinks] a new instance of PaginationLinks - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#12 - def initialize(collection, adapter_options); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#24 - def as_json; end - - # Returns the value of attribute collection. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#10 - def collection; end - - # Returns the value of attribute context. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#10 - def context; end - - protected - - # Returns the value of attribute adapter_options. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#36 - def adapter_options; end - - private - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#44 - def first_page_url; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#48 - def last_page_url; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#40 - def location_url; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#64 - def next_page_url; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#88 - def per_page; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#56 - def prev_page_url; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#84 - def query_parameters; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#80 - def request_url; end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#76 - def url(options = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#70 - def url_for_page(number); end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#8 -ActiveModelSerializers::Adapter::JsonApi::PaginationLinks::FIRST_PAGE = T.let(T.unsafe(nil), Integer) - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/pagination_links.rb#7 -class ActiveModelSerializers::Adapter::JsonApi::PaginationLinks::MissingSerializationContextError < ::KeyError; end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#6 -class ActiveModelSerializers::Adapter::JsonApi::Relationship - # {http://jsonapi.org/format/#document-resource-object-related-resource-links Document Resource Object Related Resource Links} - # {http://jsonapi.org/format/#document-links Document Links} - # {http://jsonapi.org/format/#document-resource-object-linkage Document Resource Relationship Linkage} - # {http://jsonapi.org/format/#document-meta Document Meta} - # - # @return [Relationship] a new instance of Relationship - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#11 - def initialize(parent_serializer, serializable_resource_options, association); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#17 - def as_json; end - - protected - - # Returns the value of attribute association. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#34 - def association; end - - # Returns the value of attribute parent_serializer. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#34 - def parent_serializer; end - - # Returns the value of attribute serializable_resource_options. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#34 - def serializable_resource_options; end - - private - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#98 - def belongs_to_id_on_self?(association); end - - # TODO(BF): Avoid db hit on belong_to_ releationship by using foreign_key on self - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#39 - def data_for(association); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#72 - def data_for_many(association); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#47 - def data_for_one(association); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#86 - def links_for(association); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/relationship.rb#93 - def meta_for(association); end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#6 -class ActiveModelSerializers::Adapter::JsonApi::ResourceIdentifier - # {http://jsonapi.org/format/#document-resource-identifier-objects Resource Identifier Objects} - # - # @return [ResourceIdentifier] a new instance of ResourceIdentifier - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#38 - def initialize(serializer, options); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#43 - def as_json; end - - protected - - # Returns the value of attribute id. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#53 - def id; end - - # Returns the value of attribute type. - # - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#53 - def type; end - - private - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#62 - def id_for(serializer); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#57 - def type_for(serializer, transform_options); end - - class << self - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#12 - def for_type_with_id(type, id, options); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#31 - def inflect_type(type); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#22 - def raw_type_from_serializer_object(object); end - - # source://active_model_serializers//lib/active_model_serializers/adapter/json_api/resource_identifier.rb#7 - def type_for(serializer, serializer_type = T.unsafe(nil), transform_options = T.unsafe(nil)); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter/null.rb#5 -class ActiveModelSerializers::Adapter::Null < ::ActiveModelSerializers::Adapter::Base - # source://active_model_serializers//lib/active_model_serializers/adapter/null.rb#6 - def serializable_hash(*_arg0); end -end - -# source://active_model_serializers//lib/active_model_serializers/adapter.rb#5 -class ActiveModelSerializers::Adapter::UnknownAdapterError < ::ArgumentError; end - -# = ActiveModelSerializers Callbacks -# -# ActiveModelSerializers provides hooks during the life cycle of serialization and -# allow you to trigger logic. Available callbacks are: -# -# * around_render -# -# source://active_model_serializers//lib/active_model_serializers/callbacks.rb#15 -module ActiveModelSerializers::Callbacks - extend ::ActiveSupport::Concern - include GeneratedInstanceMethods - include ::ActiveSupport::Callbacks - - mixes_in_class_methods GeneratedClassMethods - mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods - mixes_in_class_methods ::ActiveSupport::DescendantsTracker - mixes_in_class_methods ::ActiveModelSerializers::Callbacks::ClassMethods - - module GeneratedClassMethods - def __callbacks; end - def __callbacks=(value); end - end - - module GeneratedInstanceMethods - def __callbacks; end - end -end - -# These methods will be included into any ActiveModelSerializers object, adding -# callbacks for +render+. -# -# source://active_model_serializers//lib/active_model_serializers/callbacks.rb#25 -module ActiveModelSerializers::Callbacks::ClassMethods - # Defines a callback that will get called around the render method, - # whether it is as_json, to_json, or serializable_hash - # - # class ActiveModelSerializers::SerializableResource - # include ActiveModelSerializers::Callbacks - # - # around_render do |args, block| - # tag_logger do - # notify_render do - # block.call(args) - # end - # end - # end - # - # def as_json - # run_callbacks :render do - # adapter.as_json - # end - # end - # # Note: So that we can re-use the instrumenter for as_json, to_json, and - # # serializable_hash, we aren't using the usual format, which would be: - # # def render(args) - # # adapter.as_json - # # end - # end - # - # source://active_model_serializers//lib/active_model_serializers/callbacks.rb#52 - def around_render(*filters, &blk); end -end - -# source://active_model_serializers//lib/active_model_serializers/deprecate.rb#27 -module ActiveModelSerializers::Deprecate - private - - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#48 - def delegate_and_deprecate(method, delegee); end - - # Simple deprecation method that deprecates +name+ by wrapping it up - # in a dummy method. It warns on each call to the dummy method - # telling the user of +replacement+ (unless +replacement+ is :none) that it is planned to go away. - # - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#33 - def deprecate(name, replacement); end - - class << self - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#48 - def delegate_and_deprecate(method, delegee); end - - # Simple deprecation method that deprecates +name+ by wrapping it up - # in a dummy method. It warns on each call to the dummy method - # telling the user of +replacement+ (unless +replacement+ is :none) that it is planned to go away. - # - # source://active_model_serializers//lib/active_model_serializers/deprecate.rb#33 - def deprecate(name, replacement); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/deserialization.rb#4 -module ActiveModelSerializers::Deserialization - private - - # source://active_model_serializers//lib/active_model_serializers/deserialization.rb#7 - def jsonapi_parse(*args); end - - # :nocov: - # - # source://active_model_serializers//lib/active_model_serializers/deserialization.rb#12 - def jsonapi_parse!(*args); end - - class << self - # source://active_model_serializers//lib/active_model_serializers/deserialization.rb#7 - def jsonapi_parse(*args); end - - # :nocov: - # - # source://active_model_serializers//lib/active_model_serializers/deserialization.rb#12 - def jsonapi_parse!(*args); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/json_pointer.rb#4 -module ActiveModelSerializers::JsonPointer - private - - # source://active_model_serializers//lib/active_model_serializers/json_pointer.rb#12 - def new(pointer_type, value = T.unsafe(nil)); end - - class << self - # source://active_model_serializers//lib/active_model_serializers/json_pointer.rb#12 - def new(pointer_type, value = T.unsafe(nil)); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/json_pointer.rb#7 -ActiveModelSerializers::JsonPointer::POINTERS = T.let(T.unsafe(nil), Hash) - -# source://active_model_serializers//lib/active_model_serializers/logging.rb#9 -module ActiveModelSerializers::Logging - extend ::ActiveSupport::Concern - include GeneratedInstanceMethods - include ::ActiveSupport::Callbacks - include ::ActiveModelSerializers::Callbacks - - mixes_in_class_methods GeneratedClassMethods - mixes_in_class_methods ::ActiveModelSerializers::Logging::ClassMethods - mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods - mixes_in_class_methods ::ActiveSupport::DescendantsTracker - mixes_in_class_methods ::ActiveModelSerializers::Callbacks::ClassMethods - mixes_in_class_methods ::ActiveModelSerializers::Logging::Macros - - # source://active_model_serializers//lib/active_model_serializers/logging.rb#78 - def notify_render(*_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/logging.rb#85 - def notify_render_payload; end - - private - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/logging.rb#103 - def logger_tagged_by_active_model_serializers?; end - - # source://active_model_serializers//lib/active_model_serializers/logging.rb#94 - def tag_logger(*tags); end - - module GeneratedClassMethods - def __callbacks; end - def __callbacks=(value); end - end - - module GeneratedInstanceMethods - def __callbacks; end - end -end - -# source://active_model_serializers//lib/active_model_serializers/logging.rb#19 -module ActiveModelSerializers::Logging::ClassMethods - # source://active_model_serializers//lib/active_model_serializers/logging.rb#20 - def instrument_rendering; end -end - -# source://active_model_serializers//lib/active_model_serializers/logging.rb#107 -class ActiveModelSerializers::Logging::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://active_model_serializers//lib/active_model_serializers/logging.rb#117 - def logger; end - - # source://active_model_serializers//lib/active_model_serializers/logging.rb#108 - def render(event); end -end - -# Macros that can be used to customize the logging of class or instance methods, -# by extending the class or its singleton. -# -# Adapted from: -# https://github.com/rubygems/rubygems/blob/cb28f5e991/lib/rubygems/deprecate.rb -# -# Provides a single method +notify+ to be used to declare when -# something a method notifies, with the argument +callback_name+ of the notification callback. -# -# class Adapter -# def self.klass_method -# # ... -# end -# -# def instance_method -# # ... -# end -# -# include ActiveModelSerializers::Logging::Macros -# notify :instance_method, :render -# -# class << self -# extend ActiveModelSerializers::Logging::Macros -# notify :klass_method, :render -# end -# end -# -# source://active_model_serializers//lib/active_model_serializers/logging.rb#57 -module ActiveModelSerializers::Logging::Macros - # Simple notify method that wraps up +name+ - # in a dummy method. It notifies on with the +callback_name+ notifier on - # each call to the dummy method, telling what the current serializer and adapter - # are being rendered. - # Adapted from: - # https://github.com/rubygems/rubygems/blob/cb28f5e991/lib/rubygems/deprecate.rb - # - # source://active_model_serializers//lib/active_model_serializers/logging.rb#65 - def notify(name, callback_name); end -end - -# source://active_model_serializers//lib/active_model_serializers/logging.rb#10 -ActiveModelSerializers::Logging::RENDER_EVENT = T.let(T.unsafe(nil), String) - -# source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#4 -module ActiveModelSerializers::LookupChain - private - - # source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#65 - def namespace_for(klass); end - - # source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#69 - def resource_class_name(klass); end - - # source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#77 - def serializer_from(klass); end - - # source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#73 - def serializer_from_resource_name(name); end - - class << self - # source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#65 - def namespace_for(klass); end - - # source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#69 - def resource_class_name(klass); end - - # source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#77 - def serializer_from(klass); end - - # source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#73 - def serializer_from_resource_name(name); end - end -end - -# Uses the controller namespace of the resource to find the serializer -# -# Example: -# Api::V3::AuthorsController => Api::V3::AuthorSerializer -# -# source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#28 -ActiveModelSerializers::LookupChain::BY_NAMESPACE = T.let(T.unsafe(nil), Proc) - -# Allows for serializers to be defined in parent serializers -# - useful if a relationship only needs a different set of attributes -# than if it were rendered independently. -# -# Example: -# class BlogSerializer < ActiveModel::Serializer -# class AuthorSerialier < ActiveModel::Serializer -# ... -# end -# -# belongs_to :author -# ... -# end -# -# The belongs_to relationship would be rendered with -# BlogSerializer::AuthorSerialier -# -# source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#49 -ActiveModelSerializers::LookupChain::BY_PARENT_SERIALIZER = T.let(T.unsafe(nil), Proc) - -# Standard appending of Serializer to the resource name. -# -# Example: -# Author => AuthorSerializer -# -# source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#9 -ActiveModelSerializers::LookupChain::BY_RESOURCE = T.let(T.unsafe(nil), Proc) - -# Uses the namespace of the resource to find the serializer -# -# Example: -# British::Author => British::AuthorSerializer -# -# source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#17 -ActiveModelSerializers::LookupChain::BY_RESOURCE_NAMESPACE = T.let(T.unsafe(nil), Proc) - -# source://active_model_serializers//lib/active_model_serializers/lookup_chain.rb#56 -ActiveModelSerializers::LookupChain::DEFAULT = T.let(T.unsafe(nil), Array) - -# source://active_model_serializers//lib/active_model_serializers/model.rb#8 -class ActiveModelSerializers::Model - include ::ActiveModel::Serialization - include ::ActiveModel::Serializers::JSON - include ::ActiveModel::Validations - include ::ActiveSupport::Callbacks - include ::ActiveModel::Validations::HelperMethods - include ::ActiveModel::Conversion - include ::ActiveModel::ForbiddenAttributesProtection - include ::ActiveModel::AttributeAssignment - include ::ActiveModel::API - include ::ActiveModel::Access - include ::ActiveModel::Model - extend ::ActiveModel::Naming - extend ::ActiveModel::Validations::ClassMethods - extend ::ActiveModel::Callbacks - extend ::ActiveSupport::Callbacks::ClassMethods - extend ::ActiveSupport::DescendantsTracker - extend ::ActiveModel::Translation - extend ::ActiveModel::Validations::HelperMethods - extend ::ActiveModel::Conversion::ClassMethods - - # @param attributes [Hash] - # @return [Model] a new instance of Model - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#89 - def initialize(attributes = T.unsafe(nil)); end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#912 - def _run_validate_callbacks(&block); end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#924 - def _validate_callbacks; end - - # source://activemodel/8.0.2.1/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.2.1/lib/active_model/validations.rb#50 - def _validators?; end - - # The only way to change the attributes of an instance is to directly mutate the attributes. - # - # @example - # - # model.attributes[:foo] = :bar - # @return [Hash] - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#86 - def attributes; end - - # To customize model behavior, this method must be redefined. However, - # there are other ways of setting the +cache_key+ a serializer uses. - # - # @return [String] - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#125 - def cache_key; end - - # Support for validation and other ActiveModel::Errors - # - # @return [ActiveModel::Errors] - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#76 - def errors; end - - # Defaults to the downcased model name. - # This probably isn't a good default, since it's not a unique instance identifier, - # but that's what is currently implemented \_('-')_/. - # - # @note Though +id+ is defined, it will only show up - # in +attributes+ when it is passed in to the initializer or added to +attributes+, - # such as attributes[:id] = 5. - # @return [String, Numeric, Symbol] - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#104 - def id; end - - # source://activemodel/8.0.2.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json; end - - # source://activemodel/8.0.2.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json?; end - - # source://activemodel/8.0.2.1/lib/active_model/naming.rb#255 - def model_name(&_arg0); end - - # source://activemodel/8.0.2.1/lib/active_model/conversion.rb#32 - def param_delimiter=(_arg0); end - - # When not set, defaults to the time the file was modified. - # - # @note Though +updated_at+ and +updated_at=+ are defined, it will only show up - # in +attributes+ when it is passed in to the initializer or added to +attributes+, - # such as attributes[:updated_at] = Time.current. - # @return [String, Numeric, Time] - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#116 - def updated_at; end - - # Sets the attribute updated_at - # - # @param value the value to set the attribute updated_at to. - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#79 - def updated_at=(_arg0); end - - class << self - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#916 - def _validate_callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#920 - def _validate_callbacks=(value); end - - # source://activemodel/8.0.2.1/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.2.1/lib/active_model/validations.rb#50 - def _validators=(value); end - - # source://activemodel/8.0.2.1/lib/active_model/validations.rb#50 - def _validators?; end - - # source://active_model_serializers//lib/active_model_serializers/model.rb#18 - def attribute_names; end - - # source://active_model_serializers//lib/active_model_serializers/model.rb#18 - def attribute_names=(value); end - - # source://active_model_serializers//lib/active_model_serializers/model.rb#18 - def attribute_names?; end - - # Easily declare instance attributes with setters and getters for each. - # - # To initialize an instance, all attributes must have setters. - # However, the hash returned by +attributes+ instance method will ALWAYS - # be the value of the initial attributes, regardless of what accessors are defined. - # The only way to change the change the attributes after initialization is - # to mutate the +attributes+ directly. - # Accessor methods do NOT mutate the attributes. (This is a bug). - # - # @note For now, the Model only supports the notion of 'attributes'. - # In the tests, there is a special Model that also supports 'associations'. This is - # important so that we can add accessors for values that should not appear in the - # attributes hash when modeling associations. It is not yet clear if it - # makes sense for a PORO to have associations outside of the tests. - # @overload attributes - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#41 - def attributes(*names); end - - # Opt-in to breaking change - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#50 - def derive_attributes_from_names_and_fix_accessors; end - - # source://activemodel/8.0.2.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json; end - - # source://activemodel/8.0.2.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json=(value); end - - # source://activemodel/8.0.2.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json?; end - - # source://activemodel/8.0.2.1/lib/active_model/conversion.rb#32 - def param_delimiter; end - - # source://activemodel/8.0.2.1/lib/active_model/conversion.rb#32 - def param_delimiter=(value); end - - # source://activemodel/8.0.2.1/lib/active_model/conversion.rb#32 - def param_delimiter?; end - - private - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_attribute_names; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_attribute_names=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_include_root_in_json; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_include_root_in_json=(new_value); end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_param_delimiter; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_param_delimiter=(new_value); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/model.rb#56 -module ActiveModelSerializers::Model::DeriveAttributesFromNamesAndFixAccessors - # Override the +attributes+ method so that the hash is derived from +attribute_names+. - # - # The fields in +attribute_names+ determines the returned hash. - # +attributes+ are returned frozen to prevent any expectations that mutation affects - # the actual values in the model. - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#67 - def attributes; end - - class << self - # @private - # - # source://active_model_serializers//lib/active_model_serializers/model.rb#57 - def included(base); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/railtie.rb#9 -class ActiveModelSerializers::Railtie < ::Rails::Railtie - # :nocov: - # - # source://active_model_serializers//lib/active_model_serializers/railtie.rb#47 - def extend_action_controller_test_case(&block); end -end - -# source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#6 -class ActiveModelSerializers::SerializableResource - include ::ActiveModelSerializers::Logging - include ::ActiveSupport::Callbacks - include ::ActiveModelSerializers::Callbacks - extend ::ActiveModelSerializers::Logging::ClassMethods - extend ::ActiveSupport::Callbacks::ClassMethods - extend ::ActiveSupport::DescendantsTracker - extend ::ActiveModelSerializers::Callbacks::ClassMethods - extend ::ActiveModelSerializers::Logging::Macros - - # Primary interface to composing a resource with a serializer and adapter. - # - # @return the serializable_resource, ready for #as_json/#to_json/#serializable_hash. - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#17 - def initialize(resource, options = T.unsafe(nil)); end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#10 - def _notifying_render_as_json(*_arg0, **_arg1, &_arg2); end - - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#10 - def _notifying_render_serializable_hash(*_arg0, **_arg1, &_arg2); end - - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#10 - def _notifying_render_to_json(*_arg0, **_arg1, &_arg2); end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#924 - def _render_callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#912 - def _run_render_callbacks(&block); end - - # NOTE: if no adapter is available, returns the resource itself. (i.e. adapter is a no-op) - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#36 - def adapter; end - - # NOTE: if no adapter is available, returns the resource itself. (i.e. adapter is a no-op) - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#36 - def adapter_instance; end - - # source://active_model_serializers//lib/active_model_serializers/logging.rb#69 - def as_json(*args, &block); end - - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#41 - def find_adapter; end - - # source://active_model_serializers//lib/active_model_serializers/logging.rb#69 - def serializable_hash(*args, &block); end - - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#27 - def serialization_scope; end - - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#23 - def serialization_scope=(scope); end - - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#31 - def serialization_scope_name=(scope_name); end - - # Get serializer either explicitly :serializer or implicitly from resource - # Remove :serializer key from serializer_opts - # Remove :each_serializer if present and set as :serializer key - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#56 - def serializer; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#76 - def serializer?; end - - # Get serializer either explicitly :serializer or implicitly from resource - # Remove :serializer key from serializer_opts - # Remove :each_serializer if present and set as :serializer key - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#56 - def serializer_class; end - - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#49 - def serializer_instance; end - - # source://active_model_serializers//lib/active_model_serializers/logging.rb#69 - def to_json(*args, &block); end - - # True when no explicit adapter given, or explicit appear is truthy (non-nil) - # False when explicit adapter is falsy (nil or false) - # - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#72 - def use_adapter?; end - - protected - - # Returns the value of attribute adapter_opts. - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#82 - def adapter_opts; end - - # Returns the value of attribute resource. - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#82 - def resource; end - - # Returns the value of attribute serializer_opts. - # - # source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#82 - def serializer_opts; end - - class << self - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#916 - def _render_callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/callbacks.rb#920 - def _render_callbacks=(value); end - - private - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/serializable_resource.rb#7 -ActiveModelSerializers::SerializableResource::ADAPTER_OPTION_KEYS = T.let(T.unsafe(nil), Set) - -# source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#5 -class ActiveModelSerializers::SerializationContext - # @return [SerializationContext] a new instance of SerializationContext - # - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#28 - def initialize(*args); end - - # Returns the value of attribute key_transform. - # - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#26 - def key_transform; end - - # Returns the value of attribute query_parameters. - # - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#26 - def query_parameters; end - - # Returns the value of attribute request_url. - # - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#26 - def request_url; end - - class << self - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#12 - def default_url_options; end - - # Sets the attribute default_url_options - # - # @param value the value to set the attribute default_url_options to. - # - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#7 - def default_url_options=(_arg0); end - - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#8 - def url_helpers; end - - # Sets the attribute url_helpers - # - # @param value the value to set the attribute url_helpers to. - # - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#7 - def url_helpers=(_arg0); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#16 -module ActiveModelSerializers::SerializationContext::UrlHelpers - include ::ActionDispatch::Routing::UrlFor - - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#21 - def default_url_options; end - - class << self - # @private - # - # source://active_model_serializers//lib/active_model_serializers/serialization_context.rb#17 - def included(base); end - end -end - -# source://active_model_serializers//lib/active_model_serializers/test.rb#4 -module ActiveModelSerializers::Test - extend ::ActiveSupport::Autoload -end - -# source://active_model_serializers//lib/active_model_serializers/test/schema.rb#5 -module ActiveModelSerializers::Test::Schema - # May be renamed - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#25 - def assert_request_response_schema(schema_path = T.unsafe(nil), message = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#19 - def assert_request_schema(schema_path = T.unsafe(nil), message = T.unsafe(nil)); end - - # A Minitest Assertion that test the response is valid against a schema. - # - # @example - # get :index - # assert_response_schema - # @param schema_path [String] a custom schema path - # @param message [String] a custom error message - # @return [Boolean] true when the response is valid - # @return [Minitest::Assertion] when the response is invalid - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#14 - def assert_response_schema(schema_path = T.unsafe(nil), message = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#30 - def assert_schema(payload, schema_path = T.unsafe(nil), message = T.unsafe(nil)); end -end - -# source://active_model_serializers//lib/active_model_serializers/test/schema.rb#132 -class ActiveModelSerializers::Test::Schema::AssertRequestSchema < ::ActiveModelSerializers::Test::Schema::AssertSchema - # @return [AssertRequestSchema] a new instance of AssertRequestSchema - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#133 - def initialize(*_arg0); end -end - -# source://active_model_serializers//lib/active_model_serializers/test/schema.rb#126 -class ActiveModelSerializers::Test::Schema::AssertResponseSchema < ::ActiveModelSerializers::Test::Schema::AssertSchema - # @return [AssertResponseSchema] a new instance of AssertResponseSchema - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#127 - def initialize(*_arg0); end -end - -# source://active_model_serializers//lib/active_model_serializers/test/schema.rb#38 -class ActiveModelSerializers::Test::Schema::AssertSchema - # Interface may change. - # - # @return [AssertSchema] a new instance of AssertSchema - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#42 - def initialize(schema_path, request, response, message, payload = T.unsafe(nil)); end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#53 - def call; end - - # Returns the value of attribute message. - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#39 - def message; end - - # Returns the value of attribute payload. - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#39 - def payload; end - - # Returns the value of attribute request. - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#39 - def request; end - - # Returns the value of attribute response. - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#39 - def response; end - - # Returns the value of attribute schema_path. - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#39 - def schema_path; end - - protected - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#68 - def action; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#100 - def add_schema_to_document_store; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#64 - def controller_path; end - - # Returns the value of attribute document_store. - # - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#62 - def document_store; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#96 - def json_schema; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#108 - def load_json(json); end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#114 - def load_json_file(path); end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#92 - def request_params; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#120 - def require_json_schema!; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#88 - def response_body; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#84 - def schema_data; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#72 - def schema_directory; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#76 - def schema_full_path; end - - # source://active_model_serializers//lib/active_model_serializers/test/schema.rb#80 - def schema_path_default; end -end - -# source://active_model_serializers//lib/active_model_serializers/test/schema.rb#36 -class ActiveModelSerializers::Test::Schema::InvalidSchemaError < ::Minitest::Assertion; end - -# source://active_model_serializers//lib/active_model_serializers/test/schema.rb#35 -class ActiveModelSerializers::Test::Schema::MissingSchema < ::Minitest::Assertion; end - -# source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#6 -module ActiveModelSerializers::Test::Serializer - extend ::ActiveSupport::Concern - - # Asserts that the request was rendered with the appropriate serializers. - # - # # assert that the "PostSerializer" serializer was rendered - # assert_serializer "PostSerializer" - # - # # return a custom error message - # assert_serializer "PostSerializer", "PostSerializer not rendered" - # - # # assert that the instance of PostSerializer was rendered - # assert_serializer PostSerializer - # - # # assert that the "PostSerializer" serializer was rendered - # assert_serializer :post_serializer - # - # # assert that the rendered serializer starts with "Post" - # assert_serializer %r{\APost.+\Z} - # - # # assert that no serializer was rendered - # assert_serializer nil - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#34 - def assert_serializer(expectation, message = T.unsafe(nil)); end - - private - - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#117 - def setup_serialization_subscriptions; end - - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#122 - def teardown_serialization_subscriptions; end -end - -# source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#41 -class ActiveModelSerializers::Test::Serializer::AssertSerializer - # @return [AssertSerializer] a new instance of AssertSerializer - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#45 - def initialize; end - - # Returns the value of attribute expectation. - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#43 - def expectation; end - - # Sets the attribute expectation - # - # @param value the value to set the attribute expectation to. - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#43 - def expectation=(_arg0); end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#54 - def matches?; end - - # Returns the value of attribute message. - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#42 - def message; end - - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#50 - def message=(message); end - - # Returns the value of attribute response. - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#43 - def response; end - - # Sets the attribute response - # - # @param value the value to set the attribute response to. - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#43 - def response=(_arg0); end - - # Returns the value of attribute serializers. - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#42 - def serializers; end - - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#68 - def subscribe; end - - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#75 - def unsubscribe; end - - private - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#106 - def a_serializer?; end - - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#110 - def event_name; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#83 - def matches_class?; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#102 - def matches_nil?; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#96 - def matches_regexp?; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#92 - def matches_string?; end - - # @return [Boolean] - # - # source://active_model_serializers//lib/active_model_serializers/test/serializer.rb#87 - def matches_symbol?; end -end diff --git a/sorbet/rbi/gems/active_model_serializers@0.10.16.rbi b/sorbet/rbi/gems/active_model_serializers@0.10.16.rbi new file mode 100644 index 00000000..5c06146f --- /dev/null +++ b/sorbet/rbi/gems/active_model_serializers@0.10.16.rbi @@ -0,0 +1,3786 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `active_model_serializers` gem. +# Please instead update this file by running `bin/tapioca gem active_model_serializers`. + + +# pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:6 +module ActionController; end + +# pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:7 +module ActionController::Serialization + extend ::ActiveSupport::Concern + include GeneratedInstanceMethods + include ::ActionController::Renderers + + mixes_in_class_methods GeneratedClassMethods + mixes_in_class_methods ::ActionController::Renderers::ClassMethods + mixes_in_class_methods ::ActionController::Serialization::ClassMethods + + # pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:67 + def _render_option_json(resource, options); end + + # pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:67 + def _render_with_renderer_json(resource, options); end + + # pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:43 + def get_serializer(resource, options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:29 + def namespace_for_class(klass); end + + # pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:25 + def namespace_for_serializer; end + + # pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:37 + def serialization_scope; end + + # Deprecated + # + # pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:62 + def use_adapter?; end + + module GeneratedClassMethods + def _renderers; end + def _renderers=(value); end + def _renderers?; end + def _serialization_scope; end + def _serialization_scope=(value); end + def _serialization_scope?; end + end + + module GeneratedInstanceMethods + def _renderers; end + def _renderers=(value); end + def _renderers?; end + def _serialization_scope; end + def _serialization_scope=(value); end + def _serialization_scope?; end + end +end + +# pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:12 +module ActionController::Serialization::ClassMethods + # pkg:gem/active_model_serializers#lib/action_controller/serialization.rb:13 + def serialization_scope(scope); end +end + +# ActiveModel::Serializer is an abstract class that is +# reified when subclassed to decorate a resource. +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/version.rb:3 +module ActiveModel; end + +# pkg:gem/active_model_serializers#lib/active_model/serializable_resource.rb:6 +class ActiveModel::SerializableResource + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializable_resource.rb:10 + def _deprecated_new(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializable_resource.rb:10 + def new(*args, &block); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/version.rb:4 +class ActiveModel::Serializer + include ::ActiveModel::Serializer::Caching + extend ::ActiveSupport::Autoload + extend ::ActiveModel::Serializer::Caching::ClassMethods + + # `scope_name` is set as :current_user by default in the controller. + # If the instance does not have a method named `scope_name`, it + # defines the method so that it calls the +scope+. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:322 + def initialize(object, options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:184 + def _links; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:184 + def _links?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:186 + def _meta; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:186 + def _meta?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:182 + def _reflections; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:182 + def _reflections?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:187 + def _type; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:187 + def _type?; end + + # @see #serializable_hash + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:383 + def as_json(adapter_opts = T.unsafe(nil)); end + + # @param [JSONAPI::IncludeDirective] include_directive (defaults to the + # +default_include_directive+ config value when not provided) + # @return [Enumerator] + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:351 + def associations(include_directive = T.unsafe(nil), include_slice = T.unsafe(nil)); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:417 + def associations_hash(adapter_options, options, adapter_instance); end + + # Return the +attributes+ of +object+ as presented + # by the serializer. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:339 + def attributes(requested_attrs = T.unsafe(nil), reload = T.unsafe(nil)); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:406 + def attributes_hash(_adapter_options, options, adapter_instance); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:16 + def config; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:16 + def config=(_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:16 + def config?; end + + # Used by adapter as resource root. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:388 + def json_key; end + + # END SERIALIZER MACROS + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:317 + def object; end + + # END SERIALIZER MACROS + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:317 + def object=(_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:397 + def read_attribute_for_serialization(attr); end + + # END SERIALIZER MACROS + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:317 + def root; end + + # END SERIALIZER MACROS + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:317 + def root=(_arg0); end + + # END SERIALIZER MACROS + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:317 + def scope; end + + # END SERIALIZER MACROS + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:317 + def scope=(_arg0); end + + # @api private + # @return [Hash] containing the attributes and first level + # associations, similar to how ActiveModel::Serializers::JSON is used + # in ActiveRecord::Base. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:369 + def serializable_hash(adapter_options = T.unsafe(nil), options = T.unsafe(nil), adapter_instance = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:333 + def success?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:380 + def to_h(adapter_options = T.unsafe(nil), options = T.unsafe(nil), adapter_instance = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:379 + def to_hash(adapter_options = T.unsafe(nil), options = T.unsafe(nil), adapter_instance = T.unsafe(nil)); end + + protected + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:428 + def instance_options; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:428 + def instance_options=(_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:428 + def instance_reflections; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:428 + def instance_reflections=(_arg0); end + + class << self + # @return [Array] Key names of declared attributes + # @see Serializer::attribute + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:200 + def _attributes; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:178 + def _attributes_data; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:178 + def _attributes_data=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:178 + def _attributes_data?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_digest_file_path; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_digest_file_path=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_digest_file_path?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_except; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_except=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_except?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_key; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_key=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_key?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_only; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_only=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_only?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_options; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_options=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def _cache_options?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:63 + def _deprecated_adapter; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:184 + def _links; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:184 + def _links=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:184 + def _links?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:186 + def _meta; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:186 + def _meta=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:186 + def _meta?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:182 + def _reflections; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:182 + def _reflections=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:182 + def _reflections?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:187 + def _type; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:187 + def _type=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:187 + def _type?; end + + # @see ActiveModelSerializers::Adapter.lookup + # Deprecated + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:58 + def adapter(*args, &block); end + + # @example + # class AdminAuthorSerializer < ActiveModel::Serializer + # attributes :id, :recent_edits + # attribute :name, key: :title + # + # attribute :full_name do + # "#{object.first_name} #{object.last_name}" + # end + # + # def recent_edits + # object.edits.last(5) + # end + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:229 + def attribute(attr, options = T.unsafe(nil), &block); end + + # @example + # class AdminAuthorSerializer < ActiveModel::Serializer + # attributes :id, :name, :recent_edits + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:209 + def attributes(*attrs); end + + # @param [Symbol] name of the association + # @param [Hash any>] options for the reflection + # @return [void] + # + # @example + # belongs_to :author, serializer: AuthorSerializer + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:252 + def belongs_to(name, options = T.unsafe(nil), &block); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:16 + def config; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:16 + def config=(value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:16 + def config?; end + + # @api private + # Find a serializer from a class and caches the lookup. + # Preferentially returns: + # 1. class name appended with "Serializer" + # 2. try again with superclass, if present + # 3. nil + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:86 + def get_serializer_for(klass, namespace = T.unsafe(nil)); end + + # @param [Symbol] name of the association + # @param [Hash any>] options for the reflection + # @return [void] + # + # @example + # has_many :comments, serializer: CommentSummarySerializer + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:241 + def has_many(name, options = T.unsafe(nil), &block); end + + # @param [Symbol] name of the association + # @param [Hash any>] options for the reflection + # @return [void] + # + # @example + # has_one :author, serializer: AuthorSerializer + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:263 + def has_one(name, options = T.unsafe(nil), &block); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:106 + def include_directive_from_options(options); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:190 + def inherited(base); end + + # Define a link on a serializer. + # @example + # link(:self) { resource_url(object) } + # @example + # link(:self) { "http://example.com/resource/#{object.id}" } + # @example + # link :resource, "http://example.com/resource" + # @example + # link(:callback, if: :internal?), { "http://example.com/callback" } + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:288 + def link(name, *args, &block); end + + # Set the JSON API meta attribute of a serializer. + # @example + # class AdminAuthorSerializer < ActiveModel::Serializer + # meta { stuff: 'value' } + # @example + # meta do + # { comment_count: object.comments.count } + # end + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:303 + def meta(value = T.unsafe(nil), &block); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:117 + def serialization_adapter_instance; end + + # @param resource [ActiveRecord::Base, ActiveModelSerializers::Model] + # @return [ActiveModel::Serializer] + # Preferentially returns + # 1. resource.serializer_class + # 2. ArraySerializer when resource is a collection + # 3. options[:serializer] + # 4. lookup serializer when resource is a Class + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:45 + def serializer_for(resource_or_class, options = T.unsafe(nil)); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:67 + def serializer_lookup_chain_for(klass, namespace = T.unsafe(nil)); end + + # Used to cache serializer name => serializer class + # when looked up by Serializer.get_serializer_for. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:76 + def serializers_cache; end + + # Set the JSON API type of a serializer. + # @example + # class AdminAuthorSerializer < ActiveModel::Serializer + # type 'authors' + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:311 + def type(type); end + + private + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:178 + def __class_attr__attributes_data; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:178 + def __class_attr__attributes_data=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_digest_file_path; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_digest_file_path=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_except; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_except=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_key; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_key=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_only; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_only=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_options; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:36 + def __class_attr__cache_options=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:184 + def __class_attr__links; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:184 + def __class_attr__links=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:186 + def __class_attr__meta; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:186 + def __class_attr__meta=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:182 + def __class_attr__reflections; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:182 + def __class_attr__reflections=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:187 + def __class_attr__type; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:187 + def __class_attr__type=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:16 + def __class_attr_config; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:16 + def __class_attr_config=(new_value); end + + # Add reflection and define {name} accessor. + # @param [ActiveModel::Serializer::Reflection] reflection + # @return [void] + # + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer.rb:272 + def associate(reflection); end + end +end + +# @deprecated Use ActiveModelSerializers::Adapter instead +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:9 +module ActiveModel::Serializer::Adapter + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def _deprecated_adapter_class(adapter, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def _deprecated_adapter_map(&); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def _deprecated_adapters(&); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def _deprecated_create(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def _deprecated_lookup(adapter, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def _deprecated_register(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def adapter_class(*args, &block); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def adapter_map(*args, &block); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def adapters(*args, &block); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def create(*args, &block); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def lookup(*args, &block); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter.rb:15 + def register(*args, &block); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/attributes.rb:6 +class ActiveModel::Serializer::Adapter::Attributes + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/attributes.rb:7 + def initialize(serializer, options = T.unsafe(nil)); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/attributes.rb:12 + def _deprecated_new(*_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/attributes.rb:12 + def new(*args, &block); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/base.rb:6 +class ActiveModel::Serializer::Adapter::Base + # :nocov: + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/base.rb:13 + def initialize(serializer, options = T.unsafe(nil)); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/base.rb:9 + def inherited(*args, &block); end + + private + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/base.rb:9 + def _deprecated_inherited(_arg0); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/json.rb:6 +class ActiveModel::Serializer::Adapter::Json + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/json.rb:7 + def initialize(serializer, options = T.unsafe(nil)); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/json.rb:12 + def _deprecated_new(*_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/json.rb:12 + def new(*args, &block); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/json_api.rb:6 +class ActiveModel::Serializer::Adapter::JsonApi + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/json_api.rb:7 + def initialize(serializer, options = T.unsafe(nil)); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/json_api.rb:12 + def _deprecated_new(*_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/json_api.rb:12 + def new(*args, &block); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/null.rb:6 +class ActiveModel::Serializer::Adapter::Null + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/null.rb:7 + def initialize(serializer, options = T.unsafe(nil)); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/null.rb:12 + def _deprecated_new(*_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/adapter/null.rb:12 + def new(*args, &block); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/array_serializer.rb:7 +class ActiveModel::Serializer::ArraySerializer < ::ActiveModel::Serializer::CollectionSerializer + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/array_serializer.rb:10 + def _deprecated_new(*_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/array_serializer.rb:10 + def new(*args, &block); end + end +end + +# This class holds all information about serializer's association. +# +# @api private +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 +class ActiveModel::Serializer::Association < ::Struct + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:14 + def initialize(*); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def association_options; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def association_options=(_); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:43 + def belongs_to?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:12 + def collection?(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:12 + def include_data?(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:23 + def key; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:28 + def key?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:11 + def lazy_association; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:33 + def links; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:39 + def meta; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:20 + def name(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:12 + def object(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:47 + def polymorphic?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def reflection; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def reflection=(_); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:70 + def reflection_options(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:52 + def serializable_hash(adapter_options, adapter_instance); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:12 + def virtual_value(*, **, &); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def [](*_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def inspect; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def keyword_init?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def members; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/association.rb:10 + def new(*_arg0); end + end +end + +# Holds all the meta-data about an attribute as it was specified in the +# ActiveModel::Serializer class. +# +# @example +# class PostSerializer < ActiveModel::Serializer +# attribute :content +# attribute :name, key: :title +# attribute :email, key: :author_email, if: :user_logged_in? +# attribute :preview do +# truncate(object.content) +# end +# +# def user_logged_in? +# current_user.logged_in? +# end +# end +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/attribute.rb:24 +class ActiveModel::Serializer::Attribute < ::ActiveModel::Serializer::Field; end + +# @api private +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/belongs_to_reflection.rb:6 +class ActiveModel::Serializer::BelongsToReflection < ::ActiveModel::Serializer::Reflection + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/belongs_to_reflection.rb:8 + def foreign_key_on; end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:6 +module ActiveModel::Serializer::Caching + extend ::ActiveSupport::Concern + include GeneratedInstanceMethods + + mixes_in_class_methods GeneratedClassMethods + mixes_in_class_methods ::ActiveModel::Serializer::Caching::ClassMethods + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:270 + def cache_key(adapter_instance); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:280 + def expand_cache_key(parts); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:232 + def fetch(adapter_instance, cache_options = T.unsafe(nil), key = T.unsafe(nil)); end + + # INSTANCE METHODS + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:223 + def fetch_attributes(fields, cached_attributes, adapter_instance); end + + # 1. Determine cached fields from serializer class options + # 2. Get non_cached_fields and fetch cache_fields + # 3. Merge the two hashes using adapter_instance#fragment_cache + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:246 + def fetch_attributes_fragment(adapter_instance, cached_attributes = T.unsafe(nil)); end + + # Use object's cache_key if available, else derive a key from the object + # Pass the `key` option to the `cache` declaration or override this method to customize the cache key + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:286 + def object_cache_key; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:300 + def serializer_class; end + + module GeneratedClassMethods + def _cache; end + def _cache=(value); end + def _cache?; end + def _cache_digest_file_path; end + def _cache_digest_file_path=(value); end + def _cache_digest_file_path?; end + def _cache_except; end + def _cache_except=(value); end + def _cache_except?; end + def _cache_key; end + def _cache_key=(value); end + def _cache_key?; end + def _cache_only; end + def _cache_only=(value); end + def _cache_only?; end + def _cache_options; end + def _cache_options=(value); end + def _cache_options?; end + end + + module GeneratedInstanceMethods; end +end + +# Matches +# "c:/git/emberjs/ember-crm-backend/app/serializers/lead_serializer.rb:1:in `'" +# AND +# "/c/git/emberjs/ember-crm-backend/app/serializers/lead_serializer.rb:1:in `'" +# AS +# c/git/emberjs/ember-crm-backend/app/serializers/lead_serializer.rb +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:34 +ActiveModel::Serializer::Caching::CALLER_FILE = T.let(T.unsafe(nil), Regexp) + +# pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:43 +module ActiveModel::Serializer::Caching::ClassMethods + # @api private + # maps attribute value to explicit key name + # @see Serializer::attribute + # @see Serializer::fragmented_attributes + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:78 + def _attributes_keys; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:50 + def _cache_digest; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:70 + def _skip_digest?; end + + # Enables a serializer to be automatically cached + # + # Sets +::_cache+ object to ActionController::Base.cache_store + # when Rails.configuration.action_controller.perform_caching + # + # @param options [Hash] with valid keys: + # cache_store : @see ::_cache + # key : @see ::_cache_key + # only : @see ::_cache_only + # except : @see ::_cache_except + # skip_digest : does not include digest in cache_key + # all else : @see ::_cache_options + # + # @example + # class PostSerializer < ActiveModel::Serializer + # cache key: 'post', expires_in: 3.hours + # attributes :title, :body + # + # has_many :comments + # end + # + # @todo require less code comments. See + # https://github.com/rails-api/active_model_serializers/pull/1249#issuecomment-146567837 + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:120 + def cache(options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:165 + def cache_enabled?; end + + # Read cache from cache_store + # @return [Hash] + # Used in CollectionSerializer to set :cached_attributes + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:177 + def cache_read_multi(collection_serializer, adapter_instance, include_directive); end + + # The canonical method for getting the cache store for the serializer. + # + # @return [nil] when _cache is not set (i.e. when `cache` has not been called) + # @return [._cache] when _cache is not the NullStore + # @return [ActiveModelSerializers.config.cache_store] when _cache is the NullStore. + # This is so we can use `cache` being called to mean the serializer should be cached + # even if ActiveModelSerializers.config.cache_store has not yet been set. + # That means that when _cache is the NullStore and ActiveModelSerializers.config.cache_store + # is configured, `cache_store` becomes `ActiveModelSerializers.config.cache_store`. + # @return [nil] when _cache is the NullStore and ActiveModelSerializers.config.cache_store is nil. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:155 + def cache_store; end + + # Hashes contents of file for +_cache_digest+ + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:56 + def digest_caller_file(caller_line); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:169 + def fragment_cache_enabled?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:86 + def fragmented_attributes; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:44 + def inherited(base); end + + # @return [String, nil] the cache_key of the serializer or nil + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:215 + def object_cache_key(serializer, adapter_instance); end + + # Find all cache_key for the collection_serializer + # @param serializers [ActiveModel::Serializer::CollectionSerializer] + # @param adapter_instance [ActiveModelSerializers::Adapter::Base] + # @param include_directive [JSONAPI::IncludeDirective] + # @return [Array] all cache_key of collection_serializer + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:192 + def object_cache_keys(collection_serializer, adapter_instance, include_directive); end + + # Value is from ActiveModelSerializers.config.perform_caching. Is used to + # globally enable or disable all serializer caching, just like + # Rails.configuration.action_controller.perform_caching, which is its + # default value in a Rails application. + # @return [true, false] + # Memoizes value of config first time it is called with a non-nil value. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:138 + def perform_caching; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:142 + def perform_caching?; end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:5 +class ActiveModel::Serializer::CollectionSerializer + include ::Enumerable + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:11 + def initialize(resources, options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:7 + def each(*, **, &); end + + # TODO: unify naming of root, json_key, and _type. Right now, a serializer's + # json_key comes from the root option or the object's model name, by default. + # But, if a dev defines a custom `json_key` method with an explicit value, + # we have no simple way to know that it is safe to call that instance method. + # (which is really a class property at this point, anyhow). + # Disabling cop since it's good to highlight the complexity of this method by + # including all the logic right here. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:39 + def json_key; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:9 + def object; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:59 + def paginated?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:9 + def root; end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:23 + def serializable_hash(adapter_options, options, adapter_instance); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:18 + def success?; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:70 + def options; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:70 + def serializers; end + + private + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:74 + def raise_cannot_infer_root_key_error?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:85 + def serializer_from_resource(resource, serializer_context_class, options); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:78 + def serializers_from_resources; end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/collection_serializer.rb:66 +class ActiveModel::Serializer::CollectionSerializer::CannotInferRootKeyError < ::StandardError; end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/error_serializer.rb:5 +class ActiveModel::Serializer::ErrorSerializer < ::ActiveModel::Serializer + # @return [Hash>] + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/error_serializer.rb:7 + def as_json; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/error_serializer.rb:11 + def success?; end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/errors_serializer.rb:7 +class ActiveModel::Serializer::ErrorsSerializer + include ::Enumerable + + # pkg:gem/active_model_serializers#lib/active_model/serializer/errors_serializer.rb:12 + def initialize(resources, options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/errors_serializer.rb:9 + def each(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/errors_serializer.rb:25 + def json_key; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/errors_serializer.rb:10 + def object; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/errors_serializer.rb:10 + def root; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/errors_serializer.rb:21 + def success?; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model/serializer/errors_serializer.rb:31 + def serializers; end +end + +# Holds all the meta-data about a field (i.e. attribute or association) as it was +# specified in the ActiveModel::Serializer class. +# Notice that the field block is evaluated in the context of the serializer. +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 +class ActiveModel::Serializer::Field < ::Struct + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:9 + def initialize(*); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def block; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def block=(_); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:35 + def excluded?(serializer); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def name; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def name=(_); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def options; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def options=(_); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:21 + def value(serializer); end + + private + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:87 + def condition; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:76 + def condition_type; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:59 + def evaluate_condition(serializer); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:48 + def validate_condition!; end + + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def [](*_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def inspect; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def keyword_init?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def members; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/field.rb:8 + def new(*_arg0); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/fieldset.rb:5 +class ActiveModel::Serializer::Fieldset + # pkg:gem/active_model_serializers#lib/active_model/serializer/fieldset.rb:6 + def initialize(fields); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/fieldset.rb:10 + def fields; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/fieldset.rb:14 + def fields_for(type); end + + protected + + # pkg:gem/active_model_serializers#lib/active_model/serializer/fieldset.rb:20 + def raw_fields; end + + private + + # pkg:gem/active_model_serializers#lib/active_model/serializer/fieldset.rb:24 + def parsed_fields; end +end + +# @api private +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/has_many_reflection.rb:6 +class ActiveModel::Serializer::HasManyReflection < ::ActiveModel::Serializer::Reflection + # pkg:gem/active_model_serializers#lib/active_model/serializer/has_many_reflection.rb:7 + def collection?; end +end + +# @api private +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/has_one_reflection.rb:6 +class ActiveModel::Serializer::HasOneReflection < ::ActiveModel::Serializer::Reflection; end + +# @api private +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 +class ActiveModel::Serializer::LazyAssociation < ::Struct + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def association_options; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def association_options=(_); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:9 + def collection?(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:22 + def eval_reflection_block; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:24 + def include_data?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:15 + def object; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def reflection; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def reflection=(_); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:11 + def reflection_options; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:32 + def serializer; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:46 + def serializer_class; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:42 + def virtual_value; end + + private + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:55 + def cached_result; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:86 + def instantiate_collection_serializer(object); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:77 + def instantiate_serializer(object); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:93 + def namespace; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:59 + def serialize_object!(object); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def [](*_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def inspect; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def keyword_init?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def members; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:6 + def new(*_arg0); end + end +end + +# Holds all the data about a serializer link +# +# @example +# class PostSerializer < ActiveModel::Serializer +# link :callback, if: :internal? do +# object.callback_link +# end +# +# def internal? +# instance_options[:internal] == true +# end +# end +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/link.rb:20 +class ActiveModel::Serializer::Link < ::ActiveModel::Serializer::Field; end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:5 +module ActiveModel::Serializer::Lint; end + +# == Active \Model \Serializer \Lint \Tests +# +# You can test whether an object is compliant with the Active \Model \Serializers +# API by including ActiveModel::Serializer::Lint::Tests in your TestCase. +# It will include tests that tell you whether your object is fully compliant, +# or if not, which aspects of the API are not implemented. +# +# Note an object is not required to implement all APIs in order to work +# with Active \Model \Serializers. This module only intends to provide guidance in case +# you want all features out of the box. +# +# These tests do not attempt to determine the semantic correctness of the +# returned values. For instance, you could implement serializable_hash to +# always return +{}+, and the tests would pass. It is up to you to ensure +# that the values are semantically meaningful. +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:21 +module ActiveModel::Serializer::Lint::Tests + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:126 + def test_active_model_errors; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:130 + def test_active_model_errors_human_attribute_name; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:135 + def test_active_model_errors_lookup_ancestors; end + + # Passes if the object responds to as_json and if it takes + # zero or one arguments. + # Fails otherwise. + # + # as_json returns a hash representation of a serialized object. + # It may delegate to serializable_hash + # Typically, it is implemented either by including ActiveModel::Serialization + # which includes ActiveModel::Serializers::JSON. + # or by the JSON gem when required. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:58 + def test_as_json; end + + # Passes if the object responds to cache_key + # Fails otherwise. + # + # cache_key returns a (self-expiring) unique key for the object, + # and is part of the (self-expiring) cache_key, which is used by the + # adapter. It is not required unless caching is enabled. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:83 + def test_cache_key; end + + # Passes if the object responds to id and if it takes no + # arguments. + # Fails otherwise. + # + # id returns a unique identifier for the object. + # It is not required unless caching is enabled. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:108 + def test_id; end + + # Passes if the object's class responds to model_name and if it + # is in an instance of +ActiveModel::Name+. + # Fails otherwise. + # + # model_name returns an ActiveModel::Name instance. + # It is used by the serializer to identify the object's type. + # It is not required unless caching is enabled. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:120 + def test_model_name; end + + # Passes if the object responds to read_attribute_for_serialization + # and if it requires one argument (the attribute to be read). + # Fails otherwise. + # + # read_attribute_for_serialization gets the attribute value for serialization + # Typically, it is implemented by including ActiveModel::Serialization. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:40 + def test_read_attribute_for_serialization; end + + # Passes if the object responds to serializable_hash and if it takes + # zero or one arguments. + # Fails otherwise. + # + # serializable_hash returns a hash representation of a object's attributes. + # Typically, it is implemented by including ActiveModel::Serialization. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:28 + def test_serializable_hash; end + + # Passes if the object responds to to_json and if it takes + # zero or one arguments. + # Fails otherwise. + # + # to_json returns a string representation (JSON) of a serialized object. + # It may be called on the result of as_json. + # Typically, it is implemented on all objects when the JSON gem is required. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:71 + def test_to_json; end + + # Passes if the object responds to updated_at and if it takes no + # arguments. + # Fails otherwise. + # + # updated_at returns a Time object or iso8601 string and + # is part of the (self-expiring) cache_key, which is used by the adapter. + # It is not required unless caching is enabled. + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:96 + def test_updated_at; end + + private + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:146 + def assert_instance_of(result, name); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/lint.rb:142 + def resource; end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 +class ActiveModel::Serializer::Null < ::ActiveModel::Serializer + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:10 + def associations(*); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:6 + def attributes(*); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:14 + def serializable_hash(*); end + + class << self + private + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr__attributes_data; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr__attributes_data=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr__cache_digest_file_path; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr__cache_digest_file_path=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr__links; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr__links=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr__reflections; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr__reflections=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr_config; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/null.rb:5 + def __class_attr_config=(new_value); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/lazy_association.rb:7 +ActiveModel::Serializer::REFLECTION_OPTIONS = T.let(T.unsafe(nil), Array) + +# Holds all the meta-data about an association as it was specified in the +# ActiveModel::Serializer class. +# +# @example +# class PostSerializer < ActiveModel::Serializer +# has_one :author, serializer: AuthorSerializer +# belongs_to :boss, type: :users, foreign_key: :boss_id +# has_many :comments +# has_many :comments, key: :last_comments do +# object.comments.last(1) +# end +# has_many :secret_meta_data, if: :is_admin? +# +# has_one :blog do |serializer| +# meta count: object.roles.count +# serializer.cached_blog +# end +# +# private +# +# def cached_blog +# cache_store.fetch("cached_blog:#{object.updated_at}") do +# Blog.find(object.blog_id) +# end +# end +# +# def is_admin? +# current_user.admin? +# end +# end +# +# Specifically, the association 'comments' is evaluated two different ways: +# 1) as 'comments' and named 'comments'. +# 2) as 'object.comments.last(1)' and named 'last_comments'. +# +# PostSerializer._reflections # => +# # { +# # author: HasOneReflection.new(:author, serializer: AuthorSerializer), +# # comments: HasManyReflection.new(:comments) +# # last_comments: HasManyReflection.new(:comments, { key: :last_comments }, #) +# # secret_meta_data: HasManyReflection.new(:secret_meta_data, { if: :is_admin? }) +# # } +# +# So you can inspect reflections in your Adapters. +# +# pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:52 +class ActiveModel::Serializer::Reflection < ::ActiveModel::Serializer::Field + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:55 + def initialize(*); end + + # Build association. This method is used internally to + # build serializer's association by its reflection. + # + # @param [Serializer] parent_serializer for given association + # @param [Hash{Symbol => Object}] parent_serializer_options + # + # @example + # # Given the following serializer defined: + # class PostSerializer < ActiveModel::Serializer + # has_many :comments, serializer: CommentSummarySerializer + # end + # + # # Then you instantiate your serializer + # post_serializer = PostSerializer.new(post, foo: 'bar') # + # # to build association for comments you need to get reflection + # comments_reflection = PostSerializer._reflections.detect { |r| r.name == :comments } + # # and #build_association + # comments_reflection.build_association(post_serializer, foo: 'bar') + # + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:197 + def build_association(parent_serializer, parent_serializer_options, include_slice = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:138 + def collection?; end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:53 + def foreign_key; end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:173 + def foreign_key_on; end + + # @api public + # @example + # has_one :blog do + # include_data false + # link :self, 'a link' + # link :related, 'another link' + # end + # + # has_one :blog do + # include_data false + # link :self, 'a link' + # link :related, 'another link' + # end + # + # belongs_to :reviewer do + # meta name: 'Dan Brown' + # include_data true + # end + # + # has_many :tags, serializer: TagSerializer do + # link :self, '//example.com/link_author/relationships/tags' + # include_data :if_sideloaded + # end + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:133 + def include_data(value = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:142 + def include_data?(include_slice); end + + # @api public + # @example + # has_one :blog do + # include_data false + # link :self, 'a link' + # link :related, 'another link' + # link :self, '//example.com/link_author/relationships/bio' + # id = object.profile.id + # link :related do + # "//example.com/profiles/#{id}" if id != 123 + # end + # link :related do + # ids = object.likes.map(&:id).join(',') + # href "//example.com/likes/#{ids}" + # meta ids: ids + # end + # end + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:90 + def link(name, value = T.unsafe(nil), &block); end + + # @api public + # @example + # has_one :blog do + # include_data false + # meta(id: object.blog.id) + # meta liked: object.likes.any? + # link :self do + # href object.blog.id.to_s + # meta(id: object.blog.id) + # end + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:105 + def meta(value = T.unsafe(nil), &block); end + + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:53 + def type; end + + # @param serializer [ActiveModel::Serializer] + # @yield [ActiveModel::Serializer] + # @return [:nil, associated resource or resource collection] + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:155 + def value(serializer, include_slice); end + + protected + + # used in instance exec + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:209 + def object; end + + # used in instance exec + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:209 + def object=(_arg0); end + + # used in instance exec + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:209 + def scope; end + + # used in instance exec + # + # pkg:gem/active_model_serializers#lib/active_model/serializer/reflection.rb:209 + def scope=(_arg0); end +end + +# @see #serializable_hash for more details on these valid keys. +# +# pkg:gem/active_model_serializers#lib/active_model/serializer.rb:23 +ActiveModel::Serializer::SERIALIZABLE_HASH_VALID_KEYS = T.let(T.unsafe(nil), Array) + +# pkg:gem/active_model_serializers#lib/active_model/serializer/concerns/caching.rb:5 +class ActiveModel::Serializer::UndefinedCacheKey < ::StandardError; end + +# pkg:gem/active_model_serializers#lib/active_model/serializer/version.rb:5 +ActiveModel::Serializer::VERSION = T.let(T.unsafe(nil), String) + +# {http://jsonapi.org/format/ JSON API specification} +# TODO: implement! +# ☐ https://github.com/rails-api/active_model_serializers/issues/1235 +# TODO: use uri_template in link generation? +# ☐ https://github.com/rails-api/active_model_serializers/pull/1282#discussion_r42528812 +# see gem https://github.com/hannesg/uri_template +# spec http://tools.ietf.org/html/rfc6570 +# impl https://developer.github.com/v3/#schema https://api.github.com/ +# TODO: validate against a JSON schema document? +# ☐ https://github.com/rails-api/active_model_serializers/issues/1162 +# ☑ https://github.com/rails-api/active_model_serializers/pull/1270 +# TODO: Routing +# ☐ https://github.com/rails-api/active_model_serializers/pull/1476 +# TODO: Query Params +# ☑ `include` https://github.com/rails-api/active_model_serializers/pull/1131 +# ☑ `fields` https://github.com/rails-api/active_model_serializers/pull/700 +# ☑ `page[number]=3&page[size]=1` https://github.com/rails-api/active_model_serializers/pull/1041 +# ☐ `filter` +# ☐ `sort` +# +# Provides a single method +deprecate+ to be used to declare when +# something is going away. +# +# class Legacy +# def self.klass_method +# # ... +# end +# +# def instance_method +# # ... +# end +# +# extend ActiveModelSerializers::Deprecate +# deprecate :instance_method, "ActiveModelSerializers::NewPlace#new_method" +# +# class << self +# extend ActiveModelSerializers::Deprecate +# deprecate :klass_method, :none +# end +# end +# +# Adapted from https://github.com/rubygems/rubygems/blob/1591331/lib/rubygems/deprecate.rb +# +# ActiveModelSerializers::Logging +# +# https://github.com/rails/rails/blob/280654ef88/activejob/lib/active_job/logging.rb +# +# Based on discussion in https://github.com/rails/rails/pull/23712#issuecomment-184977238, +# the JSON API media type will have its own format/renderer. +# +# > We recommend the media type be registered on its own as jsonapi +# when a jsonapi Renderer and deserializer (Http::Parameters::DEFAULT_PARSERS) are added. +# +# Usage: +# +# ActiveSupport.on_load(:action_controller) do +# require 'active_model_serializers/register_jsonapi_renderer' +# end +# +# And then in controllers, use `render jsonapi: model` rather than `render json: model, adapter: :json_api`. +# +# For example, in a controller action, we can: +# respond_to do |format| +# format.jsonapi { render jsonapi: model } +# end +# +# or +# +# render jsonapi: model +# +# No wrapper format needed as it does not apply (i.e. no `wrap_parameters format: [jsonapi]`) +# +# pkg:gem/active_model_serializers#lib/active_model_serializers.rb:8 +module ActiveModelSerializers + extend ::ActiveSupport::Autoload + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers.rb:27 + def config; end + + # Memoized default include directive + # @return [JSONAPI::IncludeDirective] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers.rb:42 + def default_include_directive; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers.rb:54 + def eager_load!; end + + # The file name and line number of the caller of the caller of this method. + # + # pkg:gem/active_model_serializers#lib/active_model_serializers.rb:32 + def location_of_caller; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers.rb:24 + def logger; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers.rb:24 + def logger=(_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers.rb:46 + def silence_warnings; end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:4 +module ActiveModelSerializers::Adapter + extend ::ActiveSupport::Autoload + + class << self + # @see ActiveModelSerializers::Adapter.lookup + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:29 + def adapter_class(adapter); end + + # @return [Hash] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:34 + def adapter_map; end + + # @return [Array] list of adapter names + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:39 + def adapters; end + + # :nocov: + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:18 + def configured_adapter; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:22 + def create(resource, options = T.unsafe(nil)); end + + # @param adapter [String, Symbol, Class] name to fetch adapter by + # @return [ActiveModelSerializers::Adapter] subclass of Adapter + # @raise [UnknownAdapterError] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:65 + def lookup(adapter); end + + # All methods are class functions + # :nocov: + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:11 + def new(*args); end + + # Adds an adapter 'klass' with 'name' to the 'adapter_map' + # Names are stringified and underscored + # @param name [Symbol, String, Class] name of the registered adapter + # @param klass [Class] adapter class itself, optional if name is the class + # @example + # AMS::Adapter.register(:my_adapter, MyAdapter) + # @note The registered name strips out 'ActiveModelSerializers::Adapter::' + # so that registering 'ActiveModelSerializers::Adapter::Json' and + # 'Json' will both register as 'json'. + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:52 + def register(name, klass = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:58 + def registered_name(adapter_class); end + + private + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:83 + def find_by_name(adapter_name); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:6 +ActiveModelSerializers::Adapter::ADAPTER_MAP = T.let(T.unsafe(nil), Hash) + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/attributes.rb:5 +class ActiveModelSerializers::Adapter::Attributes < ::ActiveModelSerializers::Adapter::Base + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/attributes.rb:6 + def initialize(*); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/attributes.rb:11 + def serializable_hash(options = T.unsafe(nil)); end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/attributes.rb:21 + def fields_to_fieldset(fields); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:7 +class ActiveModelSerializers::Adapter::Base + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:49 + def initialize(serializer, options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:60 + def as_json(options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:64 + def cache_key; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:68 + def fragment_cache(cached_hash, non_cached_hash); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:47 + def instance_options; end + + # Subclasses that implement this method must first call + # options = serialization_options(options) + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:56 + def serializable_hash(_options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:47 + def serializer; end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:80 + def root; end + + # see https://github.com/rails-api/active_model_serializers/pull/965 + # When options is +nil+, sets it to +{}+ + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:76 + def serialization_options(options); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:39 + def cache_key; end + + # Sets the default transform for the adapter. + # + # @return [Symbol] the default transform for the adapter + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:16 + def default_key_transform; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:43 + def fragment_cache(cached_hash, non_cached_hash); end + + # Automatically register adapters when subclassing + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:9 + def inherited(subclass); end + + # Determines the transform to use in order of precedence: + # adapter option, global config, adapter default. + # + # @param options [Object] + # @return [Symbol] the transform to use + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:25 + def transform(options); end + + # Transforms the casing of the supplied value. + # + # @param value [Object] the value to be transformed + # @param options [Object] serializable resource options + # @return [Symbol] the default transform for the adapter + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/base.rb:35 + def transform_key_casing!(value, options); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json.rb:5 +class ActiveModelSerializers::Adapter::Json < ::ActiveModelSerializers::Adapter::Base + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json.rb:14 + def meta; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json.rb:18 + def meta_key; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json.rb:6 + def serializable_hash(options = T.unsafe(nil)); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:25 +class ActiveModelSerializers::Adapter::JsonApi < ::ActiveModelSerializers::Adapter::Base + extend ::ActiveSupport::Autoload + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:53 + def initialize(serializer, options = T.unsafe(nil)); end + + # {http://jsonapi.org/format/#errors JSON API Errors} + # TODO: look into caching + # definition: + # ☑ toplevel_errors array (required) + # ☐ toplevel_meta + # ☐ toplevel_jsonapi + # structure: + # { + # errors: toplevel_errors, + # meta: toplevel_meta, + # jsonapi: toplevel_jsonapi + # }.reject! {|_,v| v.nil? } + # prs: + # https://github.com/rails-api/active_model_serializers/pull/1004 + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:174 + def failure_document; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:70 + def fragment_cache(cached_hash, non_cached_hash); end + + # {http://jsonapi.org/format/#crud Requests are transactional, i.e. success or failure} + # {http://jsonapi.org/format/#document-top-level data and errors MUST NOT coexist in the same document.} + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:61 + def serializable_hash(*); end + + # {http://jsonapi.org/format/#document-top-level Primary data} + # definition: + # ☐ toplevel_data (required) + # ☐ toplevel_included + # ☑ toplevel_meta + # ☑ toplevel_links + # ☑ toplevel_jsonapi + # structure: + # { + # data: toplevel_data, + # included: toplevel_included, + # meta: toplevel_meta, + # links: toplevel_links, + # jsonapi: toplevel_jsonapi + # }.reject! {|_,v| v.nil? } + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:91 + def success_document; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:199 + def fieldset; end + + private + + # {http://jsonapi.org/format/#document-resource-object-attributes Document Resource Object Attributes} + # attributes + # definition: + # JSON Object + # + # patternProperties: + # ^(?!relationships$|links$)\\w[-\\w_]*$ + # + # description: + # Members of the attributes object ("attributes") represent information about the resource + # object in which it's defined. + # Attributes may contain any valid JSON value + # structure: + # { + # foo: 'bar' + # } + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:296 + def attributes_for(serializer, fields); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:338 + def data_for(serializer, include_slice); end + + # {http://jsonapi.org/format/#document-links Document Links} + # links + # definition: + # JSON Object + # + # properties: + # self : URI + # related : link + # + # description: + # A resource object **MAY** contain references to other resource objects ("relationships"). + # Relationships may be to-one or to-many. Relationships can be specified by including a member + # in a resource's links object. + # + # A `self` member’s value is a URL for the relationship itself (a "relationship URL"). This + # URL allows the client to directly manipulate the relationship. For example, it would allow + # a client to remove an `author` from an `article` without deleting the people resource + # itself. + # structure: + # { + # self: 'http://example.com/etc', + # related: link + # }.reject! {|_,v| v.nil? } + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:485 + def links_for(serializer); end + + # {http://jsonapi.org/format/#document-meta Docment Meta} + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:529 + def meta_for(serializer); end + + # {http://jsonapi.org/format/#fetching-pagination Pagination Links} + # pagination + # definition: + # first : pageObject + # last : pageObject + # prev : pageObject + # next : pageObject + # structure: + # { + # first: pageObject, + # last: pageObject, + # prev: pageObject, + # next: pageObject + # } + # + # pageObject + # definition: + # oneOf + # URI + # null + # + # description: + # The page of data + # structure: + # if has_page? + # 'http://example.com/some-page?page[number][x]' + # else + # nil + # end + # prs: + # https://github.com/rails-api/active_model_serializers/pull/1041 + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:524 + def pagination_links_for(serializer); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:269 + def process_relationship(serializer, include_slice); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:262 + def process_relationships(serializer, include_slice); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:248 + def process_resource(serializer, primary, include_slice = T.unsafe(nil)); end + + # {http://jsonapi.org/format/#document-resource-object-relationships Document Resource Object Relationship} + # relationships + # definition: + # JSON Object + # + # patternProperties: + # ^\\w[-\\w_]*$" + # + # properties: + # data : relationshipsData + # links + # meta + # + # description: + # + # Members of the relationships object ("relationships") represent references from the + # resource object in which it's defined to other resource objects." + # structure: + # { + # links: links, + # meta: meta, + # data: relationshipsData + # }.reject! {|_,v| v.nil? } + # + # prs: + # links + # [x] https://github.com/rails-api/active_model_serializers/pull/1454 + # meta + # [x] https://github.com/rails-api/active_model_serializers/pull/1454 + # polymorphic + # [ ] https://github.com/rails-api/active_model_serializers/pull/1420 + # + # relationshipsData + # definition: + # oneOf + # relationshipToOne + # relationshipToMany + # + # description: + # Member, whose value represents "resource linkage" + # structure: + # if has_one? + # relationshipToOne + # else + # relationshipToMany + # end + # + # definition: + # anyOf + # null + # linkage + # + # relationshipToOne + # description: + # + # References to other resource objects in a to-one ("relationship"). Relationships can be + # specified by including a member in a resource's links object. + # + # None: Describes an empty to-one relationship. + # structure: + # if has_related? + # linkage + # else + # nil + # end + # + # relationshipToMany + # definition: + # array of unique items of type 'linkage' + # + # description: + # An array of objects each containing "type" and "id" members for to-many relationships + # structure: + # [ + # linkage, + # linkage + # ] + # prs: + # polymorphic + # [ ] https://github.com/rails-api/active_model_serializers/pull/1282 + # + # linkage + # definition: + # type (required) : String + # id (required) : String + # meta + # + # description: + # The "type" and "id" to non-empty members. + # structure: + # { + # type: 'required-type', + # id: 'required-id', + # meta: meta + # }.reject! {|_,v| v.nil? } + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:452 + def relationships_for(serializer, requested_associations, include_slice); end + + # {http://jsonapi.org/format/#document-resource-objects Document Resource Objects} + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:301 + def resource_object_for(serializer, include_slice = T.unsafe(nil)); end + + # {http://jsonapi.org/format/#document-resource-objects Primary data} + # resource + # definition: + # JSON Object + # + # properties: + # type (required) : String + # id (required) : String + # attributes + # relationships + # links + # meta + # + # description: + # "Resource objects" appear in a JSON API document to represent resources + # structure: + # { + # type: 'admin--some-user', + # id: '1336', + # attributes: attributes, + # relationships: relationships, + # links: links, + # meta: meta, + # }.reject! {|_,v| v.nil? } + # prs: + # type + # https://github.com/rails-api/active_model_serializers/pull/1122 + # [x] https://github.com/rails-api/active_model_serializers/pull/1213 + # https://github.com/rails-api/active_model_serializers/pull/1216 + # https://github.com/rails-api/active_model_serializers/pull/1029 + # links + # [x] https://github.com/rails-api/active_model_serializers/pull/1246 + # [x] url helpers https://github.com/rails-api/active_model_serializers/issues/1269 + # meta + # [x] https://github.com/rails-api/active_model_serializers/pull/1340 + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:238 + def resource_objects_for(serializers); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:38 + def default_key_transform; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api.rb:42 + def fragment_cache(cached_hash, non_cached_hash, root = T.unsafe(nil)); end + end +end + +# NOTE(Experimental): +# This is an experimental feature. Both the interface and internals could be subject +# to changes. +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:9 +module ActiveModelSerializers::Adapter::JsonApi::Deserialization + private + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:154 + def field_key(field, options); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:145 + def filter_fields(fields, options); end + + # Same as parse!, but returns an empty hash instead of raising InvalidDocument + # on invalid payloads. + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:85 + def parse(document, options = T.unsafe(nil)); end + + # Transform a JSON API document, containing a single data object, + # into a hash that is ready for ActiveRecord::Base.new() and such. + # Raises InvalidDocument if the payload is not properly formatted. + # + # @param [Hash|ActionController::Parameters] document + # @param [Hash] options + # only: Array of symbols of whitelisted fields. + # except: Array of symbols of blacklisted fields. + # keys: Hash of translated keys (e.g. :author => :user). + # polymorphic: Array of symbols of polymorphic fields. + # @return [Hash] + # + # @example + # document = { + # data: { + # id: 1, + # type: 'post', + # attributes: { + # title: 'Title 1', + # date: '2015-12-20' + # }, + # associations: { + # author: { + # data: { + # type: 'user', + # id: 2 + # } + # }, + # second_author: { + # data: nil + # }, + # comments: { + # data: [{ + # type: 'comment', + # id: 3 + # },{ + # type: 'comment', + # id: 4 + # }] + # } + # } + # } + # } + # + # parse(document) #=> + # # { + # # title: 'Title 1', + # # date: '2015-12-20', + # # author_id: 2, + # # second_author_id: nil + # # comment_ids: [3, 4] + # # } + # + # parse(document, only: [:title, :date, :author], + # keys: { date: :published_at }, + # polymorphic: [:author]) #=> + # # { + # # title: 'Title 1', + # # published_at: '2015-12-20', + # # author_id: '2', + # # author_type: 'people' + # # } + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:77 + def parse!(document, options = T.unsafe(nil)); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:159 + def parse_attributes(attributes, options); end + + # Given an association name, and a relationship data attribute, build a hash + # mapping the corresponding ActiveRecord attribute to the corresponding value. + # + # @example + # parse_relationship(:comments, [{ 'id' => '1', 'type' => 'comments' }, + # { 'id' => '2', 'type' => 'comments' }], + # {}) + # # => { :comment_ids => ['1', '2'] } + # parse_relationship(:author, { 'id' => '1', 'type' => 'users' }, {}) + # # => { :author_id => '1' } + # parse_relationship(:author, nil, {}) + # # => { :author_id => nil } + # @param [Symbol] assoc_name + # @param [Hash] assoc_data + # @param [Hash] options + # @return [Hash{Symbol, Object}] + # + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:183 + def parse_relationship(assoc_name, assoc_data, options); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:201 + def parse_relationships(relationships, options); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:208 + def transform_keys(hash, options); end + + # Checks whether a payload is compliant with the JSON API spec. + # + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:112 + def validate_payload(payload); end + + class << self + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:154 + def field_key(field, options); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:145 + def filter_fields(fields, options); end + + # Same as parse!, but returns an empty hash instead of raising InvalidDocument + # on invalid payloads. + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:85 + def parse(document, options = T.unsafe(nil)); end + + # Transform a JSON API document, containing a single data object, + # into a hash that is ready for ActiveRecord::Base.new() and such. + # Raises InvalidDocument if the payload is not properly formatted. + # + # @param [Hash|ActionController::Parameters] document + # @param [Hash] options + # only: Array of symbols of whitelisted fields. + # except: Array of symbols of blacklisted fields. + # keys: Hash of translated keys (e.g. :author => :user). + # polymorphic: Array of symbols of polymorphic fields. + # @return [Hash] + # + # @example + # document = { + # data: { + # id: 1, + # type: 'post', + # attributes: { + # title: 'Title 1', + # date: '2015-12-20' + # }, + # associations: { + # author: { + # data: { + # type: 'user', + # id: 2 + # } + # }, + # second_author: { + # data: nil + # }, + # comments: { + # data: [{ + # type: 'comment', + # id: 3 + # },{ + # type: 'comment', + # id: 4 + # }] + # } + # } + # } + # } + # + # parse(document) #=> + # # { + # # title: 'Title 1', + # # date: '2015-12-20', + # # author_id: 2, + # # second_author_id: nil + # # comment_ids: [3, 4] + # # } + # + # parse(document, only: [:title, :date, :author], + # keys: { date: :published_at }, + # polymorphic: [:author]) #=> + # # { + # # title: 'Title 1', + # # published_at: '2015-12-20', + # # author_id: '2', + # # author_type: 'people' + # # } + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:77 + def parse!(document, options = T.unsafe(nil)); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:159 + def parse_attributes(attributes, options); end + + # Given an association name, and a relationship data attribute, build a hash + # mapping the corresponding ActiveRecord attribute to the corresponding value. + # + # @example + # parse_relationship(:comments, [{ 'id' => '1', 'type' => 'comments' }, + # { 'id' => '2', 'type' => 'comments' }], + # {}) + # # => { :comment_ids => ['1', '2'] } + # parse_relationship(:author, { 'id' => '1', 'type' => 'users' }, {}) + # # => { :author_id => '1' } + # parse_relationship(:author, nil, {}) + # # => { :author_id => nil } + # @param [Symbol] assoc_name + # @param [Hash] assoc_data + # @param [Hash] options + # @return [Hash{Symbol, Object}] + # + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:183 + def parse_relationship(assoc_name, assoc_data, options); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:201 + def parse_relationships(relationships, options); end + + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:208 + def transform_keys(hash, options); end + + # Checks whether a payload is compliant with the JSON API spec. + # + # @api private + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:112 + def validate_payload(payload); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/deserialization.rb:10 +class ActiveModelSerializers::Adapter::JsonApi::Deserialization::InvalidDocument < ::ArgumentError; end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/error.rb:6 +module ActiveModelSerializers::Adapter::JsonApi::Error + class << self + # definition: + # JSON Object + # + # properties: + # ☐ id : String + # ☐ status : String + # ☐ code : String + # ☐ title : String + # ☑ detail : String + # ☐ links + # ☐ meta + # ☑ error_source + # + # description: + # id : A unique identifier for this particular occurrence of the problem. + # status : The HTTP status code applicable to this problem, expressed as a string value + # code : An application-specific error code, expressed as a string value. + # title : A short, human-readable summary of the problem. It **SHOULD NOT** change from + # occurrence to occurrence of the problem, except for purposes of localization. + # detail : A human-readable explanation specific to this occurrence of the problem. + # structure: + # { + # title: 'SystemFailure', + # detail: 'something went terribly wrong', + # status: '500' + # }.merge!(errorSource) + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/error.rb:49 + def attribute_error_objects(attribute_name, attribute_errors); end + + # errorSource + # description: + # oneOf + # ☑ pointer : String + # ☑ parameter : String + # + # description: + # pointer: A JSON Pointer RFC6901 to the associated entity in the request document e.g. "/data" + # for a primary data object, or "/data/attributes/title" for a specific attribute. + # https://tools.ietf.org/html/rfc6901 + # + # parameter: A string indicating which query parameter caused the error + # structure: + # if is_attribute? + # { + # pointer: '/data/attributes/red-button' + # } + # else + # { + # parameter: 'pres' + # } + # end + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/error.rb:80 + def error_source(source_type, attribute_name); end + + # Builds a JSON API Errors Object + # {http://jsonapi.org/format/#errors JSON API Errors} + # + # @param [ActiveModel::Serializer::ErrorSerializer] error_serializer + # @return [Array>] i.e. attribute_name, [attribute_errors] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/error.rb:15 + def resource_errors(error_serializer, options); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/error.rb:8 +class ActiveModelSerializers::Adapter::JsonApi::Error::UnknownSourceTypeError < ::ArgumentError; end + +# toplevel_jsonapi +# definition: +# JSON Object +# +# properties: +# version : String +# meta +# +# description: +# An object describing the server's implementation +# structure: +# { +# version: ActiveModelSerializers.config.jsonapi_version, +# meta: ActiveModelSerializers.config.jsonapi_toplevel_meta +# }.reject! { |_, v| v.blank? } +# prs: +# https://github.com/rails-api/active_model_serializers/pull/1050 +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/jsonapi.rb:25 +module ActiveModelSerializers::Adapter::JsonApi::Jsonapi + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/jsonapi.rb:28 + def add!(hash); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/jsonapi.rb:32 + def include_object?; end + + # TODO: see if we can cache this + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/jsonapi.rb:37 + def object; end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/jsonapi.rb:28 + def add!(hash); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/jsonapi.rb:32 + def include_object?; end + + # TODO: see if we can cache this + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/jsonapi.rb:37 + def object; end + end +end + +# link +# definition: +# oneOf +# linkString +# linkObject +# +# description: +# A link **MUST** be represented as either: a string containing the link's URL or a link +# object." +# structure: +# if href? +# linkString +# else +# linkObject +# end +# +# linkString +# definition: +# URI +# +# description: +# A string containing the link's URL. +# structure: +# 'http://example.com/link-string' +# +# linkObject +# definition: +# JSON Object +# +# properties: +# href (required) : URI +# meta +# structure: +# { +# href: 'http://example.com/link-object', +# meta: meta, +# }.reject! {|_,v| v.nil? } +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/link.rb:43 +class ActiveModelSerializers::Adapter::JsonApi::Link + include ::ActiveModelSerializers::SerializationContext::UrlHelpers + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/link.rb:46 + def initialize(serializer, value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/link.rb:69 + def as_json; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/link.rb:59 + def href(value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/link.rb:64 + def meta(value); end + + protected + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/link.rb:81 + def object; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/link.rb:81 + def scope; end +end + +# meta +# definition: +# JSON Object +# +# description: +# Non-standard meta-information that can not be represented as an attribute or relationship. +# structure: +# { +# attitude: 'adjustable' +# } +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/meta.rb:16 +class ActiveModelSerializers::Adapter::JsonApi::Meta + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/meta.rb:17 + def initialize(serializer); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/meta.rb:29 + def as_json; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/meta.rb:35 + def object; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/meta.rb:35 + def scope; end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:6 +class ActiveModelSerializers::Adapter::JsonApi::PaginationLinks + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:12 + def initialize(collection, adapter_options); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:24 + def as_json; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:10 + def collection; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:10 + def context; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:36 + def adapter_options; end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:44 + def first_page_url; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:48 + def last_page_url; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:40 + def location_url; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:64 + def next_page_url; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:88 + def per_page; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:56 + def prev_page_url; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:84 + def query_parameters; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:80 + def request_url; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:76 + def url(options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:70 + def url_for_page(number); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:8 +ActiveModelSerializers::Adapter::JsonApi::PaginationLinks::FIRST_PAGE = T.let(T.unsafe(nil), Integer) + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/pagination_links.rb:7 +class ActiveModelSerializers::Adapter::JsonApi::PaginationLinks::MissingSerializationContextError < ::KeyError; end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:6 +class ActiveModelSerializers::Adapter::JsonApi::Relationship + # {http://jsonapi.org/format/#document-resource-object-related-resource-links Document Resource Object Related Resource Links} + # {http://jsonapi.org/format/#document-links Document Links} + # {http://jsonapi.org/format/#document-resource-object-linkage Document Resource Relationship Linkage} + # {http://jsonapi.org/format/#document-meta Document Meta} + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:11 + def initialize(parent_serializer, serializable_resource_options, association); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:17 + def as_json; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:34 + def association; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:34 + def parent_serializer; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:34 + def serializable_resource_options; end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:98 + def belongs_to_id_on_self?(association); end + + # TODO(BF): Avoid db hit on belong_to_ releationship by using foreign_key on self + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:39 + def data_for(association); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:72 + def data_for_many(association); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:47 + def data_for_one(association); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:86 + def links_for(association); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/relationship.rb:93 + def meta_for(association); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:6 +class ActiveModelSerializers::Adapter::JsonApi::ResourceIdentifier + # {http://jsonapi.org/format/#document-resource-identifier-objects Resource Identifier Objects} + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:38 + def initialize(serializer, options); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:43 + def as_json; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:53 + def id; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:53 + def type; end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:62 + def id_for(serializer); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:57 + def type_for(serializer, transform_options); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:12 + def for_type_with_id(type, id, options); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:31 + def inflect_type(type); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:22 + def raw_type_from_serializer_object(object); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/json_api/resource_identifier.rb:7 + def type_for(serializer, serializer_type = T.unsafe(nil), transform_options = T.unsafe(nil)); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/null.rb:5 +class ActiveModelSerializers::Adapter::Null < ::ActiveModelSerializers::Adapter::Base + # pkg:gem/active_model_serializers#lib/active_model_serializers/adapter/null.rb:6 + def serializable_hash(*); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/adapter.rb:5 +class ActiveModelSerializers::Adapter::UnknownAdapterError < ::ArgumentError; end + +# = ActiveModelSerializers Callbacks +# +# ActiveModelSerializers provides hooks during the life cycle of serialization and +# allow you to trigger logic. Available callbacks are: +# +# * around_render +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/callbacks.rb:15 +module ActiveModelSerializers::Callbacks + extend ::ActiveSupport::Concern + include GeneratedInstanceMethods + include ::ActiveSupport::Callbacks + + mixes_in_class_methods GeneratedClassMethods + mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods + mixes_in_class_methods ::ActiveSupport::DescendantsTracker + mixes_in_class_methods ::ActiveModelSerializers::Callbacks::ClassMethods + + module GeneratedClassMethods + def __callbacks; end + def __callbacks=(value); end + end + + module GeneratedInstanceMethods + def __callbacks; end + end +end + +# These methods will be included into any ActiveModelSerializers object, adding +# callbacks for +render+. +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/callbacks.rb:25 +module ActiveModelSerializers::Callbacks::ClassMethods + # Defines a callback that will get called around the render method, + # whether it is as_json, to_json, or serializable_hash + # + # class ActiveModelSerializers::SerializableResource + # include ActiveModelSerializers::Callbacks + # + # around_render do |args, block| + # tag_logger do + # notify_render do + # block.call(args) + # end + # end + # end + # + # def as_json + # run_callbacks :render do + # adapter.as_json + # end + # end + # # Note: So that we can re-use the instrumenter for as_json, to_json, and + # # serializable_hash, we aren't using the usual format, which would be: + # # def render(args) + # # adapter.as_json + # # end + # end + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/callbacks.rb:52 + def around_render(*filters, &blk); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/deprecate.rb:27 +module ActiveModelSerializers::Deprecate + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/deprecate.rb:48 + def delegate_and_deprecate(method, delegee); end + + # Simple deprecation method that deprecates +name+ by wrapping it up + # in a dummy method. It warns on each call to the dummy method + # telling the user of +replacement+ (unless +replacement+ is :none) that it is planned to go away. + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/deprecate.rb:33 + def deprecate(name, replacement); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/deprecate.rb:54 + def delegate_and_deprecate(method, delegee); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/deprecate.rb:53 + def deprecate(name, replacement); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/deserialization.rb:4 +module ActiveModelSerializers::Deserialization + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/deserialization.rb:7 + def jsonapi_parse(*args); end + + # :nocov: + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/deserialization.rb:12 + def jsonapi_parse!(*args); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/deserialization.rb:7 + def jsonapi_parse(*args); end + + # :nocov: + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/deserialization.rb:12 + def jsonapi_parse!(*args); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/json_pointer.rb:4 +module ActiveModelSerializers::JsonPointer + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/json_pointer.rb:12 + def new(pointer_type, value = T.unsafe(nil)); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/json_pointer.rb:12 + def new(pointer_type, value = T.unsafe(nil)); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/json_pointer.rb:7 +ActiveModelSerializers::JsonPointer::POINTERS = T.let(T.unsafe(nil), Hash) + +# pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:9 +module ActiveModelSerializers::Logging + extend ::ActiveSupport::Concern + include GeneratedInstanceMethods + include ::ActiveSupport::Callbacks + include ::ActiveModelSerializers::Callbacks + + mixes_in_class_methods GeneratedClassMethods + mixes_in_class_methods ::ActiveModelSerializers::Logging::ClassMethods + mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods + mixes_in_class_methods ::ActiveSupport::DescendantsTracker + mixes_in_class_methods ::ActiveModelSerializers::Callbacks::ClassMethods + mixes_in_class_methods ::ActiveModelSerializers::Logging::Macros + + # pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:78 + def notify_render(*); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:85 + def notify_render_payload; end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:103 + def logger_tagged_by_active_model_serializers?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:94 + def tag_logger(*tags); end + + module GeneratedClassMethods + def __callbacks; end + def __callbacks=(value); end + end + + module GeneratedInstanceMethods + def __callbacks; end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:19 +module ActiveModelSerializers::Logging::ClassMethods + # pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:20 + def instrument_rendering; end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:107 +class ActiveModelSerializers::Logging::LogSubscriber < ::ActiveSupport::LogSubscriber + # pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:117 + def logger; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:108 + def render(event); end +end + +# Macros that can be used to customize the logging of class or instance methods, +# by extending the class or its singleton. +# +# Adapted from: +# https://github.com/rubygems/rubygems/blob/cb28f5e991/lib/rubygems/deprecate.rb +# +# Provides a single method +notify+ to be used to declare when +# something a method notifies, with the argument +callback_name+ of the notification callback. +# +# class Adapter +# def self.klass_method +# # ... +# end +# +# def instance_method +# # ... +# end +# +# include ActiveModelSerializers::Logging::Macros +# notify :instance_method, :render +# +# class << self +# extend ActiveModelSerializers::Logging::Macros +# notify :klass_method, :render +# end +# end +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:57 +module ActiveModelSerializers::Logging::Macros + # Simple notify method that wraps up +name+ + # in a dummy method. It notifies on with the +callback_name+ notifier on + # each call to the dummy method, telling what the current serializer and adapter + # are being rendered. + # Adapted from: + # https://github.com/rubygems/rubygems/blob/cb28f5e991/lib/rubygems/deprecate.rb + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:65 + def notify(name, callback_name); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/logging.rb:10 +ActiveModelSerializers::Logging::RENDER_EVENT = T.let(T.unsafe(nil), String) + +# pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:4 +module ActiveModelSerializers::LookupChain + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:65 + def namespace_for(klass); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:69 + def resource_class_name(klass); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:77 + def serializer_from(klass); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:73 + def serializer_from_resource_name(name); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:65 + def namespace_for(klass); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:69 + def resource_class_name(klass); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:77 + def serializer_from(klass); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:73 + def serializer_from_resource_name(name); end + end +end + +# Uses the controller namespace of the resource to find the serializer +# +# Example: +# Api::V3::AuthorsController => Api::V3::AuthorSerializer +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:28 +ActiveModelSerializers::LookupChain::BY_NAMESPACE = T.let(T.unsafe(nil), Proc) + +# Allows for serializers to be defined in parent serializers +# - useful if a relationship only needs a different set of attributes +# than if it were rendered independently. +# +# Example: +# class BlogSerializer < ActiveModel::Serializer +# class AuthorSerialier < ActiveModel::Serializer +# ... +# end +# +# belongs_to :author +# ... +# end +# +# The belongs_to relationship would be rendered with +# BlogSerializer::AuthorSerialier +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:49 +ActiveModelSerializers::LookupChain::BY_PARENT_SERIALIZER = T.let(T.unsafe(nil), Proc) + +# Standard appending of Serializer to the resource name. +# +# Example: +# Author => AuthorSerializer +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:9 +ActiveModelSerializers::LookupChain::BY_RESOURCE = T.let(T.unsafe(nil), Proc) + +# Uses the namespace of the resource to find the serializer +# +# Example: +# British::Author => British::AuthorSerializer +# +# pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:17 +ActiveModelSerializers::LookupChain::BY_RESOURCE_NAMESPACE = T.let(T.unsafe(nil), Proc) + +# pkg:gem/active_model_serializers#lib/active_model_serializers/lookup_chain.rb:56 +ActiveModelSerializers::LookupChain::DEFAULT = T.let(T.unsafe(nil), Array) + +# pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:8 +class ActiveModelSerializers::Model + include ::ActiveModel::Serialization + include ::ActiveModel::Serializers::JSON + include ::ActiveModel::Validations + include ::ActiveSupport::Callbacks + include ::ActiveModel::Validations::HelperMethods + include ::ActiveModel::Conversion + include ::ActiveModel::ForbiddenAttributesProtection + include ::ActiveModel::AttributeAssignment + include ::ActiveModel::API + include ::ActiveModel::Access + include ::ActiveModel::Model + extend ::ActiveModel::Naming + extend ::ActiveModel::Validations::ClassMethods + extend ::ActiveModel::Callbacks + extend ::ActiveSupport::Callbacks::ClassMethods + extend ::ActiveSupport::DescendantsTracker + extend ::ActiveModel::Translation + extend ::ActiveModel::Validations::HelperMethods + extend ::ActiveModel::Conversion::ClassMethods + + # @param attributes [Hash] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:89 + def initialize(attributes = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _run_validate_callbacks(&block); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _validate_callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _validators; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _validators?; end + + # The only way to change the attributes of an instance is to directly mutate the attributes. + # @example + # + # model.attributes[:foo] = :bar + # @return [Hash] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:86 + def attributes; end + + # To customize model behavior, this method must be redefined. However, + # there are other ways of setting the +cache_key+ a serializer uses. + # @return [String] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:125 + def cache_key; end + + # Support for validation and other ActiveModel::Errors + # @return [ActiveModel::Errors] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:76 + def errors; end + + # Defaults to the downcased model name. + # This probably isn't a good default, since it's not a unique instance identifier, + # but that's what is currently implemented \_('-')_/. + # + # @note Though +id+ is defined, it will only show up + # in +attributes+ when it is passed in to the initializer or added to +attributes+, + # such as attributes[:id] = 5. + # @return [String, Numeric, Symbol] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:104 + def id; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:9 + def include_root_in_json; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:9 + def include_root_in_json?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:9 + def model_name(&); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def param_delimiter=(_arg0); end + + # (see #updated_at) + # When not set, defaults to the time the file was modified. + # + # @note Though +updated_at+ and +updated_at=+ are defined, it will only show up + # in +attributes+ when it is passed in to the initializer or added to +attributes+, + # such as attributes[:updated_at] = Time.current. + # @return [String, Numeric, Time] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:116 + def updated_at; end + + # (see #updated_at) + # When not set, defaults to the time the file was modified. + # + # @note Though +updated_at+ and +updated_at=+ are defined, it will only show up + # in +attributes+ when it is passed in to the initializer or added to +attributes+, + # such as attributes[:updated_at] = Time.current. + # @return [String, Numeric, Time] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:79 + def updated_at=(_arg0); end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __callbacks=(value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _validate_callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _validate_callbacks=(value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _validators; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _validators=(value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def _validators?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:18 + def attribute_names; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:18 + def attribute_names=(value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:18 + def attribute_names?; end + + # Easily declare instance attributes with setters and getters for each. + # + # To initialize an instance, all attributes must have setters. + # However, the hash returned by +attributes+ instance method will ALWAYS + # be the value of the initial attributes, regardless of what accessors are defined. + # The only way to change the change the attributes after initialization is + # to mutate the +attributes+ directly. + # Accessor methods do NOT mutate the attributes. (This is a bug). + # + # @note For now, the Model only supports the notion of 'attributes'. + # In the tests, there is a special Model that also supports 'associations'. This is + # important so that we can add accessors for values that should not appear in the + # attributes hash when modeling associations. It is not yet clear if it + # makes sense for a PORO to have associations outside of the tests. + # + # @overload attributes(names) + # @param names [Array] + # @param name [String, Symbol] + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:41 + def attributes(*names); end + + # Opt-in to breaking change + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:50 + def derive_attributes_from_names_and_fix_accessors; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:9 + def include_root_in_json; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:9 + def include_root_in_json=(value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:9 + def include_root_in_json?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def param_delimiter; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def param_delimiter=(value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def param_delimiter?; end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __class_attr___callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __class_attr___callbacks=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __class_attr__validators; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __class_attr__validators=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:18 + def __class_attr_attribute_names; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:18 + def __class_attr_attribute_names=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:9 + def __class_attr_include_root_in_json; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:9 + def __class_attr_include_root_in_json=(new_value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __class_attr_param_delimiter; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:10 + def __class_attr_param_delimiter=(new_value); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:56 +module ActiveModelSerializers::Model::DeriveAttributesFromNamesAndFixAccessors + # Override the +attributes+ method so that the hash is derived from +attribute_names+. + # + # The fields in +attribute_names+ determines the returned hash. + # +attributes+ are returned frozen to prevent any expectations that mutation affects + # the actual values in the model. + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:67 + def attributes; end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/model.rb:57 + def included(base); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/railtie.rb:9 +class ActiveModelSerializers::Railtie < ::Rails::Railtie + # :nocov: + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/railtie.rb:47 + def extend_action_controller_test_case(&block); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:6 +class ActiveModelSerializers::SerializableResource + include ::ActiveModelSerializers::Logging + include ::ActiveSupport::Callbacks + include ::ActiveModelSerializers::Callbacks + extend ::ActiveModelSerializers::Logging::ClassMethods + extend ::ActiveSupport::Callbacks::ClassMethods + extend ::ActiveSupport::DescendantsTracker + extend ::ActiveModelSerializers::Callbacks::ClassMethods + extend ::ActiveModelSerializers::Logging::Macros + + # Primary interface to composing a resource with a serializer and adapter. + # @return the serializable_resource, ready for #as_json/#to_json/#serializable_hash. + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:17 + def initialize(resource, options = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def __callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:12 + def _notifying_render_as_json(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:11 + def _notifying_render_serializable_hash(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:13 + def _notifying_render_to_json(*, **, &); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def _render_callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def _run_render_callbacks(&block); end + + # NOTE: if no adapter is available, returns the resource itself. (i.e. adapter is a no-op) + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:36 + def adapter; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:39 + def adapter_instance; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:10 + def as_json(*args, &block); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:41 + def find_adapter; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:10 + def serializable_hash(*args, &block); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:27 + def serialization_scope; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:23 + def serialization_scope=(scope); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:31 + def serialization_scope_name=(scope_name); end + + # Get serializer either explicitly :serializer or implicitly from resource + # Remove :serializer key from serializer_opts + # Remove :each_serializer if present and set as :serializer key + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:56 + def serializer; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:76 + def serializer?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:68 + def serializer_class; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:49 + def serializer_instance; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:10 + def to_json(*args, &block); end + + # True when no explicit adapter given, or explicit appear is truthy (non-nil) + # False when explicit adapter is falsy (nil or false) + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:72 + def use_adapter?; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:82 + def adapter_opts; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:82 + def resource; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:82 + def serializer_opts; end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def __callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def __callbacks=(value); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def _render_callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def _render_callbacks=(value); end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def __class_attr___callbacks; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:8 + def __class_attr___callbacks=(new_value); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/serializable_resource.rb:7 +ActiveModelSerializers::SerializableResource::ADAPTER_OPTION_KEYS = T.let(T.unsafe(nil), Set) + +# pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:5 +class ActiveModelSerializers::SerializationContext + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:28 + def initialize(*args); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:26 + def key_transform; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:26 + def query_parameters; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:26 + def request_url; end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:12 + def default_url_options; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:7 + def default_url_options=(_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:8 + def url_helpers; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:7 + def url_helpers=(_arg0); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:16 +module ActiveModelSerializers::SerializationContext::UrlHelpers + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:21 + def default_url_options; end + + class << self + # pkg:gem/active_model_serializers#lib/active_model_serializers/serialization_context.rb:17 + def included(base); end + end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test.rb:4 +module ActiveModelSerializers::Test + extend ::ActiveSupport::Autoload +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:5 +module ActiveModelSerializers::Test::Schema + # May be renamed + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:25 + def assert_request_response_schema(schema_path = T.unsafe(nil), message = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:19 + def assert_request_schema(schema_path = T.unsafe(nil), message = T.unsafe(nil)); end + + # A Minitest Assertion that test the response is valid against a schema. + # @param schema_path [String] a custom schema path + # @param message [String] a custom error message + # @return [Boolean] true when the response is valid + # @return [Minitest::Assertion] when the response is invalid + # @example + # get :index + # assert_response_schema + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:14 + def assert_response_schema(schema_path = T.unsafe(nil), message = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:30 + def assert_schema(payload, schema_path = T.unsafe(nil), message = T.unsafe(nil)); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:132 +class ActiveModelSerializers::Test::Schema::AssertRequestSchema < ::ActiveModelSerializers::Test::Schema::AssertSchema + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:133 + def initialize(*); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:126 +class ActiveModelSerializers::Test::Schema::AssertResponseSchema < ::ActiveModelSerializers::Test::Schema::AssertSchema + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:127 + def initialize(*); end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:38 +class ActiveModelSerializers::Test::Schema::AssertSchema + # Interface may change. + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:42 + def initialize(schema_path, request, response, message, payload = T.unsafe(nil)); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:53 + def call; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:39 + def message; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:39 + def payload; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:39 + def request; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:39 + def response; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:39 + def schema_path; end + + protected + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:68 + def action; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:100 + def add_schema_to_document_store; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:64 + def controller_path; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:62 + def document_store; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:96 + def json_schema; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:108 + def load_json(json); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:114 + def load_json_file(path); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:92 + def request_params; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:120 + def require_json_schema!; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:88 + def response_body; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:84 + def schema_data; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:72 + def schema_directory; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:76 + def schema_full_path; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:80 + def schema_path_default; end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:36 +class ActiveModelSerializers::Test::Schema::InvalidSchemaError < ::Minitest::Assertion; end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test/schema.rb:35 +class ActiveModelSerializers::Test::Schema::MissingSchema < ::Minitest::Assertion; end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:6 +module ActiveModelSerializers::Test::Serializer + extend ::ActiveSupport::Concern + + # Asserts that the request was rendered with the appropriate serializers. + # + # # assert that the "PostSerializer" serializer was rendered + # assert_serializer "PostSerializer" + # + # # return a custom error message + # assert_serializer "PostSerializer", "PostSerializer not rendered" + # + # # assert that the instance of PostSerializer was rendered + # assert_serializer PostSerializer + # + # # assert that the "PostSerializer" serializer was rendered + # assert_serializer :post_serializer + # + # # assert that the rendered serializer starts with "Post" + # assert_serializer %r{\APost.+\Z} + # + # # assert that no serializer was rendered + # assert_serializer nil + # + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:34 + def assert_serializer(expectation, message = T.unsafe(nil)); end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:117 + def setup_serialization_subscriptions; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:122 + def teardown_serialization_subscriptions; end +end + +# pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:41 +class ActiveModelSerializers::Test::Serializer::AssertSerializer + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:45 + def initialize; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:43 + def expectation; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:43 + def expectation=(_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:54 + def matches?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:42 + def message; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:50 + def message=(message); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:43 + def response; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:43 + def response=(_arg0); end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:42 + def serializers; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:68 + def subscribe; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:75 + def unsubscribe; end + + private + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:106 + def a_serializer?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:110 + def event_name; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:83 + def matches_class?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:102 + def matches_nil?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:96 + def matches_regexp?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:92 + def matches_string?; end + + # pkg:gem/active_model_serializers#lib/active_model_serializers/test/serializer.rb:87 + def matches_symbol?; end +end diff --git a/sorbet/rbi/gems/activejob@8.0.5.1.rbi b/sorbet/rbi/gems/activejob@8.0.5.2.rbi similarity index 68% rename from sorbet/rbi/gems/activejob@8.0.5.1.rbi rename to sorbet/rbi/gems/activejob@8.0.5.2.rbi index 77f5370d..c29fc73c 100644 --- a/sorbet/rbi/gems/activejob@8.0.5.1.rbi +++ b/sorbet/rbi/gems/activejob@8.0.5.2.rbi @@ -8,48 +8,48 @@ # :markup: markdown # :include: ../README.md # -# source://activejob//lib/active_job/gem_version.rb#3 +# pkg:gem/activejob#lib/active_job/gem_version.rb:3 module ActiveJob extend ::ActiveSupport::Autoload class << self - # source://activejob//lib/active_job/queue_adapter.rb#7 + # pkg:gem/activejob#lib/active_job/queue_adapter.rb:7 def adapter_name(adapter); end - # source://activejob//lib/active_job/deprecator.rb#4 + # pkg:gem/activejob#lib/active_job/deprecator.rb:4 def deprecator; end # Returns the currently loaded version of Active Job as a +Gem::Version+. # - # source://activejob//lib/active_job/gem_version.rb#5 + # pkg:gem/activejob#lib/active_job/gem_version.rb:5 def gem_version; end # Push many jobs onto the queue at once without running enqueue callbacks. # Queue adapters may communicate the enqueue status of each job by setting # successfully_enqueued and/or enqueue_error on the passed-in job instances. # - # source://activejob//lib/active_job/enqueuing.rb#14 + # pkg:gem/activejob#lib/active_job/enqueuing.rb:14 def perform_all_later(*jobs); end - # source://activejob//lib/active_job.rb#57 + # pkg:gem/activejob#lib/active_job.rb:57 def verbose_enqueue_logs; end - # source://activejob//lib/active_job.rb#57 + # pkg:gem/activejob#lib/active_job.rb:57 def verbose_enqueue_logs=(_arg0); end # Returns the currently loaded version of Active Job as a +Gem::Version+. # - # source://activejob//lib/active_job/version.rb#7 + # pkg:gem/activejob#lib/active_job/version.rb:7 def version; end private - # source://activejob//lib/active_job/instrumentation.rb#6 + # pkg:gem/activejob#lib/active_job/instrumentation.rb:6 def instrument_enqueue_all(queue_adapter, jobs); end end end -# source://activejob//lib/active_job/arguments.rb#28 +# pkg:gem/activejob#lib/active_job/arguments.rb:28 module ActiveJob::Arguments extend ::ActiveJob::Arguments @@ -58,7 +58,7 @@ module ActiveJob::Arguments # deserialized element by element. All other types are deserialized using # GlobalID. # - # source://activejob//lib/active_job/arguments.rb#42 + # pkg:gem/activejob#lib/active_job/arguments.rb:42 def deserialize(arguments); end # Serializes a set of arguments. Intrinsic types that can safely be @@ -66,65 +66,61 @@ module ActiveJob::Arguments # serialized element by element. All other types are serialized using # GlobalID. # - # source://activejob//lib/active_job/arguments.rb#34 + # pkg:gem/activejob#lib/active_job/arguments.rb:34 def serialize(arguments); end private - # source://activejob//lib/active_job/arguments.rb#190 + # pkg:gem/activejob#lib/active_job/arguments.rb:190 def convert_to_global_id_hash(argument); end - # @return [Boolean] - # - # source://activejob//lib/active_job/arguments.rb#137 + # pkg:gem/activejob#lib/active_job/arguments.rb:137 def custom_serialized?(hash); end - # source://activejob//lib/active_job/arguments.rb#110 + # pkg:gem/activejob#lib/active_job/arguments.rb:110 def deserialize_argument(argument); end - # source://activejob//lib/active_job/arguments.rb#133 + # pkg:gem/activejob#lib/active_job/arguments.rb:133 def deserialize_global_id(hash); end - # source://activejob//lib/active_job/arguments.rb#147 + # pkg:gem/activejob#lib/active_job/arguments.rb:147 def deserialize_hash(serialized_hash); end - # source://activejob//lib/active_job/arguments.rb#71 + # pkg:gem/activejob#lib/active_job/arguments.rb:71 def serialize_argument(argument); end - # source://activejob//lib/active_job/arguments.rb#141 + # pkg:gem/activejob#lib/active_job/arguments.rb:141 def serialize_hash(argument); end - # source://activejob//lib/active_job/arguments.rb#160 + # pkg:gem/activejob#lib/active_job/arguments.rb:160 def serialize_hash_key(key); end - # source://activejob//lib/active_job/arguments.rb#171 + # pkg:gem/activejob#lib/active_job/arguments.rb:171 def serialize_indifferent_hash(indifferent_hash); end - # @return [Boolean] - # - # source://activejob//lib/active_job/arguments.rb#129 + # pkg:gem/activejob#lib/active_job/arguments.rb:129 def serialized_global_id?(hash); end - # source://activejob//lib/active_job/arguments.rb#177 + # pkg:gem/activejob#lib/active_job/arguments.rb:177 def transform_symbol_keys(hash, symbol_keys); end end -# source://activejob//lib/active_job/arguments.rb#50 +# pkg:gem/activejob#lib/active_job/arguments.rb:50 ActiveJob::Arguments::GLOBALID_KEY = T.let(T.unsafe(nil), String) -# source://activejob//lib/active_job/arguments.rb#58 +# pkg:gem/activejob#lib/active_job/arguments.rb:58 ActiveJob::Arguments::OBJECT_SERIALIZER_KEY = T.let(T.unsafe(nil), String) -# source://activejob//lib/active_job/arguments.rb#61 +# pkg:gem/activejob#lib/active_job/arguments.rb:61 ActiveJob::Arguments::RESERVED_KEYS = T.let(T.unsafe(nil), Array) -# source://activejob//lib/active_job/arguments.rb#54 +# pkg:gem/activejob#lib/active_job/arguments.rb:54 ActiveJob::Arguments::RUBY2_KEYWORDS_KEY = T.let(T.unsafe(nil), String) -# source://activejob//lib/active_job/arguments.rb#52 +# pkg:gem/activejob#lib/active_job/arguments.rb:52 ActiveJob::Arguments::SYMBOL_KEYS_KEY = T.let(T.unsafe(nil), String) -# source://activejob//lib/active_job/arguments.rb#56 +# pkg:gem/activejob#lib/active_job/arguments.rb:56 ActiveJob::Arguments::WITH_INDIFFERENT_ACCESS_KEY = T.let(T.unsafe(nil), String) # = Active Job \Base @@ -173,7 +169,7 @@ ActiveJob::Arguments::WITH_INDIFFERENT_ACCESS_KEY = T.let(T.unsafe(nil), String) # * DeserializationError - Error class for deserialization errors. # * SerializationError - Error class for serialization errors. # -# source://activejob//lib/active_job/base.rb#63 +# pkg:gem/activejob#lib/active_job/base.rb:63 class ActiveJob::Base include ::ActiveJob::Core include ::ActiveJob::QueueAdapter @@ -189,7 +185,6 @@ class ActiveJob::Base include ::ActiveJob::Logging include ::ActiveJob::Timezones include ::ActiveJob::Translation - include ::Sidekiq::Job::Options include ::ActiveJob::TestHelper::TestQueueAdapter extend ::ActiveJob::Core::ClassMethods extend ::ActiveJob::QueueAdapter::ClassMethods @@ -202,302 +197,256 @@ class ActiveJob::Base extend ::ActiveSupport::DescendantsTracker extend ::ActiveJob::Callbacks::ClassMethods extend ::ActiveJob::Exceptions::ClassMethods - extend ::Sidekiq::Job::Options::ClassMethods extend ::ActiveJob::TestHelper::TestQueueAdapter::ClassMethods - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activejob#lib/active_job/base.rb:70 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activejob#lib/active_job/base.rb:70 def _enqueue_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activejob#lib/active_job/base.rb:70 def _perform_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activejob#lib/active_job/base.rb:70 def _run_enqueue_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activejob#lib/active_job/base.rb:70 def _run_perform_callbacks(&block); end - # source://activejob//lib/active_job/exceptions.rb#12 + # pkg:gem/activejob#lib/active_job/base.rb:71 def after_discard_procs; end - # source://activejob//lib/active_job/exceptions.rb#12 + # pkg:gem/activejob#lib/active_job/base.rb:71 def after_discard_procs=(_arg0); end - # source://activejob//lib/active_job/exceptions.rb#12 + # pkg:gem/activejob#lib/active_job/base.rb:71 def after_discard_procs?; end - # source://activejob//lib/active_job/logging.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:73 def logger; end - # source://activejob//lib/active_job/logging.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:73 def logger=(val); end - # source://activejob//lib/active_job/queue_adapter.rb#27 - def queue_adapter(&_arg0); end + # pkg:gem/activejob#lib/active_job/base.rb:65 + def queue_adapter(&); end - # source://activejob//lib/active_job/queue_name.rb#57 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_prefix; end - # source://activejob//lib/active_job/queue_name.rb#57 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_prefix=(_arg0); end - # source://activejob//lib/active_job/queue_name.rb#57 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_prefix?; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:69 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:69 def rescue_handlers=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:69 def rescue_handlers?; end - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#141 - def sidekiq_options_hash; end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#153 - def sidekiq_options_hash=(_arg0); end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#141 - def sidekiq_retries_exhausted_block; end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#153 - def sidekiq_retries_exhausted_block=(_arg0); end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#141 - def sidekiq_retry_in_block; end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#153 - def sidekiq_retry_in_block=(_arg0); end - class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activejob#lib/active_job/base.rb:70 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activejob#lib/active_job/base.rb:70 def __callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activejob#lib/active_job/base.rb:70 def _enqueue_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activejob#lib/active_job/base.rb:70 def _enqueue_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activejob#lib/active_job/base.rb:70 def _perform_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activejob#lib/active_job/base.rb:70 def _perform_callbacks=(value); end - # source://activejob//lib/active_job/queue_adapter.rb#25 + # pkg:gem/activejob#lib/active_job/base.rb:65 def _queue_adapter; end - # source://activejob//lib/active_job/queue_adapter.rb#25 + # pkg:gem/activejob#lib/active_job/base.rb:65 def _queue_adapter=(value); end - # source://activejob//lib/active_job/queue_adapter.rb#24 + # pkg:gem/activejob#lib/active_job/base.rb:65 def _queue_adapter_name; end - # source://activejob//lib/active_job/queue_adapter.rb#24 + # pkg:gem/activejob#lib/active_job/base.rb:65 def _queue_adapter_name=(value); end - # source://activejob//lib/active_job/test_helper.rb#19 + # pkg:gem/activejob#lib/active_job/test_helper.rb:19 def _test_adapter; end - # source://activejob//lib/active_job/test_helper.rb#19 + # pkg:gem/activejob#lib/active_job/test_helper.rb:19 def _test_adapter=(value); end - # source://activejob//lib/active_job/exceptions.rb#12 + # pkg:gem/activejob#lib/active_job/base.rb:71 def after_discard_procs; end - # source://activejob//lib/active_job/exceptions.rb#12 + # pkg:gem/activejob#lib/active_job/base.rb:71 def after_discard_procs=(value); end - # source://activejob//lib/active_job/exceptions.rb#12 + # pkg:gem/activejob#lib/active_job/base.rb:71 def after_discard_procs?; end - # source://activejob//lib/active_job/enqueuing.rb#53 + # pkg:gem/activejob#lib/active_job/base.rb:68 def enqueue_after_transaction_commit; end - # source://activejob//lib/active_job/enqueuing.rb#53 + # pkg:gem/activejob#lib/active_job/base.rb:68 def enqueue_after_transaction_commit=(value); end - # source://activejob//lib/active_job/logging.rb#26 + # pkg:gem/activejob#lib/active_job/base.rb:73 def log_arguments; end - # source://activejob//lib/active_job/logging.rb#26 + # pkg:gem/activejob#lib/active_job/base.rb:73 def log_arguments=(value); end - # source://activejob//lib/active_job/logging.rb#26 + # pkg:gem/activejob#lib/active_job/base.rb:73 def log_arguments?; end - # source://activejob//lib/active_job/logging.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:73 def logger; end - # source://activejob//lib/active_job/logging.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:73 def logger=(val); end - # source://activejob//lib/active_job/queue_priority.rb#49 + # pkg:gem/activejob#lib/active_job/base.rb:67 def priority; end - # source://activejob//lib/active_job/queue_priority.rb#49 + # pkg:gem/activejob#lib/active_job/base.rb:67 def priority=(value); end - # source://activejob//lib/active_job/queue_priority.rb#49 + # pkg:gem/activejob#lib/active_job/base.rb:67 def priority?; end - # source://activejob//lib/active_job/queue_name.rb#55 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name; end - # source://activejob//lib/active_job/queue_name.rb#55 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name=(value); end - # source://activejob//lib/active_job/queue_name.rb#55 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name?; end - # source://activejob//lib/active_job/queue_name.rb#56 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_delimiter; end - # source://activejob//lib/active_job/queue_name.rb#56 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_delimiter=(value); end - # source://activejob//lib/active_job/queue_name.rb#56 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_delimiter?; end - # source://activejob//lib/active_job/queue_name.rb#57 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_prefix; end - # source://activejob//lib/active_job/queue_name.rb#57 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_prefix=(value); end - # source://activejob//lib/active_job/queue_name.rb#57 + # pkg:gem/activejob#lib/active_job/base.rb:66 def queue_name_prefix?; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:69 def rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:69 def rescue_handlers=(value); end - # source://activesupport/8.0.5.1/lib/active_support/rescuable.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:69 def rescue_handlers?; end - # source://activejob//lib/active_job/exceptions.rb#11 + # pkg:gem/activejob#lib/active_job/base.rb:71 def retry_jitter; end - # source://activejob//lib/active_job/exceptions.rb#11 + # pkg:gem/activejob#lib/active_job/base.rb:71 def retry_jitter=(value); end - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#108 - def sidekiq_options_hash; end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#116 - def sidekiq_options_hash=(val); end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#108 - def sidekiq_retries_exhausted_block; end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#116 - def sidekiq_retries_exhausted_block=(val); end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#108 - def sidekiq_retry_in_block; end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#116 - def sidekiq_retry_in_block=(val); end - private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:70 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:70 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:65 def __class_attr__queue_adapter; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:65 def __class_attr__queue_adapter=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:65 def __class_attr__queue_adapter_name; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:65 def __class_attr__queue_adapter_name=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/test_helper.rb:19 def __class_attr__test_adapter; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/test_helper.rb:19 def __class_attr__test_adapter=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:71 def __class_attr_after_discard_procs; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:71 def __class_attr_after_discard_procs=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:68 def __class_attr_enqueue_after_transaction_commit; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:68 def __class_attr_enqueue_after_transaction_commit=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:73 def __class_attr_log_arguments; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:73 def __class_attr_log_arguments=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:67 def __class_attr_priority; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:67 def __class_attr_priority=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:66 def __class_attr_queue_name; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:66 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:66 def __class_attr_queue_name_delimiter; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:66 def __class_attr_queue_name_delimiter=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:66 def __class_attr_queue_name_prefix; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:66 def __class_attr_queue_name_prefix=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:69 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:69 def __class_attr_rescue_handlers=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/base.rb:71 def __class_attr_retry_jitter; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/base.rb:71 def __class_attr_retry_jitter=(new_value); end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#103 - def __synchronized_sidekiq_options_hash; end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#103 - def __synchronized_sidekiq_retries_exhausted_block; end - - # source://sidekiq/7.3.9/lib/sidekiq/job.rb#103 - def __synchronized_sidekiq_retry_in_block; end end end @@ -513,7 +462,7 @@ end # * around_perform # * after_perform # -# source://activejob//lib/active_job/callbacks.rb#18 +# pkg:gem/activejob#lib/active_job/callbacks.rb:18 module ActiveJob::Callbacks extend ::ActiveSupport::Concern extend ::ActiveSupport::Callbacks @@ -526,18 +475,18 @@ module ActiveJob::Callbacks mixes_in_class_methods ::ActiveJob::Callbacks::ClassMethods class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activejob#lib/active_job/callbacks.rb:23 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activejob#lib/active_job/callbacks.rb:24 def _execute_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activejob#lib/active_job/callbacks.rb:24 def _run_execute_callbacks(&block); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#9 + # pkg:gem/activejob#lib/active_job/callbacks.rb:23 def __class_attr___callbacks; end end @@ -554,7 +503,7 @@ end # These methods will be included into any Active Job object, adding # callbacks for +perform+ and +enqueue+ methods. # -# source://activejob//lib/active_job/callbacks.rb#34 +# pkg:gem/activejob#lib/active_job/callbacks.rb:34 module ActiveJob::Callbacks::ClassMethods # Defines a callback that will get called right after the # job is enqueued. @@ -572,7 +521,7 @@ module ActiveJob::Callbacks::ClassMethods # end # end # - # source://activejob//lib/active_job/callbacks.rb#141 + # pkg:gem/activejob#lib/active_job/callbacks.rb:141 def after_enqueue(*filters, &blk); end # Defines a callback that will get called right after the @@ -590,7 +539,7 @@ module ActiveJob::Callbacks::ClassMethods # end # end # - # source://activejob//lib/active_job/callbacks.rb#69 + # pkg:gem/activejob#lib/active_job/callbacks.rb:69 def after_perform(*filters, &blk); end # Defines a callback that will get called around the enqueuing @@ -610,7 +559,7 @@ module ActiveJob::Callbacks::ClassMethods # end # end # - # source://activejob//lib/active_job/callbacks.rb#162 + # pkg:gem/activejob#lib/active_job/callbacks.rb:162 def around_enqueue(*filters, &blk); end # Defines a callback that will get called around the job's perform method. @@ -642,7 +591,7 @@ module ActiveJob::Callbacks::ClassMethods # end # end # - # source://activejob//lib/active_job/callbacks.rb#102 + # pkg:gem/activejob#lib/active_job/callbacks.rb:102 def around_perform(*filters, &blk); end # Defines a callback that will get called right before the @@ -660,7 +609,7 @@ module ActiveJob::Callbacks::ClassMethods # end # end # - # source://activejob//lib/active_job/callbacks.rb#121 + # pkg:gem/activejob#lib/active_job/callbacks.rb:121 def before_enqueue(*filters, &blk); end # Defines a callback that will get called right before the @@ -678,22 +627,20 @@ module ActiveJob::Callbacks::ClassMethods # end # end # - # source://activejob//lib/active_job/callbacks.rb#50 + # pkg:gem/activejob#lib/active_job/callbacks.rb:50 def before_perform(*filters, &blk); end end -# source://activejob//lib/active_job/configured_job.rb#4 +# pkg:gem/activejob#lib/active_job/configured_job.rb:4 class ActiveJob::ConfiguredJob - # @return [ConfiguredJob] a new instance of ConfiguredJob - # - # source://activejob//lib/active_job/configured_job.rb#5 + # pkg:gem/activejob#lib/active_job/configured_job.rb:5 def initialize(job_class, options = T.unsafe(nil)); end - # source://activejob//lib/active_job/configured_job.rb#14 - def perform_later(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activejob#lib/active_job/configured_job.rb:14 + def perform_later(*, **, &); end - # source://activejob//lib/active_job/configured_job.rb#10 - def perform_now(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activejob#lib/active_job/configured_job.rb:10 + def perform_now(*, **, &); end end # = Active Job \Core @@ -701,7 +648,7 @@ end # Provides general behavior that will be included into every Active Job # object that inherits from ActiveJob::Base. # -# source://activejob//lib/active_job/core.rb#8 +# pkg:gem/activejob#lib/active_job/core.rb:8 module ActiveJob::Core extend ::ActiveSupport::Concern @@ -710,17 +657,17 @@ module ActiveJob::Core # Creates a new job instance. Takes the arguments that will be # passed to the perform method. # - # source://activejob//lib/active_job/core.rb#93 - def initialize(*arguments, **_arg1); end + # pkg:gem/activejob#lib/active_job/core.rb:93 + def initialize(*arguments, **); end # Job arguments # - # source://activejob//lib/active_job/core.rb#12 + # pkg:gem/activejob#lib/active_job/core.rb:12 def arguments; end # Job arguments # - # source://activejob//lib/active_job/core.rb#12 + # pkg:gem/activejob#lib/active_job/core.rb:12 def arguments=(_arg0); end # Attaches the stored job data to the current instance. Receives a hash @@ -750,27 +697,27 @@ module ActiveJob::Core # end # end # - # source://activejob//lib/active_job/core.rb#150 + # pkg:gem/activejob#lib/active_job/core.rb:150 def deserialize(job_data); end # Track any exceptions raised by the backend so callers can inspect the errors. # - # source://activejob//lib/active_job/core.rb#56 + # pkg:gem/activejob#lib/active_job/core.rb:56 def enqueue_error; end # Track any exceptions raised by the backend so callers can inspect the errors. # - # source://activejob//lib/active_job/core.rb#56 + # pkg:gem/activejob#lib/active_job/core.rb:56 def enqueue_error=(_arg0); end # Track when a job was enqueued # - # source://activejob//lib/active_job/core.rb#46 + # pkg:gem/activejob#lib/active_job/core.rb:46 def enqueued_at; end # Track when a job was enqueued # - # source://activejob//lib/active_job/core.rb#46 + # pkg:gem/activejob#lib/active_job/core.rb:46 def enqueued_at=(_arg0); end # Hash that contains the number of times this job handled errors for each specific retry_on declaration. @@ -778,7 +725,7 @@ module ActiveJob::Core # while its associated value holds the number of executions where the corresponding retry_on # declaration handled one of its listed exceptions. # - # source://activejob//lib/active_job/core.rb#37 + # pkg:gem/activejob#lib/active_job/core.rb:37 def exception_executions; end # Hash that contains the number of times this job handled errors for each specific retry_on declaration. @@ -786,138 +733,130 @@ module ActiveJob::Core # while its associated value holds the number of executions where the corresponding retry_on # declaration handled one of its listed exceptions. # - # source://activejob//lib/active_job/core.rb#37 + # pkg:gem/activejob#lib/active_job/core.rb:37 def exception_executions=(_arg0); end # Number of times this job has been executed (which increments on every retry, like after an exception). # - # source://activejob//lib/active_job/core.rb#31 + # pkg:gem/activejob#lib/active_job/core.rb:31 def executions; end # Number of times this job has been executed (which increments on every retry, like after an exception). # - # source://activejob//lib/active_job/core.rb#31 + # pkg:gem/activejob#lib/active_job/core.rb:31 def executions=(_arg0); end # Job Identifier # - # source://activejob//lib/active_job/core.rb#19 + # pkg:gem/activejob#lib/active_job/core.rb:19 def job_id; end # Job Identifier # - # source://activejob//lib/active_job/core.rb#19 + # pkg:gem/activejob#lib/active_job/core.rb:19 def job_id=(_arg0); end # I18n.locale to be used during the job. # - # source://activejob//lib/active_job/core.rb#40 + # pkg:gem/activejob#lib/active_job/core.rb:40 def locale; end # I18n.locale to be used during the job. # - # source://activejob//lib/active_job/core.rb#40 + # pkg:gem/activejob#lib/active_job/core.rb:40 def locale=(_arg0); end # Priority that the job will have (lower is more priority). # - # source://activejob//lib/active_job/core.rb#25 + # pkg:gem/activejob#lib/active_job/core.rb:25 def priority=(_arg0); end # ID optionally provided by adapter # - # source://activejob//lib/active_job/core.rb#28 + # pkg:gem/activejob#lib/active_job/core.rb:28 def provider_job_id; end # ID optionally provided by adapter # - # source://activejob//lib/active_job/core.rb#28 + # pkg:gem/activejob#lib/active_job/core.rb:28 def provider_job_id=(_arg0); end # Queue in which the job will reside. # - # source://activejob//lib/active_job/core.rb#22 + # pkg:gem/activejob#lib/active_job/core.rb:22 def queue_name=(_arg0); end # Time when the job should be performed # - # source://activejob//lib/active_job/core.rb#16 + # pkg:gem/activejob#lib/active_job/core.rb:16 def scheduled_at; end # Time when the job should be performed # - # source://activejob//lib/active_job/core.rb#16 + # pkg:gem/activejob#lib/active_job/core.rb:16 def scheduled_at=(_arg0); end # Returns a hash with the job data that can safely be passed to the # queuing adapter. # - # source://activejob//lib/active_job/core.rb#107 + # pkg:gem/activejob#lib/active_job/core.rb:107 def serialize; end - # Sets the attribute serialized_arguments - # - # @param value the value to set the attribute serialized_arguments to. - # - # source://activejob//lib/active_job/core.rb#13 + # pkg:gem/activejob#lib/active_job/core.rb:13 def serialized_arguments=(_arg0); end # Configures the job with the given options. # - # source://activejob//lib/active_job/core.rb#165 + # pkg:gem/activejob#lib/active_job/core.rb:165 def set(options = T.unsafe(nil)); end # Track whether the adapter received the job successfully. # - # source://activejob//lib/active_job/core.rb#49 + # pkg:gem/activejob#lib/active_job/core.rb:49 def successfully_enqueued=(_arg0); end - # @return [Boolean] - # - # source://activejob//lib/active_job/core.rb#51 + # pkg:gem/activejob#lib/active_job/core.rb:51 def successfully_enqueued?; end # Timezone to be used during the job. # - # source://activejob//lib/active_job/core.rb#43 + # pkg:gem/activejob#lib/active_job/core.rb:43 def timezone; end # Timezone to be used during the job. # - # source://activejob//lib/active_job/core.rb#43 + # pkg:gem/activejob#lib/active_job/core.rb:43 def timezone=(_arg0); end private - # @return [Boolean] - # - # source://activejob//lib/active_job/core.rb#198 + # pkg:gem/activejob#lib/active_job/core.rb:198 def arguments_serialized?; end - # source://activejob//lib/active_job/core.rb#194 + # pkg:gem/activejob#lib/active_job/core.rb:194 def deserialize_arguments(serialized_args); end - # source://activejob//lib/active_job/core.rb#183 + # pkg:gem/activejob#lib/active_job/core.rb:183 def deserialize_arguments_if_needed; end - # source://activejob//lib/active_job/core.rb#202 + # pkg:gem/activejob#lib/active_job/core.rb:202 def deserialize_time(time); end - # source://activejob//lib/active_job/core.rb#190 + # pkg:gem/activejob#lib/active_job/core.rb:190 def serialize_arguments(arguments); end - # source://activejob//lib/active_job/core.rb#175 + # pkg:gem/activejob#lib/active_job/core.rb:175 def serialize_arguments_if_needed(arguments); end end # These methods will be included into any Active Job object, adding # helpers for de/serialization and creation of job instances. # -# source://activejob//lib/active_job/core.rb#60 +# pkg:gem/activejob#lib/active_job/core.rb:60 module ActiveJob::Core::ClassMethods # Creates a new job instance from a hash created with +serialize+ # - # source://activejob//lib/active_job/core.rb#62 + # pkg:gem/activejob#lib/active_job/core.rb:62 def deserialize(job_data); end # Creates a job preconfigured with the given options. You can call @@ -939,7 +878,7 @@ module ActiveJob::Core::ClassMethods # VideoJob.set(queue: :some_queue, wait_until: Time.now.tomorrow).perform_later(Video.last) # VideoJob.set(queue: :some_queue, wait: 5.minutes, priority: 10).perform_later(Video.last) # - # source://activejob//lib/active_job/core.rb#86 + # pkg:gem/activejob#lib/active_job/core.rb:86 def set(options = T.unsafe(nil)); end end @@ -947,29 +886,27 @@ end # # Wraps the original exception raised as +cause+. # -# source://activejob//lib/active_job/arguments.rb#10 +# pkg:gem/activejob#lib/active_job/arguments.rb:10 class ActiveJob::DeserializationError < ::StandardError - # @return [DeserializationError] a new instance of DeserializationError - # - # source://activejob//lib/active_job/arguments.rb#11 + # pkg:gem/activejob#lib/active_job/arguments.rb:11 def initialize; end end -# source://activejob//lib/active_job/enqueue_after_transaction_commit.rb#4 +# pkg:gem/activejob#lib/active_job/enqueue_after_transaction_commit.rb:4 module ActiveJob::EnqueueAfterTransactionCommit private - # source://activejob//lib/active_job/enqueue_after_transaction_commit.rb#6 + # pkg:gem/activejob#lib/active_job/enqueue_after_transaction_commit.rb:6 def raw_enqueue; end end # Can be raised by adapters if they wish to communicate to the caller a reason # why the adapter was unexpectedly unable to enqueue a job. # -# source://activejob//lib/active_job/enqueuing.rb#8 +# pkg:gem/activejob#lib/active_job/enqueuing.rb:8 class ActiveJob::EnqueueError < ::StandardError; end -# source://activejob//lib/active_job/enqueuing.rb#40 +# pkg:gem/activejob#lib/active_job/enqueuing.rb:40 module ActiveJob::Enqueuing extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -993,12 +930,12 @@ module ActiveJob::Enqueuing # my_job_instance.enqueue wait_until: Date.tomorrow.midnight # my_job_instance.enqueue priority: 10 # - # source://activejob//lib/active_job/enqueuing.rb#112 + # pkg:gem/activejob#lib/active_job/enqueuing.rb:112 def enqueue(options = T.unsafe(nil)); end private - # source://activejob//lib/active_job/enqueuing.rb#128 + # pkg:gem/activejob#lib/active_job/enqueuing.rb:128 def raw_enqueue; end module GeneratedClassMethods @@ -1011,7 +948,7 @@ end # Includes the +perform_later+ method for job initialization. # -# source://activejob//lib/active_job/enqueuing.rb#57 +# pkg:gem/activejob#lib/active_job/enqueuing.rb:57 module ActiveJob::Enqueuing::ClassMethods # Push a job onto the queue. By default the arguments must be either String, # Integer, Float, NilClass, TrueClass, FalseClass, BigDecimal, Symbol, Date, @@ -1037,20 +974,18 @@ module ActiveJob::Enqueuing::ClassMethods # self.enqueue_after_transaction_commit = false # end # - # @yield [job] - # - # source://activejob//lib/active_job/enqueuing.rb#81 - def perform_later(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activejob#lib/active_job/enqueuing.rb:81 + def perform_later(*, **, &); end private - # source://activejob//lib/active_job/enqueuing.rb#91 - def job_or_instantiate(*args, **_arg1, &_); end + # pkg:gem/activejob#lib/active_job/enqueuing.rb:91 + def job_or_instantiate(*args, **, &_); end end # Provides behavior for retrying and discarding jobs on exceptions. # -# source://activejob//lib/active_job/exceptions.rb#7 +# pkg:gem/activejob#lib/active_job/exceptions.rb:7 module ActiveJob::Exceptions extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1081,21 +1016,21 @@ module ActiveJob::Exceptions # end # end # - # source://activejob//lib/active_job/exceptions.rb#151 + # pkg:gem/activejob#lib/active_job/exceptions.rb:151 def retry_job(options = T.unsafe(nil)); end private - # source://activejob//lib/active_job/exceptions.rb#162 + # pkg:gem/activejob#lib/active_job/exceptions.rb:162 def determine_delay(seconds_or_duration_or_algorithm:, executions:, jitter: T.unsafe(nil)); end - # source://activejob//lib/active_job/exceptions.rb#183 + # pkg:gem/activejob#lib/active_job/exceptions.rb:183 def determine_jitter_for_delay(delay, jitter); end - # source://activejob//lib/active_job/exceptions.rb#188 + # pkg:gem/activejob#lib/active_job/exceptions.rb:188 def executions_for(exceptions); end - # source://activejob//lib/active_job/exceptions.rb#197 + # pkg:gem/activejob#lib/active_job/exceptions.rb:197 def run_after_discard_procs(exception); end module GeneratedClassMethods @@ -1113,7 +1048,7 @@ module ActiveJob::Exceptions end end -# source://activejob//lib/active_job/exceptions.rb#15 +# pkg:gem/activejob#lib/active_job/exceptions.rb:15 module ActiveJob::Exceptions::ClassMethods # A block to run when a job is about to be discarded for any reason. # @@ -1128,7 +1063,7 @@ module ActiveJob::Exceptions::ClassMethods # # end # - # source://activejob//lib/active_job/exceptions.rb#124 + # pkg:gem/activejob#lib/active_job/exceptions.rb:124 def after_discard(&blk); end # Discard the job with no attempts to retry, if the exception is raised. This is useful when the subject of the job, @@ -1153,7 +1088,7 @@ module ActiveJob::Exceptions::ClassMethods # end # end # - # source://activejob//lib/active_job/exceptions.rb#103 + # pkg:gem/activejob#lib/active_job/exceptions.rb:103 def discard_on(*exceptions); end # Catch the exception and reschedule job for re-execution after so many seconds, for a specific number of attempts. @@ -1203,11 +1138,11 @@ module ActiveJob::Exceptions::ClassMethods # end # end # - # source://activejob//lib/active_job/exceptions.rb#62 + # pkg:gem/activejob#lib/active_job/exceptions.rb:62 def retry_on(*exceptions, wait: T.unsafe(nil), attempts: T.unsafe(nil), queue: T.unsafe(nil), priority: T.unsafe(nil), jitter: T.unsafe(nil)); end end -# source://activejob//lib/active_job/exceptions.rb#159 +# pkg:gem/activejob#lib/active_job/exceptions.rb:159 ActiveJob::Exceptions::JITTER_DEFAULT = T.let(T.unsafe(nil), Object) # = Active Job \Execution @@ -1217,7 +1152,7 @@ ActiveJob::Exceptions::JITTER_DEFAULT = T.let(T.unsafe(nil), Object) # {rescue_from}[rdoc-ref:ActiveSupport::Rescuable::ClassMethods#rescue_from] # are handled. # -# source://activejob//lib/active_job/execution.rb#12 +# pkg:gem/activejob#lib/active_job/execution.rb:12 module ActiveJob::Execution extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1227,8 +1162,8 @@ module ActiveJob::Execution mixes_in_class_methods ::ActiveSupport::Rescuable::ClassMethods mixes_in_class_methods ::ActiveJob::Execution::ClassMethods - # source://activejob//lib/active_job/execution.rb#60 - def perform(*_arg0); end + # pkg:gem/activejob#lib/active_job/execution.rb:60 + def perform(*); end # Performs the job immediately. The job is not sent to the queuing adapter # but directly executed by blocking the execution of others until it's finished. @@ -1242,12 +1177,12 @@ module ActiveJob::Execution # # puts MyJob.new(*args).perform_now # => "Hello World!" # - # source://activejob//lib/active_job/execution.rb#45 + # pkg:gem/activejob#lib/active_job/execution.rb:45 def perform_now; end private - # source://activejob//lib/active_job/execution.rb#65 + # pkg:gem/activejob#lib/active_job/execution.rb:65 def _perform_job; end module GeneratedClassMethods @@ -1265,149 +1200,147 @@ end # Includes methods for executing and performing jobs instantly. # -# source://activejob//lib/active_job/execution.rb#17 +# pkg:gem/activejob#lib/active_job/execution.rb:17 module ActiveJob::Execution::ClassMethods - # source://activejob//lib/active_job/execution.rb#26 + # pkg:gem/activejob#lib/active_job/execution.rb:26 def execute(job_data); end # Performs the job immediately. # # MyJob.perform_now("mike") # - # source://activejob//lib/active_job/execution.rb#22 - def perform_now(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activejob#lib/active_job/execution.rb:22 + def perform_now(*, **, &); end end -# source://activejob//lib/active_job/instrumentation.rb#16 +# pkg:gem/activejob#lib/active_job/instrumentation.rb:16 module ActiveJob::Instrumentation extend ::ActiveSupport::Concern - # source://activejob//lib/active_job/instrumentation.rb#25 + # pkg:gem/activejob#lib/active_job/instrumentation.rb:25 def perform_now; end private - # source://activejob//lib/active_job/instrumentation.rb#30 + # pkg:gem/activejob#lib/active_job/instrumentation.rb:30 def _perform_job; end - # source://activejob//lib/active_job/instrumentation.rb#47 - def halted_callback_hook(*_arg0); end + # pkg:gem/activejob#lib/active_job/instrumentation.rb:47 + def halted_callback_hook(*); end - # source://activejob//lib/active_job/instrumentation.rb#35 + # pkg:gem/activejob#lib/active_job/instrumentation.rb:35 def instrument(operation, payload = T.unsafe(nil), &block); end end -# source://activejob//lib/active_job/log_subscriber.rb#6 +# pkg:gem/activejob#lib/active_job/log_subscriber.rb:6 class ActiveJob::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://activejob//lib/active_job/log_subscriber.rb#7 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:7 def backtrace_cleaner; end - # source://activejob//lib/active_job/log_subscriber.rb#7 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:7 def backtrace_cleaner=(_arg0); end - # source://activejob//lib/active_job/log_subscriber.rb#7 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:7 def backtrace_cleaner?; end - # source://activejob//lib/active_job/log_subscriber.rb#130 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:130 def discard(event); end - # source://activejob//lib/active_job/log_subscriber.rb#9 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:9 def enqueue(event); end - # source://activejob//lib/active_job/log_subscriber.rb#49 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:49 def enqueue_all(event); end - # source://activejob//lib/active_job/log_subscriber.rb#29 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:29 def enqueue_at(event); end - # source://activejob//lib/active_job/log_subscriber.rb#105 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:105 def enqueue_retry(event); end - # source://activejob//lib/active_job/log_subscriber.rb#86 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:86 def perform(event); end - # source://activejob//lib/active_job/log_subscriber.rb#76 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:76 def perform_start(event); end - # source://activejob//lib/active_job/log_subscriber.rb#120 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:120 def retry_stopped(event); end private - # source://activejob//lib/active_job/log_subscriber.rb#145 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:145 def args_info(job); end - # source://activejob//lib/active_job/log_subscriber.rb#199 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:199 def enqueue_source_location; end - # source://activejob//lib/active_job/log_subscriber.rb#207 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:207 def enqueued_jobs_message(adapter, enqueued_jobs); end - # source://activejob//lib/active_job/log_subscriber.rb#183 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:183 def error(progname = T.unsafe(nil), &block); end - # source://activejob//lib/active_job/log_subscriber.rb#154 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:154 def format(arg); end - # source://activejob//lib/active_job/log_subscriber.rb#175 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:175 def info(progname = T.unsafe(nil), &block); end - # source://activejob//lib/active_job/log_subscriber.rb#191 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:191 def log_enqueue_source; end - # source://activejob//lib/active_job/log_subscriber.rb#171 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:171 def logger; end - # source://activejob//lib/active_job/log_subscriber.rb#141 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:141 def queue_name(event); end - # source://activejob//lib/active_job/log_subscriber.rb#167 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:167 def scheduled_at(event); end class << self - # source://activejob//lib/active_job/log_subscriber.rb#7 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:7 def backtrace_cleaner; end - # source://activejob//lib/active_job/log_subscriber.rb#7 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:7 def backtrace_cleaner=(value); end - # source://activejob//lib/active_job/log_subscriber.rb#7 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:7 def backtrace_cleaner?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:7 def __class_attr_backtrace_cleaner; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:7 def __class_attr_backtrace_cleaner=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:27 def __class_attr_log_levels; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activejob#lib/active_job/log_subscriber.rb:27 def __class_attr_log_levels=(new_value); end end end -# source://activejob//lib/active_job/logging.rb#7 +# pkg:gem/activejob#lib/active_job/logging.rb:7 module ActiveJob::Logging extend ::ActiveSupport::Concern include GeneratedInstanceMethods mixes_in_class_methods GeneratedClassMethods - # source://activejob//lib/active_job/logging.rb#31 + # pkg:gem/activejob#lib/active_job/logging.rb:31 def perform_now; end private - # @return [Boolean] - # - # source://activejob//lib/active_job/logging.rb#45 + # pkg:gem/activejob#lib/active_job/logging.rb:45 def logger_tagged_by_active_job?; end - # source://activejob//lib/active_job/logging.rb#36 + # pkg:gem/activejob#lib/active_job/logging.rb:36 def tag_logger(*tags, &block); end module GeneratedClassMethods @@ -1425,7 +1358,7 @@ end # correct adapter. The default queue adapter is +:async+, # which loads the ActiveJob::QueueAdapters::AsyncAdapter. # -# source://activejob//lib/active_job/queue_adapter.rb#20 +# pkg:gem/activejob#lib/active_job/queue_adapter.rb:20 module ActiveJob::QueueAdapter extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1445,39 +1378,37 @@ end # Includes the setter method for changing the active queue adapter. # -# source://activejob//lib/active_job/queue_adapter.rb#31 +# pkg:gem/activejob#lib/active_job/queue_adapter.rb:31 module ActiveJob::QueueAdapter::ClassMethods # Returns the backend queue provider. The default queue adapter # is +:async+. See QueueAdapters for more information. # - # source://activejob//lib/active_job/queue_adapter.rb#34 + # pkg:gem/activejob#lib/active_job/queue_adapter.rb:34 def queue_adapter; end # Specify the backend queue provider. The default queue adapter # is the +:async+ queue. See QueueAdapters for more # information. # - # source://activejob//lib/active_job/queue_adapter.rb#49 + # pkg:gem/activejob#lib/active_job/queue_adapter.rb:49 def queue_adapter=(name_or_adapter); end # Returns string denoting the name of the configured queue adapter. # By default returns "async". # - # source://activejob//lib/active_job/queue_adapter.rb#41 + # pkg:gem/activejob#lib/active_job/queue_adapter.rb:41 def queue_adapter_name; end private - # source://activejob//lib/active_job/queue_adapter.rb#66 + # pkg:gem/activejob#lib/active_job/queue_adapter.rb:66 def assign_adapter(adapter_name, queue_adapter); end - # @return [Boolean] - # - # source://activejob//lib/active_job/queue_adapter.rb#73 + # pkg:gem/activejob#lib/active_job/queue_adapter.rb:73 def queue_adapter?(object); end end -# source://activejob//lib/active_job/queue_adapter.rb#71 +# pkg:gem/activejob#lib/active_job/queue_adapter.rb:71 ActiveJob::QueueAdapter::ClassMethods::QUEUE_ADAPTER_METHODS = T.let(T.unsafe(nil), Array) # = Active Job adapters @@ -1588,7 +1519,7 @@ ActiveJob::QueueAdapter::ClassMethods::QUEUE_ADAPTER_METHODS = T.let(T.unsafe(ni # N/A: The adapter does not run in a separate process, and therefore doesn't # support retries. # -# source://activejob//lib/active_job/queue_adapters.rb#112 +# pkg:gem/activejob#lib/active_job/queue_adapters.rb:112 module ActiveJob::QueueAdapters extend ::ActiveSupport::Autoload @@ -1598,12 +1529,12 @@ module ActiveJob::QueueAdapters # ActiveJob::QueueAdapters.lookup(:sidekiq) # # => ActiveJob::QueueAdapters::SidekiqAdapter # - # source://activejob//lib/active_job/queue_adapters.rb#135 + # pkg:gem/activejob#lib/active_job/queue_adapters.rb:135 def lookup(name); end end end -# source://activejob//lib/active_job/queue_adapters.rb#127 +# pkg:gem/activejob#lib/active_job/queue_adapters.rb:127 ActiveJob::QueueAdapters::ADAPTER = T.let(T.unsafe(nil), String) # = Active Job Abstract Adapter @@ -1611,16 +1542,12 @@ ActiveJob::QueueAdapters::ADAPTER = T.let(T.unsafe(nil), String) # Active Job supports multiple job queue systems. ActiveJob::QueueAdapters::AbstractAdapter # forms the abstraction layer which makes this possible. # -# source://activejob//lib/active_job/queue_adapters/abstract_adapter.rb#9 +# pkg:gem/activejob#lib/active_job/queue_adapters/abstract_adapter.rb:9 class ActiveJob::QueueAdapters::AbstractAdapter - # @raise [NotImplementedError] - # - # source://activejob//lib/active_job/queue_adapters/abstract_adapter.rb#10 + # pkg:gem/activejob#lib/active_job/queue_adapters/abstract_adapter.rb:10 def enqueue(job); end - # @raise [NotImplementedError] - # - # source://activejob//lib/active_job/queue_adapters/abstract_adapter.rb#14 + # pkg:gem/activejob#lib/active_job/queue_adapters/abstract_adapter.rb:14 def enqueue_at(job, timestamp); end end @@ -1648,31 +1575,29 @@ end # jobs. Since jobs share a single thread pool, long-running jobs will block # short-lived jobs. Fine for dev/test; bad for production. # -# source://activejob//lib/active_job/queue_adapters/async_adapter.rb#33 +# pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:33 class ActiveJob::QueueAdapters::AsyncAdapter < ::ActiveJob::QueueAdapters::AbstractAdapter # See {Concurrent::ThreadPoolExecutor}[https://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ThreadPoolExecutor.html] for executor options. # - # @return [AsyncAdapter] a new instance of AsyncAdapter - # - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#35 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:35 def initialize(**executor_options); end - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#39 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:39 def enqueue(job); end - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#43 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:43 def enqueue_at(job, timestamp); end # Used for our test suite. # - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#55 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:55 def immediate=(immediate); end # Gracefully stop processing jobs. Finishes in-progress work and handles # any new jobs following the executor's fallback policy (`caller_runs`). # Waits for termination by default. Pass `wait: false` to continue. # - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#50 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:50 def shutdown(wait: T.unsafe(nil)); end end @@ -1681,50 +1606,40 @@ end # adapters and deployment environments. Otherwise, serialization bugs # may creep in undetected. # -# source://activejob//lib/active_job/queue_adapters/async_adapter.rb#63 +# pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:63 class ActiveJob::QueueAdapters::AsyncAdapter::JobWrapper - # @return [JobWrapper] a new instance of JobWrapper - # - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#64 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:64 def initialize(job); end - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#69 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:69 def perform; end end -# source://activejob//lib/active_job/queue_adapters/async_adapter.rb#74 +# pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:74 class ActiveJob::QueueAdapters::AsyncAdapter::Scheduler - # @return [Scheduler] a new instance of Scheduler - # - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#86 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:86 def initialize(**options); end - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#92 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:92 def enqueue(job, queue_name:); end - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#96 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:96 def enqueue_at(job, timestamp, queue_name:); end - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#110 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:110 def executor; end - # Returns the value of attribute immediate. - # - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#84 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:84 def immediate; end - # Sets the attribute immediate - # - # @param value the value to set the attribute immediate to. - # - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#84 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:84 def immediate=(_arg0); end - # source://activejob//lib/active_job/queue_adapters/async_adapter.rb#105 + # pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:105 def shutdown(wait: T.unsafe(nil)); end end -# source://activejob//lib/active_job/queue_adapters/async_adapter.rb#75 +# pkg:gem/activejob#lib/active_job/queue_adapters/async_adapter.rb:75 ActiveJob::QueueAdapters::AsyncAdapter::Scheduler::DEFAULT_EXECUTOR_OPTIONS = T.let(T.unsafe(nil), Hash) # = Active Job Inline adapter @@ -1736,15 +1651,13 @@ ActiveJob::QueueAdapters::AsyncAdapter::Scheduler::DEFAULT_EXECUTOR_OPTIONS = T. # # Rails.application.config.active_job.queue_adapter = :inline # -# source://activejob//lib/active_job/queue_adapters/inline_adapter.rb#13 +# pkg:gem/activejob#lib/active_job/queue_adapters/inline_adapter.rb:13 class ActiveJob::QueueAdapters::InlineAdapter < ::ActiveJob::QueueAdapters::AbstractAdapter - # source://activejob//lib/active_job/queue_adapters/inline_adapter.rb#14 + # pkg:gem/activejob#lib/active_job/queue_adapters/inline_adapter.rb:14 def enqueue(job); end - # @raise [NotImplementedError] - # - # source://activejob//lib/active_job/queue_adapters/inline_adapter.rb#18 - def enqueue_at(*_arg0); end + # pkg:gem/activejob#lib/active_job/queue_adapters/inline_adapter.rb:18 + def enqueue_at(*); end end # = Test adapter for Active Job @@ -1757,143 +1670,95 @@ end # # Rails.application.config.active_job.queue_adapter = :test # -# source://activejob//lib/active_job/queue_adapters/test_adapter.rb#14 +# pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:14 class ActiveJob::QueueAdapters::TestAdapter < ::ActiveJob::QueueAdapters::AbstractAdapter - # Returns the value of attribute at. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def at; end - # Sets the attribute at - # - # @param value the value to set the attribute at to. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def at=(_arg0); end - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#28 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:28 def enqueue(job); end - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#33 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:33 def enqueue_at(job, timestamp); end # Provides a store of all the enqueued jobs with the TestAdapter so you can check them. # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#19 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:19 def enqueued_jobs; end - # Sets the attribute enqueued_jobs - # - # @param value the value to set the attribute enqueued_jobs to. + # Provides a store of all the enqueued jobs with the TestAdapter so you can check them. # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#16 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:16 def enqueued_jobs=(_arg0); end - # Returns the value of attribute filter. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def filter; end - # Sets the attribute filter - # - # @param value the value to set the attribute filter to. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def filter=(_arg0); end - # Returns the value of attribute perform_enqueued_at_jobs. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def perform_enqueued_at_jobs; end - # Sets the attribute perform_enqueued_at_jobs - # - # @param value the value to set the attribute perform_enqueued_at_jobs to. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def perform_enqueued_at_jobs=(_arg0); end - # Returns the value of attribute perform_enqueued_jobs. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def perform_enqueued_jobs; end - # Sets the attribute perform_enqueued_jobs - # - # @param value the value to set the attribute perform_enqueued_jobs to. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def perform_enqueued_jobs=(_arg0); end # Provides a store of all the performed jobs with the TestAdapter so you can check them. # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#24 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:24 def performed_jobs; end - # Sets the attribute performed_jobs - # - # @param value the value to set the attribute performed_jobs to. + # Provides a store of all the performed jobs with the TestAdapter so you can check them. # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#16 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:16 def performed_jobs=(_arg0); end - # Returns the value of attribute queue. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def queue; end - # Sets the attribute queue - # - # @param value the value to set the attribute queue to. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def queue=(_arg0); end - # Returns the value of attribute reject. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def reject; end - # Sets the attribute reject - # - # @param value the value to set the attribute reject to. - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#15 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:15 def reject=(_arg0); end private - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#79 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:79 def filter_as_proc(filter); end - # @return [Boolean] - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#57 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:57 def filtered?(job); end - # @return [Boolean] - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#71 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:71 def filtered_job_class?(job); end - # @return [Boolean] - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#65 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:65 def filtered_queue?(job); end - # @return [Boolean] - # - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#61 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:61 def filtered_time?(job); end - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#39 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:39 def job_to_hash(job, extras = T.unsafe(nil)); end - # source://activejob//lib/active_job/queue_adapters/test_adapter.rb#48 + # pkg:gem/activejob#lib/active_job/queue_adapters/test_adapter.rb:48 def perform_or_enqueue(perform, job, job_data); end end -# source://activejob//lib/active_job/queue_name.rb#4 +# pkg:gem/activejob#lib/active_job/queue_name.rb:4 module ActiveJob::QueueName extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1903,7 +1768,7 @@ module ActiveJob::QueueName # Returns the name of the queue the job will be run on. # - # source://activejob//lib/active_job/queue_name.rb#61 + # pkg:gem/activejob#lib/active_job/queue_name.rb:61 def queue_name; end module GeneratedClassMethods @@ -1927,12 +1792,12 @@ end # Includes the ability to override the default queue name and prefix. # -# source://activejob//lib/active_job/queue_name.rb#8 +# pkg:gem/activejob#lib/active_job/queue_name.rb:8 module ActiveJob::QueueName::ClassMethods - # source://activejob//lib/active_job/queue_name.rb#9 + # pkg:gem/activejob#lib/active_job/queue_name.rb:9 def default_queue_name; end - # source://activejob//lib/active_job/queue_name.rb#9 + # pkg:gem/activejob#lib/active_job/queue_name.rb:9 def default_queue_name=(val); end # Specifies the name of the queue to process the job on. @@ -1964,22 +1829,22 @@ module ActiveJob::QueueName::ClassMethods # end # end # - # source://activejob//lib/active_job/queue_name.rb#39 + # pkg:gem/activejob#lib/active_job/queue_name.rb:39 def queue_as(part_name = T.unsafe(nil), &block); end - # source://activejob//lib/active_job/queue_name.rb#47 + # pkg:gem/activejob#lib/active_job/queue_name.rb:47 def queue_name_from_part(part_name); end class << self - # source://activejob//lib/active_job/queue_name.rb#9 + # pkg:gem/activejob#lib/active_job/queue_name.rb:9 def default_queue_name; end - # source://activejob//lib/active_job/queue_name.rb#9 + # pkg:gem/activejob#lib/active_job/queue_name.rb:9 def default_queue_name=(val); end end end -# source://activejob//lib/active_job/queue_priority.rb#4 +# pkg:gem/activejob#lib/active_job/queue_priority.rb:4 module ActiveJob::QueuePriority extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1989,7 +1854,7 @@ module ActiveJob::QueuePriority # Returns the priority that the job will be created with # - # source://activejob//lib/active_job/queue_priority.rb#53 + # pkg:gem/activejob#lib/active_job/queue_priority.rb:53 def priority; end module GeneratedClassMethods @@ -2003,12 +1868,12 @@ end # Includes the ability to override the default queue priority. # -# source://activejob//lib/active_job/queue_priority.rb#8 +# pkg:gem/activejob#lib/active_job/queue_priority.rb:8 module ActiveJob::QueuePriority::ClassMethods - # source://activejob//lib/active_job/queue_priority.rb#9 + # pkg:gem/activejob#lib/active_job/queue_priority.rb:9 def default_priority; end - # source://activejob//lib/active_job/queue_priority.rb#9 + # pkg:gem/activejob#lib/active_job/queue_priority.rb:9 def default_priority=(val); end # Specifies the priority of the queue to create the job with. @@ -2040,21 +1905,21 @@ module ActiveJob::QueuePriority::ClassMethods # end # end # - # source://activejob//lib/active_job/queue_priority.rb#39 + # pkg:gem/activejob#lib/active_job/queue_priority.rb:39 def queue_with_priority(priority = T.unsafe(nil), &block); end class << self - # source://activejob//lib/active_job/queue_priority.rb#9 + # pkg:gem/activejob#lib/active_job/queue_priority.rb:9 def default_priority; end - # source://activejob//lib/active_job/queue_priority.rb#9 + # pkg:gem/activejob#lib/active_job/queue_priority.rb:9 def default_priority=(val); end end end # = Active Job Railtie # -# source://activejob//lib/active_job/railtie.rb#8 +# pkg:gem/activejob#lib/active_job/railtie.rb:8 class ActiveJob::Railtie < ::Rails::Railtie; end # Raised when an unsupported argument type is set as a job argument. We @@ -2067,7 +1932,7 @@ class ActiveJob::Railtie < ::Rails::Railtie; end # a symbol. Also raised when trying to serialize an object which can't be # identified with a GlobalID - such as an unpersisted Active Record model. # -# source://activejob//lib/active_job/arguments.rb#26 +# pkg:gem/activejob#lib/active_job/arguments.rb:26 class ActiveJob::SerializationError < ::ArgumentError; end # = Active Job \Serializers @@ -2075,119 +1940,113 @@ class ActiveJob::SerializationError < ::ArgumentError; end # The +ActiveJob::Serializers+ module is used to store a list of known serializers # and to add new ones. It also has helpers to serialize/deserialize objects. # -# source://activejob//lib/active_job/serializers.rb#8 +# pkg:gem/activejob#lib/active_job/serializers.rb:8 module ActiveJob::Serializers extend ::ActiveSupport::Autoload - # source://activejob//lib/active_job/serializers.rb#23 + # pkg:gem/activejob#lib/active_job/serializers.rb:23 def _additional_serializers; end - # source://activejob//lib/active_job/serializers.rb#23 + # pkg:gem/activejob#lib/active_job/serializers.rb:23 def _additional_serializers=(val); end class << self - # source://activejob//lib/active_job/serializers.rb#23 + # pkg:gem/activejob#lib/active_job/serializers.rb:23 def _additional_serializers; end - # source://activejob//lib/active_job/serializers.rb#23 + # pkg:gem/activejob#lib/active_job/serializers.rb:23 def _additional_serializers=(val); end # Adds new serializers to a list of known serializers. # - # source://activejob//lib/active_job/serializers.rb#55 + # pkg:gem/activejob#lib/active_job/serializers.rb:55 def add_serializers(*new_serializers); end # Returns deserialized object. # Will look up through all known serializers. # If no serializer found will raise ArgumentError. # - # @raise [ArgumentError] - # - # source://activejob//lib/active_job/serializers.rb#39 + # pkg:gem/activejob#lib/active_job/serializers.rb:39 def deserialize(argument); end # Returns serialized representative of the passed object. # Will look up through all known serializers. # Raises ActiveJob::SerializationError if it can't find a proper serializer. # - # @raise [SerializationError] - # - # source://activejob//lib/active_job/serializers.rb#30 + # pkg:gem/activejob#lib/active_job/serializers.rb:30 def serialize(argument); end # Returns list of known serializers. # - # source://activejob//lib/active_job/serializers.rb#50 + # pkg:gem/activejob#lib/active_job/serializers.rb:50 def serializers; end end end -# source://activejob//lib/active_job/serializers/big_decimal_serializer.rb#7 +# pkg:gem/activejob#lib/active_job/serializers/big_decimal_serializer.rb:7 class ActiveJob::Serializers::BigDecimalSerializer < ::ActiveJob::Serializers::ObjectSerializer - # source://activejob//lib/active_job/serializers/big_decimal_serializer.rb#12 + # pkg:gem/activejob#lib/active_job/serializers/big_decimal_serializer.rb:12 def deserialize(hash); end - # source://activejob//lib/active_job/serializers/big_decimal_serializer.rb#8 + # pkg:gem/activejob#lib/active_job/serializers/big_decimal_serializer.rb:8 def serialize(big_decimal); end private - # source://activejob//lib/active_job/serializers/big_decimal_serializer.rb#17 + # pkg:gem/activejob#lib/active_job/serializers/big_decimal_serializer.rb:17 def klass; end end -# source://activejob//lib/active_job/serializers/date_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/date_serializer.rb:5 class ActiveJob::Serializers::DateSerializer < ::ActiveJob::Serializers::ObjectSerializer - # source://activejob//lib/active_job/serializers/date_serializer.rb#10 + # pkg:gem/activejob#lib/active_job/serializers/date_serializer.rb:10 def deserialize(hash); end - # source://activejob//lib/active_job/serializers/date_serializer.rb#6 + # pkg:gem/activejob#lib/active_job/serializers/date_serializer.rb:6 def serialize(date); end private - # source://activejob//lib/active_job/serializers/date_serializer.rb#15 + # pkg:gem/activejob#lib/active_job/serializers/date_serializer.rb:15 def klass; end end -# source://activejob//lib/active_job/serializers/date_time_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/date_time_serializer.rb:5 class ActiveJob::Serializers::DateTimeSerializer < ::ActiveJob::Serializers::TimeObjectSerializer - # source://activejob//lib/active_job/serializers/date_time_serializer.rb#6 + # pkg:gem/activejob#lib/active_job/serializers/date_time_serializer.rb:6 def deserialize(hash); end private - # source://activejob//lib/active_job/serializers/date_time_serializer.rb#11 + # pkg:gem/activejob#lib/active_job/serializers/date_time_serializer.rb:11 def klass; end end -# source://activejob//lib/active_job/serializers/duration_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/duration_serializer.rb:5 class ActiveJob::Serializers::DurationSerializer < ::ActiveJob::Serializers::ObjectSerializer - # source://activejob//lib/active_job/serializers/duration_serializer.rb#12 + # pkg:gem/activejob#lib/active_job/serializers/duration_serializer.rb:12 def deserialize(hash); end - # source://activejob//lib/active_job/serializers/duration_serializer.rb#6 + # pkg:gem/activejob#lib/active_job/serializers/duration_serializer.rb:6 def serialize(duration); end private - # source://activejob//lib/active_job/serializers/duration_serializer.rb#20 + # pkg:gem/activejob#lib/active_job/serializers/duration_serializer.rb:20 def klass; end end -# source://activejob//lib/active_job/serializers/module_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/module_serializer.rb:5 class ActiveJob::Serializers::ModuleSerializer < ::ActiveJob::Serializers::ObjectSerializer - # source://activejob//lib/active_job/serializers/module_serializer.rb#11 + # pkg:gem/activejob#lib/active_job/serializers/module_serializer.rb:11 def deserialize(hash); end - # @raise [SerializationError] - # - # source://activejob//lib/active_job/serializers/module_serializer.rb#6 + # pkg:gem/activejob#lib/active_job/serializers/module_serializer.rb:6 def serialize(constant); end private - # source://activejob//lib/active_job/serializers/module_serializer.rb#16 + # pkg:gem/activejob#lib/active_job/serializers/module_serializer.rb:16 def klass; end end @@ -2211,7 +2070,7 @@ end # end # end # -# source://activejob//lib/active_job/serializers/object_serializer.rb#26 +# pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:26 class ActiveJob::Serializers::ObjectSerializer include ::Singleton::SingletonInstanceMethods include ::Singleton @@ -2219,129 +2078,132 @@ class ActiveJob::Serializers::ObjectSerializer # Deserializes an argument from a JSON primitive type. # - # @raise [NotImplementedError] - # - # source://activejob//lib/active_job/serializers/object_serializer.rb#44 + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:44 def deserialize(json); end # Serializes an argument to a JSON primitive type. # - # source://activejob//lib/active_job/serializers/object_serializer.rb#39 + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:39 def serialize(hash); end # Determines if an argument should be serialized by a serializer. # - # @return [Boolean] - # - # source://activejob//lib/active_job/serializers/object_serializer.rb#34 + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:34 def serialize?(argument); end private # The class of the object that will be serialized. # - # @raise [NotImplementedError] - # - # source://activejob//lib/active_job/serializers/object_serializer.rb#50 + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:50 def klass; end class << self - # source://activejob//lib/active_job/serializers/object_serializer.rb#30 - def deserialize(*_arg0, **_arg1, &_arg2); end + # Deserializes an argument from a JSON primitive type. + # + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:30 + def deserialize(*, **, &); end - # source://activejob//lib/active_job/serializers/object_serializer.rb#30 - def serialize(*_arg0, **_arg1, &_arg2); end + # Serializes an argument to a JSON primitive type. + # + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:30 + def serialize(*, **, &); end - # source://activejob//lib/active_job/serializers/object_serializer.rb#30 - def serialize?(*_arg0, **_arg1, &_arg2); end + # Determines if an argument should be serialized by a serializer. + # + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:30 + def serialize?(*, **, &); end private + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:27 def allocate; end + + # pkg:gem/activejob#lib/active_job/serializers/object_serializer.rb:27 def new(*_arg0); end end end -# source://activejob//lib/active_job/serializers/range_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/range_serializer.rb:5 class ActiveJob::Serializers::RangeSerializer < ::ActiveJob::Serializers::ObjectSerializer - # source://activejob//lib/active_job/serializers/range_serializer.rb#13 + # pkg:gem/activejob#lib/active_job/serializers/range_serializer.rb:13 def deserialize(hash); end - # source://activejob//lib/active_job/serializers/range_serializer.rb#8 + # pkg:gem/activejob#lib/active_job/serializers/range_serializer.rb:8 def serialize(range); end private - # source://activejob//lib/active_job/serializers/range_serializer.rb#18 + # pkg:gem/activejob#lib/active_job/serializers/range_serializer.rb:18 def klass; end end -# source://activejob//lib/active_job/serializers/range_serializer.rb#6 +# pkg:gem/activejob#lib/active_job/serializers/range_serializer.rb:6 ActiveJob::Serializers::RangeSerializer::KEYS = T.let(T.unsafe(nil), Array) -# source://activejob//lib/active_job/serializers/symbol_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/symbol_serializer.rb:5 class ActiveJob::Serializers::SymbolSerializer < ::ActiveJob::Serializers::ObjectSerializer - # source://activejob//lib/active_job/serializers/symbol_serializer.rb#10 + # pkg:gem/activejob#lib/active_job/serializers/symbol_serializer.rb:10 def deserialize(argument); end - # source://activejob//lib/active_job/serializers/symbol_serializer.rb#6 + # pkg:gem/activejob#lib/active_job/serializers/symbol_serializer.rb:6 def serialize(argument); end private - # source://activejob//lib/active_job/serializers/symbol_serializer.rb#15 + # pkg:gem/activejob#lib/active_job/serializers/symbol_serializer.rb:15 def klass; end end -# source://activejob//lib/active_job/serializers/time_object_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/time_object_serializer.rb:5 class ActiveJob::Serializers::TimeObjectSerializer < ::ActiveJob::Serializers::ObjectSerializer - # source://activejob//lib/active_job/serializers/time_object_serializer.rb#8 + # pkg:gem/activejob#lib/active_job/serializers/time_object_serializer.rb:8 def serialize(time); end end -# source://activejob//lib/active_job/serializers/time_object_serializer.rb#6 +# pkg:gem/activejob#lib/active_job/serializers/time_object_serializer.rb:6 ActiveJob::Serializers::TimeObjectSerializer::NANO_PRECISION = T.let(T.unsafe(nil), Integer) -# source://activejob//lib/active_job/serializers/time_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/time_serializer.rb:5 class ActiveJob::Serializers::TimeSerializer < ::ActiveJob::Serializers::TimeObjectSerializer - # source://activejob//lib/active_job/serializers/time_serializer.rb#6 + # pkg:gem/activejob#lib/active_job/serializers/time_serializer.rb:6 def deserialize(hash); end private - # source://activejob//lib/active_job/serializers/time_serializer.rb#11 + # pkg:gem/activejob#lib/active_job/serializers/time_serializer.rb:11 def klass; end end -# source://activejob//lib/active_job/serializers/time_with_zone_serializer.rb#5 +# pkg:gem/activejob#lib/active_job/serializers/time_with_zone_serializer.rb:5 class ActiveJob::Serializers::TimeWithZoneSerializer < ::ActiveJob::Serializers::ObjectSerializer - # source://activejob//lib/active_job/serializers/time_with_zone_serializer.rb#15 + # pkg:gem/activejob#lib/active_job/serializers/time_with_zone_serializer.rb:15 def deserialize(hash); end - # source://activejob//lib/active_job/serializers/time_with_zone_serializer.rb#8 + # pkg:gem/activejob#lib/active_job/serializers/time_with_zone_serializer.rb:8 def serialize(time_with_zone); end private - # source://activejob//lib/active_job/serializers/time_with_zone_serializer.rb#20 + # pkg:gem/activejob#lib/active_job/serializers/time_with_zone_serializer.rb:20 def klass; end end -# source://activejob//lib/active_job/serializers/time_with_zone_serializer.rb#6 +# pkg:gem/activejob#lib/active_job/serializers/time_with_zone_serializer.rb:6 ActiveJob::Serializers::TimeWithZoneSerializer::NANO_PRECISION = T.let(T.unsafe(nil), Integer) -# source://activejob//lib/active_job/test_case.rb#6 +# pkg:gem/activejob#lib/active_job/test_case.rb:6 class ActiveJob::TestCase < ::ActiveSupport::TestCase include ::ActiveJob::TestHelper end # Provides helper methods for testing Active Job # -# source://activejob//lib/active_job/test_helper.rb#8 +# pkg:gem/activejob#lib/active_job/test_helper.rb:8 module ActiveJob::TestHelper include ::ActiveSupport::Testing::Assertions - # source://activejob//lib/active_job/test_helper.rb#56 + # pkg:gem/activejob#lib/active_job/test_helper.rb:56 def after_teardown; end # Asserts that the number of enqueued jobs matches the given number. @@ -2398,7 +2260,7 @@ module ActiveJob::TestHelper # end # end # - # source://activejob//lib/active_job/test_helper.rb#122 + # pkg:gem/activejob#lib/active_job/test_helper.rb:122 def assert_enqueued_jobs(number, only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end # Asserts that the job has been enqueued with the given arguments. @@ -2454,7 +2316,7 @@ module ActiveJob::TestHelper # end # end # - # source://activejob//lib/active_job/test_helper.rb#406 + # pkg:gem/activejob#lib/active_job/test_helper.rb:406 def assert_enqueued_with(job: T.unsafe(nil), args: T.unsafe(nil), at: T.unsafe(nil), queue: T.unsafe(nil), priority: T.unsafe(nil), &block); end # Asserts that no jobs have been enqueued. @@ -2504,7 +2366,7 @@ module ActiveJob::TestHelper # # assert_enqueued_jobs 0, &block # - # source://activejob//lib/active_job/test_helper.rb#186 + # pkg:gem/activejob#lib/active_job/test_helper.rb:186 def assert_no_enqueued_jobs(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end # Asserts that no jobs have been performed. @@ -2560,7 +2422,7 @@ module ActiveJob::TestHelper # # assert_performed_jobs 0, &block # - # source://activejob//lib/active_job/test_helper.rb#348 + # pkg:gem/activejob#lib/active_job/test_helper.rb:348 def assert_no_performed_jobs(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end # Asserts that the number of performed jobs matches the given number. @@ -2650,7 +2512,7 @@ module ActiveJob::TestHelper # end # end # - # source://activejob//lib/active_job/test_helper.rb#278 + # pkg:gem/activejob#lib/active_job/test_helper.rb:278 def assert_performed_jobs(number, only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end # Asserts that the job has been performed with the given arguments. @@ -2710,16 +2572,16 @@ module ActiveJob::TestHelper # end # end # - # source://activejob//lib/active_job/test_helper.rb#510 + # pkg:gem/activejob#lib/active_job/test_helper.rb:510 def assert_performed_with(job: T.unsafe(nil), args: T.unsafe(nil), at: T.unsafe(nil), queue: T.unsafe(nil), priority: T.unsafe(nil), &block); end - # source://activejob//lib/active_job/test_helper.rb#41 + # pkg:gem/activejob#lib/active_job/test_helper.rb:41 def before_setup; end - # source://activejob//lib/active_job/test_helper.rb#9 - def enqueued_jobs(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activejob#lib/active_job/test_helper.rb:9 + def enqueued_jobs(*, **, &); end - # source://activejob//lib/active_job/test_helper.rb#9 + # pkg:gem/activejob#lib/active_job/test_helper.rb:9 def enqueued_jobs=(arg); end # Performs all enqueued jobs. If a block is given, performs all of the jobs @@ -2784,13 +2646,13 @@ module ActiveJob::TestHelper # If queue_adapter_for_test is overridden to return a different adapter, # +perform_enqueued_jobs+ will merely execute the block. # - # source://activejob//lib/active_job/test_helper.rb#620 + # pkg:gem/activejob#lib/active_job/test_helper.rb:620 def perform_enqueued_jobs(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), at: T.unsafe(nil), &block); end - # source://activejob//lib/active_job/test_helper.rb#9 - def performed_jobs(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activejob#lib/active_job/test_helper.rb:9 + def performed_jobs(*, **, &); end - # source://activejob//lib/active_job/test_helper.rb#9 + # pkg:gem/activejob#lib/active_job/test_helper.rb:9 def performed_jobs=(arg); end # Accesses the queue_adapter set by ActiveJob::Base. @@ -2799,7 +2661,7 @@ module ActiveJob::TestHelper # assert_instance_of CustomQueueAdapter, HelloJob.queue_adapter # end # - # source://activejob//lib/active_job/test_helper.rb#661 + # pkg:gem/activejob#lib/active_job/test_helper.rb:661 def queue_adapter; end # Returns a queue adapter instance to use with all Active Job test helpers. @@ -2807,59 +2669,55 @@ module ActiveJob::TestHelper # Override this method to specify a different adapter. The adapter must # implement the same interface as ActiveJob::QueueAdapters::TestAdapter. # - # source://activejob//lib/active_job/test_helper.rb#66 + # pkg:gem/activejob#lib/active_job/test_helper.rb:66 def queue_adapter_for_test; end private - # source://activejob//lib/active_job/test_helper.rb#676 + # pkg:gem/activejob#lib/active_job/test_helper.rb:676 def clear_enqueued_jobs; end - # source://activejob//lib/active_job/test_helper.rb#680 + # pkg:gem/activejob#lib/active_job/test_helper.rb:680 def clear_performed_jobs; end - # source://activejob//lib/active_job/test_helper.rb#745 + # pkg:gem/activejob#lib/active_job/test_helper.rb:745 def deserialize_args_for_assertion(job); end - # source://activejob//lib/active_job/test_helper.rb#716 + # pkg:gem/activejob#lib/active_job/test_helper.rb:716 def enqueued_jobs_with(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), at: T.unsafe(nil), &block); end - # source://activejob//lib/active_job/test_helper.rb#710 + # pkg:gem/activejob#lib/active_job/test_helper.rb:710 def filter_as_proc(filter); end - # source://activejob//lib/active_job/test_helper.rb#724 + # pkg:gem/activejob#lib/active_job/test_helper.rb:724 def flush_enqueued_jobs(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), at: T.unsafe(nil)); end - # source://activejob//lib/active_job/test_helper.rb#752 + # pkg:gem/activejob#lib/active_job/test_helper.rb:752 def instantiate_job(payload, skip_deserialize_arguments: T.unsafe(nil)); end - # source://activejob//lib/active_job/test_helper.rb#684 + # pkg:gem/activejob#lib/active_job/test_helper.rb:684 def jobs_with(jobs, only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), at: T.unsafe(nil)); end - # source://activejob//lib/active_job/test_helper.rb#720 + # pkg:gem/activejob#lib/active_job/test_helper.rb:720 def performed_jobs_with(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end - # source://activejob//lib/active_job/test_helper.rb#732 + # pkg:gem/activejob#lib/active_job/test_helper.rb:732 def prepare_args_for_assertion(args); end - # source://activejob//lib/active_job/test_helper.rb#759 + # pkg:gem/activejob#lib/active_job/test_helper.rb:759 def queue_adapter_changed_jobs; end - # source://activejob//lib/active_job/test_helper.rb#666 + # pkg:gem/activejob#lib/active_job/test_helper.rb:666 def require_active_job_test_adapter!(method); end - # @return [Boolean] - # - # source://activejob//lib/active_job/test_helper.rb#672 + # pkg:gem/activejob#lib/active_job/test_helper.rb:672 def using_test_adapter?; end - # @raise [ArgumentError] - # - # source://activejob//lib/active_job/test_helper.rb#766 + # pkg:gem/activejob#lib/active_job/test_helper.rb:766 def validate_option(only: T.unsafe(nil), except: T.unsafe(nil)); end end -# source://activejob//lib/active_job/test_helper.rb#15 +# pkg:gem/activejob#lib/active_job/test_helper.rb:15 module ActiveJob::TestHelper::TestQueueAdapter extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -2875,42 +2733,42 @@ module ActiveJob::TestHelper::TestQueueAdapter module GeneratedInstanceMethods; end end -# source://activejob//lib/active_job/test_helper.rb#22 +# pkg:gem/activejob#lib/active_job/test_helper.rb:22 module ActiveJob::TestHelper::TestQueueAdapter::ClassMethods - # source://activejob//lib/active_job/test_helper.rb#27 + # pkg:gem/activejob#lib/active_job/test_helper.rb:27 def disable_test_adapter; end - # source://activejob//lib/active_job/test_helper.rb#31 + # pkg:gem/activejob#lib/active_job/test_helper.rb:31 def enable_test_adapter(test_adapter); end - # source://activejob//lib/active_job/test_helper.rb#23 + # pkg:gem/activejob#lib/active_job/test_helper.rb:23 def queue_adapter; end end -# source://activejob//lib/active_job/timezones.rb#4 +# pkg:gem/activejob#lib/active_job/timezones.rb:4 module ActiveJob::Timezones extend ::ActiveSupport::Concern end -# source://activejob//lib/active_job/translation.rb#4 +# pkg:gem/activejob#lib/active_job/translation.rb:4 module ActiveJob::Translation extend ::ActiveSupport::Concern end -# source://activejob//lib/active_job/gem_version.rb#9 +# pkg:gem/activejob#lib/active_job/gem_version.rb:9 module ActiveJob::VERSION; end -# source://activejob//lib/active_job/gem_version.rb#10 +# pkg:gem/activejob#lib/active_job/gem_version.rb:10 ActiveJob::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://activejob//lib/active_job/gem_version.rb#11 +# pkg:gem/activejob#lib/active_job/gem_version.rb:11 ActiveJob::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://activejob//lib/active_job/gem_version.rb#13 +# pkg:gem/activejob#lib/active_job/gem_version.rb:13 ActiveJob::VERSION::PRE = T.let(T.unsafe(nil), String) -# source://activejob//lib/active_job/gem_version.rb#15 +# pkg:gem/activejob#lib/active_job/gem_version.rb:15 ActiveJob::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://activejob//lib/active_job/gem_version.rb#12 +# pkg:gem/activejob#lib/active_job/gem_version.rb:12 ActiveJob::VERSION::TINY = T.let(T.unsafe(nil), Integer) diff --git a/sorbet/rbi/gems/activemodel@8.0.5.1.rbi b/sorbet/rbi/gems/activemodel@8.0.5.2.rbi similarity index 70% rename from sorbet/rbi/gems/activemodel@8.0.5.1.rbi rename to sorbet/rbi/gems/activemodel@8.0.5.2.rbi index ff743aa6..fa1461e9 100644 --- a/sorbet/rbi/gems/activemodel@8.0.5.1.rbi +++ b/sorbet/rbi/gems/activemodel@8.0.5.2.rbi @@ -7,25 +7,25 @@ # :include: ../README.rdoc # -# source://activemodel//lib/active_model/gem_version.rb#3 +# pkg:gem/activemodel#lib/active_model/gem_version.rb:3 module ActiveModel extend ::ActiveSupport::Autoload class << self - # source://activemodel//lib/active_model/deprecator.rb#4 + # pkg:gem/activemodel#lib/active_model/deprecator.rb:4 def deprecator; end - # source://activemodel//lib/active_model.rb#76 + # pkg:gem/activemodel#lib/active_model.rb:76 def eager_load!; end # Returns the currently loaded version of \Active \Model as a +Gem::Version+. # - # source://activemodel//lib/active_model/gem_version.rb#5 + # pkg:gem/activemodel#lib/active_model/gem_version.rb:5 def gem_version; end # Returns the currently loaded version of \Active \Model as a +Gem::Version+. # - # source://activemodel//lib/active_model/version.rb#7 + # pkg:gem/activemodel#lib/active_model/version.rb:7 def version; end end end @@ -86,7 +86,7 @@ end # refer to the specific modules included in +ActiveModel::API+ # (see below). # -# source://activemodel//lib/active_model/api.rb#59 +# pkg:gem/activemodel#lib/active_model/api.rb:59 module ActiveModel::API include ::ActiveModel::ForbiddenAttributesProtection include ::ActiveModel::AttributeAssignment @@ -117,7 +117,7 @@ module ActiveModel::API # person.name # => "bob" # person.age # => "18" # - # source://activemodel//lib/active_model/api.rb#80 + # pkg:gem/activemodel#lib/active_model/api.rb:80 def initialize(attributes = T.unsafe(nil)); end # Indicates if the model is persisted. Default is +false+. @@ -130,9 +130,7 @@ module ActiveModel::API # person = Person.new(id: 1, name: 'bob') # person.persisted? # => false # - # @return [Boolean] - # - # source://activemodel//lib/active_model/api.rb#95 + # pkg:gem/activemodel#lib/active_model/api.rb:95 def persisted?; end module GeneratedClassMethods @@ -154,293 +152,245 @@ module ActiveModel::API end end -# source://activemodel//lib/active_model/access.rb#7 +# pkg:gem/activemodel#lib/active_model/access.rb:7 module ActiveModel::Access - # source://activemodel//lib/active_model/access.rb#8 + # pkg:gem/activemodel#lib/active_model/access.rb:8 def slice(*methods); end - # source://activemodel//lib/active_model/access.rb#12 + # pkg:gem/activemodel#lib/active_model/access.rb:12 def values_at(*methods); end end -# source://activemodel//lib/active_model/attribute.rb#6 +# pkg:gem/activemodel#lib/active_model/attribute.rb:6 class ActiveModel::Attribute # This method should not be called directly. # Use #from_database or #from_user # - # @return [Attribute] a new instance of Attribute - # - # source://activemodel//lib/active_model/attribute.rb#33 + # pkg:gem/activemodel#lib/active_model/attribute.rb:33 def initialize(name, value_before_type_cast, type, original_attribute = T.unsafe(nil), value = T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute.rb#115 + # pkg:gem/activemodel#lib/active_model/attribute.rb:115 def ==(other); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#107 + # pkg:gem/activemodel#lib/active_model/attribute.rb:107 def came_from_user?; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#66 + # pkg:gem/activemodel#lib/active_model/attribute.rb:66 def changed?; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#70 + # pkg:gem/activemodel#lib/active_model/attribute.rb:70 def changed_in_place?; end - # source://activemodel//lib/active_model/attribute.rb#135 + # pkg:gem/activemodel#lib/active_model/attribute.rb:135 def encode_with(coder); end - # source://activemodel//lib/active_model/attribute.rb#115 + # pkg:gem/activemodel#lib/active_model/attribute.rb:121 def eql?(other); end - # source://activemodel//lib/active_model/attribute.rb#74 + # pkg:gem/activemodel#lib/active_model/attribute.rb:74 def forgetting_assignment; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#111 + # pkg:gem/activemodel#lib/active_model/attribute.rb:111 def has_been_read?; end - # source://activemodel//lib/active_model/attribute.rb#123 + # pkg:gem/activemodel#lib/active_model/attribute.rb:123 def hash; end - # source://activemodel//lib/active_model/attribute.rb#127 + # pkg:gem/activemodel#lib/active_model/attribute.rb:127 def init_with(coder); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#103 + # pkg:gem/activemodel#lib/active_model/attribute.rb:103 def initialized?; end - # Returns the value of attribute name. - # - # source://activemodel//lib/active_model/attribute.rb#29 + # pkg:gem/activemodel#lib/active_model/attribute.rb:29 def name; end - # source://activemodel//lib/active_model/attribute.rb#47 + # pkg:gem/activemodel#lib/active_model/attribute.rb:47 def original_value; end - # source://activemodel//lib/active_model/attribute.rb#143 + # pkg:gem/activemodel#lib/active_model/attribute.rb:143 def original_value_for_database; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#62 + # pkg:gem/activemodel#lib/active_model/attribute.rb:62 def serializable?(&block); end - # Returns the value of attribute type. - # - # source://activemodel//lib/active_model/attribute.rb#29 + # pkg:gem/activemodel#lib/active_model/attribute.rb:29 def type; end - # @raise [NotImplementedError] - # - # source://activemodel//lib/active_model/attribute.rb#99 - def type_cast(*_arg0); end + # pkg:gem/activemodel#lib/active_model/attribute.rb:99 + def type_cast(*); end - # source://activemodel//lib/active_model/attribute.rb#41 + # pkg:gem/activemodel#lib/active_model/attribute.rb:41 def value(&_); end - # Returns the value of attribute value_before_type_cast. - # - # source://activemodel//lib/active_model/attribute.rb#29 + # pkg:gem/activemodel#lib/active_model/attribute.rb:29 def value_before_type_cast; end - # source://activemodel//lib/active_model/attribute.rb#55 + # pkg:gem/activemodel#lib/active_model/attribute.rb:55 def value_for_database; end - # source://activemodel//lib/active_model/attribute.rb#87 + # pkg:gem/activemodel#lib/active_model/attribute.rb:87 def with_cast_value(value); end - # source://activemodel//lib/active_model/attribute.rb#91 + # pkg:gem/activemodel#lib/active_model/attribute.rb:91 def with_type(type); end - # source://activemodel//lib/active_model/attribute/user_provided_default.rb#7 + # pkg:gem/activemodel#lib/active_model/attribute/user_provided_default.rb:7 def with_user_default(value); end - # source://activemodel//lib/active_model/attribute.rb#83 + # pkg:gem/activemodel#lib/active_model/attribute.rb:83 def with_value_from_database(value); end - # source://activemodel//lib/active_model/attribute.rb#78 + # pkg:gem/activemodel#lib/active_model/attribute.rb:78 def with_value_from_user(value); end private - # source://activemodel//lib/active_model/attribute.rb#169 + # pkg:gem/activemodel#lib/active_model/attribute.rb:169 def _original_value_for_database; end - # source://activemodel//lib/active_model/attribute.rb#165 + # pkg:gem/activemodel#lib/active_model/attribute.rb:165 def _value_for_database; end - # Returns the value of attribute original_attribute. - # - # source://activemodel//lib/active_model/attribute.rb#152 + # pkg:gem/activemodel#lib/active_model/attribute.rb:153 def assigned?; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#161 + # pkg:gem/activemodel#lib/active_model/attribute.rb:161 def changed_from_assignment?; end - # source://activemodel//lib/active_model/attribute.rb#155 + # pkg:gem/activemodel#lib/active_model/attribute.rb:155 def initialize_dup(other); end - # Returns the value of attribute original_attribute. - # - # source://activemodel//lib/active_model/attribute.rb#152 + # pkg:gem/activemodel#lib/active_model/attribute.rb:152 def original_attribute; end class << self - # source://activemodel//lib/active_model/attribute.rb#8 + # pkg:gem/activemodel#lib/active_model/attribute.rb:8 def from_database(name, value_before_type_cast, type, value = T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute.rb#12 + # pkg:gem/activemodel#lib/active_model/attribute.rb:12 def from_user(name, value_before_type_cast, type, original_attribute = T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute.rb#20 + # pkg:gem/activemodel#lib/active_model/attribute.rb:20 def null(name); end - # source://activemodel//lib/active_model/attribute.rb#24 + # pkg:gem/activemodel#lib/active_model/attribute.rb:24 def uninitialized(name, type); end - # source://activemodel//lib/active_model/attribute.rb#16 + # pkg:gem/activemodel#lib/active_model/attribute.rb:16 def with_cast_value(name, value_before_type_cast, type); end end end -# source://activemodel//lib/active_model/attribute.rb#173 +# pkg:gem/activemodel#lib/active_model/attribute.rb:173 class ActiveModel::Attribute::FromDatabase < ::ActiveModel::Attribute - # source://activemodel//lib/active_model/attribute.rb#178 + # pkg:gem/activemodel#lib/active_model/attribute.rb:178 def forgetting_assignment; end - # source://activemodel//lib/active_model/attribute.rb#174 + # pkg:gem/activemodel#lib/active_model/attribute.rb:174 def type_cast(value); end private - # source://activemodel//lib/active_model/attribute.rb#192 + # pkg:gem/activemodel#lib/active_model/attribute.rb:192 def _original_value_for_database; end end -# source://activemodel//lib/active_model/attribute.rb#197 +# pkg:gem/activemodel#lib/active_model/attribute.rb:197 class ActiveModel::Attribute::FromUser < ::ActiveModel::Attribute - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#202 + # pkg:gem/activemodel#lib/active_model/attribute.rb:202 def came_from_user?; end - # source://activemodel//lib/active_model/attribute.rb#198 + # pkg:gem/activemodel#lib/active_model/attribute.rb:198 def type_cast(value); end private - # source://activemodel//lib/active_model/attribute.rb#207 + # pkg:gem/activemodel#lib/active_model/attribute.rb:207 def _value_for_database; end end -# source://activemodel//lib/active_model/attribute.rb#222 +# pkg:gem/activemodel#lib/active_model/attribute.rb:222 class ActiveModel::Attribute::Null < ::ActiveModel::Attribute - # @return [Null] a new instance of Null - # - # source://activemodel//lib/active_model/attribute.rb#223 + # pkg:gem/activemodel#lib/active_model/attribute.rb:223 def initialize(name); end - # source://activemodel//lib/active_model/attribute.rb#227 - def type_cast(*_arg0); end + # pkg:gem/activemodel#lib/active_model/attribute.rb:227 + def type_cast(*); end - # @raise [ActiveModel::MissingAttributeError] - # - # source://activemodel//lib/active_model/attribute.rb#235 + # pkg:gem/activemodel#lib/active_model/attribute.rb:239 def with_cast_value(value); end - # source://activemodel//lib/active_model/attribute.rb#231 + # pkg:gem/activemodel#lib/active_model/attribute.rb:231 def with_type(type); end - # @raise [ActiveModel::MissingAttributeError] - # - # source://activemodel//lib/active_model/attribute.rb#235 + # pkg:gem/activemodel#lib/active_model/attribute.rb:235 def with_value_from_database(value); end - # @raise [ActiveModel::MissingAttributeError] - # - # source://activemodel//lib/active_model/attribute.rb#235 + # pkg:gem/activemodel#lib/active_model/attribute.rb:238 def with_value_from_user(value); end end -# source://activemodel//lib/active_model/attribute.rb#242 +# pkg:gem/activemodel#lib/active_model/attribute.rb:242 class ActiveModel::Attribute::Uninitialized < ::ActiveModel::Attribute - # @return [Uninitialized] a new instance of Uninitialized - # - # source://activemodel//lib/active_model/attribute.rb#245 + # pkg:gem/activemodel#lib/active_model/attribute.rb:245 def initialize(name, type); end - # source://activemodel//lib/active_model/attribute.rb#266 + # pkg:gem/activemodel#lib/active_model/attribute.rb:266 def forgetting_assignment; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#262 + # pkg:gem/activemodel#lib/active_model/attribute.rb:262 def initialized?; end - # source://activemodel//lib/active_model/attribute.rb#255 + # pkg:gem/activemodel#lib/active_model/attribute.rb:255 def original_value; end - # source://activemodel//lib/active_model/attribute.rb#249 + # pkg:gem/activemodel#lib/active_model/attribute.rb:249 def value; end - # source://activemodel//lib/active_model/attribute.rb#259 + # pkg:gem/activemodel#lib/active_model/attribute.rb:259 def value_for_database; end - # source://activemodel//lib/active_model/attribute.rb#270 + # pkg:gem/activemodel#lib/active_model/attribute.rb:270 def with_type(type); end end -# source://activemodel//lib/active_model/attribute.rb#243 +# pkg:gem/activemodel#lib/active_model/attribute.rb:243 ActiveModel::Attribute::Uninitialized::UNINITIALIZED_ORIGINAL_VALUE = T.let(T.unsafe(nil), Object) -# source://activemodel//lib/active_model/attribute/user_provided_default.rb#11 +# pkg:gem/activemodel#lib/active_model/attribute/user_provided_default.rb:11 class ActiveModel::Attribute::UserProvidedDefault < ::ActiveModel::Attribute::FromUser - # @return [UserProvidedDefault] a new instance of UserProvidedDefault - # - # source://activemodel//lib/active_model/attribute/user_provided_default.rb#12 + # pkg:gem/activemodel#lib/active_model/attribute/user_provided_default.rb:12 def initialize(name, value, type, database_default); end - # source://activemodel//lib/active_model/attribute/user_provided_default.rb#29 + # pkg:gem/activemodel#lib/active_model/attribute/user_provided_default.rb:29 def marshal_dump; end - # source://activemodel//lib/active_model/attribute/user_provided_default.rb#40 + # pkg:gem/activemodel#lib/active_model/attribute/user_provided_default.rb:40 def marshal_load(values); end - # source://activemodel//lib/active_model/attribute/user_provided_default.rb#17 + # pkg:gem/activemodel#lib/active_model/attribute/user_provided_default.rb:17 def value_before_type_cast; end - # source://activemodel//lib/active_model/attribute/user_provided_default.rb#25 + # pkg:gem/activemodel#lib/active_model/attribute/user_provided_default.rb:25 def with_type(type); end private - # Returns the value of attribute user_provided_value. - # - # source://activemodel//lib/active_model/attribute/user_provided_default.rb#52 + # pkg:gem/activemodel#lib/active_model/attribute/user_provided_default.rb:52 def user_provided_value; end end -# source://activemodel//lib/active_model/attribute.rb#212 +# pkg:gem/activemodel#lib/active_model/attribute.rb:212 class ActiveModel::Attribute::WithCastValue < ::ActiveModel::Attribute - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute.rb#217 + # pkg:gem/activemodel#lib/active_model/attribute.rb:217 def changed_in_place?; end - # source://activemodel//lib/active_model/attribute.rb#213 + # pkg:gem/activemodel#lib/active_model/attribute.rb:213 def type_cast(value); end end -# source://activemodel//lib/active_model/attribute_assignment.rb#6 +# pkg:gem/activemodel#lib/active_model/attribute_assignment.rb:6 module ActiveModel::AttributeAssignment include ::ActiveModel::ForbiddenAttributesProtection @@ -464,7 +414,7 @@ module ActiveModel::AttributeAssignment # cat.name # => 'Gorby' # cat.status # => 'sleeping' # - # source://activemodel//lib/active_model/attribute_assignment.rb#28 + # pkg:gem/activemodel#lib/active_model/attribute_assignment.rb:28 def assign_attributes(new_attributes); end # Like `BasicObject#method_missing`, `#attribute_writer_missing` is invoked @@ -485,40 +435,18 @@ module ActiveModel::AttributeAssignment # rectangle = Rectangle.new # rectangle.assign_attributes(height: 10) # => Logs "Tried to assign to unknown attribute 'height'" # - # @raise [UnknownAttributeError] - # - # source://activemodel//lib/active_model/attribute_assignment.rb#56 + # pkg:gem/activemodel#lib/active_model/attribute_assignment.rb:56 def attribute_writer_missing(name, value); end - # Allows you to set all the attributes by passing in a hash of attributes with - # keys matching the attribute names. - # - # If the passed hash responds to permitted? method and the return value - # of this method is +false+ an ActiveModel::ForbiddenAttributesError - # exception is raised. - # - # class Cat - # include ActiveModel::AttributeAssignment - # attr_accessor :name, :status - # end - # - # cat = Cat.new - # cat.assign_attributes(name: "Gorby", status: "yawning") - # cat.name # => 'Gorby' - # cat.status # => 'yawning' - # cat.assign_attributes(status: "sleeping") - # cat.name # => 'Gorby' - # cat.status # => 'sleeping' - # - # source://activemodel//lib/active_model/attribute_assignment.rb#28 + # pkg:gem/activemodel#lib/active_model/attribute_assignment.rb:37 def attributes=(new_attributes); end private - # source://activemodel//lib/active_model/attribute_assignment.rb#67 + # pkg:gem/activemodel#lib/active_model/attribute_assignment.rb:67 def _assign_attribute(k, v); end - # source://activemodel//lib/active_model/attribute_assignment.rb#61 + # pkg:gem/activemodel#lib/active_model/attribute_assignment.rb:61 def _assign_attributes(attributes); end end @@ -569,7 +497,7 @@ end # end # end # -# source://activemodel//lib/active_model/attribute_methods.rb#64 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:64 module ActiveModel::AttributeMethods extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -582,8 +510,8 @@ module ActiveModel::AttributeMethods # attribute method. If so, we tell +attribute_missing+ to dispatch the # attribute. This method can be overloaded to customize the behavior. # - # source://activemodel//lib/active_model/attribute_methods.rb#520 - def attribute_missing(match, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:520 + def attribute_missing(match, *, **, &); end # Allows access to the object attributes, which are held in the hash # returned by attributes, as though they were first-class @@ -596,38 +524,34 @@ module ActiveModel::AttributeMethods # class belonging to the +clients+ table with a +master_id+ foreign key # can instantiate master through Client#master. # - # source://activemodel//lib/active_model/attribute_methods.rb#507 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:507 + def method_missing(method, *, **, &); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_methods.rb#528 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:528 def respond_to?(method, include_private_methods = T.unsafe(nil)); end # A +Person+ instance with a +name+ attribute can ask # person.respond_to?(:name), person.respond_to?(:name=), # and person.respond_to?(:name?) which will all return +true+. + # + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:527 def respond_to_without_attributes?(*_arg0); end private - # source://activemodel//lib/active_model/attribute_methods.rb#556 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:556 def _read_attribute(attr); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_methods.rb#541 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:541 def attribute_method?(attr_name); end # Returns a struct representing the matching attribute method. # The struct's attributes are prefix, base and suffix. # - # source://activemodel//lib/active_model/attribute_methods.rb#547 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:547 def matched_attribute_method(method_name); end - # @raise [ActiveModel::MissingAttributeError] - # - # source://activemodel//lib/active_model/attribute_methods.rb#552 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:552 def missing_attribute(attr_name, stack); end module GeneratedClassMethods @@ -647,7 +571,7 @@ module ActiveModel::AttributeMethods end end -# source://activemodel//lib/active_model/attribute_methods.rb#560 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:560 module ActiveModel::AttributeMethods::AttrNames class << self # We want to generate the methods via module_eval rather than @@ -665,18 +589,18 @@ module ActiveModel::AttributeMethods::AttrNames # Making it frozen means that it doesn't get duped when used to # key the @attributes in read_attribute. # - # source://activemodel//lib/active_model/attribute_methods.rb#577 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:577 def define_attribute_accessor_method(owner, attr_name, writer: T.unsafe(nil)); end end end -# source://activemodel//lib/active_model/attribute_methods.rb#561 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:561 ActiveModel::AttributeMethods::AttrNames::DEF_SAFE_NAME = T.let(T.unsafe(nil), Regexp) -# source://activemodel//lib/active_model/attribute_methods.rb#68 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:68 ActiveModel::AttributeMethods::CALL_COMPILABLE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activemodel//lib/active_model/attribute_methods.rb#75 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:75 module ActiveModel::AttributeMethods::ClassMethods # Allows you to make aliases for attributes. # @@ -702,25 +626,23 @@ module ActiveModel::AttributeMethods::ClassMethods # person.name_short? # => true # person.nickname_short? # => true # - # source://activemodel//lib/active_model/attribute_methods.rb#203 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:203 def alias_attribute(new_name, old_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#226 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:226 def alias_attribute_method_definition(code_generator, pattern, new_name, old_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#382 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:382 def aliases_by_attribute_name; end # Returns the original name for the alias +name+ # - # source://activemodel//lib/active_model/attribute_methods.rb#245 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:245 def attribute_alias(name); end # Is +new_name+ an alias? # - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_methods.rb#240 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:240 def attribute_alias?(new_name); end # Declares a method available for all attributes with the given prefix @@ -754,7 +676,7 @@ module ActiveModel::AttributeMethods::ClassMethods # person.reset_name_to_default! # person.name # => 'Default Name' # - # source://activemodel//lib/active_model/attribute_methods.rb#175 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:175 def attribute_method_affix(*affixes); end # Declares a method available for all attributes with the given prefix. @@ -788,7 +710,7 @@ module ActiveModel::AttributeMethods::ClassMethods # person.clear_name # person.name # => nil # - # source://activemodel//lib/active_model/attribute_methods.rb#106 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:106 def attribute_method_prefix(*prefixes, parameters: T.unsafe(nil)); end # Declares a method available for all attributes with the given suffix. @@ -821,7 +743,7 @@ module ActiveModel::AttributeMethods::ClassMethods # person.name # => "Bob" # person.name_short? # => true # - # source://activemodel//lib/active_model/attribute_methods.rb#140 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:140 def attribute_method_suffix(*suffixes, parameters: T.unsafe(nil)); end # Declares an attribute that should be prefixed and suffixed by @@ -853,10 +775,10 @@ module ActiveModel::AttributeMethods::ClassMethods # person.name # => "Bob" # person.name_short? # => true # - # source://activemodel//lib/active_model/attribute_methods.rb#311 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:311 def define_attribute_method(attr_name, _owner: T.unsafe(nil), as: T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_methods.rb#320 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:320 def define_attribute_method_pattern(pattern, attr_name, owner:, as:, override: T.unsafe(nil)); end # Declares the attributes that should be prefixed and suffixed by @@ -883,13 +805,13 @@ module ActiveModel::AttributeMethods::ClassMethods # end # end # - # source://activemodel//lib/active_model/attribute_methods.rb#272 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:272 def define_attribute_methods(*attr_names); end - # source://activemodel//lib/active_model/attribute_methods.rb#211 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:211 def eagerly_generate_alias_attribute_methods(new_name, old_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#217 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:217 def generate_alias_attribute_methods(code_generator, new_name, old_name); end # Removes all the previously dynamically defined methods from the class, including alias attribute methods. @@ -918,7 +840,7 @@ module ActiveModel::AttributeMethods::ClassMethods # person.name_short? # => NoMethodError # person.first_name # => NoMethodError # - # source://activemodel//lib/active_model/attribute_methods.rb#375 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:375 def undefine_attribute_methods; end private @@ -933,487 +855,439 @@ module ActiveModel::AttributeMethods::ClassMethods # significantly (in our case our test suite finishes 10% faster with # this cache). # - # source://activemodel//lib/active_model/attribute_methods.rb#417 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:417 def attribute_method_patterns_cache; end - # source://activemodel//lib/active_model/attribute_methods.rb#421 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:421 def attribute_method_patterns_matching(method_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#445 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:445 def build_mangled_name(name); end - # source://activemodel//lib/active_model/attribute_methods.rb#455 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:455 def define_call(code_generator, name, target_name, mangled_name, parameters, call_args, namespace:, as:); end # Define a method `name` in `mod` that dispatches to `send` # using the given `extra` args. This falls back on `send` # if the called name cannot be compiled. # - # source://activemodel//lib/active_model/attribute_methods.rb#430 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:430 def define_proxy_call(code_generator, name, proxy_target, parameters, *call_args, namespace:, as: T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_methods.rb#400 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:400 def generated_attribute_methods; end - # source://activemodel//lib/active_model/attribute_methods.rb#387 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:387 def inherited(base); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_methods.rb#404 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:404 def instance_method_already_implemented?(method_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#396 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:396 def resolve_attribute_name(name); end end -# source://activemodel//lib/active_model/attribute_methods.rb#471 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:471 class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern - # @return [AttributeMethodPattern] a new instance of AttributeMethodPattern - # - # source://activemodel//lib/active_model/attribute_methods.rb#476 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:476 def initialize(prefix: T.unsafe(nil), suffix: T.unsafe(nil), parameters: T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_methods.rb#485 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:485 def match(method_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#491 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:491 def method_name(attr_name); end - # Returns the value of attribute parameters. - # - # source://activemodel//lib/active_model/attribute_methods.rb#472 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:472 def parameters; end - # Returns the value of attribute prefix. - # - # source://activemodel//lib/active_model/attribute_methods.rb#472 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:472 def prefix; end - # Returns the value of attribute proxy_target. - # - # source://activemodel//lib/active_model/attribute_methods.rb#472 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:472 def proxy_target; end - # Returns the value of attribute suffix. - # - # source://activemodel//lib/active_model/attribute_methods.rb#472 + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:472 def suffix; end end -# source://activemodel//lib/active_model/attribute_methods.rb#474 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern::AttributeMethod < ::Struct - # Returns the value of attribute attr_name - # - # @return [Object] the current value of attr_name + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def attr_name; end - # Sets the attribute attr_name - # - # @param value [Object] the value to set the attribute attr_name to. - # @return [Object] the newly set value + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def attr_name=(_); end - # Returns the value of attribute proxy_target - # - # @return [Object] the current value of proxy_target + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def proxy_target; end - # Sets the attribute proxy_target - # - # @param value [Object] the value to set the attribute proxy_target to. - # @return [Object] the newly set value + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def proxy_target=(_); end class << self + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def [](*_arg0); end + + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def inspect; end + + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def keyword_init?; end + + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def members; end + + # pkg:gem/activemodel#lib/active_model/attribute_methods.rb:474 def new(*_arg0); end end end -# source://activemodel//lib/active_model/attribute_methods.rb#67 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:67 ActiveModel::AttributeMethods::NAME_COMPILABLE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activemodel//lib/active_model/attribute_mutation_tracker.rb#7 +# pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:7 class ActiveModel::AttributeMutationTracker - # @return [AttributeMutationTracker] a new instance of AttributeMutationTracker - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#10 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:10 def initialize(attributes); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#40 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:40 def any_changes?; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#34 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:34 def change_to_attribute(attr_name); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#44 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:44 def changed?(attr_name, from: T.unsafe(nil), to: T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#14 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:14 def changed_attribute_names; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#50 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:50 def changed_in_place?(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#18 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:18 def changed_values; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#26 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:26 def changes; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#63 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:63 def force_change(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#54 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:54 def forget_change(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#59 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:59 def original_value(attr_name); end private - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#74 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:74 def attr_names; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#78 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:78 def attribute_changed?(attr_name); end - # Returns the value of attribute attributes. - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#68 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:68 def attributes; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#82 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:82 def fetch_value(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#70 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:70 def forced_changes; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#86 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:86 def type_cast(attr_name, value); end end -# source://activemodel//lib/active_model/attribute_mutation_tracker.rb#8 +# pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:8 ActiveModel::AttributeMutationTracker::OPTION_NOT_GIVEN = T.let(T.unsafe(nil), Object) -# source://activemodel//lib/active_model/attribute_registration.rb#8 +# pkg:gem/activemodel#lib/active_model/attribute_registration.rb:8 module ActiveModel::AttributeRegistration extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveModel::AttributeRegistration::ClassMethods end -# source://activemodel//lib/active_model/attribute_registration.rb#11 +# pkg:gem/activemodel#lib/active_model/attribute_registration.rb:11 module ActiveModel::AttributeRegistration::ClassMethods - # source://activemodel//lib/active_model/attribute_registration.rb#31 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:31 def _default_attributes; end - # source://activemodel//lib/active_model/attribute_registration.rb#12 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:12 def attribute(name, type = T.unsafe(nil), default: T.unsafe(nil), **options); end - # source://activemodel//lib/active_model/attribute_registration.rb#37 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:37 def attribute_types; end - # source://activemodel//lib/active_model/attribute_registration.rb#23 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:23 def decorate_attributes(names = T.unsafe(nil), &decorator); end - # source://activemodel//lib/active_model/attribute_registration.rb#43 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:43 def type_for_attribute(attribute_name, &block); end private - # source://activemodel//lib/active_model/attribute_registration.rb#81 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:81 def apply_pending_attribute_modifications(attribute_set); end # Hook for other modules to override. The attribute type is passed # through this method immediately after it is resolved, before any type # decorations are applied. # - # source://activemodel//lib/active_model/attribute_registration.rb#112 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:112 def hook_attribute_type(attribute, type); end - # source://activemodel//lib/active_model/attribute_registration.rb#77 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:77 def pending_attribute_modifications; end - # source://activemodel//lib/active_model/attribute_registration.rb#91 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:91 def reset_default_attributes; end - # source://activemodel//lib/active_model/attribute_registration.rb#96 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:96 def reset_default_attributes!; end - # source://activemodel//lib/active_model/attribute_registration.rb#101 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:101 def resolve_attribute_name(name); end - # source://activemodel//lib/active_model/attribute_registration.rb#105 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:105 def resolve_type_name(name, **options); end end -# source://activemodel//lib/active_model/attribute_registration.rb#67 +# pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 class ActiveModel::AttributeRegistration::ClassMethods::PendingDecorator < ::Struct - # source://activemodel//lib/active_model/attribute_registration.rb#68 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:68 def apply_to(attribute_set); end - # Returns the value of attribute decorator - # - # @return [Object] the current value of decorator + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def decorator; end - # Sets the attribute decorator - # - # @param value [Object] the value to set the attribute decorator to. - # @return [Object] the newly set value + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def decorator=(_); end - # Returns the value of attribute names - # - # @return [Object] the current value of names + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def names; end - # Sets the attribute names - # - # @param value [Object] the value to set the attribute names to. - # @return [Object] the newly set value + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def names=(_); end class << self + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def [](*_arg0); end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def inspect; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def keyword_init?; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def members; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:67 def new(*_arg0); end end end -# source://activemodel//lib/active_model/attribute_registration.rb#61 +# pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 class ActiveModel::AttributeRegistration::ClassMethods::PendingDefault < ::Struct - # source://activemodel//lib/active_model/attribute_registration.rb#62 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:62 def apply_to(attribute_set); end - # Returns the value of attribute default - # - # @return [Object] the current value of default + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def default; end - # Sets the attribute default - # - # @param value [Object] the value to set the attribute default to. - # @return [Object] the newly set value + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def default=(_); end - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def name=(_); end class << self + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def [](*_arg0); end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def inspect; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def keyword_init?; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def members; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:61 def new(*_arg0); end end end -# source://activemodel//lib/active_model/attribute_registration.rb#54 +# pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 class ActiveModel::AttributeRegistration::ClassMethods::PendingType < ::Struct - # source://activemodel//lib/active_model/attribute_registration.rb#55 + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:55 def apply_to(attribute_set); end - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def name=(_); end - # Returns the value of attribute type - # - # @return [Object] the current value of type + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def type; end - # Sets the attribute type - # - # @param value [Object] the value to set the attribute type to. - # @return [Object] the newly set value + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def type=(_); end class << self + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def [](*_arg0); end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def inspect; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def keyword_init?; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def members; end + + # pkg:gem/activemodel#lib/active_model/attribute_registration.rb:54 def new(*_arg0); end end end -# source://activemodel//lib/active_model/attribute_set/builder.rb#6 +# pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:6 class ActiveModel::AttributeSet - # @return [AttributeSet] a new instance of AttributeSet - # - # source://activemodel//lib/active_model/attribute_set.rb#12 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:12 def initialize(attributes); end - # source://activemodel//lib/active_model/attribute_set.rb#106 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:106 def ==(other); end - # source://activemodel//lib/active_model/attribute_set.rb#16 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:16 def [](name); end - # source://activemodel//lib/active_model/attribute_set.rb#20 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:20 def []=(name, value); end - # source://activemodel//lib/active_model/attribute_set.rb#93 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:93 def accessed; end - # source://activemodel//lib/active_model/attribute_set.rb#24 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:24 def cast_types; end - # source://activemodel//lib/active_model/attribute_set.rb#73 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:73 def deep_dup; end - # source://activemodel//lib/active_model/attribute_set.rb#10 - def each_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:10 + def each_value(*, **, &); end - # source://activemodel//lib/active_model/attribute_set.rb#10 - def except(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:10 + def except(*, **, &); end - # source://activemodel//lib/active_model/attribute_set.rb#10 - def fetch(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:10 + def fetch(*, **, &); end - # source://activemodel//lib/active_model/attribute_set.rb#50 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:50 def fetch_value(name, &block); end - # source://activemodel//lib/active_model/attribute_set.rb#68 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:68 def freeze; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_set.rb#41 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:44 def include?(name); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_set.rb#41 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:41 def key?(name); end - # source://activemodel//lib/active_model/attribute_set.rb#46 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:46 def keys; end - # source://activemodel//lib/active_model/attribute_set.rb#97 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:97 def map(&block); end - # source://activemodel//lib/active_model/attribute_set.rb#87 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:87 def reset(key); end - # source://activemodel//lib/active_model/attribute_set.rb#102 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:102 def reverse_merge!(target_attributes); end - # source://activemodel//lib/active_model/attribute_set.rb#36 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:39 def to_h; end - # source://activemodel//lib/active_model/attribute_set.rb#36 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:36 def to_hash; end - # source://activemodel//lib/active_model/attribute_set.rb#28 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:28 def values_before_type_cast; end - # source://activemodel//lib/active_model/attribute_set.rb#32 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:32 def values_for_database; end - # source://activemodel//lib/active_model/attribute_set.rb#64 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:64 def write_cast_value(name, value); end - # source://activemodel//lib/active_model/attribute_set.rb#54 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:54 def write_from_database(name, value); end - # @raise [FrozenError] - # - # source://activemodel//lib/active_model/attribute_set.rb#58 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:58 def write_from_user(name, value); end protected - # Returns the value of attribute attributes. - # - # source://activemodel//lib/active_model/attribute_set.rb#111 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:111 def attributes; end private - # source://activemodel//lib/active_model/attribute_set.rb#114 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:114 def default_attribute(name); end - # source://activemodel//lib/active_model/attribute_set.rb#82 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:82 def initialize_clone(_); end - # source://activemodel//lib/active_model/attribute_set.rb#77 + # pkg:gem/activemodel#lib/active_model/attribute_set.rb:77 def initialize_dup(_); end end -# source://activemodel//lib/active_model/attribute_set/builder.rb#7 +# pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:7 class ActiveModel::AttributeSet::Builder - # @return [Builder] a new instance of Builder - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#10 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:10 def initialize(types, default_attributes = T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#15 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:15 def build_from_database(values = T.unsafe(nil), additional_types = T.unsafe(nil)); end - # Returns the value of attribute default_attributes. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#8 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:8 def default_attributes; end - # Returns the value of attribute types. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#8 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:8 def types; end end # Attempts to do more intelligent YAML dumping of an # ActiveModel::AttributeSet to reduce the size of the resulting string # -# source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#7 +# pkg:gem/activemodel#lib/active_model/attribute_set/yaml_encoder.rb:7 class ActiveModel::AttributeSet::YAMLEncoder - # @return [YAMLEncoder] a new instance of YAMLEncoder - # - # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#8 + # pkg:gem/activemodel#lib/active_model/attribute_set/yaml_encoder.rb:8 def initialize(default_types); end - # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#22 + # pkg:gem/activemodel#lib/active_model/attribute_set/yaml_encoder.rb:22 def decode(coder); end - # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#12 + # pkg:gem/activemodel#lib/active_model/attribute_set/yaml_encoder.rb:12 def encode(attribute_set, coder); end private - # Returns the value of attribute default_types. - # - # source://activemodel//lib/active_model/attribute_set/yaml_encoder.rb#37 + # pkg:gem/activemodel#lib/active_model/attribute_set/yaml_encoder.rb:37 def default_types; end end @@ -1444,7 +1318,7 @@ end # person.name # => "Volmer" # person.active # => true # -# source://activemodel//lib/active_model/attributes.rb#30 +# pkg:gem/activemodel#lib/active_model/attributes.rb:30 module ActiveModel::Attributes extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1456,8 +1330,8 @@ module ActiveModel::Attributes mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods mixes_in_class_methods ::ActiveModel::Attributes::ClassMethods - # source://activemodel//lib/active_model/attributes.rb#106 - def initialize(*_arg0); end + # pkg:gem/activemodel#lib/active_model/attributes.rb:106 + def initialize(*); end # Returns an array of attribute names as strings. # @@ -1471,7 +1345,7 @@ module ActiveModel::Attributes # person = Person.new # person.attribute_names # => ["name", "age"] # - # source://activemodel//lib/active_model/attributes.rb#146 + # pkg:gem/activemodel#lib/active_model/attributes.rb:146 def attribute_names; end # Returns a hash of all the attributes with their names as keys and the @@ -1490,24 +1364,24 @@ module ActiveModel::Attributes # # person.attributes # => { "name" => "Francesco", "age" => 22} # - # source://activemodel//lib/active_model/attributes.rb#131 + # pkg:gem/activemodel#lib/active_model/attributes.rb:131 def attributes; end - # source://activemodel//lib/active_model/attributes.rb#150 + # pkg:gem/activemodel#lib/active_model/attributes.rb:150 def freeze; end private - # source://activemodel//lib/active_model/attributes.rb#156 + # pkg:gem/activemodel#lib/active_model/attributes.rb:156 def _write_attribute(attr_name, value); end - # source://activemodel//lib/active_model/attributes.rb#161 + # pkg:gem/activemodel#lib/active_model/attributes.rb:161 def attribute(attr_name); end - # source://activemodel//lib/active_model/attributes.rb#156 + # pkg:gem/activemodel#lib/active_model/attributes.rb:159 def attribute=(attr_name, value); end - # source://activemodel//lib/active_model/attributes.rb#111 + # pkg:gem/activemodel#lib/active_model/attributes.rb:111 def initialize_dup(other); end module GeneratedClassMethods @@ -1527,7 +1401,7 @@ module ActiveModel::Attributes end end -# source://activemodel//lib/active_model/attributes.rb#39 +# pkg:gem/activemodel#lib/active_model/attributes.rb:39 module ActiveModel::Attributes::ClassMethods # :call-seq: attribute(name, cast_type = nil, default: nil, **options) # @@ -1548,8 +1422,8 @@ module ActiveModel::Attributes::ClassMethods # person.name # => "Volmer" # person.active # => true # - # source://activemodel//lib/active_model/attributes.rb#59 - def attribute(name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activemodel#lib/active_model/attributes.rb:59 + def attribute(name, *, **, &); end # Returns an array of attribute names as strings. # @@ -1562,28 +1436,26 @@ module ActiveModel::Attributes::ClassMethods # # Person.attribute_names # => ["name", "age"] # - # source://activemodel//lib/active_model/attributes.rb#74 + # pkg:gem/activemodel#lib/active_model/attributes.rb:74 def attribute_names; end private - # source://activemodel//lib/active_model/attributes.rb#92 + # pkg:gem/activemodel#lib/active_model/attributes.rb:92 def define_method_attribute=(canonical_name, owner:, as: T.unsafe(nil)); end end # +BlockValidator+ is a special +EachValidator+ which receives a block on initialization # and call this block for each attribute being validated. +validates_each+ uses this validator. # -# source://activemodel//lib/active_model/validator.rb#179 +# pkg:gem/activemodel#lib/active_model/validator.rb:179 class ActiveModel::BlockValidator < ::ActiveModel::EachValidator - # @return [BlockValidator] a new instance of BlockValidator - # - # source://activemodel//lib/active_model/validator.rb#180 + # pkg:gem/activemodel#lib/active_model/validator.rb:180 def initialize(options, &block); end private - # source://activemodel//lib/active_model/validator.rb#186 + # pkg:gem/activemodel#lib/active_model/validator.rb:186 def validate_each(record, attribute, value); end end @@ -1645,7 +1517,7 @@ end # # NOTE: Defining the same callback multiple times will overwrite previous callback definitions. # -# source://activemodel//lib/active_model/callbacks.rb#65 +# pkg:gem/activemodel#lib/active_model/callbacks.rb:65 module ActiveModel::Callbacks # +define_model_callbacks+ accepts the same options +define_callbacks+ does, # in case you want to overwrite a default. Besides that, it also accepts an @@ -1685,22 +1557,22 @@ module ActiveModel::Callbacks # NOTE: +method_name+ passed to +define_model_callbacks+ must not end with # !, ? or =. # - # source://activemodel//lib/active_model/callbacks.rb#109 + # pkg:gem/activemodel#lib/active_model/callbacks.rb:109 def define_model_callbacks(*callbacks); end private - # source://activemodel//lib/active_model/callbacks.rb#143 + # pkg:gem/activemodel#lib/active_model/callbacks.rb:143 def _define_after_model_callback(klass, callback); end - # source://activemodel//lib/active_model/callbacks.rb#136 + # pkg:gem/activemodel#lib/active_model/callbacks.rb:136 def _define_around_model_callback(klass, callback); end - # source://activemodel//lib/active_model/callbacks.rb#129 + # pkg:gem/activemodel#lib/active_model/callbacks.rb:129 def _define_before_model_callback(klass, callback); end class << self - # source://activemodel//lib/active_model/callbacks.rb#66 + # pkg:gem/activemodel#lib/active_model/callbacks.rb:66 def extended(base); end end end @@ -1726,7 +1598,7 @@ end # cm.to_param # => nil # cm.to_partial_path # => "contact_messages/contact_message" # -# source://activemodel//lib/active_model/conversion.rb#24 +# pkg:gem/activemodel#lib/active_model/conversion.rb:24 module ActiveModel::Conversion extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1749,7 +1621,7 @@ module ActiveModel::Conversion # person = Person.new(1) # person.to_key # => [1] # - # source://activemodel//lib/active_model/conversion.rb#67 + # pkg:gem/activemodel#lib/active_model/conversion.rb:67 def to_key; end # If your object is already designed to implement all of the \Active \Model @@ -1767,7 +1639,7 @@ module ActiveModel::Conversion # define :to_model yourself returning a proxy object that wraps # your object with \Active \Model compliant methods. # - # source://activemodel//lib/active_model/conversion.rb#49 + # pkg:gem/activemodel#lib/active_model/conversion.rb:49 def to_model; end # Returns a +string+ representing the object's key suitable for use in URLs, @@ -1789,7 +1661,7 @@ module ActiveModel::Conversion # person = Person.new(1) # person.to_param # => "1" # - # source://activemodel//lib/active_model/conversion.rb#90 + # pkg:gem/activemodel#lib/active_model/conversion.rb:90 def to_param; end # Returns a +string+ identifying the path associated with the object. @@ -1802,7 +1674,7 @@ module ActiveModel::Conversion # person = Person.new # person.to_partial_path # => "people/person" # - # source://activemodel//lib/active_model/conversion.rb#103 + # pkg:gem/activemodel#lib/active_model/conversion.rb:103 def to_partial_path; end module GeneratedClassMethods @@ -1816,12 +1688,12 @@ module ActiveModel::Conversion end end -# source://activemodel//lib/active_model/conversion.rb#107 +# pkg:gem/activemodel#lib/active_model/conversion.rb:107 module ActiveModel::Conversion::ClassMethods # Provide a class level cache for #to_partial_path. This is an # internal method and should not be accessed directly. # - # source://activemodel//lib/active_model/conversion.rb#110 + # pkg:gem/activemodel#lib/active_model/conversion.rb:110 def _to_partial_path; end end @@ -1943,7 +1815,7 @@ end # Methods can be invoked as +name_changed?+ or by passing an argument to the # generic method attribute_changed?("name"). # -# source://activemodel//lib/active_model/dirty.rb#123 +# pkg:gem/activemodel#lib/active_model/dirty.rb:123 module ActiveModel::Dirty extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1952,36 +1824,30 @@ module ActiveModel::Dirty mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods - # source://activemodel//lib/active_model/dirty.rb#264 + # pkg:gem/activemodel#lib/active_model/dirty.rb:264 def as_json(options = T.unsafe(nil)); end # Dispatch target for {*_changed?}[rdoc-ref:#*_changed?] attribute methods. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/dirty.rb#300 + # pkg:gem/activemodel#lib/active_model/dirty.rb:300 def attribute_changed?(attr_name, **options); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/dirty.rb#367 + # pkg:gem/activemodel#lib/active_model/dirty.rb:367 def attribute_changed_in_place?(attr_name); end # Dispatch target for {*_previously_changed?}[rdoc-ref:#*_previously_changed?] attribute methods. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/dirty.rb#310 + # pkg:gem/activemodel#lib/active_model/dirty.rb:310 def attribute_previously_changed?(attr_name, **options); end # Dispatch target for {*_previously_was}[rdoc-ref:#*_previously_was] attribute methods. # - # source://activemodel//lib/active_model/dirty.rb#315 + # pkg:gem/activemodel#lib/active_model/dirty.rb:315 def attribute_previously_was(attr_name); end # Dispatch target for {*_was}[rdoc-ref:#*_was] attribute methods. # - # source://activemodel//lib/active_model/dirty.rb#305 + # pkg:gem/activemodel#lib/active_model/dirty.rb:305 def attribute_was(attr_name); end # Returns an array with the name of the attributes with unsaved changes. @@ -1990,7 +1856,7 @@ module ActiveModel::Dirty # person.name = 'bob' # person.changed # => ["name"] # - # source://activemodel//lib/active_model/dirty.rb#295 + # pkg:gem/activemodel#lib/active_model/dirty.rb:295 def changed; end # Returns +true+ if any of the attributes has unsaved changes, +false+ otherwise. @@ -1999,9 +1865,7 @@ module ActiveModel::Dirty # person.name = 'bob' # person.changed? # => true # - # @return [Boolean] - # - # source://activemodel//lib/active_model/dirty.rb#286 + # pkg:gem/activemodel#lib/active_model/dirty.rb:286 def changed?; end # Returns a hash of the attributes with unsaved changes indicating their original @@ -2011,7 +1875,7 @@ module ActiveModel::Dirty # person.name = 'robert' # person.changed_attributes # => {"name" => "bob"} # - # source://activemodel//lib/active_model/dirty.rb#343 + # pkg:gem/activemodel#lib/active_model/dirty.rb:343 def changed_attributes; end # Returns a hash of changed attributes indicating their original @@ -2021,24 +1885,24 @@ module ActiveModel::Dirty # person.name = 'bob' # person.changes # => { "name" => ["bill", "bob"] } # - # source://activemodel//lib/active_model/dirty.rb#353 + # pkg:gem/activemodel#lib/active_model/dirty.rb:353 def changes; end # Clears dirty data and moves +changes+ to +previous_changes+ and # +mutations_from_database+ to +mutations_before_last_save+ respectively. # - # source://activemodel//lib/active_model/dirty.rb#272 + # pkg:gem/activemodel#lib/active_model/dirty.rb:272 def changes_applied; end - # source://activemodel//lib/active_model/dirty.rb#331 + # pkg:gem/activemodel#lib/active_model/dirty.rb:331 def clear_attribute_changes(attr_names); end # Clears all dirty data: current changes and previous changes. # - # source://activemodel//lib/active_model/dirty.rb#325 + # pkg:gem/activemodel#lib/active_model/dirty.rb:325 def clear_changes_information; end - # source://activemodel//lib/active_model/dirty.rb#253 + # pkg:gem/activemodel#lib/active_model/dirty.rb:253 def init_attributes(other); end # Returns a hash of attributes that were changed before the model was saved. @@ -2048,52 +1912,52 @@ module ActiveModel::Dirty # person.save # person.previous_changes # => {"name" => ["bob", "robert"]} # - # source://activemodel//lib/active_model/dirty.rb#363 + # pkg:gem/activemodel#lib/active_model/dirty.rb:363 def previous_changes; end # Restore all previous data of the provided attributes. # - # source://activemodel//lib/active_model/dirty.rb#320 + # pkg:gem/activemodel#lib/active_model/dirty.rb:320 def restore_attributes(attr_names = T.unsafe(nil)); end private # Dispatch target for *_change attribute methods. # - # source://activemodel//lib/active_model/dirty.rb#399 + # pkg:gem/activemodel#lib/active_model/dirty.rb:399 def attribute_change(attr_name); end # Dispatch target for *_previous_change attribute methods. # - # source://activemodel//lib/active_model/dirty.rb#404 + # pkg:gem/activemodel#lib/active_model/dirty.rb:404 def attribute_previous_change(attr_name); end # Dispatch target for *_will_change! attribute methods. # - # source://activemodel//lib/active_model/dirty.rb#409 + # pkg:gem/activemodel#lib/active_model/dirty.rb:409 def attribute_will_change!(attr_name); end - # source://activemodel//lib/active_model/dirty.rb#378 + # pkg:gem/activemodel#lib/active_model/dirty.rb:378 def clear_attribute_change(attr_name); end - # source://activemodel//lib/active_model/dirty.rb#390 + # pkg:gem/activemodel#lib/active_model/dirty.rb:390 def forget_attribute_assignments; end - # source://activemodel//lib/active_model/dirty.rb#372 + # pkg:gem/activemodel#lib/active_model/dirty.rb:372 def init_internals; end - # source://activemodel//lib/active_model/dirty.rb#248 + # pkg:gem/activemodel#lib/active_model/dirty.rb:248 def initialize_dup(other); end - # source://activemodel//lib/active_model/dirty.rb#394 + # pkg:gem/activemodel#lib/active_model/dirty.rb:394 def mutations_before_last_save; end - # source://activemodel//lib/active_model/dirty.rb#382 + # pkg:gem/activemodel#lib/active_model/dirty.rb:382 def mutations_from_database; end # Dispatch target for restore_*! attribute methods. # - # source://activemodel//lib/active_model/dirty.rb#414 + # pkg:gem/activemodel#lib/active_model/dirty.rb:414 def restore_attribute!(attr_name); end module GeneratedClassMethods @@ -2121,48 +1985,41 @@ end # # All \Active \Model validations are built on top of this validator. # -# source://activemodel//lib/active_model/validator.rb#134 +# pkg:gem/activemodel#lib/active_model/validator.rb:134 class ActiveModel::EachValidator < ::ActiveModel::Validator # Returns a new validator instance. All options will be available via the # +options+ reader, however the :attributes option will be removed # and instead be made available through the +attributes+ reader. # - # @raise [ArgumentError] - # @return [EachValidator] a new instance of EachValidator - # - # source://activemodel//lib/active_model/validator.rb#140 + # pkg:gem/activemodel#lib/active_model/validator.rb:140 def initialize(options); end - # Returns the value of attribute attributes. - # - # source://activemodel//lib/active_model/validator.rb#135 + # pkg:gem/activemodel#lib/active_model/validator.rb:135 def attributes; end # Hook method that gets called by the initializer allowing verification # that the arguments supplied are valid. You could for example raise an # +ArgumentError+ when invalid options are supplied. # - # source://activemodel//lib/active_model/validator.rb#168 + # pkg:gem/activemodel#lib/active_model/validator.rb:168 def check_validity!; end # Performs validation on the supplied record. By default this will call # +validate_each+ to determine validity therefore subclasses should # override +validate_each+ with validation logic. # - # source://activemodel//lib/active_model/validator.rb#150 + # pkg:gem/activemodel#lib/active_model/validator.rb:150 def validate(record); end # Override this method in subclasses with the validation logic, adding # errors to the records +errors+ array where necessary. # - # @raise [NotImplementedError] - # - # source://activemodel//lib/active_model/validator.rb#161 + # pkg:gem/activemodel#lib/active_model/validator.rb:161 def validate_each(record, attribute, value); end private - # source://activemodel//lib/active_model/validator.rb#172 + # pkg:gem/activemodel#lib/active_model/validator.rb:172 def prepare_value_for_validation(value, record, attr_name); end end @@ -2170,33 +2027,25 @@ end # # Represents one single error # -# source://activemodel//lib/active_model/error.rb#9 +# pkg:gem/activemodel#lib/active_model/error.rb:9 class ActiveModel::Error - # @return [Error] a new instance of Error - # - # source://activemodel//lib/active_model/error.rb#103 + # pkg:gem/activemodel#lib/active_model/error.rb:103 def initialize(base, attribute, type = T.unsafe(nil), **options); end - # source://activemodel//lib/active_model/error.rb#190 + # pkg:gem/activemodel#lib/active_model/error.rb:190 def ==(other); end # The attribute of +base+ which the error belongs to # - # source://activemodel//lib/active_model/error.rb#121 + # pkg:gem/activemodel#lib/active_model/error.rb:121 def attribute; end # The object which the error belongs to # - # source://activemodel//lib/active_model/error.rb#119 + # pkg:gem/activemodel#lib/active_model/error.rb:119 def base; end - # Returns the error details. - # - # error = ActiveModel::Error.new(person, :name, :too_short, count: 5) - # error.details - # # => { error: :too_short, count: 5 } - # - # source://activemodel//lib/active_model/error.rb#149 + # pkg:gem/activemodel#lib/active_model/error.rb:152 def detail; end # Returns the error details. @@ -2205,10 +2054,10 @@ class ActiveModel::Error # error.details # # => { error: :too_short, count: 5 } # - # source://activemodel//lib/active_model/error.rb#149 + # pkg:gem/activemodel#lib/active_model/error.rb:149 def details; end - # source://activemodel//lib/active_model/error.rb#190 + # pkg:gem/activemodel#lib/active_model/error.rb:193 def eql?(other); end # Returns the full error message. @@ -2217,31 +2066,29 @@ class ActiveModel::Error # error.full_message # # => "Name is too short (minimum is 5 characters)" # - # source://activemodel//lib/active_model/error.rb#159 + # pkg:gem/activemodel#lib/active_model/error.rb:159 def full_message; end - # source://activemodel//lib/active_model/error.rb#195 + # pkg:gem/activemodel#lib/active_model/error.rb:195 def hash; end - # source://activemodel//lib/active_model/error.rb#13 + # pkg:gem/activemodel#lib/active_model/error.rb:13 def i18n_customize_full_message; end - # source://activemodel//lib/active_model/error.rb#13 + # pkg:gem/activemodel#lib/active_model/error.rb:13 def i18n_customize_full_message=(_arg0); end - # source://activemodel//lib/active_model/error.rb#13 + # pkg:gem/activemodel#lib/active_model/error.rb:13 def i18n_customize_full_message?; end - # source://activemodel//lib/active_model/error.rb#199 + # pkg:gem/activemodel#lib/active_model/error.rb:199 def inspect; end # See if error matches provided +attribute+, +type+, and +options+. # # Omitted params are not checked for a match. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/error.rb#166 + # pkg:gem/activemodel#lib/active_model/error.rb:166 def match?(attribute, type = T.unsafe(nil), **options); end # Returns the error message. @@ -2250,18 +2097,18 @@ class ActiveModel::Error # error.message # # => "is too short (minimum is 5 characters)" # - # source://activemodel//lib/active_model/error.rb#135 + # pkg:gem/activemodel#lib/active_model/error.rb:135 def message; end # The options provided when calling errors#add # - # source://activemodel//lib/active_model/error.rb#128 + # pkg:gem/activemodel#lib/active_model/error.rb:128 def options; end # The raw value provided as the second parameter when calling # errors#add # - # source://activemodel//lib/active_model/error.rb#126 + # pkg:gem/activemodel#lib/active_model/error.rb:126 def raw_type; end # See if error matches provided +attribute+, +type+, and +options+ exactly. @@ -2269,56 +2116,54 @@ class ActiveModel::Error # All params must be equal to Error's own attributes to be considered a # strict match. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/error.rb#184 + # pkg:gem/activemodel#lib/active_model/error.rb:184 def strict_match?(attribute, type, **options); end # The type of error, defaults to +:invalid+ unless specified # - # source://activemodel//lib/active_model/error.rb#123 + # pkg:gem/activemodel#lib/active_model/error.rb:123 def type; end protected - # source://activemodel//lib/active_model/error.rb#204 + # pkg:gem/activemodel#lib/active_model/error.rb:204 def attributes_for_hash; end private - # source://activemodel//lib/active_model/error.rb#111 + # pkg:gem/activemodel#lib/active_model/error.rb:111 def initialize_dup(other); end class << self - # source://activemodel//lib/active_model/error.rb#15 + # pkg:gem/activemodel#lib/active_model/error.rb:15 def full_message(attribute, message, base); end - # source://activemodel//lib/active_model/error.rb#64 + # pkg:gem/activemodel#lib/active_model/error.rb:64 def generate_message(attribute, type, base, options); end - # source://activemodel//lib/active_model/error.rb#13 + # pkg:gem/activemodel#lib/active_model/error.rb:13 def i18n_customize_full_message; end - # source://activemodel//lib/active_model/error.rb#13 + # pkg:gem/activemodel#lib/active_model/error.rb:13 def i18n_customize_full_message=(value); end - # source://activemodel//lib/active_model/error.rb#13 + # pkg:gem/activemodel#lib/active_model/error.rb:13 def i18n_customize_full_message?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activemodel#lib/active_model/error.rb:13 def __class_attr_i18n_customize_full_message; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activemodel#lib/active_model/error.rb:13 def __class_attr_i18n_customize_full_message=(new_value); end end end -# source://activemodel//lib/active_model/error.rb#10 +# pkg:gem/activemodel#lib/active_model/error.rb:10 ActiveModel::Error::CALLBACKS_OPTIONS = T.let(T.unsafe(nil), Array) -# source://activemodel//lib/active_model/error.rb#11 +# pkg:gem/activemodel#lib/active_model/error.rb:11 ActiveModel::Error::MESSAGE_OPTIONS = T.let(T.unsafe(nil), Array) # = Active \Model \Errors @@ -2372,7 +2217,7 @@ ActiveModel::Error::MESSAGE_OPTIONS = T.let(T.unsafe(nil), Array) # person.errors.full_messages # => ["name cannot be nil"] # # etc.. # -# source://activemodel//lib/active_model/errors.rb#61 +# pkg:gem/activemodel#lib/active_model/errors.rb:61 class ActiveModel::Errors include ::Enumerable extend ::Forwardable @@ -2385,9 +2230,7 @@ class ActiveModel::Errors # end # end # - # @return [Errors] a new instance of Errors - # - # source://activemodel//lib/active_model/errors.rb#117 + # pkg:gem/activemodel#lib/active_model/errors.rb:117 def initialize(base); end # When passed a symbol or a name of a method, returns an array of errors @@ -2396,7 +2239,7 @@ class ActiveModel::Errors # person.errors[:name] # => ["cannot be nil"] # person.errors['name'] # => ["cannot be nil"] # - # source://activemodel//lib/active_model/errors.rb#229 + # pkg:gem/activemodel#lib/active_model/errors.rb:229 def [](attribute); end # Adds a new error of +type+ on +attribute+. @@ -2449,7 +2292,7 @@ class ActiveModel::Errors # person.errors.details # # => {:base=>[{error: :name_or_email_blank}]} # - # source://activemodel//lib/active_model/errors.rb#342 + # pkg:gem/activemodel#lib/active_model/errors.rb:342 def add(attribute, type = T.unsafe(nil), **options); end # Returns +true+ if an error matches provided +attribute+ and +type+, @@ -2469,9 +2312,7 @@ class ActiveModel::Errors # person.errors.added? :name, :too_long # => false # person.errors.added? :name, "is too long" # => false # - # @return [Boolean] - # - # source://activemodel//lib/active_model/errors.rb#372 + # pkg:gem/activemodel#lib/active_model/errors.rb:372 def added?(attribute, type = T.unsafe(nil), options = T.unsafe(nil)); end # Returns a Hash that can be used as the JSON representation for this @@ -2481,7 +2322,7 @@ class ActiveModel::Errors # person.errors.as_json # => {:name=>["cannot be nil"]} # person.errors.as_json(full_messages: true) # => {:name=>["name cannot be nil"]} # - # source://activemodel//lib/active_model/errors.rb#247 + # pkg:gem/activemodel#lib/active_model/errors.rb:247 def as_json(options = T.unsafe(nil)); end # Returns all error attribute names @@ -2489,11 +2330,11 @@ class ActiveModel::Errors # person.errors.messages # => {:name=>["cannot be nil", "must be specified"]} # person.errors.attribute_names # => [:name] # - # source://activemodel//lib/active_model/errors.rb#237 + # pkg:gem/activemodel#lib/active_model/errors.rb:237 def attribute_names; end - # source://forwardable/1.3.3/forwardable.rb#231 - def clear(*args, **_arg1, &block); end + # pkg:gem/activemodel#lib/active_model/errors.rb:103 + def clear(*args, **, &block); end # Copies the errors from other. # For copying errors but keep @base as is. @@ -2506,7 +2347,7 @@ class ActiveModel::Errors # # person.errors.copy!(other) # - # source://activemodel//lib/active_model/errors.rb#138 + # pkg:gem/activemodel#lib/active_model/errors.rb:138 def copy!(other); end # Delete messages for +key+. Returns the deleted messages. @@ -2515,31 +2356,31 @@ class ActiveModel::Errors # person.errors.delete(:name) # => ["cannot be nil"] # person.errors[:name] # => [] # - # source://activemodel//lib/active_model/errors.rb#215 + # pkg:gem/activemodel#lib/active_model/errors.rb:215 def delete(attribute, type = T.unsafe(nil), **options); end # Returns a Hash of attributes with an array of their error details. # - # source://activemodel//lib/active_model/errors.rb#276 + # pkg:gem/activemodel#lib/active_model/errors.rb:276 def details; end - # source://forwardable/1.3.3/forwardable.rb#231 - def each(*args, **_arg1, &block); end + # pkg:gem/activemodel#lib/active_model/errors.rb:103 + def each(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def empty?(*args, **_arg1, &block); end + # pkg:gem/activemodel#lib/active_model/errors.rb:103 + def empty?(*args, **, &block); end # The actual array of +Error+ objects # This method is aliased to objects. # - # source://activemodel//lib/active_model/errors.rb#107 + # pkg:gem/activemodel#lib/active_model/errors.rb:107 def errors; end # Returns a full message for a given attribute. # # person.errors.full_message(:name, 'is invalid') # => "Name is invalid" # - # source://activemodel//lib/active_model/errors.rb#451 + # pkg:gem/activemodel#lib/active_model/errors.rb:451 def full_message(attribute, message); end # Returns all the full error messages in an array. @@ -2553,7 +2394,7 @@ class ActiveModel::Errors # person.errors.full_messages # # => ["Name is too short (minimum is 5 characters)", "Name can't be blank", "Email can't be blank"] # - # source://activemodel//lib/active_model/errors.rb#415 + # pkg:gem/activemodel#lib/active_model/errors.rb:415 def full_messages; end # Returns all the full error messages for a given attribute in an array. @@ -2567,7 +2408,7 @@ class ActiveModel::Errors # person.errors.full_messages_for(:name) # # => ["Name is too short (minimum is 5 characters)", "Name can't be blank"] # - # source://activemodel//lib/active_model/errors.rb#430 + # pkg:gem/activemodel#lib/active_model/errors.rb:430 def full_messages_for(attribute); end # Translates an error message in its default scope @@ -2595,7 +2436,7 @@ class ActiveModel::Errors # * errors.attributes.title.blank # * errors.messages.blank # - # source://activemodel//lib/active_model/errors.rb#479 + # pkg:gem/activemodel#lib/active_model/errors.rb:479 def generate_message(attribute, type = T.unsafe(nil), options = T.unsafe(nil)); end # Returns a Hash of attributes with an array of their Error objects. @@ -2603,19 +2444,10 @@ class ActiveModel::Errors # person.errors.group_by_attribute # # => {:name=>[<#ActiveModel::Error>, <#ActiveModel::Error>]} # - # source://activemodel//lib/active_model/errors.rb#289 + # pkg:gem/activemodel#lib/active_model/errors.rb:289 def group_by_attribute; end - # Returns +true+ if the error messages include an error for the given key - # +attribute+, +false+ otherwise. - # - # person.errors.messages # => {:name=>["cannot be nil"]} - # person.errors.include?(:name) # => true - # person.errors.include?(:age) # => false - # - # @return [Boolean] - # - # source://activemodel//lib/active_model/errors.rb#202 + # pkg:gem/activemodel#lib/active_model/errors.rb:207 def has_key?(attribute); end # Imports one error. @@ -2628,7 +2460,7 @@ class ActiveModel::Errors # * +:attribute+ - Override the attribute the error belongs to. # * +:type+ - Override type of the error. # - # source://activemodel//lib/active_model/errors.rb#154 + # pkg:gem/activemodel#lib/active_model/errors.rb:154 def import(error, override_options = T.unsafe(nil)); end # Returns +true+ if the error messages include an error for the given key @@ -2638,24 +2470,13 @@ class ActiveModel::Errors # person.errors.include?(:name) # => true # person.errors.include?(:age) # => false # - # @return [Boolean] - # - # source://activemodel//lib/active_model/errors.rb#202 + # pkg:gem/activemodel#lib/active_model/errors.rb:202 def include?(attribute); end - # source://activemodel//lib/active_model/errors.rb#483 + # pkg:gem/activemodel#lib/active_model/errors.rb:483 def inspect; end - # Returns +true+ if the error messages include an error for the given key - # +attribute+, +false+ otherwise. - # - # person.errors.messages # => {:name=>["cannot be nil"]} - # person.errors.include?(:name) # => true - # person.errors.include?(:age) # => false - # - # @return [Boolean] - # - # source://activemodel//lib/active_model/errors.rb#202 + # pkg:gem/activemodel#lib/active_model/errors.rb:208 def key?(attribute); end # Merges the errors from other, @@ -2669,12 +2490,12 @@ class ActiveModel::Errors # # person.errors.merge!(other) # - # source://activemodel//lib/active_model/errors.rb#174 + # pkg:gem/activemodel#lib/active_model/errors.rb:174 def merge!(other); end # Returns a Hash of attributes with an array of their error messages. # - # source://activemodel//lib/active_model/errors.rb#268 + # pkg:gem/activemodel#lib/active_model/errors.rb:268 def messages; end # Returns all the error messages for a given attribute in an array. @@ -2688,13 +2509,10 @@ class ActiveModel::Errors # person.errors.messages_for(:name) # # => ["is too short (minimum is 5 characters)", "can't be blank"] # - # source://activemodel//lib/active_model/errors.rb#444 + # pkg:gem/activemodel#lib/active_model/errors.rb:444 def messages_for(attribute); end - # The actual array of +Error+ objects - # This method is aliased to objects. - # - # source://activemodel//lib/active_model/errors.rb#107 + # pkg:gem/activemodel#lib/active_model/errors.rb:108 def objects; end # Returns +true+ if an error on the attribute with the given type is @@ -2709,26 +2527,13 @@ class ActiveModel::Errors # person.errors.of_kind? :name, :not_too_long # => false # person.errors.of_kind? :name, "is too long" # => false # - # @return [Boolean] - # - # source://activemodel//lib/active_model/errors.rb#395 + # pkg:gem/activemodel#lib/active_model/errors.rb:395 def of_kind?(attribute, type = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 - def size(*args, **_arg1, &block); end + # pkg:gem/activemodel#lib/active_model/errors.rb:103 + def size(*args, **, &block); end - # Returns all the full error messages in an array. - # - # class Person - # validates_presence_of :name, :address, :email - # validates_length_of :name, in: 5..30 - # end - # - # person = Person.create(address: '123 First St.') - # person.errors.full_messages - # # => ["Name is too short (minimum is 5 characters)", "Name can't be blank", "Email can't be blank"] - # - # source://activemodel//lib/active_model/errors.rb#415 + # pkg:gem/activemodel#lib/active_model/errors.rb:418 def to_a; end # Returns a Hash of attributes with their error messages. If +full_messages+ @@ -2737,11 +2542,11 @@ class ActiveModel::Errors # person.errors.to_hash # => {:name=>["cannot be nil"]} # person.errors.to_hash(true) # => {:name=>["name cannot be nil"]} # - # source://activemodel//lib/active_model/errors.rb#256 + # pkg:gem/activemodel#lib/active_model/errors.rb:256 def to_hash(full_messages = T.unsafe(nil)); end - # source://forwardable/1.3.3/forwardable.rb#231 - def uniq!(*args, **_arg1, &block); end + # pkg:gem/activemodel#lib/active_model/errors.rb:103 + def uniq!(*args, **, &block); end # Search for errors matching +attribute+, +type+, or +options+. # @@ -2751,19 +2556,19 @@ class ActiveModel::Errors # person.errors.where(:name, :too_short) # => all name errors being too short # person.errors.where(:name, :too_short, minimum: 2) # => all name errors being too short and minimum is 2 # - # source://activemodel//lib/active_model/errors.rb#189 + # pkg:gem/activemodel#lib/active_model/errors.rb:189 def where(attribute, type = T.unsafe(nil), **options); end private - # source://activemodel//lib/active_model/errors.rb#122 + # pkg:gem/activemodel#lib/active_model/errors.rb:122 def initialize_dup(other); end - # source://activemodel//lib/active_model/errors.rb#490 + # pkg:gem/activemodel#lib/active_model/errors.rb:490 def normalize_arguments(attribute, type, **options); end end -# source://activemodel//lib/active_model/errors.rb#265 +# pkg:gem/activemodel#lib/active_model/errors.rb:265 ActiveModel::Errors::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) # = Active \Model \ForbiddenAttributesError @@ -2781,206 +2586,172 @@ ActiveModel::Errors::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) # Person.new(params) # # => # # -# source://activemodel//lib/active_model/forbidden_attributes_protection.rb#18 +# pkg:gem/activemodel#lib/active_model/forbidden_attributes_protection.rb:18 class ActiveModel::ForbiddenAttributesError < ::StandardError; end -# source://activemodel//lib/active_model/forbidden_attributes_protection.rb#21 +# pkg:gem/activemodel#lib/active_model/forbidden_attributes_protection.rb:21 module ActiveModel::ForbiddenAttributesProtection private - # source://activemodel//lib/active_model/forbidden_attributes_protection.rb#23 + # pkg:gem/activemodel#lib/active_model/forbidden_attributes_protection.rb:23 def sanitize_for_mass_assignment(attributes); end - # source://activemodel//lib/active_model/forbidden_attributes_protection.rb#23 + # pkg:gem/activemodel#lib/active_model/forbidden_attributes_protection.rb:31 def sanitize_forbidden_attributes(attributes); end end -# source://activemodel//lib/active_model/attribute_mutation_tracker.rb#91 +# pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:91 class ActiveModel::ForcedMutationTracker < ::ActiveModel::AttributeMutationTracker - # @return [ForcedMutationTracker] a new instance of ForcedMutationTracker - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#92 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:92 def initialize(attributes); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#101 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:101 def change_to_attribute(attr_name); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#97 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:97 def changed_in_place?(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#125 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:125 def finalize_changes; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#121 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:121 def force_change(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#109 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:109 def forget_change(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#113 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:113 def original_value(attr_name); end private - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#132 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:132 def attr_names; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#136 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:136 def attribute_changed?(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#144 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:144 def clone_value(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#140 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:140 def fetch_value(attr_name); end - # Returns the value of attribute finalized_changes. - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#130 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:130 def finalized_changes; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#151 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:151 def type_cast(attr_name, value); end end -# source://activemodel//lib/active_model/attribute_set/builder.rb#94 +# pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:94 class ActiveModel::LazyAttributeHash - # @return [LazyAttributeHash] a new instance of LazyAttributeHash - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#97 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:97 def initialize(types, values, additional_types, default_attributes, delegate_hash = T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#134 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:134 def ==(other); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#110 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:110 def [](key); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#114 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:114 def []=(key, value); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#118 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:118 def deep_dup; end - # source://activemodel//lib/active_model/attribute_set/builder.rb#129 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:129 def each_key(&block); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#95 - def each_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:95 + def each_value(*, **, &); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#95 - def except(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:95 + def except(*, **, &); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#95 - def fetch(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:95 + def fetch(*, **, &); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#106 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:106 def key?(key); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#142 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:142 def marshal_dump; end - # source://activemodel//lib/active_model/attribute_set/builder.rb#146 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:146 def marshal_load(values); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#95 - def transform_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:95 + def transform_values(*, **, &); end protected - # source://activemodel//lib/active_model/attribute_set/builder.rb#151 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:151 def materialize; end private - # Returns the value of attribute additional_types. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#163 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:163 def additional_types; end - # source://activemodel//lib/active_model/attribute_set/builder.rb#165 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:165 def assign_default_value(name); end - # Returns the value of attribute default_attributes. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#163 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:163 def default_attributes; end - # Returns the value of attribute delegate_hash. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#163 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:163 def delegate_hash; end - # source://activemodel//lib/active_model/attribute_set/builder.rb#124 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:124 def initialize_dup(_); end - # Returns the value of attribute types. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#163 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:163 def types; end - # Returns the value of attribute values. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#163 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:163 def values; end end -# source://activemodel//lib/active_model/attribute_set/builder.rb#21 +# pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:21 class ActiveModel::LazyAttributeSet < ::ActiveModel::AttributeSet - # @return [LazyAttributeSet] a new instance of LazyAttributeSet - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#22 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:22 def initialize(values, types, additional_types, default_attributes, attributes = T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#41 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:41 def fetch_value(name, &block); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#32 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:32 def key?(name); end - # source://activemodel//lib/active_model/attribute_set/builder.rb#36 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:36 def keys; end protected - # source://activemodel//lib/active_model/attribute_set/builder.rb#61 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:61 def attributes; end private - # Returns the value of attribute additional_types. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#71 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:71 def additional_types; end - # source://activemodel//lib/active_model/attribute_set/builder.rb#73 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:73 def default_attribute(name, value_present = T.unsafe(nil), value = T.unsafe(nil)); end - # Returns the value of attribute default_attributes. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#71 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:71 def default_attributes; end - # Returns the value of attribute types. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#71 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:71 def types; end - # Returns the value of attribute values. - # - # source://activemodel//lib/active_model/attribute_set/builder.rb#71 + # pkg:gem/activemodel#lib/active_model/attribute_set/builder.rb:71 def values; end end -# source://activemodel//lib/active_model/lint.rb#4 +# pkg:gem/activemodel#lib/active_model/lint.rb:4 module ActiveModel::Lint; end # == Active \Model \Lint \Tests @@ -3003,7 +2774,7 @@ module ActiveModel::Lint; end # to to_model. It is perfectly fine for to_model to return # +self+. # -# source://activemodel//lib/active_model/lint.rb#24 +# pkg:gem/activemodel#lib/active_model/lint.rb:24 module ActiveModel::Lint::Tests # Passes if the object's model responds to errors and if calling # [](attribute) on the result of this method returns an array. @@ -3015,7 +2786,7 @@ module ActiveModel::Lint::Tests # If localization is used, the strings should be localized for the current # locale. If no error is present, the method should return an empty array. # - # source://activemodel//lib/active_model/lint.rb#102 + # pkg:gem/activemodel#lib/active_model/lint.rb:102 def test_errors_aref; end # Passes if the object's model responds to model_name both as @@ -3025,7 +2796,7 @@ module ActiveModel::Lint::Tests # # Check ActiveModel::Naming for more information. # - # source://activemodel//lib/active_model/lint.rb#81 + # pkg:gem/activemodel#lib/active_model/lint.rb:81 def test_model_naming; end # Passes if the object's model responds to persisted? and if @@ -3036,9 +2807,7 @@ module ActiveModel::Lint::Tests # will route to the create action. If it is persisted, a form for the # object will route to the update action. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/lint.rb#70 + # pkg:gem/activemodel#lib/active_model/lint.rb:70 def test_persisted?; end # Passes if the object's model responds to to_key and if calling @@ -3048,7 +2817,7 @@ module ActiveModel::Lint::Tests # to_key returns an Enumerable of all (primary) key attributes # of the model, and is used to a generate unique DOM id for the object. # - # source://activemodel//lib/active_model/lint.rb#31 + # pkg:gem/activemodel#lib/active_model/lint.rb:31 def test_to_key; end # Passes if the object's model responds to to_param and if @@ -3061,7 +2830,7 @@ module ActiveModel::Lint::Tests # tests for this behavior in lint because it doesn't make sense to force # any of the possible implementation strategies on the implementer. # - # source://activemodel//lib/active_model/lint.rb#46 + # pkg:gem/activemodel#lib/active_model/lint.rb:46 def test_to_param; end # Passes if the object's model responds to to_partial_path and if @@ -3070,15 +2839,15 @@ module ActiveModel::Lint::Tests # to_partial_path is used for looking up partials. For example, # a BlogPost model might return "blog_posts/blog_post". # - # source://activemodel//lib/active_model/lint.rb#58 + # pkg:gem/activemodel#lib/active_model/lint.rb:58 def test_to_partial_path; end private - # source://activemodel//lib/active_model/lint.rb#113 + # pkg:gem/activemodel#lib/active_model/lint.rb:113 def assert_boolean(result, name); end - # source://activemodel//lib/active_model/lint.rb#108 + # pkg:gem/activemodel#lib/active_model/lint.rb:108 def model; end end @@ -3092,7 +2861,7 @@ end # user.pets.select(:id).first.user_id # # => ActiveModel::MissingAttributeError: missing attribute 'user_id' for Pet # -# source://activemodel//lib/active_model/attribute_methods.rb#15 +# pkg:gem/activemodel#lib/active_model/attribute_methods.rb:15 class ActiveModel::MissingAttributeError < ::NoMethodError; end # = Active \Model \Basic \Model @@ -3134,7 +2903,7 @@ class ActiveModel::MissingAttributeError < ::NoMethodError; end # refer to the specific modules included in +ActiveModel::Model+ # (see below). # -# source://activemodel//lib/active_model/model.rb#42 +# pkg:gem/activemodel#lib/active_model/model.rb:42 module ActiveModel::Model include ::ActiveModel::Access extend ::ActiveSupport::Concern @@ -3173,7 +2942,7 @@ module ActiveModel::Model end end -# source://activemodel//lib/active_model/naming.rb#9 +# pkg:gem/activemodel#lib/active_model/naming.rb:9 class ActiveModel::Name include ::Comparable @@ -3190,61 +2959,44 @@ class ActiveModel::Name # ActiveModel::Name.new(Foo::Bar).to_s # # => "Foo::Bar" # - # @raise [ArgumentError] - # @return [Name] a new instance of Name - # - # source://activemodel//lib/active_model/naming.rb#166 + # pkg:gem/activemodel#lib/active_model/naming.rb:166 def initialize(klass, namespace = T.unsafe(nil), name = T.unsafe(nil), locale = T.unsafe(nil)); end - # source://activemodel//lib/active_model/naming.rb#151 - def !~(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/naming.rb:151 + def !~(*, **, &); end - # source://activemodel//lib/active_model/naming.rb#151 - def <=>(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/naming.rb:151 + def <=>(*, **, &); end - # source://activemodel//lib/active_model/naming.rb#151 + # pkg:gem/activemodel#lib/active_model/naming.rb:151 def ==(arg); end - # source://activemodel//lib/active_model/naming.rb#151 + # pkg:gem/activemodel#lib/active_model/naming.rb:151 def ===(arg); end - # source://activemodel//lib/active_model/naming.rb#151 - def =~(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/naming.rb:151 + def =~(*, **, &); end - # source://activemodel//lib/active_model/naming.rb#151 - def as_json(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/naming.rb:151 + def as_json(*, **, &); end - # Returns the value of attribute collection. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:16 def cache_key; end - # Returns the value of attribute collection. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def collection; end - # Sets the attribute collection - # - # @param value the value to set the attribute collection to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def collection=(_arg0); end - # Returns the value of attribute element. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def element; end - # Sets the attribute element - # - # @param value the value to set the attribute element to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def element=(_arg0); end - # source://activemodel//lib/active_model/naming.rb#151 - def eql?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/naming.rb:151 + def eql?(*, **, &); end # Transform the model name into a more human format, using I18n. By default, # it will underscore then humanize the class name. @@ -3257,120 +3009,76 @@ class ActiveModel::Name # # Specify +options+ with additional translating options. # - # source://activemodel//lib/active_model/naming.rb#197 + # pkg:gem/activemodel#lib/active_model/naming.rb:197 def human(options = T.unsafe(nil)); end - # Returns the value of attribute i18n_key. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def i18n_key; end - # Sets the attribute i18n_key - # - # @param value the value to set the attribute i18n_key to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def i18n_key=(_arg0); end - # source://activemodel//lib/active_model/naming.rb#151 - def match?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/naming.rb:151 + def match?(*, **, &); end - # Returns the value of attribute name. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def name; end - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def name=(_arg0); end - # Returns the value of attribute param_key. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def param_key; end - # Sets the attribute param_key - # - # @param value the value to set the attribute param_key to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def param_key=(_arg0); end - # Returns the value of attribute plural. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def plural; end - # Sets the attribute plural - # - # @param value the value to set the attribute plural to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def plural=(_arg0); end - # Returns the value of attribute route_key. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def route_key; end - # Sets the attribute route_key - # - # @param value the value to set the attribute route_key to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def route_key=(_arg0); end - # Returns the value of attribute singular. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def singular; end - # Sets the attribute singular - # - # @param value the value to set the attribute singular to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def singular=(_arg0); end - # Returns the value of attribute singular_route_key. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def singular_route_key; end - # Sets the attribute singular_route_key - # - # @param value the value to set the attribute singular_route_key to. - # - # source://activemodel//lib/active_model/naming.rb#12 + # pkg:gem/activemodel#lib/active_model/naming.rb:12 def singular_route_key=(_arg0); end - # source://activemodel//lib/active_model/naming.rb#151 - def to_s(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/naming.rb:151 + def to_s(*, **, &); end - # source://activemodel//lib/active_model/naming.rb#151 - def to_str(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/naming.rb:151 + def to_str(*, **, &); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/naming.rb#209 + # pkg:gem/activemodel#lib/active_model/naming.rb:209 def uncountable?; end private - # source://activemodel//lib/active_model/naming.rb#216 + # pkg:gem/activemodel#lib/active_model/naming.rb:216 def _singularize(string); end - # source://activemodel//lib/active_model/naming.rb#220 + # pkg:gem/activemodel#lib/active_model/naming.rb:220 def i18n_keys; end - # source://activemodel//lib/active_model/naming.rb#228 + # pkg:gem/activemodel#lib/active_model/naming.rb:228 def i18n_scope; end end -# source://activemodel//lib/active_model/naming.rb#214 +# pkg:gem/activemodel#lib/active_model/naming.rb:214 ActiveModel::Name::MISSING_TRANSLATION = T.let(T.unsafe(nil), Integer) # = Active \Model \Naming @@ -3393,7 +3101,7 @@ ActiveModel::Name::MISSING_TRANSLATION = T.let(T.unsafe(nil), Integer) # is required to pass the \Active \Model Lint test. So either extending the # provided method below, or rolling your own is required. # -# source://activemodel//lib/active_model/naming.rb#252 +# pkg:gem/activemodel#lib/active_model/naming.rb:252 module ActiveModel::Naming # Returns an ActiveModel::Name object for module. It can be # used to retrieve all kinds of naming-related information @@ -3408,16 +3116,16 @@ module ActiveModel::Naming # Person.model_name.singular # => "person" # Person.model_name.plural # => "people" # - # source://activemodel//lib/active_model/naming.rb#270 + # pkg:gem/activemodel#lib/active_model/naming.rb:270 def model_name; end private - # source://activemodel//lib/active_model/naming.rb#352 + # pkg:gem/activemodel#lib/active_model/naming.rb:352 def inherited(base); end class << self - # source://activemodel//lib/active_model/naming.rb#253 + # pkg:gem/activemodel#lib/active_model/naming.rb:253 def extended(base); end # Returns string to use for params names. It differs for @@ -3429,7 +3137,7 @@ module ActiveModel::Naming # # For shared engine: # ActiveModel::Naming.param_key(Blog::Post) # => "blog_post" # - # source://activemodel//lib/active_model/naming.rb#338 + # pkg:gem/activemodel#lib/active_model/naming.rb:338 def param_key(record_or_class); end # Returns the plural class name of a record or class. @@ -3437,7 +3145,7 @@ module ActiveModel::Naming # ActiveModel::Naming.plural(post) # => "posts" # ActiveModel::Naming.plural(Highrise::Person) # => "highrise_people" # - # source://activemodel//lib/active_model/naming.rb#283 + # pkg:gem/activemodel#lib/active_model/naming.rb:283 def plural(record_or_class); end # Returns string to use while generating route names. It differs for @@ -3452,7 +3160,7 @@ module ActiveModel::Naming # The route key also considers if the noun is uncountable and, in # such cases, automatically appends _index. # - # source://activemodel//lib/active_model/naming.rb#326 + # pkg:gem/activemodel#lib/active_model/naming.rb:326 def route_key(record_or_class); end # Returns the singular class name of a record or class. @@ -3460,7 +3168,7 @@ module ActiveModel::Naming # ActiveModel::Naming.singular(post) # => "post" # ActiveModel::Naming.singular(Highrise::Person) # => "highrise_person" # - # source://activemodel//lib/active_model/naming.rb#291 + # pkg:gem/activemodel#lib/active_model/naming.rb:291 def singular(record_or_class); end # Returns string to use while generating route names. It differs for @@ -3472,7 +3180,7 @@ module ActiveModel::Naming # # For shared engine: # ActiveModel::Naming.singular_route_key(Blog::Post) # => "blog_post" # - # source://activemodel//lib/active_model/naming.rb#311 + # pkg:gem/activemodel#lib/active_model/naming.rb:311 def singular_route_key(record_or_class); end # Identifies whether the class name of a record or class is uncountable. @@ -3480,106 +3188,97 @@ module ActiveModel::Naming # ActiveModel::Naming.uncountable?(Sheep) # => true # ActiveModel::Naming.uncountable?(Post) # => false # - # @return [Boolean] - # - # source://activemodel//lib/active_model/naming.rb#299 + # pkg:gem/activemodel#lib/active_model/naming.rb:299 def uncountable?(record_or_class); end private - # source://activemodel//lib/active_model/naming.rb#342 + # pkg:gem/activemodel#lib/active_model/naming.rb:342 def model_name_from_record_or_class(record_or_class); end end end -# source://activemodel//lib/active_model/nested_error.rb#7 +# pkg:gem/activemodel#lib/active_model/nested_error.rb:7 class ActiveModel::NestedError < ::ActiveModel::Error extend ::Forwardable - # @return [NestedError] a new instance of NestedError - # - # source://activemodel//lib/active_model/nested_error.rb#8 + # pkg:gem/activemodel#lib/active_model/nested_error.rb:8 def initialize(base, inner_error, override_options = T.unsafe(nil)); end - # Returns the value of attribute inner_error. - # - # source://activemodel//lib/active_model/nested_error.rb#17 + # pkg:gem/activemodel#lib/active_model/nested_error.rb:17 def inner_error; end - # source://forwardable/1.3.3/forwardable.rb#231 - def message(*args, **_arg1, &block); end + # pkg:gem/activemodel#lib/active_model/nested_error.rb:20 + def message(*args, **, &block); end end -# source://activemodel//lib/active_model/attribute_mutation_tracker.rb#156 +# pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:156 class ActiveModel::NullMutationTracker include ::Singleton::SingletonInstanceMethods include ::Singleton extend ::Singleton::SingletonClassMethods - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#174 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:174 def any_changes?; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#171 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:171 def change_to_attribute(attr_name); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#178 - def changed?(attr_name, **_arg1); end + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:178 + def changed?(attr_name, **); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#159 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:159 def changed_attribute_names; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#182 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:182 def changed_in_place?(attr_name); end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#163 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:163 def changed_values; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#167 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:167 def changes; end - # source://activemodel//lib/active_model/attribute_mutation_tracker.rb#186 + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:186 def original_value(attr_name); end class << self private + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:157 def allocate; end + + # pkg:gem/activemodel#lib/active_model/attribute_mutation_tracker.rb:157 def new(*_arg0); end end end -# source://activemodel//lib/active_model/railtie.rb#7 +# pkg:gem/activemodel#lib/active_model/railtie.rb:7 class ActiveModel::Railtie < ::Rails::Railtie; end # = Active \Model \RangeError # # Raised when attribute values are out of range. # -# source://activemodel//lib/active_model/errors.rb#523 +# pkg:gem/activemodel#lib/active_model/errors.rb:523 class ActiveModel::RangeError < ::RangeError; end -# source://activemodel//lib/active_model/secure_password.rb#4 +# pkg:gem/activemodel#lib/active_model/secure_password.rb:4 module ActiveModel::SecurePassword extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveModel::SecurePassword::ClassMethods class << self - # source://activemodel//lib/active_model/secure_password.rb#13 + # pkg:gem/activemodel#lib/active_model/secure_password.rb:13 def min_cost; end - # source://activemodel//lib/active_model/secure_password.rb#13 + # pkg:gem/activemodel#lib/active_model/secure_password.rb:13 def min_cost=(_arg0); end end end -# source://activemodel//lib/active_model/secure_password.rb#17 +# pkg:gem/activemodel#lib/active_model/secure_password.rb:17 module ActiveModel::SecurePassword::ClassMethods # Adds methods to set and authenticate against a BCrypt password. # This mechanism requires you to have a +XXX_digest+ attribute, @@ -3680,15 +3379,13 @@ module ActiveModel::SecurePassword::ClassMethods # # raises ActiveSupport::MessageVerifier::InvalidSignature since the token is expired # User.find_by_password_reset_token!(token) # - # source://activemodel//lib/active_model/secure_password.rb#116 + # pkg:gem/activemodel#lib/active_model/secure_password.rb:116 def has_secure_password(attribute = T.unsafe(nil), validations: T.unsafe(nil), reset_token: T.unsafe(nil)); end end -# source://activemodel//lib/active_model/secure_password.rb#182 +# pkg:gem/activemodel#lib/active_model/secure_password.rb:182 class ActiveModel::SecurePassword::InstanceMethodsOnActivation < ::Module - # @return [InstanceMethodsOnActivation] a new instance of InstanceMethodsOnActivation - # - # source://activemodel//lib/active_model/secure_password.rb#183 + # pkg:gem/activemodel#lib/active_model/secure_password.rb:183 def initialize(attribute, reset_token:); end end @@ -3696,7 +3393,7 @@ end # password of length more than 72 bytes it ignores extra characters. # Hence need to put a restriction on password length. # -# source://activemodel//lib/active_model/secure_password.rb#10 +# pkg:gem/activemodel#lib/active_model/secure_password.rb:10 ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED = T.let(T.unsafe(nil), Integer) # = Active \Model \Serialization @@ -3763,7 +3460,7 @@ ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED = T.let(T.unsafe(nil), # person.serializable_hash(include: :address) # person.serializable_hash(include: { address: { only: 'city' }}) # -# source://activemodel//lib/active_model/serialization.rb#69 +# pkg:gem/activemodel#lib/active_model/serialization.rb:69 module ActiveModel::Serialization # Hook method defining how an attribute value should be retrieved for # serialization. By default this is assumed to be an instance named after @@ -3781,6 +3478,8 @@ module ActiveModel::Serialization # @data[key] # end # end + # + # pkg:gem/activemodel#lib/active_model/serialization.rb:167 def read_attribute_for_serialization(*_arg0); end # Returns a serialized hash of your object. @@ -3839,12 +3538,12 @@ module ActiveModel::Serialization # user.serializable_hash(include: { notes: { only: 'title' }}) # # => {"name" => "Napoleon", "notes" => [{"title"=>"Battle of Austerlitz"}]} # - # source://activemodel//lib/active_model/serialization.rb#125 + # pkg:gem/activemodel#lib/active_model/serialization.rb:125 def serializable_hash(options = T.unsafe(nil)); end private - # source://activemodel//lib/active_model/serialization.rb#170 + # pkg:gem/activemodel#lib/active_model/serialization.rb:170 def attribute_names_for_serialization; end # Add associations specified via the :include option. @@ -3854,21 +3553,21 @@ module ActiveModel::Serialization # +records+ - the association record(s) to be serialized # +opts+ - options for the association records # - # source://activemodel//lib/active_model/serialization.rb#184 + # pkg:gem/activemodel#lib/active_model/serialization.rb:184 def serializable_add_includes(options = T.unsafe(nil)); end - # source://activemodel//lib/active_model/serialization.rb#174 + # pkg:gem/activemodel#lib/active_model/serialization.rb:174 def serializable_attributes(attribute_names); end end -# source://activemodel//lib/active_model.rb#68 +# pkg:gem/activemodel#lib/active_model.rb:68 module ActiveModel::Serializers extend ::ActiveSupport::Autoload end # = Active \Model \JSON \Serializer # -# source://activemodel//lib/active_model/serializers/json.rb#8 +# pkg:gem/activemodel#lib/active_model/serializers/json.rb:8 module ActiveModel::Serializers::JSON include ::ActiveModel::Serialization extend ::ActiveSupport::Concern @@ -3956,7 +3655,7 @@ module ActiveModel::Serializers::JSON # # { "comments" => [ { "body" => "Don't think too hard" } ], # # "title" => "So I was thinking" } ] } # - # source://activemodel//lib/active_model/serializers/json.rb#96 + # pkg:gem/activemodel#lib/active_model/serializers/json.rb:96 def as_json(options = T.unsafe(nil)); end # Sets the model +attributes+ from a JSON string. Returns +self+. @@ -3994,7 +3693,7 @@ module ActiveModel::Serializers::JSON # person.age # => 22 # person.awesome # => true # - # source://activemodel//lib/active_model/serializers/json.rb#146 + # pkg:gem/activemodel#lib/active_model/serializers/json.rb:146 def from_json(json, include_root = T.unsafe(nil)); end module GeneratedClassMethods @@ -4027,7 +3726,7 @@ end # person.valid? # # => ActiveModel::StrictValidationFailed: Name can't be blank # -# source://activemodel//lib/active_model/errors.rb#517 +# pkg:gem/activemodel#lib/active_model/errors.rb:517 class ActiveModel::StrictValidationFailed < ::StandardError; end # = Active \Model \Translation @@ -4049,7 +3748,7 @@ class ActiveModel::StrictValidationFailed < ::StandardError; end # class-based +i18n_scope+ and +lookup_ancestors+ to find translations in # parent classes. # -# source://activemodel//lib/active_model/translation.rb#22 +# pkg:gem/activemodel#lib/active_model/translation.rb:22 module ActiveModel::Translation include ::ActiveModel::Naming @@ -4060,12 +3759,12 @@ module ActiveModel::Translation # # Specify +options+ with additional translating options. # - # source://activemodel//lib/active_model/translation.rb#48 + # pkg:gem/activemodel#lib/active_model/translation.rb:48 def human_attribute_name(attribute, options = T.unsafe(nil)); end # Returns the +i18n_scope+ for the class. Override if you want custom lookup. # - # source://activemodel//lib/active_model/translation.rb#28 + # pkg:gem/activemodel#lib/active_model/translation.rb:28 def i18n_scope; end # When localizing a string, it goes through the lookup returned by this @@ -4073,40 +3772,40 @@ module ActiveModel::Translation # ActiveModel::Errors#full_messages and # ActiveModel::Translation#human_attribute_name. # - # source://activemodel//lib/active_model/translation.rb#36 + # pkg:gem/activemodel#lib/active_model/translation.rb:36 def lookup_ancestors; end class << self - # source://activemodel//lib/active_model/translation.rb#25 + # pkg:gem/activemodel#lib/active_model/translation.rb:25 def raise_on_missing_translations; end - # source://activemodel//lib/active_model/translation.rb#25 + # pkg:gem/activemodel#lib/active_model/translation.rb:25 def raise_on_missing_translations=(_arg0); end end end -# source://activemodel//lib/active_model/translation.rb#40 +# pkg:gem/activemodel#lib/active_model/translation.rb:40 ActiveModel::Translation::MISSING_TRANSLATION = T.let(T.unsafe(nil), Integer) -# source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#4 +# pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:4 module ActiveModel::Type class << self - # source://activemodel//lib/active_model/type.rb#38 + # pkg:gem/activemodel#lib/active_model/type.rb:38 def default_value; end - # source://activemodel//lib/active_model/type.rb#34 - def lookup(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/type.rb:34 + def lookup(*, **, &); end # Add a new type to the registry, allowing it to be referenced as a # symbol by {attribute}[rdoc-ref:Attributes::ClassMethods#attribute]. # - # source://activemodel//lib/active_model/type.rb#30 + # pkg:gem/activemodel#lib/active_model/type.rb:30 def register(type_name, klass = T.unsafe(nil), &block); end - # source://activemodel//lib/active_model/type.rb#26 + # pkg:gem/activemodel#lib/active_model/type.rb:26 def registry; end - # source://activemodel//lib/active_model/type.rb#26 + # pkg:gem/activemodel#lib/active_model/type.rb:26 def registry=(_arg0); end end end @@ -4130,14 +3829,14 @@ end # All casting and serialization are performed in the same way as the # standard ActiveModel::Type::Integer type. # -# source://activemodel//lib/active_model/type/big_integer.rb#25 +# pkg:gem/activemodel#lib/active_model/type/big_integer.rb:25 class ActiveModel::Type::BigInteger < ::ActiveModel::Type::Integer - # source://activemodel//lib/active_model/type/big_integer.rb#26 + # pkg:gem/activemodel#lib/active_model/type/big_integer.rb:26 def serialize_cast_value(value); end private - # source://activemodel//lib/active_model/type/big_integer.rb#31 + # pkg:gem/activemodel#lib/active_model/type/big_integer.rb:31 def max_value; end end @@ -4148,45 +3847,39 @@ end # # Non-string values are coerced to strings using their +to_s+ method. # -# source://activemodel//lib/active_model/type/binary.rb#11 +# pkg:gem/activemodel#lib/active_model/type/binary.rb:11 class ActiveModel::Type::Binary < ::ActiveModel::Type::Value - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/binary.rb#16 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:16 def binary?; end - # source://activemodel//lib/active_model/type/binary.rb#20 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:20 def cast(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/binary.rb#35 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:35 def changed_in_place?(raw_old_value, value); end - # source://activemodel//lib/active_model/type/binary.rb#30 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:30 def serialize(value); end - # source://activemodel//lib/active_model/type/binary.rb#12 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:12 def type; end end -# source://activemodel//lib/active_model/type/binary.rb#40 +# pkg:gem/activemodel#lib/active_model/type/binary.rb:40 class ActiveModel::Type::Binary::Data - # @return [Data] a new instance of Data - # - # source://activemodel//lib/active_model/type/binary.rb#41 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:41 def initialize(value); end - # source://activemodel//lib/active_model/type/binary.rb#56 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:56 def ==(other); end - # source://activemodel//lib/active_model/type/binary.rb#52 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:52 def hex; end - # source://activemodel//lib/active_model/type/binary.rb#47 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:47 def to_s; end - # source://activemodel//lib/active_model/type/binary.rb#47 + # pkg:gem/activemodel#lib/active_model/type/binary.rb:50 def to_str; end end @@ -4200,24 +3893,24 @@ end # - Empty strings are coerced to +nil+. # - All other values will be coerced to +true+. # -# source://activemodel//lib/active_model/type/boolean.rb#14 +# pkg:gem/activemodel#lib/active_model/type/boolean.rb:14 class ActiveModel::Type::Boolean < ::ActiveModel::Type::Value - # source://activemodel//lib/active_model/type/boolean.rb#30 + # pkg:gem/activemodel#lib/active_model/type/boolean.rb:30 def serialize(value); end - # source://activemodel//lib/active_model/type/boolean.rb#34 + # pkg:gem/activemodel#lib/active_model/type/boolean.rb:34 def serialize_cast_value(value); end - # source://activemodel//lib/active_model/type/boolean.rb#26 + # pkg:gem/activemodel#lib/active_model/type/boolean.rb:26 def type; end private - # source://activemodel//lib/active_model/type/boolean.rb#39 + # pkg:gem/activemodel#lib/active_model/type/boolean.rb:39 def cast_value(value); end end -# source://activemodel//lib/active_model/type/boolean.rb#15 +# pkg:gem/activemodel#lib/active_model/type/boolean.rb:15 ActiveModel::Type::Boolean::FALSE_VALUES = T.let(T.unsafe(nil), Set) # = Active Model \Date \Type @@ -4242,36 +3935,36 @@ ActiveModel::Type::Boolean::FALSE_VALUES = T.let(T.unsafe(nil), Set) # String values are parsed using the ISO 8601 date format. Any other values # are cast using their +to_date+ method, if it exists. # -# source://activemodel//lib/active_model/type/date.rb#26 +# pkg:gem/activemodel#lib/active_model/type/date.rb:26 class ActiveModel::Type::Date < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Timezone include ::ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods - # source://activemodel//lib/active_model/type/date.rb#30 + # pkg:gem/activemodel#lib/active_model/type/date.rb:30 def type; end - # source://activemodel//lib/active_model/type/date.rb#34 + # pkg:gem/activemodel#lib/active_model/type/date.rb:34 def type_cast_for_schema(value); end private - # source://activemodel//lib/active_model/type/date.rb#39 + # pkg:gem/activemodel#lib/active_model/type/date.rb:39 def cast_value(value); end - # source://activemodel//lib/active_model/type/date.rb#57 + # pkg:gem/activemodel#lib/active_model/type/date.rb:57 def fallback_string_to_date(string); end - # source://activemodel//lib/active_model/type/date.rb#51 + # pkg:gem/activemodel#lib/active_model/type/date.rb:51 def fast_string_to_date(string); end - # source://activemodel//lib/active_model/type/date.rb#66 + # pkg:gem/activemodel#lib/active_model/type/date.rb:66 def new_date(year, mon, mday); end - # source://activemodel//lib/active_model/type/date.rb#72 - def value_from_multiparameter_assignment(*_arg0); end + # pkg:gem/activemodel#lib/active_model/type/date.rb:72 + def value_from_multiparameter_assignment(*); end end -# source://activemodel//lib/active_model/type/date.rb#50 +# pkg:gem/activemodel#lib/active_model/type/date.rb:50 ActiveModel::Type::Date::ISO_DATE = T.let(T.unsafe(nil), Regexp) # = Active Model \DateTime \Type @@ -4312,30 +4005,30 @@ ActiveModel::Type::Date::ISO_DATE = T.let(T.unsafe(nil), Regexp) # attribute :start, :datetime, precision: 4 # end # -# source://activemodel//lib/active_model/type/date_time.rb#42 +# pkg:gem/activemodel#lib/active_model/type/date_time.rb:42 class ActiveModel::Type::DateTime < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Timezone include ::ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods include ::ActiveModel::Type::Helpers::TimeValue - # source://activemodel//lib/active_model/type/date_time.rb#49 + # pkg:gem/activemodel#lib/active_model/type/date_time.rb:49 def type; end private - # source://activemodel//lib/active_model/type/date_time.rb#54 + # pkg:gem/activemodel#lib/active_model/type/date_time.rb:54 def cast_value(value); end - # source://activemodel//lib/active_model/type/date_time.rb#67 + # pkg:gem/activemodel#lib/active_model/type/date_time.rb:67 def fallback_string_to_time(string); end # '0.123456' -> 123456 # '1.123456' -> 123456 # - # source://activemodel//lib/active_model/type/date_time.rb#63 + # pkg:gem/activemodel#lib/active_model/type/date_time.rb:63 def microseconds(time); end - # source://activemodel//lib/active_model/type/date_time.rb#79 + # pkg:gem/activemodel#lib/active_model/type/date_time.rb:79 def value_from_multiparameter_assignment(values_hash); end end @@ -4378,32 +4071,32 @@ end # attribute :weight, :decimal, precision: 24 # end # -# source://activemodel//lib/active_model/type/decimal.rb#45 +# pkg:gem/activemodel#lib/active_model/type/decimal.rb:45 class ActiveModel::Type::Decimal < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Numeric - # source://activemodel//lib/active_model/type/decimal.rb#49 + # pkg:gem/activemodel#lib/active_model/type/decimal.rb:49 def type; end - # source://activemodel//lib/active_model/type/decimal.rb#53 + # pkg:gem/activemodel#lib/active_model/type/decimal.rb:53 def type_cast_for_schema(value); end private - # source://activemodel//lib/active_model/type/decimal.rb#98 + # pkg:gem/activemodel#lib/active_model/type/decimal.rb:98 def apply_scale(value); end - # source://activemodel//lib/active_model/type/decimal.rb#58 + # pkg:gem/activemodel#lib/active_model/type/decimal.rb:58 def cast_value(value); end - # source://activemodel//lib/active_model/type/decimal.rb#82 + # pkg:gem/activemodel#lib/active_model/type/decimal.rb:82 def convert_float_to_big_decimal(value); end - # source://activemodel//lib/active_model/type/decimal.rb#90 + # pkg:gem/activemodel#lib/active_model/type/decimal.rb:90 def float_precision; end end -# source://activemodel//lib/active_model/type/decimal.rb#47 +# pkg:gem/activemodel#lib/active_model/type/decimal.rb:47 ActiveModel::Type::Decimal::BIGDECIMAL_PRECISION = T.let(T.unsafe(nil), Integer) # = Active Model \Float \Type @@ -4436,148 +4129,131 @@ ActiveModel::Type::Decimal::BIGDECIMAL_PRECISION = T.let(T.unsafe(nil), Integer) # - "-Infinity" is cast to -Float::INFINITY. # - "NaN" is cast to +Float::NAN+. # -# source://activemodel//lib/active_model/type/float.rb#36 +# pkg:gem/activemodel#lib/active_model/type/float.rb:36 class ActiveModel::Type::Float < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Numeric - # source://activemodel//lib/active_model/type/float.rb#39 + # pkg:gem/activemodel#lib/active_model/type/float.rb:39 def type; end - # source://activemodel//lib/active_model/type/float.rb#43 + # pkg:gem/activemodel#lib/active_model/type/float.rb:43 def type_cast_for_schema(value); end private - # source://activemodel//lib/active_model/type/float.rb#53 + # pkg:gem/activemodel#lib/active_model/type/float.rb:53 def cast_value(value); end end -# source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#5 +# pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:5 module ActiveModel::Type::Helpers; end -# source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#6 +# pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:6 class ActiveModel::Type::Helpers::AcceptsMultiparameterTime < ::Module - # @return [AcceptsMultiparameterTime] a new instance of AcceptsMultiparameterTime - # - # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#37 + # pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:37 def initialize(defaults: T.unsafe(nil)); end end -# source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#7 +# pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:7 module ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods - # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#24 + # pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:24 def assert_valid_value(value); end - # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#16 + # pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:16 def cast(value); end - # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#8 + # pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:8 def serialize(value); end - # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#12 + # pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:12 def serialize_cast_value(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/helpers/accepts_multiparameter_time.rb#32 + # pkg:gem/activemodel#lib/active_model/type/helpers/accepts_multiparameter_time.rb:32 def value_constructed_by_mass_assignment?(value); end end -# source://activemodel//lib/active_model/type/helpers/mutable.rb#6 +# pkg:gem/activemodel#lib/active_model/type/helpers/mutable.rb:6 module ActiveModel::Type::Helpers::Mutable - # source://activemodel//lib/active_model/type/helpers/mutable.rb#7 + # pkg:gem/activemodel#lib/active_model/type/helpers/mutable.rb:7 def cast(value); end # +raw_old_value+ will be the `_before_type_cast` version of the # value (likely a string). +new_value+ will be the current, type # cast value. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/helpers/mutable.rb#14 + # pkg:gem/activemodel#lib/active_model/type/helpers/mutable.rb:14 def changed_in_place?(raw_old_value, new_value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/helpers/mutable.rb#18 + # pkg:gem/activemodel#lib/active_model/type/helpers/mutable.rb:18 def mutable?; end end -# source://activemodel//lib/active_model/type/helpers/numeric.rb#6 +# pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:6 module ActiveModel::Type::Helpers::Numeric - # source://activemodel//lib/active_model/type/helpers/numeric.rb#15 + # pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:15 def cast(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/helpers/numeric.rb#31 + # pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:31 def changed?(old_value, _new_value, new_value_before_type_cast); end - # source://activemodel//lib/active_model/type/helpers/numeric.rb#7 + # pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:7 def serialize(value); end - # source://activemodel//lib/active_model/type/helpers/numeric.rb#11 + # pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:11 def serialize_cast_value(value); end private - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/helpers/numeric.rb#37 + # pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:37 def equal_nan?(old_value, new_value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/helpers/numeric.rb#49 + # pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:49 def non_numeric_string?(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/helpers/numeric.rb#44 + # pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:44 def number_to_non_number?(old_value, new_value_before_type_cast); end end -# source://activemodel//lib/active_model/type/helpers/numeric.rb#56 +# pkg:gem/activemodel#lib/active_model/type/helpers/numeric.rb:56 ActiveModel::Type::Helpers::Numeric::NUMERIC_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activemodel//lib/active_model/type/helpers/time_value.rb#9 +# pkg:gem/activemodel#lib/active_model/type/helpers/time_value.rb:9 module ActiveModel::Type::Helpers::TimeValue - # source://activemodel//lib/active_model/type/helpers/time_value.rb#24 + # pkg:gem/activemodel#lib/active_model/type/helpers/time_value.rb:24 def apply_seconds_precision(value); end - # source://activemodel//lib/active_model/type/helpers/time_value.rb#10 + # pkg:gem/activemodel#lib/active_model/type/helpers/time_value.rb:10 def serialize_cast_value(value); end - # source://activemodel//lib/active_model/type/helpers/time_value.rb#38 + # pkg:gem/activemodel#lib/active_model/type/helpers/time_value.rb:38 def type_cast_for_schema(value); end - # source://activemodel//lib/active_model/type/helpers/time_value.rb#42 + # pkg:gem/activemodel#lib/active_model/type/helpers/time_value.rb:42 def user_input_in_time_zone(value); end private + # Early 3.2.x had a bug # BUG: Wrapping the Time object with Time.at because Time.new with `in:` in Ruby 3.2.0 # used to return an invalid Time object # see: https://bugs.ruby-lang.org/issues/19292 # - # source://activemodel//lib/active_model/type/helpers/time_value.rb#88 + # pkg:gem/activemodel#lib/active_model/type/helpers/time_value.rb:88 def fast_string_to_time(string); end - # source://activemodel//lib/active_model/type/helpers/time_value.rb#47 + # pkg:gem/activemodel#lib/active_model/type/helpers/time_value.rb:47 def new_time(year, mon, mday, hour, min, sec, microsec, offset = T.unsafe(nil)); end end -# source://activemodel//lib/active_model/type/helpers/time_value.rb#64 +# pkg:gem/activemodel#lib/active_model/type/helpers/time_value.rb:64 ActiveModel::Type::Helpers::TimeValue::ISO_DATETIME = T.let(T.unsafe(nil), Regexp) -# source://activemodel//lib/active_model/type/helpers/timezone.rb#8 +# pkg:gem/activemodel#lib/active_model/type/helpers/timezone.rb:8 module ActiveModel::Type::Helpers::Timezone - # source://activemodel//lib/active_model/type/helpers/timezone.rb#17 + # pkg:gem/activemodel#lib/active_model/type/helpers/timezone.rb:17 def default_timezone; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/helpers/timezone.rb#9 + # pkg:gem/activemodel#lib/active_model/type/helpers/timezone.rb:9 def is_utc?; end end @@ -4614,25 +4290,23 @@ end # # person.active # => "aye" # -# source://activemodel//lib/active_model/type/immutable_string.rb#37 +# pkg:gem/activemodel#lib/active_model/type/immutable_string.rb:37 class ActiveModel::Type::ImmutableString < ::ActiveModel::Type::Value - # @return [ImmutableString] a new instance of ImmutableString - # - # source://activemodel//lib/active_model/type/immutable_string.rb#38 + # pkg:gem/activemodel#lib/active_model/type/immutable_string.rb:38 def initialize(**args); end - # source://activemodel//lib/active_model/type/immutable_string.rb#48 + # pkg:gem/activemodel#lib/active_model/type/immutable_string.rb:48 def serialize(value); end - # source://activemodel//lib/active_model/type/immutable_string.rb#57 + # pkg:gem/activemodel#lib/active_model/type/immutable_string.rb:57 def serialize_cast_value(value); end - # source://activemodel//lib/active_model/type/immutable_string.rb#44 + # pkg:gem/activemodel#lib/active_model/type/immutable_string.rb:44 def type; end private - # source://activemodel//lib/active_model/type/immutable_string.rb#62 + # pkg:gem/activemodel#lib/active_model/type/immutable_string.rb:62 def cast_value(value); end end @@ -4676,125 +4350,109 @@ end # attribute :age, :integer, limit: 6 # end # -# source://activemodel//lib/active_model/type/integer.rb#44 +# pkg:gem/activemodel#lib/active_model/type/integer.rb:44 class ActiveModel::Type::Integer < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Numeric - # @return [Integer] a new instance of Integer - # - # source://activemodel//lib/active_model/type/integer.rb#51 - def initialize(**_arg0); end + # pkg:gem/activemodel#lib/active_model/type/integer.rb:51 + def initialize(**); end - # source://activemodel//lib/active_model/type/integer.rb#60 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:60 def deserialize(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/integer.rb#74 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:74 def serializable?(value); end - # source://activemodel//lib/active_model/type/integer.rb#65 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:65 def serialize(value); end - # source://activemodel//lib/active_model/type/integer.rb#70 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:70 def serialize_cast_value(value); end - # source://activemodel//lib/active_model/type/integer.rb#56 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:56 def type; end private - # source://activemodel//lib/active_model/type/integer.rb#108 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:108 def _limit; end - # source://activemodel//lib/active_model/type/integer.rb#89 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:89 def cast_value(value); end - # source://activemodel//lib/active_model/type/integer.rb#93 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:93 def ensure_in_range(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/integer.rb#85 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:85 def in_range?(value); end - # source://activemodel//lib/active_model/type/integer.rb#100 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:100 def max_value; end - # source://activemodel//lib/active_model/type/integer.rb#104 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:104 def min_value; end - # Returns the value of attribute range. - # - # source://activemodel//lib/active_model/type/integer.rb#83 + # pkg:gem/activemodel#lib/active_model/type/integer.rb:83 def range; end end # Column storage size in bytes. # 4 bytes means an integer as opposed to smallint etc. # -# source://activemodel//lib/active_model/type/integer.rb#49 +# pkg:gem/activemodel#lib/active_model/type/integer.rb:49 ActiveModel::Type::Integer::DEFAULT_LIMIT = T.let(T.unsafe(nil), Integer) -# source://activemodel//lib/active_model/type/registry.rb#5 +# pkg:gem/activemodel#lib/active_model/type/registry.rb:5 class ActiveModel::Type::Registry - # @return [Registry] a new instance of Registry - # - # source://activemodel//lib/active_model/type/registry.rb#6 + # pkg:gem/activemodel#lib/active_model/type/registry.rb:6 def initialize; end - # source://activemodel//lib/active_model/type/registry.rb#23 - def lookup(symbol, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activemodel#lib/active_model/type/registry.rb:23 + def lookup(symbol, *, **, &); end - # source://activemodel//lib/active_model/type/registry.rb#15 + # pkg:gem/activemodel#lib/active_model/type/registry.rb:15 def register(type_name, klass = T.unsafe(nil), &block); end private - # source://activemodel//lib/active_model/type/registry.rb#10 + # pkg:gem/activemodel#lib/active_model/type/registry.rb:10 def initialize_copy(other); end - # Returns the value of attribute registrations. - # - # source://activemodel//lib/active_model/type/registry.rb#34 + # pkg:gem/activemodel#lib/active_model/type/registry.rb:34 def registrations; end end -# source://activemodel//lib/active_model/type/serialize_cast_value.rb#5 +# pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:5 module ActiveModel::Type::SerializeCastValue extend ::ActiveSupport::Concern include ::ActiveModel::Type::SerializeCastValue::DefaultImplementation mixes_in_class_methods ::ActiveModel::Type::SerializeCastValue::ClassMethods - # source://activemodel//lib/active_model/type/serialize_cast_value.rb#41 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:41 + def initialize(*, **, &); end - # source://activemodel//lib/active_model/type/serialize_cast_value.rb#37 + # pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:37 def itself_if_serialize_cast_value_compatible; end class << self - # @private - # - # source://activemodel//lib/active_model/type/serialize_cast_value.rb#21 + # pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:21 def included(klass); end - # source://activemodel//lib/active_model/type/serialize_cast_value.rb#25 + # pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:25 def serialize(type, value); end end end -# source://activemodel//lib/active_model/type/serialize_cast_value.rb#8 +# pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:8 module ActiveModel::Type::SerializeCastValue::ClassMethods - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/serialize_cast_value.rb#9 + # pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:9 def serialize_cast_value_compatible?; end end -# source://activemodel//lib/active_model/type/serialize_cast_value.rb#15 +# pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:15 module ActiveModel::Type::SerializeCastValue::DefaultImplementation - # source://activemodel//lib/active_model/type/serialize_cast_value.rb#16 + # pkg:gem/activemodel#lib/active_model/type/serialize_cast_value.rb:16 def serialize_cast_value(value); end end @@ -4807,19 +4465,17 @@ end # However, it accounts for mutable strings, so dirty tracking can properly # check if a string has changed. # -# source://activemodel//lib/active_model/type/string.rb#15 +# pkg:gem/activemodel#lib/active_model/type/string.rb:15 class ActiveModel::Type::String < ::ActiveModel::Type::ImmutableString - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/string.rb#16 + # pkg:gem/activemodel#lib/active_model/type/string.rb:16 def changed_in_place?(raw_old_value, new_value); end - # source://activemodel//lib/active_model/type/string.rb#22 + # pkg:gem/activemodel#lib/active_model/type/string.rb:22 def to_immutable_string; end private - # source://activemodel//lib/active_model/type/string.rb#33 + # pkg:gem/activemodel#lib/active_model/type/string.rb:33 def cast_value(value); end end @@ -4857,21 +4513,21 @@ end # attribute :start, :time, precision: 4 # end # -# source://activemodel//lib/active_model/type/time.rb#38 +# pkg:gem/activemodel#lib/active_model/type/time.rb:38 class ActiveModel::Type::Time < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Timezone include ::ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods include ::ActiveModel::Type::Helpers::TimeValue - # source://activemodel//lib/active_model/type/time.rb#45 + # pkg:gem/activemodel#lib/active_model/type/time.rb:45 def type; end - # source://activemodel//lib/active_model/type/time.rb#49 + # pkg:gem/activemodel#lib/active_model/type/time.rb:49 def user_input_in_time_zone(value); end private - # source://activemodel//lib/active_model/type/time.rb#69 + # pkg:gem/activemodel#lib/active_model/type/time.rb:69 def cast_value(value); end end @@ -4880,7 +4536,7 @@ end # The base class for all attribute types. This class also serves as the # default type for attributes that do not specify a type. # -# source://activemodel//lib/active_model/type/value.rb#9 +# pkg:gem/activemodel#lib/active_model/type/value.rb:9 class ActiveModel::Type::Value include ::ActiveModel::Type::SerializeCastValue include ::ActiveModel::Type::SerializeCastValue::DefaultImplementation @@ -4891,28 +4547,22 @@ class ActiveModel::Type::Value # these settings. It uses them for equality comparison and hash key # generation only. # - # @return [Value] a new instance of Value - # - # source://activemodel//lib/active_model/type/value.rb#17 + # pkg:gem/activemodel#lib/active_model/type/value.rb:17 def initialize(precision: T.unsafe(nil), limit: T.unsafe(nil), scale: T.unsafe(nil)); end - # source://activemodel//lib/active_model/type/value.rb#121 + # pkg:gem/activemodel#lib/active_model/type/value.rb:121 def ==(other); end - # @raise [NoMethodError] - # - # source://activemodel//lib/active_model/type/value.rb#144 - def as_json(*_arg0); end + # pkg:gem/activemodel#lib/active_model/type/value.rb:144 + def as_json(*); end - # source://activemodel//lib/active_model/type/value.rb#133 + # pkg:gem/activemodel#lib/active_model/type/value.rb:133 def assert_valid_value(_); end # These predicates are not documented, as I need to look further into # their use, and see if they can be removed entirely. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/value.rb#77 + # pkg:gem/activemodel#lib/active_model/type/value.rb:77 def binary?; end # Type casts a value from user input (e.g. from a setter). This value may @@ -4926,16 +4576,14 @@ class ActiveModel::Type::Value # # +value+ The raw input, as provided to the attribute setter. # - # source://activemodel//lib/active_model/type/value.rb#57 + # pkg:gem/activemodel#lib/active_model/type/value.rb:57 def cast(value); end # Determines whether a value has changed for dirty checking. +old_value+ # and +new_value+ will always be type-cast. Types should not need to # override this method. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/value.rb#84 + # pkg:gem/activemodel#lib/active_model/type/value.rb:84 def changed?(old_value, new_value, _new_value_before_type_cast); end # Determines whether the mutable value has been modified since it was @@ -4956,9 +4604,7 @@ class ActiveModel::Type::Value # # +new_value+ The current value, after type casting. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/value.rb#105 + # pkg:gem/activemodel#lib/active_model/type/value.rb:105 def changed_in_place?(raw_old_value, new_value); end # Converts a value from database input to the appropriate ruby type. The @@ -4968,41 +4614,31 @@ class ActiveModel::Type::Value # # +value+ The raw input, as provided from the database. # - # source://activemodel//lib/active_model/type/value.rb#43 + # pkg:gem/activemodel#lib/active_model/type/value.rb:43 def deserialize(value); end - # source://activemodel//lib/active_model/type/value.rb#121 + # pkg:gem/activemodel#lib/active_model/type/value.rb:127 def eql?(other); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/value.rb#113 + # pkg:gem/activemodel#lib/active_model/type/value.rb:113 def force_equality?(_value); end - # source://activemodel//lib/active_model/type/value.rb#129 + # pkg:gem/activemodel#lib/active_model/type/value.rb:129 def hash; end - # Returns the value of attribute limit. - # - # source://activemodel//lib/active_model/type/value.rb#11 + # pkg:gem/activemodel#lib/active_model/type/value.rb:11 def limit; end - # source://activemodel//lib/active_model/type/value.rb#117 - def map(value, &_arg1); end + # pkg:gem/activemodel#lib/active_model/type/value.rb:117 + def map(value, &); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/value.rb#140 + # pkg:gem/activemodel#lib/active_model/type/value.rb:140 def mutable?; end - # Returns the value of attribute precision. - # - # source://activemodel//lib/active_model/type/value.rb#11 + # pkg:gem/activemodel#lib/active_model/type/value.rb:11 def precision; end - # Returns the value of attribute scale. - # - # source://activemodel//lib/active_model/type/value.rb#11 + # pkg:gem/activemodel#lib/active_model/type/value.rb:11 def scale; end # Returns true if this type can convert +value+ to a type that is usable @@ -5010,9 +4646,7 @@ class ActiveModel::Type::Value # value parameter is a Ruby boolean, but may return +false+ if the value # parameter is some other object. # - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/value.rb#28 + # pkg:gem/activemodel#lib/active_model/type/value.rb:28 def serializable?(value, &_); end # Casts a value from the ruby type to a type that the database knows how @@ -5020,29 +4654,25 @@ class ActiveModel::Type::Value # +String+, +Numeric+, +Date+, +Time+, +Symbol+, +true+, +false+, or # +nil+. # - # source://activemodel//lib/active_model/type/value.rb#65 + # pkg:gem/activemodel#lib/active_model/type/value.rb:65 def serialize(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/value.rb#136 + # pkg:gem/activemodel#lib/active_model/type/value.rb:136 def serialized?; end # Returns the unique type name as a Symbol. Subclasses should override # this method. # - # source://activemodel//lib/active_model/type/value.rb#34 + # pkg:gem/activemodel#lib/active_model/type/value.rb:34 def type; end # Type casts a value for schema dumping. This method is private, as we are # hoping to remove it entirely. # - # source://activemodel//lib/active_model/type/value.rb#71 + # pkg:gem/activemodel#lib/active_model/type/value.rb:71 def type_cast_for_schema(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/type/value.rb#109 + # pkg:gem/activemodel#lib/active_model/type/value.rb:109 def value_constructed_by_mass_assignment?(_value); end private @@ -5051,7 +4681,7 @@ class ActiveModel::Type::Value # behavior for user and database inputs. Called by Value#cast for # values except +nil+. # - # source://activemodel//lib/active_model/type/value.rb#152 + # pkg:gem/activemodel#lib/active_model/type/value.rb:152 def cast_value(value); end end @@ -5068,54 +4698,42 @@ end # person.assign_attributes(name: 'Gorby') # # => ActiveModel::UnknownAttributeError: unknown attribute 'name' for Person. # -# source://activemodel//lib/active_model/errors.rb#538 +# pkg:gem/activemodel#lib/active_model/errors.rb:538 class ActiveModel::UnknownAttributeError < ::NoMethodError - # @return [UnknownAttributeError] a new instance of UnknownAttributeError - # - # source://activemodel//lib/active_model/errors.rb#541 + # pkg:gem/activemodel#lib/active_model/errors.rb:541 def initialize(record, attribute); end - # Returns the value of attribute attribute. - # - # source://activemodel//lib/active_model/errors.rb#539 + # pkg:gem/activemodel#lib/active_model/errors.rb:539 def attribute; end - # Returns the value of attribute record. - # - # source://activemodel//lib/active_model/errors.rb#539 + # pkg:gem/activemodel#lib/active_model/errors.rb:539 def record; end end -# source://activemodel//lib/active_model/gem_version.rb#9 +# pkg:gem/activemodel#lib/active_model/gem_version.rb:9 module ActiveModel::VERSION; end -# source://activemodel//lib/active_model/gem_version.rb#10 +# pkg:gem/activemodel#lib/active_model/gem_version.rb:10 ActiveModel::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://activemodel//lib/active_model/gem_version.rb#11 +# pkg:gem/activemodel#lib/active_model/gem_version.rb:11 ActiveModel::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://activemodel//lib/active_model/gem_version.rb#13 +# pkg:gem/activemodel#lib/active_model/gem_version.rb:13 ActiveModel::VERSION::PRE = T.let(T.unsafe(nil), String) -# source://activemodel//lib/active_model/gem_version.rb#15 +# pkg:gem/activemodel#lib/active_model/gem_version.rb:15 ActiveModel::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://activemodel//lib/active_model/gem_version.rb#12 +# pkg:gem/activemodel#lib/active_model/gem_version.rb:12 ActiveModel::VERSION::TINY = T.let(T.unsafe(nil), Integer) -# source://activemodel//lib/active_model/validations.rb#505 +# pkg:gem/activemodel#lib/active_model/validations.rb:505 class ActiveModel::ValidationContext - # Returns the value of attribute context. - # - # source://activemodel//lib/active_model/validations.rb#506 + # pkg:gem/activemodel#lib/active_model/validations.rb:506 def context; end - # Sets the attribute context - # - # @param value the value to set the attribute context to. - # - # source://activemodel//lib/active_model/validations.rb#506 + # pkg:gem/activemodel#lib/active_model/validations.rb:506 def context=(_arg0); end end @@ -5130,16 +4748,12 @@ end # puts invalid.model.errors # end # -# source://activemodel//lib/active_model/validations.rb#495 +# pkg:gem/activemodel#lib/active_model/validations.rb:495 class ActiveModel::ValidationError < ::StandardError - # @return [ValidationError] a new instance of ValidationError - # - # source://activemodel//lib/active_model/validations.rb#498 + # pkg:gem/activemodel#lib/active_model/validations.rb:498 def initialize(model); end - # Returns the value of attribute model. - # - # source://activemodel//lib/active_model/validations.rb#496 + # pkg:gem/activemodel#lib/active_model/validations.rb:496 def model; end end @@ -5175,7 +4789,7 @@ end # method to your instances initialized with a new ActiveModel::Errors # object, so there is no need for you to do this manually. # -# source://activemodel//lib/active_model/validations.rb#37 +# pkg:gem/activemodel#lib/active_model/validations.rb:37 module ActiveModel::Validations extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -5204,10 +4818,10 @@ module ActiveModel::Validations # person.valid? # => false # person.errors # => # # - # source://activemodel//lib/active_model/validations.rb#330 + # pkg:gem/activemodel#lib/active_model/validations.rb:330 def errors; end - # source://activemodel//lib/active_model/validations.rb#374 + # pkg:gem/activemodel#lib/active_model/validations.rb:374 def freeze; end # Performs the opposite of valid?. Returns +true+ if errors were @@ -5240,9 +4854,7 @@ module ActiveModel::Validations # person.invalid? # => false # person.invalid?(:new) # => true # - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations.rb#410 + # pkg:gem/activemodel#lib/active_model/validations.rb:410 def invalid?(context = T.unsafe(nil)); end # Hook method defining how an attribute value should be retrieved. By default @@ -5261,6 +4873,8 @@ module ActiveModel::Validations # @data[key] # end # end + # + # pkg:gem/activemodel#lib/active_model/validations.rb:439 def read_attribute_for_validation(*_arg0); end # Runs all the specified validations and returns +true+ if no errors were @@ -5293,44 +4907,10 @@ module ActiveModel::Validations # person.valid? # => true # person.valid?(:new) # => false # - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations.rb#363 + # pkg:gem/activemodel#lib/active_model/validations.rb:363 def valid?(context = T.unsafe(nil)); end - # Runs all the specified validations and returns +true+ if no errors were - # added otherwise +false+. - # - # class Person - # include ActiveModel::Validations - # - # attr_accessor :name - # validates_presence_of :name - # end - # - # person = Person.new - # person.name = '' - # person.valid? # => false - # person.name = 'david' - # person.valid? # => true - # - # Context can optionally be supplied to define which callbacks to test - # against (the context is defined on the validations using :on). - # - # class Person - # include ActiveModel::Validations - # - # attr_accessor :name - # validates_presence_of :name, on: :new - # end - # - # person = Person.new - # person.valid? # => true - # person.valid?(:new) # => false - # - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations.rb#363 + # pkg:gem/activemodel#lib/active_model/validations.rb:372 def validate(context = T.unsafe(nil)); end # Runs all the validations within the specified context. Returns +true+ if @@ -5339,7 +4919,7 @@ module ActiveModel::Validations # Validations with no :on option will run no matter the context. Validations with # some :on option will only run in the specified context. # - # source://activemodel//lib/active_model/validations.rb#419 + # pkg:gem/activemodel#lib/active_model/validations.rb:419 def validate!(context = T.unsafe(nil)); end # Passes the record off to the class or classes specified and allows them @@ -5379,7 +4959,7 @@ module ActiveModel::Validations # to the class and available as +options+, please refer to the # class version of this method for more information. # - # source://activemodel//lib/active_model/validations/with.rb#144 + # pkg:gem/activemodel#lib/active_model/validations/with.rb:144 def validates_with(*args, &block); end # Returns the context when running validations. @@ -5398,31 +4978,29 @@ module ActiveModel::Validations # person.valid?(:new) #=> false # person.valid?(:custom) #=> true # - # source://activemodel//lib/active_model/validations.rb#456 + # pkg:gem/activemodel#lib/active_model/validations.rb:456 def validation_context; end private - # source://activemodel//lib/active_model/validations.rb#465 + # pkg:gem/activemodel#lib/active_model/validations.rb:465 def context_for_validation; end - # source://activemodel//lib/active_model/validations.rb#469 + # pkg:gem/activemodel#lib/active_model/validations.rb:469 def init_internals; end # Clean the +Errors+ object if instance is duped. # - # source://activemodel//lib/active_model/validations.rb#312 + # pkg:gem/activemodel#lib/active_model/validations.rb:312 def initialize_dup(other); end - # @raise [ValidationError] - # - # source://activemodel//lib/active_model/validations.rb#480 + # pkg:gem/activemodel#lib/active_model/validations.rb:480 def raise_validation_error; end - # source://activemodel//lib/active_model/validations.rb#475 + # pkg:gem/activemodel#lib/active_model/validations.rb:475 def run_validations!; end - # source://activemodel//lib/active_model/validations.rb#461 + # pkg:gem/activemodel#lib/active_model/validations.rb:461 def validation_context=(context); end module GeneratedClassMethods @@ -5442,59 +5020,49 @@ end # == \Active \Model Absence Validator # -# source://activemodel//lib/active_model/validations/absence.rb#6 +# pkg:gem/activemodel#lib/active_model/validations/absence.rb:6 class ActiveModel::Validations::AbsenceValidator < ::ActiveModel::EachValidator - # source://activemodel//lib/active_model/validations/absence.rb#7 + # pkg:gem/activemodel#lib/active_model/validations/absence.rb:7 def validate_each(record, attr_name, value); end end -# source://activemodel//lib/active_model/validations/acceptance.rb#5 +# pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:5 class ActiveModel::Validations::AcceptanceValidator < ::ActiveModel::EachValidator - # @return [AcceptanceValidator] a new instance of AcceptanceValidator - # - # source://activemodel//lib/active_model/validations/acceptance.rb#6 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:6 def initialize(options); end - # source://activemodel//lib/active_model/validations/acceptance.rb#11 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:11 def validate_each(record, attribute, value); end private - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/acceptance.rb#23 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:23 def acceptable_option?(value); end - # source://activemodel//lib/active_model/validations/acceptance.rb#18 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:18 def setup!(klass); end end -# source://activemodel//lib/active_model/validations/acceptance.rb#27 +# pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:27 class ActiveModel::Validations::AcceptanceValidator::LazilyDefineAttributes < ::Module - # @return [LazilyDefineAttributes] a new instance of LazilyDefineAttributes - # - # source://activemodel//lib/active_model/validations/acceptance.rb#28 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:28 def initialize(attributes); end - # source://activemodel//lib/active_model/validations/acceptance.rb#73 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:73 def ==(other); end - # source://activemodel//lib/active_model/validations/acceptance.rb#56 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:56 def define_on(klass); end - # source://activemodel//lib/active_model/validations/acceptance.rb#32 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:32 def included(klass); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/acceptance.rb#51 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:51 def matches?(method_name); end protected - # Returns the value of attribute attributes. - # - # source://activemodel//lib/active_model/validations/acceptance.rb#78 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:78 def attributes; end end @@ -5516,7 +5084,7 @@ end # Like other before_* callbacks if +before_validation+ throws # +:abort+ then valid? will not be called. # -# source://activemodel//lib/active_model/validations/callbacks.rb#22 +# pkg:gem/activemodel#lib/active_model/validations/callbacks.rb:22 module ActiveModel::Validations::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -5531,7 +5099,7 @@ module ActiveModel::Validations::Callbacks # Override run_validations! to include callbacks. # - # source://activemodel//lib/active_model/validations/callbacks.rb#114 + # pkg:gem/activemodel#lib/active_model/validations/callbacks.rb:114 def run_validations!; end module GeneratedClassMethods @@ -5544,7 +5112,7 @@ module ActiveModel::Validations::Callbacks end end -# source://activemodel//lib/active_model/validations/callbacks.rb#32 +# pkg:gem/activemodel#lib/active_model/validations/callbacks.rb:32 module ActiveModel::Validations::Callbacks::ClassMethods # Defines a callback that will get called right after validation. # @@ -5572,7 +5140,7 @@ module ActiveModel::Validations::Callbacks::ClassMethods # person.valid? # => true # person.status # => true # - # source://activemodel//lib/active_model/validations/callbacks.rb#88 + # pkg:gem/activemodel#lib/active_model/validations/callbacks.rb:88 def after_validation(*args, &block); end # Defines a callback that will get called right before validation. @@ -5598,16 +5166,16 @@ module ActiveModel::Validations::Callbacks::ClassMethods # person.valid? # => true # person.name # => "bob" # - # source://activemodel//lib/active_model/validations/callbacks.rb#55 + # pkg:gem/activemodel#lib/active_model/validations/callbacks.rb:55 def before_validation(*args, &block); end private - # source://activemodel//lib/active_model/validations/callbacks.rb#99 + # pkg:gem/activemodel#lib/active_model/validations/callbacks.rb:99 def set_options_for_callback(options); end end -# source://activemodel//lib/active_model/validations.rb#53 +# pkg:gem/activemodel#lib/active_model/validations.rb:53 module ActiveModel::Validations::ClassMethods # Returns +true+ if +attribute+ is an attribute method, +false+ otherwise. # @@ -5620,9 +5188,7 @@ module ActiveModel::Validations::ClassMethods # User.attribute_method?(:name) # => true # User.attribute_method?(:age) # => false # - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations.rb#284 + # pkg:gem/activemodel#lib/active_model/validations.rb:284 def attribute_method?(attribute); end # Clears all of the validators and validations. @@ -5663,12 +5229,12 @@ module ActiveModel::Validations::ClassMethods # # Person._validate_callbacks.empty? # => true # - # source://activemodel//lib/active_model/validations.rb#248 + # pkg:gem/activemodel#lib/active_model/validations.rb:248 def clear_validators!; end # Copy validators on inheritance. # - # source://activemodel//lib/active_model/validations.rb#289 + # pkg:gem/activemodel#lib/active_model/validations.rb:289 def inherited(base); end # Adds a validation method or block to the class. This is useful when @@ -5738,7 +5304,7 @@ module ActiveModel::Validations::ClassMethods # # NOTE: Calling +validate+ multiple times on the same method will overwrite previous definitions. # - # source://activemodel//lib/active_model/validations.rb#162 + # pkg:gem/activemodel#lib/active_model/validations.rb:162 def validate(*args, &block); end # This method is a shortcut to all default validators and any custom @@ -5845,9 +5411,7 @@ module ActiveModel::Validations::ClassMethods # # validates :password, presence: { if: :password_required?, message: 'is forgotten.' }, confirmation: true # - # @raise [ArgumentError] - # - # source://activemodel//lib/active_model/validations/validates.rb#111 + # pkg:gem/activemodel#lib/active_model/validations/validates.rb:111 def validates(*attributes); end # This method is used to define validations that cannot be corrected by end @@ -5869,7 +5433,7 @@ module ActiveModel::Validations::ClassMethods # person.valid? # # => ActiveModel::StrictValidationFailed: Name can't be blank # - # source://activemodel//lib/active_model/validations/validates.rb#153 + # pkg:gem/activemodel#lib/active_model/validations/validates.rb:153 def validates!(*attributes); end # Validates each attribute against a block. @@ -5908,7 +5472,7 @@ module ActiveModel::Validations::ClassMethods # method, proc, or string should return or evaluate to a +true+ or +false+ # value. # - # source://activemodel//lib/active_model/validations.rb#89 + # pkg:gem/activemodel#lib/active_model/validations.rb:89 def validates_each(*attr_names, &block); end # Passes the record off to the class or classes specified and allows them @@ -5980,7 +5544,7 @@ module ActiveModel::Validations::ClassMethods # end # end # - # source://activemodel//lib/active_model/validations/with.rb#88 + # pkg:gem/activemodel#lib/active_model/validations/with.rb:88 def validates_with(*args, &block); end # List all validators that are being used to validate the model using @@ -6001,7 +5565,7 @@ module ActiveModel::Validations::ClassMethods # # # # # ] # - # source://activemodel//lib/active_model/validations.rb#206 + # pkg:gem/activemodel#lib/active_model/validations.rb:206 def validators; end # List all validators that are being used to validate a specific attribute. @@ -6020,42 +5584,40 @@ module ActiveModel::Validations::ClassMethods # # #, # # ] # - # source://activemodel//lib/active_model/validations.rb#268 + # pkg:gem/activemodel#lib/active_model/validations.rb:268 def validators_on(*attributes); end private - # source://activemodel//lib/active_model/validations/validates.rb#166 + # pkg:gem/activemodel#lib/active_model/validations/validates.rb:166 def _parse_validates_options(options); end # When creating custom validators, it might be useful to be able to specify # additional default keys. This can be done by overwriting this method. # - # source://activemodel//lib/active_model/validations/validates.rb#162 + # pkg:gem/activemodel#lib/active_model/validations/validates.rb:162 def _validates_default_keys; end - # source://activemodel//lib/active_model/validations.rb#298 + # pkg:gem/activemodel#lib/active_model/validations.rb:298 def predicate_for_validation_context(context); end end -# source://activemodel//lib/active_model/validations.rb#93 +# pkg:gem/activemodel#lib/active_model/validations.rb:93 ActiveModel::Validations::ClassMethods::VALID_OPTIONS_FOR_VALIDATE = T.let(T.unsafe(nil), Array) -# source://activemodel//lib/active_model/validations/clusivity.rb#8 +# pkg:gem/activemodel#lib/active_model/validations/clusivity.rb:8 module ActiveModel::Validations::Clusivity include ::ActiveModel::Validations::ResolveValue - # source://activemodel//lib/active_model/validations/clusivity.rb#14 + # pkg:gem/activemodel#lib/active_model/validations/clusivity.rb:14 def check_validity!; end private - # source://activemodel//lib/active_model/validations/clusivity.rb#31 + # pkg:gem/activemodel#lib/active_model/validations/clusivity.rb:31 def delimiter; end - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/clusivity.rb#21 + # pkg:gem/activemodel#lib/active_model/validations/clusivity.rb:21 def include?(record, value); end # After Ruby 2.2, Range#include? on non-number-or-time-ish ranges checks all @@ -6064,89 +5626,83 @@ module ActiveModel::Validations::Clusivity # endpoints, which is fast but is only accurate on Numeric, Time, Date, # or DateTime ranges. # - # source://activemodel//lib/active_model/validations/clusivity.rb#40 + # pkg:gem/activemodel#lib/active_model/validations/clusivity.rb:40 def inclusion_method(enumerable); end end -# source://activemodel//lib/active_model/validations/clusivity.rb#11 +# pkg:gem/activemodel#lib/active_model/validations/clusivity.rb:11 ActiveModel::Validations::Clusivity::ERROR_MESSAGE = T.let(T.unsafe(nil), String) -# source://activemodel//lib/active_model/validations/comparability.rb#5 +# pkg:gem/activemodel#lib/active_model/validations/comparability.rb:5 module ActiveModel::Validations::Comparability - # source://activemodel//lib/active_model/validations/comparability.rb#10 + # pkg:gem/activemodel#lib/active_model/validations/comparability.rb:10 def error_options(value, option_value); end end -# source://activemodel//lib/active_model/validations/comparability.rb#6 +# pkg:gem/activemodel#lib/active_model/validations/comparability.rb:6 ActiveModel::Validations::Comparability::COMPARE_CHECKS = T.let(T.unsafe(nil), Hash) -# source://activemodel//lib/active_model/validations/comparison.rb#8 +# pkg:gem/activemodel#lib/active_model/validations/comparison.rb:8 class ActiveModel::Validations::ComparisonValidator < ::ActiveModel::EachValidator include ::ActiveModel::Validations::Comparability include ::ActiveModel::Validations::ResolveValue - # source://activemodel//lib/active_model/validations/comparison.rb#12 + # pkg:gem/activemodel#lib/active_model/validations/comparison.rb:12 def check_validity!; end - # source://activemodel//lib/active_model/validations/comparison.rb#19 + # pkg:gem/activemodel#lib/active_model/validations/comparison.rb:19 def validate_each(record, attr_name, value); end end -# source://activemodel//lib/active_model/validations/confirmation.rb#5 +# pkg:gem/activemodel#lib/active_model/validations/confirmation.rb:5 class ActiveModel::Validations::ConfirmationValidator < ::ActiveModel::EachValidator - # @return [ConfirmationValidator] a new instance of ConfirmationValidator - # - # source://activemodel//lib/active_model/validations/confirmation.rb#6 + # pkg:gem/activemodel#lib/active_model/validations/confirmation.rb:6 def initialize(options); end - # source://activemodel//lib/active_model/validations/confirmation.rb#11 + # pkg:gem/activemodel#lib/active_model/validations/confirmation.rb:11 def validate_each(record, attribute, value); end private - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/confirmation.rb#31 + # pkg:gem/activemodel#lib/active_model/validations/confirmation.rb:31 def confirmation_value_equal?(record, attribute, value, confirmed); end - # source://activemodel//lib/active_model/validations/confirmation.rb#21 + # pkg:gem/activemodel#lib/active_model/validations/confirmation.rb:21 def setup!(klass); end end -# source://activemodel//lib/active_model/validations/exclusion.rb#7 +# pkg:gem/activemodel#lib/active_model/validations/exclusion.rb:7 class ActiveModel::Validations::ExclusionValidator < ::ActiveModel::EachValidator include ::ActiveModel::Validations::ResolveValue include ::ActiveModel::Validations::Clusivity - # source://activemodel//lib/active_model/validations/exclusion.rb#10 + # pkg:gem/activemodel#lib/active_model/validations/exclusion.rb:10 def validate_each(record, attribute, value); end end -# source://activemodel//lib/active_model/validations/format.rb#7 +# pkg:gem/activemodel#lib/active_model/validations/format.rb:7 class ActiveModel::Validations::FormatValidator < ::ActiveModel::EachValidator include ::ActiveModel::Validations::ResolveValue - # source://activemodel//lib/active_model/validations/format.rb#20 + # pkg:gem/activemodel#lib/active_model/validations/format.rb:20 def check_validity!; end - # source://activemodel//lib/active_model/validations/format.rb#10 + # pkg:gem/activemodel#lib/active_model/validations/format.rb:10 def validate_each(record, attribute, value); end private - # source://activemodel//lib/active_model/validations/format.rb#34 + # pkg:gem/activemodel#lib/active_model/validations/format.rb:34 def check_options_validity(name); end - # source://activemodel//lib/active_model/validations/format.rb#30 + # pkg:gem/activemodel#lib/active_model/validations/format.rb:30 def record_error(record, attribute, name, value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/format.rb#48 + # pkg:gem/activemodel#lib/active_model/validations/format.rb:48 def regexp_using_multiline_anchors?(regexp); end end -# source://activemodel//lib/active_model/validations/absence.rb#12 +# pkg:gem/activemodel#lib/active_model/validations/absence.rb:12 module ActiveModel::Validations::HelperMethods # Validates that the specified attributes are blank (as defined by # Object#present?). @@ -6164,7 +5720,7 @@ module ActiveModel::Validations::HelperMethods # +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+. # See ActiveModel::Validations::ClassMethods#validates for more information. # - # source://activemodel//lib/active_model/validations/absence.rb#28 + # pkg:gem/activemodel#lib/active_model/validations/absence.rb:28 def validates_absence_of(*attr_names); end # Encapsulates the pattern of wanting to validate the acceptance of a @@ -6193,7 +5749,7 @@ module ActiveModel::Validations::HelperMethods # +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+. # See ActiveModel::Validations::ClassMethods#validates for more information. # - # source://activemodel//lib/active_model/validations/acceptance.rb#108 + # pkg:gem/activemodel#lib/active_model/validations/acceptance.rb:108 def validates_acceptance_of(*attr_names); end # Validates the value of a specified attribute fulfills all @@ -6245,7 +5801,7 @@ module ActiveModel::Validations::HelperMethods # validates_comparison_of :preferred_name, other_than: :given_name, allow_nil: true # end # - # source://activemodel//lib/active_model/validations/comparison.rb#85 + # pkg:gem/activemodel#lib/active_model/validations/comparison.rb:85 def validates_comparison_of(*attr_names); end # Encapsulates the pattern of wanting to validate a password or email @@ -6283,7 +5839,7 @@ module ActiveModel::Validations::HelperMethods # +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+. # See ActiveModel::Validations::ClassMethods#validates for more information. # - # source://activemodel//lib/active_model/validations/confirmation.rb#75 + # pkg:gem/activemodel#lib/active_model/validations/confirmation.rb:75 def validates_confirmation_of(*attr_names); end # Validates that the value of the specified attribute is not in a @@ -6313,7 +5869,7 @@ module ActiveModel::Validations::HelperMethods # +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+. # See ActiveModel::Validations::ClassMethods#validates for more information. # - # source://activemodel//lib/active_model/validations/exclusion.rb#44 + # pkg:gem/activemodel#lib/active_model/validations/exclusion.rb:44 def validates_exclusion_of(*attr_names); end # Validates whether the value of the specified attribute is of the correct @@ -6369,7 +5925,7 @@ module ActiveModel::Validations::HelperMethods # +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+. # See ActiveModel::Validations::ClassMethods#validates for more information. # - # source://activemodel//lib/active_model/validations/format.rb#107 + # pkg:gem/activemodel#lib/active_model/validations/format.rb:107 def validates_format_of(*attr_names); end # Validates whether the value of the specified attribute is available in a @@ -6397,7 +5953,7 @@ module ActiveModel::Validations::HelperMethods # +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+. # See ActiveModel::Validations::ClassMethods#validates for more information. # - # source://activemodel//lib/active_model/validations/inclusion.rb#42 + # pkg:gem/activemodel#lib/active_model/validations/inclusion.rb:42 def validates_inclusion_of(*attr_names); end # Validates that the specified attributes match the length restrictions @@ -6449,7 +6005,7 @@ module ActiveModel::Validations::HelperMethods # +:if+, +:unless+, +:on+, and +:strict+. # See ActiveModel::Validations::ClassMethods#validates for more information. # - # source://activemodel//lib/active_model/validations/length.rb#123 + # pkg:gem/activemodel#lib/active_model/validations/length.rb:123 def validates_length_of(*attr_names); end # Validates whether the value of the specified attribute is numeric by @@ -6520,7 +6076,7 @@ module ActiveModel::Validations::HelperMethods # validates_numericality_of :width, greater_than: :minimum_weight # end # - # source://activemodel//lib/active_model/validations/numericality.rb#217 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:217 def validates_numericality_of(*attr_names); end # Validates that the specified attributes are not blank (as defined by @@ -6546,195 +6102,132 @@ module ActiveModel::Validations::HelperMethods # +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+. # See ActiveModel::Validations::ClassMethods#validates for more information. # - # source://activemodel//lib/active_model/validations/presence.rb#34 + # pkg:gem/activemodel#lib/active_model/validations/presence.rb:34 def validates_presence_of(*attr_names); end - # Validates that the specified attributes match the length restrictions - # supplied. Only one constraint option can be used at a time apart from - # +:minimum+ and +:maximum+ that can be combined together: - # - # class Person < ActiveRecord::Base - # validates_length_of :first_name, maximum: 30 - # validates_length_of :last_name, maximum: 30, message: "less than 30 if you don't mind" - # validates_length_of :fax, in: 7..32, allow_nil: true - # validates_length_of :phone, in: 7..32, allow_blank: true - # validates_length_of :user_name, within: 6..20, too_long: 'pick a shorter name', too_short: 'pick a longer name' - # validates_length_of :zip_code, minimum: 5, too_short: 'please enter at least 5 characters' - # validates_length_of :smurf_leader, is: 4, message: "papa is spelled with 4 characters... don't play me." - # validates_length_of :words_in_essay, minimum: 100, too_short: 'Your essay must be at least 100 words.' - # - # private - # def words_in_essay - # essay.scan(/\w+/) - # end - # end - # - # Constraint options: - # - # * :minimum - The minimum size of the attribute. - # * :maximum - The maximum size of the attribute. Allows +nil+ by - # default if not used with +:minimum+. - # * :is - The exact size of the attribute. - # * :within - A range specifying the minimum and maximum size of - # the attribute. - # * :in - A synonym (or alias) for :within. - # - # Other options: - # - # * :allow_nil - Attribute may be +nil+; skip validation. - # * :allow_blank - Attribute may be blank; skip validation. - # * :too_long - The error message if the attribute goes over the - # maximum (default is: "is too long (maximum is %{count} characters)"). - # * :too_short - The error message if the attribute goes under the - # minimum (default is: "is too short (minimum is %{count} characters)"). - # * :wrong_length - The error message if using the :is - # method and the attribute is the wrong size (default is: "is the wrong - # length (should be %{count} characters)"). - # * :message - The error message to use for a :minimum, - # :maximum, or :is violation. An alias of the appropriate - # too_long/too_short/wrong_length message. - # - # There is also a list of default options supported by every validator: - # +:if+, +:unless+, +:on+, and +:strict+. - # See ActiveModel::Validations::ClassMethods#validates for more information. - # - # source://activemodel//lib/active_model/validations/length.rb#123 + # pkg:gem/activemodel#lib/active_model/validations/length.rb:127 def validates_size_of(*attr_names); end private - # source://activemodel//lib/active_model/validations/helper_methods.rb#7 + # pkg:gem/activemodel#lib/active_model/validations/helper_methods.rb:7 def _merge_attributes(attr_names); end end -# source://activemodel//lib/active_model/validations/inclusion.rb#7 +# pkg:gem/activemodel#lib/active_model/validations/inclusion.rb:7 class ActiveModel::Validations::InclusionValidator < ::ActiveModel::EachValidator include ::ActiveModel::Validations::ResolveValue include ::ActiveModel::Validations::Clusivity - # source://activemodel//lib/active_model/validations/inclusion.rb#10 + # pkg:gem/activemodel#lib/active_model/validations/inclusion.rb:10 def validate_each(record, attribute, value); end end -# source://activemodel//lib/active_model/validations/length.rb#7 +# pkg:gem/activemodel#lib/active_model/validations/length.rb:7 class ActiveModel::Validations::LengthValidator < ::ActiveModel::EachValidator include ::ActiveModel::Validations::ResolveValue - # @return [LengthValidator] a new instance of LengthValidator - # - # source://activemodel//lib/active_model/validations/length.rb#15 + # pkg:gem/activemodel#lib/active_model/validations/length.rb:15 def initialize(options); end - # source://activemodel//lib/active_model/validations/length.rb#29 + # pkg:gem/activemodel#lib/active_model/validations/length.rb:29 def check_validity!; end - # source://activemodel//lib/active_model/validations/length.rb#47 + # pkg:gem/activemodel#lib/active_model/validations/length.rb:47 def validate_each(record, attribute, value); end private - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/length.rb#69 + # pkg:gem/activemodel#lib/active_model/validations/length.rb:69 def skip_nil_check?(key); end end -# source://activemodel//lib/active_model/validations/length.rb#11 +# pkg:gem/activemodel#lib/active_model/validations/length.rb:11 ActiveModel::Validations::LengthValidator::CHECKS = T.let(T.unsafe(nil), Hash) -# source://activemodel//lib/active_model/validations/length.rb#10 +# pkg:gem/activemodel#lib/active_model/validations/length.rb:10 ActiveModel::Validations::LengthValidator::MESSAGES = T.let(T.unsafe(nil), Hash) -# source://activemodel//lib/active_model/validations/length.rb#13 +# pkg:gem/activemodel#lib/active_model/validations/length.rb:13 ActiveModel::Validations::LengthValidator::RESERVED_OPTIONS = T.let(T.unsafe(nil), Array) -# source://activemodel//lib/active_model/validations/numericality.rb#9 +# pkg:gem/activemodel#lib/active_model/validations/numericality.rb:9 class ActiveModel::Validations::NumericalityValidator < ::ActiveModel::EachValidator include ::ActiveModel::Validations::Comparability include ::ActiveModel::Validations::ResolveValue - # source://activemodel//lib/active_model/validations/numericality.rb#22 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:22 def check_validity!; end - # source://activemodel//lib/active_model/validations/numericality.rb#36 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:36 def validate_each(record, attr_name, value, precision: T.unsafe(nil), scale: T.unsafe(nil)); end private - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/numericality.rb#118 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:118 def allow_only_integer?(record); end - # source://activemodel//lib/active_model/validations/numericality.rb#112 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:112 def filtered_options(value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/numericality.rb#108 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:108 def is_hexadecimal_literal?(raw_value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/numericality.rb#104 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:104 def is_integer?(raw_value); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/numericality.rb#94 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:94 def is_number?(raw_value, precision, scale); end - # source://activemodel//lib/active_model/validations/numericality.rb#68 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:68 def option_as_number(record, option_value, precision, scale); end - # source://activemodel//lib/active_model/validations/numericality.rb#72 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:72 def parse_as_number(raw_value, precision, scale); end - # source://activemodel//lib/active_model/validations/numericality.rb#86 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:86 def parse_float(raw_value, precision, scale); end - # source://activemodel//lib/active_model/validations/numericality.rb#122 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:122 def prepare_value_for_validation(value, record, attr_name); end - # @return [Boolean] - # - # source://activemodel//lib/active_model/validations/numericality.rb#143 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:143 def record_attribute_changed_in_place?(record, attr_name); end - # source://activemodel//lib/active_model/validations/numericality.rb#90 + # pkg:gem/activemodel#lib/active_model/validations/numericality.rb:90 def round(raw_value, scale); end end -# source://activemodel//lib/active_model/validations/numericality.rb#20 +# pkg:gem/activemodel#lib/active_model/validations/numericality.rb:20 ActiveModel::Validations::NumericalityValidator::HEXADECIMAL_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activemodel//lib/active_model/validations/numericality.rb#18 +# pkg:gem/activemodel#lib/active_model/validations/numericality.rb:18 ActiveModel::Validations::NumericalityValidator::INTEGER_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activemodel//lib/active_model/validations/numericality.rb#14 +# pkg:gem/activemodel#lib/active_model/validations/numericality.rb:14 ActiveModel::Validations::NumericalityValidator::NUMBER_CHECKS = T.let(T.unsafe(nil), Hash) -# source://activemodel//lib/active_model/validations/numericality.rb#13 +# pkg:gem/activemodel#lib/active_model/validations/numericality.rb:13 ActiveModel::Validations::NumericalityValidator::RANGE_CHECKS = T.let(T.unsafe(nil), Hash) -# source://activemodel//lib/active_model/validations/numericality.rb#16 +# pkg:gem/activemodel#lib/active_model/validations/numericality.rb:16 ActiveModel::Validations::NumericalityValidator::RESERVED_OPTIONS = T.let(T.unsafe(nil), Array) -# source://activemodel//lib/active_model/validations/presence.rb#5 +# pkg:gem/activemodel#lib/active_model/validations/presence.rb:5 class ActiveModel::Validations::PresenceValidator < ::ActiveModel::EachValidator - # source://activemodel//lib/active_model/validations/presence.rb#6 + # pkg:gem/activemodel#lib/active_model/validations/presence.rb:6 def validate_each(record, attr_name, value); end end -# source://activemodel//lib/active_model/validations/resolve_value.rb#5 +# pkg:gem/activemodel#lib/active_model/validations/resolve_value.rb:5 module ActiveModel::Validations::ResolveValue - # source://activemodel//lib/active_model/validations/resolve_value.rb#6 + # pkg:gem/activemodel#lib/active_model/validations/resolve_value.rb:6 def resolve_value(record, value); end end -# source://activemodel//lib/active_model/validations/with.rb#7 +# pkg:gem/activemodel#lib/active_model/validations/with.rb:7 class ActiveModel::Validations::WithValidator < ::ActiveModel::EachValidator - # source://activemodel//lib/active_model/validations/with.rb#8 + # pkg:gem/activemodel#lib/active_model/validations/with.rb:8 def validate_each(record, attr, val); end end @@ -6829,13 +6322,11 @@ end # end # end # -# source://activemodel//lib/active_model/validator.rb#96 +# pkg:gem/activemodel#lib/active_model/validator.rb:96 class ActiveModel::Validator # Accepts options that will be made available through the +options+ reader. # - # @return [Validator] a new instance of Validator - # - # source://activemodel//lib/active_model/validator.rb#108 + # pkg:gem/activemodel#lib/active_model/validator.rb:108 def initialize(options = T.unsafe(nil)); end # Returns the kind for this validator. @@ -6843,20 +6334,16 @@ class ActiveModel::Validator # PresenceValidator.new(attributes: [:username]).kind # => :presence # AcceptanceValidator.new(attributes: [:terms]).kind # => :acceptance # - # source://activemodel//lib/active_model/validator.rb#116 + # pkg:gem/activemodel#lib/active_model/validator.rb:116 def kind; end - # Returns the value of attribute options. - # - # source://activemodel//lib/active_model/validator.rb#97 + # pkg:gem/activemodel#lib/active_model/validator.rb:97 def options; end # Override this method in subclasses with validation logic, adding errors # to the records +errors+ array where necessary. # - # @raise [NotImplementedError] - # - # source://activemodel//lib/active_model/validator.rb#122 + # pkg:gem/activemodel#lib/active_model/validator.rb:122 def validate(record); end class << self @@ -6865,7 +6352,7 @@ class ActiveModel::Validator # PresenceValidator.kind # => :presence # AcceptanceValidator.kind # => :acceptance # - # source://activemodel//lib/active_model/validator.rb#103 + # pkg:gem/activemodel#lib/active_model/validator.rb:103 def kind; end end end diff --git a/sorbet/rbi/gems/activerecord@8.0.5.1.rbi b/sorbet/rbi/gems/activerecord@8.0.5.2.rbi similarity index 61% rename from sorbet/rbi/gems/activerecord@8.0.5.1.rbi rename to sorbet/rbi/gems/activerecord@8.0.5.2.rbi index 1c5a986f..69641f31 100644 --- a/sorbet/rbi/gems/activerecord@8.0.5.1.rbi +++ b/sorbet/rbi/gems/activerecord@8.0.5.2.rbi @@ -5,18 +5,37 @@ # Please instead update this file by running `bin/tapioca gem activerecord`. +# pkg:gem/activerecord#lib/active_record/type.rb:59 +class ActiveModel::Type::BigInteger < ::ActiveModel::Type::Integer; end + +# pkg:gem/activerecord#lib/active_record/type.rb:65 +class ActiveModel::Type::ImmutableString < ::ActiveModel::Type::Value; end + +# pkg:gem/activerecord#lib/active_record/type.rb:64 +class ActiveModel::Type::Integer < ::ActiveModel::Type::Value; end + +# pkg:gem/activerecord#lib/active_record/type.rb:66 +class ActiveModel::Type::String < ::ActiveModel::Type::ImmutableString; end + +# pkg:gem/activerecord#lib/active_record/type.rb:67 +class ActiveModel::Type::Value; end + # :include: ../README.rdoc +# Validation error class to wrap association records' errors, +# with index_errors support. +# :enddoc: +# :markup: markdown # -# source://activerecord//lib/active_record/gem_version.rb#3 +# pkg:gem/activerecord#lib/active_record/gem_version.rb:3 module ActiveRecord include ::ActiveSupport::Deprecation::DeprecatedConstantAccessor extend ::ActiveSupport::Autoload class << self - # source://activerecord//lib/active_record.rb#361 + # pkg:gem/activerecord#lib/active_record.rb:361 def action_on_strict_loading_violation; end - # source://activerecord//lib/active_record.rb#361 + # pkg:gem/activerecord#lib/active_record.rb:361 def action_on_strict_loading_violation=(_arg0); end # Registers a block to be called after all the current transactions have been @@ -33,199 +52,199 @@ module ActiveRecord # if and once all of them have been committed. But note that nesting transactions across # two distinct databases is a sharding anti-pattern that comes with a world of hurts. # - # source://activerecord//lib/active_record.rb#528 + # pkg:gem/activerecord#lib/active_record.rb:528 def after_all_transactions_commit(&block); end - # source://activerecord//lib/active_record.rb#548 + # pkg:gem/activerecord#lib/active_record.rb:548 def all_open_transactions; end - # source://activerecord//lib/active_record.rb#354 + # pkg:gem/activerecord#lib/active_record.rb:354 def application_record_class; end - # source://activerecord//lib/active_record.rb#354 + # pkg:gem/activerecord#lib/active_record.rb:354 def application_record_class=(_arg0); end - # source://activerecord//lib/active_record.rb#283 + # pkg:gem/activerecord#lib/active_record.rb:283 def async_query_executor; end - # source://activerecord//lib/active_record.rb#283 + # pkg:gem/activerecord#lib/active_record.rb:283 def async_query_executor=(_arg0); end - # source://activerecord//lib/active_record.rb#348 + # pkg:gem/activerecord#lib/active_record.rb:348 def before_committed_on_all_records; end - # source://activerecord//lib/active_record.rb#348 + # pkg:gem/activerecord#lib/active_record.rb:348 def before_committed_on_all_records=(_arg0); end - # source://activerecord//lib/active_record.rb#345 + # pkg:gem/activerecord#lib/active_record.rb:345 def belongs_to_required_validates_foreign_key; end - # source://activerecord//lib/active_record.rb#345 + # pkg:gem/activerecord#lib/active_record.rb:345 def belongs_to_required_validates_foreign_key=(_arg0); end - # source://activerecord//lib/active_record.rb#211 + # pkg:gem/activerecord#lib/active_record.rb:211 def database_cli; end - # source://activerecord//lib/active_record.rb#211 + # pkg:gem/activerecord#lib/active_record.rb:211 def database_cli=(_arg0); end - # source://activerecord//lib/active_record.rb#233 + # pkg:gem/activerecord#lib/active_record.rb:233 def db_warnings_action; end - # source://activerecord//lib/active_record.rb#235 + # pkg:gem/activerecord#lib/active_record.rb:235 def db_warnings_action=(action); end - # source://activerecord//lib/active_record.rb#262 + # pkg:gem/activerecord#lib/active_record.rb:262 def db_warnings_ignore; end - # source://activerecord//lib/active_record.rb#262 + # pkg:gem/activerecord#lib/active_record.rb:262 def db_warnings_ignore=(_arg0); end - # source://activerecord//lib/active_record.rb#214 + # pkg:gem/activerecord#lib/active_record.rb:214 def default_timezone; end # Determines whether to use Time.utc (using :utc) or Time.local (using :local) when pulling # dates and times from the database. This is set to :utc by default. # - # source://activerecord//lib/active_record.rb#218 + # pkg:gem/activerecord#lib/active_record.rb:218 def default_timezone=(default_timezone); end - # source://activerecord//lib/active_record/deprecator.rb#4 + # pkg:gem/activerecord#lib/active_record/deprecator.rb:4 def deprecator; end - # source://activerecord//lib/active_record.rb#182 + # pkg:gem/activerecord#lib/active_record.rb:182 def disable_prepared_statements; end - # source://activerecord//lib/active_record.rb#182 + # pkg:gem/activerecord#lib/active_record.rb:182 def disable_prepared_statements=(_arg0); end # Explicitly closes all database connections in all pools. # - # source://activerecord//lib/active_record.rb#511 + # pkg:gem/activerecord#lib/active_record.rb:511 def disconnect_all!; end - # source://activerecord//lib/active_record.rb#410 + # pkg:gem/activerecord#lib/active_record.rb:410 def dump_schema_after_migration; end - # source://activerecord//lib/active_record.rb#410 + # pkg:gem/activerecord#lib/active_record.rb:410 def dump_schema_after_migration=(_arg0); end - # source://activerecord//lib/active_record.rb#420 + # pkg:gem/activerecord#lib/active_record.rb:420 def dump_schemas; end - # source://activerecord//lib/active_record.rb#420 + # pkg:gem/activerecord#lib/active_record.rb:420 def dump_schemas=(_arg0); end - # source://activerecord//lib/active_record.rb#500 + # pkg:gem/activerecord#lib/active_record.rb:500 def eager_load!; end - # source://activerecord//lib/active_record.rb#381 + # pkg:gem/activerecord#lib/active_record.rb:381 def error_on_ignored_order; end - # source://activerecord//lib/active_record.rb#381 + # pkg:gem/activerecord#lib/active_record.rb:381 def error_on_ignored_order=(_arg0); end # Returns the currently loaded version of Active Record as a +Gem::Version+. # - # source://activerecord//lib/active_record/gem_version.rb#5 + # pkg:gem/activerecord#lib/active_record/gem_version.rb:5 def gem_version; end - # source://activerecord//lib/active_record.rb#461 + # pkg:gem/activerecord#lib/active_record.rb:461 def generate_secure_token_on; end - # source://activerecord//lib/active_record.rb#461 + # pkg:gem/activerecord#lib/active_record.rb:461 def generate_secure_token_on=(_arg0); end - # source://activerecord//lib/active_record.rb#306 + # pkg:gem/activerecord#lib/active_record.rb:306 def global_executor_concurrency; end # Set the +global_executor_concurrency+. This configuration value can only be used # with the global thread pool async query executor. # - # source://activerecord//lib/active_record.rb#298 + # pkg:gem/activerecord#lib/active_record.rb:298 def global_executor_concurrency=(global_executor_concurrency); end - # source://activerecord//lib/active_record.rb#286 + # pkg:gem/activerecord#lib/active_record.rb:286 def global_thread_pool_async_query_executor; end - # source://activerecord//lib/active_record.rb#321 + # pkg:gem/activerecord#lib/active_record.rb:321 def index_nested_attribute_errors; end - # source://activerecord//lib/active_record.rb#321 + # pkg:gem/activerecord#lib/active_record.rb:321 def index_nested_attribute_errors=(_arg0); end - # source://activerecord//lib/active_record.rb#189 + # pkg:gem/activerecord#lib/active_record.rb:189 def lazily_load_schema_cache; end - # source://activerecord//lib/active_record.rb#189 + # pkg:gem/activerecord#lib/active_record.rb:189 def lazily_load_schema_cache=(_arg0); end - # source://activerecord//lib/active_record.rb#339 + # pkg:gem/activerecord#lib/active_record.rb:339 def maintain_test_schema; end - # source://activerecord//lib/active_record.rb#339 + # pkg:gem/activerecord#lib/active_record.rb:339 def maintain_test_schema=(_arg0); end - # source://activerecord//lib/active_record.rb#464 + # pkg:gem/activerecord#lib/active_record.rb:464 def marshalling_format_version; end - # source://activerecord//lib/active_record.rb#468 + # pkg:gem/activerecord#lib/active_record.rb:468 def marshalling_format_version=(value); end - # source://activerecord//lib/active_record.rb#401 + # pkg:gem/activerecord#lib/active_record.rb:401 def migration_strategy; end - # source://activerecord//lib/active_record.rb#401 + # pkg:gem/activerecord#lib/active_record.rb:401 def migration_strategy=(_arg0); end - # source://activerecord//lib/active_record.rb#311 + # pkg:gem/activerecord#lib/active_record.rb:311 def permanent_connection_checkout; end # Defines whether +ActiveRecord::Base.connection+ is allowed, deprecated, or entirely disallowed. # - # source://activerecord//lib/active_record.rb#314 + # pkg:gem/activerecord#lib/active_record.rb:314 def permanent_connection_checkout=(value); end - # source://activerecord//lib/active_record.rb#491 + # pkg:gem/activerecord#lib/active_record.rb:491 def protocol_adapters; end - # source://activerecord//lib/active_record.rb#491 + # pkg:gem/activerecord#lib/active_record.rb:491 def protocol_adapters=(_arg0); end - # source://activerecord//lib/active_record.rb#432 + # pkg:gem/activerecord#lib/active_record.rb:432 def query_transformers; end - # source://activerecord//lib/active_record.rb#432 + # pkg:gem/activerecord#lib/active_record.rb:432 def query_transformers=(_arg0); end - # source://activerecord//lib/active_record.rb#336 + # pkg:gem/activerecord#lib/active_record.rb:336 def queues; end - # source://activerecord//lib/active_record.rb#336 + # pkg:gem/activerecord#lib/active_record.rb:336 def queues=(_arg0); end - # source://activerecord//lib/active_record.rb#447 + # pkg:gem/activerecord#lib/active_record.rb:447 def raise_int_wider_than_64bit; end - # source://activerecord//lib/active_record.rb#447 + # pkg:gem/activerecord#lib/active_record.rb:447 def raise_int_wider_than_64bit=(_arg0); end - # source://activerecord//lib/active_record.rb#342 + # pkg:gem/activerecord#lib/active_record.rb:342 def raise_on_assign_to_attr_readonly; end - # source://activerecord//lib/active_record.rb#342 + # pkg:gem/activerecord#lib/active_record.rb:342 def raise_on_assign_to_attr_readonly=(_arg0); end - # source://activerecord//lib/active_record.rb#268 + # pkg:gem/activerecord#lib/active_record.rb:268 def reading_role; end - # source://activerecord//lib/active_record.rb#268 + # pkg:gem/activerecord#lib/active_record.rb:268 def reading_role=(_arg0); end - # source://activerecord//lib/active_record.rb#351 + # pkg:gem/activerecord#lib/active_record.rb:351 def run_after_transaction_callbacks_in_order_defined; end - # source://activerecord//lib/active_record.rb#351 + # pkg:gem/activerecord#lib/active_record.rb:351 def run_after_transaction_callbacks_in_order_defined=(_arg0); end # Checks to see if the +table_name+ is ignored by checking @@ -233,68 +252,66 @@ module ActiveRecord # # ActiveRecord.schema_cache_ignored_table?(:developers) # - # @return [Boolean] - # - # source://activerecord//lib/active_record.rb#205 + # pkg:gem/activerecord#lib/active_record.rb:205 def schema_cache_ignored_table?(table_name); end - # source://activerecord//lib/active_record.rb#197 + # pkg:gem/activerecord#lib/active_record.rb:197 def schema_cache_ignored_tables; end - # source://activerecord//lib/active_record.rb#197 + # pkg:gem/activerecord#lib/active_record.rb:197 def schema_cache_ignored_tables=(_arg0); end - # source://activerecord//lib/active_record.rb#373 + # pkg:gem/activerecord#lib/active_record.rb:373 def schema_format; end - # source://activerecord//lib/active_record.rb#373 + # pkg:gem/activerecord#lib/active_record.rb:373 def schema_format=(_arg0); end - # source://activerecord//lib/active_record.rb#387 + # pkg:gem/activerecord#lib/active_record.rb:387 def timestamped_migrations; end - # source://activerecord//lib/active_record.rb#387 + # pkg:gem/activerecord#lib/active_record.rb:387 def timestamped_migrations=(_arg0); end - # source://activerecord//lib/active_record.rb#439 + # pkg:gem/activerecord#lib/active_record.rb:439 def use_yaml_unsafe_load; end - # source://activerecord//lib/active_record.rb#439 + # pkg:gem/activerecord#lib/active_record.rb:439 def use_yaml_unsafe_load=(_arg0); end - # source://activerecord//lib/active_record.rb#395 + # pkg:gem/activerecord#lib/active_record.rb:395 def validate_migration_timestamps; end - # source://activerecord//lib/active_record.rb#395 + # pkg:gem/activerecord#lib/active_record.rb:395 def validate_migration_timestamps=(_arg0); end - # source://activerecord//lib/active_record.rb#329 + # pkg:gem/activerecord#lib/active_record.rb:329 def verbose_query_logs; end - # source://activerecord//lib/active_record.rb#329 + # pkg:gem/activerecord#lib/active_record.rb:329 def verbose_query_logs=(_arg0); end - # source://activerecord//lib/active_record.rb#429 + # pkg:gem/activerecord#lib/active_record.rb:429 def verify_foreign_keys_for_fixtures; end - # source://activerecord//lib/active_record.rb#429 + # pkg:gem/activerecord#lib/active_record.rb:429 def verify_foreign_keys_for_fixtures=(_arg0); end # Returns the currently loaded version of Active Record as a +Gem::Version+. # - # source://activerecord//lib/active_record/version.rb#7 + # pkg:gem/activerecord#lib/active_record/version.rb:7 def version; end - # source://activerecord//lib/active_record.rb#265 + # pkg:gem/activerecord#lib/active_record.rb:265 def writing_role; end - # source://activerecord//lib/active_record.rb#265 + # pkg:gem/activerecord#lib/active_record.rb:265 def writing_role=(_arg0); end - # source://activerecord//lib/active_record.rb#454 + # pkg:gem/activerecord#lib/active_record.rb:454 def yaml_column_permitted_classes; end - # source://activerecord//lib/active_record.rb#454 + # pkg:gem/activerecord#lib/active_record.rb:454 def yaml_column_permitted_classes=(_arg0); end end end @@ -303,58 +320,54 @@ end # # Generic Active Record exception class. # -# source://activerecord//lib/active_record/errors.rb#11 +# pkg:gem/activerecord#lib/active_record/errors.rb:11 class ActiveRecord::ActiveRecordError < ::StandardError; end # Superclass for all errors raised from an Active Record adapter. # -# source://activerecord//lib/active_record/errors.rb#55 +# pkg:gem/activerecord#lib/active_record/errors.rb:55 class ActiveRecord::AdapterError < ::ActiveRecord::ActiveRecordError - # @return [AdapterError] a new instance of AdapterError - # - # source://activerecord//lib/active_record/errors.rb#56 + # pkg:gem/activerecord#lib/active_record/errors.rb:56 def initialize(message = T.unsafe(nil), connection_pool: T.unsafe(nil)); end - # Returns the value of attribute connection_pool. - # - # source://activerecord//lib/active_record/errors.rb#61 + # pkg:gem/activerecord#lib/active_record/errors.rb:61 def connection_pool; end end # Raised when Active Record cannot find database adapter specified in # +config/database.yml+ or programmatically. # -# source://activerecord//lib/active_record/errors.rb#51 +# pkg:gem/activerecord#lib/active_record/errors.rb:51 class ActiveRecord::AdapterNotFound < ::ActiveRecord::ActiveRecordError; end # Raised when adapter not specified on connection (or configuration file # +config/database.yml+ misses adapter field). # -# source://activerecord//lib/active_record/errors.rb#42 +# pkg:gem/activerecord#lib/active_record/errors.rb:42 class ActiveRecord::AdapterNotSpecified < ::ActiveRecord::ActiveRecordError; end # AdapterTimeout will be raised when database clients times out while waiting from the server. # -# source://activerecord//lib/active_record/errors.rb#577 +# pkg:gem/activerecord#lib/active_record/errors.rb:577 class ActiveRecord::AdapterTimeout < ::ActiveRecord::QueryAborted; end # See ActiveRecord::Aggregations::ClassMethods for documentation # -# source://activerecord//lib/active_record/aggregations.rb#5 +# pkg:gem/activerecord#lib/active_record/aggregations.rb:5 module ActiveRecord::Aggregations - # source://activerecord//lib/active_record/aggregations.rb#11 - def reload(*_arg0); end + # pkg:gem/activerecord#lib/active_record/aggregations.rb:11 + def reload(*); end private - # source://activerecord//lib/active_record/aggregations.rb#17 + # pkg:gem/activerecord#lib/active_record/aggregations.rb:17 def clear_aggregation_cache; end - # source://activerecord//lib/active_record/aggregations.rb#21 + # pkg:gem/activerecord#lib/active_record/aggregations.rb:21 def init_internals; end - # source://activerecord//lib/active_record/aggregations.rb#6 - def initialize_dup(*_arg0); end + # pkg:gem/activerecord#lib/active_record/aggregations.rb:6 + def initialize_dup(*); end end # = Active Record \Aggregations @@ -514,7 +527,7 @@ end # # Customer.where(address: Address.new("May Street", "Chicago")) # -# source://activerecord//lib/active_record/aggregations.rb#183 +# pkg:gem/activerecord#lib/active_record/aggregations.rb:183 module ActiveRecord::Aggregations::ClassMethods # Adds reader and writer methods for manipulating a value object: # composed_of :address adds address and address=(new_address) methods. @@ -557,92 +570,82 @@ module ActiveRecord::Aggregations::ClassMethods # constructor: Proc.new { |ip| IPAddr.new(ip, Socket::AF_INET) }, # converter: Proc.new { |ip| ip.is_a?(Integer) ? IPAddr.new(ip, Socket::AF_INET) : IPAddr.new(ip.to_s) } # - # source://activerecord//lib/active_record/aggregations.rb#225 + # pkg:gem/activerecord#lib/active_record/aggregations.rb:225 def composed_of(part_id, options = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/aggregations.rb#248 + # pkg:gem/activerecord#lib/active_record/aggregations.rb:248 def reader_method(name, class_name, mapping, allow_nil, constructor); end - # source://activerecord//lib/active_record/aggregations.rb#261 + # pkg:gem/activerecord#lib/active_record/aggregations.rb:261 def writer_method(name, class_name, mapping, allow_nil, converter); end end -# source://activerecord//lib/active_record/associations/errors.rb#203 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:203 class ActiveRecord::AmbiguousSourceReflectionForThroughAssociation < ::ActiveRecord::ActiveRecordError - # @return [AmbiguousSourceReflectionForThroughAssociation] a new instance of AmbiguousSourceReflectionForThroughAssociation - # - # source://activerecord//lib/active_record/associations/errors.rb#204 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:204 def initialize(klass, macro, association_name, options, possible_sources); end end -# source://activerecord//lib/active_record/associations/errors.rb#4 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:4 class ActiveRecord::AssociationNotFoundError < ::ActiveRecord::ConfigurationError include ::DidYouMean::Correctable - # @return [AssociationNotFoundError] a new instance of AssociationNotFoundError - # - # source://activerecord//lib/active_record/associations/errors.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:7 def initialize(record = T.unsafe(nil), association_name = T.unsafe(nil)); end - # Returns the value of attribute association_name. - # - # source://activerecord//lib/active_record/associations/errors.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:5 def association_name; end - # source://activerecord//lib/active_record/associations/errors.rb#20 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:20 def corrections; end - # Returns the value of attribute record. - # - # source://activerecord//lib/active_record/associations/errors.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:5 def record; end end -# source://activerecord//lib/active_record/association_relation.rb#4 +# pkg:gem/activerecord#lib/active_record/association_relation.rb:4 class ActiveRecord::AssociationRelation < ::ActiveRecord::Relation - # @return [AssociationRelation] a new instance of AssociationRelation - # - # source://activerecord//lib/active_record/association_relation.rb#5 - def initialize(klass, association, **_arg2); end + # pkg:gem/activerecord#lib/active_record/association_relation.rb:5 + def initialize(klass, association, **); end - # source://activerecord//lib/active_record/association_relation.rb#14 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:14 def ==(other); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:19 def insert(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:19 def insert!(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:19 def insert_all(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:19 def insert_all!(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#10 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:10 def proxy_association; end - # source://activerecord//lib/active_record/association_relation.rb#20 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:19 def upsert(attributes, **kwargs); end - # source://activerecord//lib/active_record/association_relation.rb#20 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:19 def upsert_all(attributes, **kwargs); end private - # source://activerecord//lib/active_record/association_relation.rb#35 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:35 def _create(attributes, &block); end - # source://activerecord//lib/active_record/association_relation.rb#39 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:39 def _create!(attributes, &block); end - # source://activerecord//lib/active_record/association_relation.rb#31 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:31 def _new(attributes, &block); end - # source://activerecord//lib/active_record/association_relation.rb#43 + # pkg:gem/activerecord#lib/active_record/association_relation.rb:43 def exec_queries; end end @@ -659,12 +662,12 @@ end # # Comments are not patches, this assignment raises AssociationTypeMismatch. # @ticket.patches << Comment.new(content: "Please attach tests to your patch.") # -# source://activerecord//lib/active_record/errors.rb#33 +# pkg:gem/activerecord#lib/active_record/errors.rb:33 class ActiveRecord::AssociationTypeMismatch < ::ActiveRecord::ActiveRecordError; end # See ActiveRecord::Associations::ClassMethods for documentation. # -# source://activerecord//lib/active_record/associations.rb#5 +# pkg:gem/activerecord#lib/active_record/associations.rb:5 module ActiveRecord::Associations extend ::ActiveSupport::Autoload extend ::ActiveSupport::Concern @@ -673,70 +676,64 @@ module ActiveRecord::Associations # Returns the association instance for the given name, instantiating it if it doesn't already exist # - # source://activerecord//lib/active_record/associations.rb#51 + # pkg:gem/activerecord#lib/active_record/associations.rb:51 def association(name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations.rb#65 + # pkg:gem/activerecord#lib/active_record/associations.rb:65 def association_cached?(name); end private # Returns the specified association instance if it exists, +nil+ otherwise. # - # source://activerecord//lib/active_record/associations.rb#81 + # pkg:gem/activerecord#lib/active_record/associations.rb:81 def association_instance_get(name); end # Set the specified association instance. # - # source://activerecord//lib/active_record/associations.rb#86 + # pkg:gem/activerecord#lib/active_record/associations.rb:86 def association_instance_set(name, association); end - # source://activerecord//lib/active_record/associations.rb#75 + # pkg:gem/activerecord#lib/active_record/associations.rb:75 def init_internals; end - # source://activerecord//lib/active_record/associations.rb#69 - def initialize_dup(*_arg0); end + # pkg:gem/activerecord#lib/active_record/associations.rb:69 + def initialize_dup(*); end class << self - # source://activerecord//lib/active_record/associations.rb#44 + # pkg:gem/activerecord#lib/active_record/associations.rb:44 def eager_load!; end end end # Keeps track of table aliases for ActiveRecord::Associations::JoinDependency # -# source://activerecord//lib/active_record/associations/alias_tracker.rb#8 +# pkg:gem/activerecord#lib/active_record/associations/alias_tracker.rb:8 class ActiveRecord::Associations::AliasTracker # table_joins is an array of arel joins which might conflict with the aliases we assign here # - # @return [AliasTracker] a new instance of AliasTracker - # - # source://activerecord//lib/active_record/associations/alias_tracker.rb#53 + # pkg:gem/activerecord#lib/active_record/associations/alias_tracker.rb:53 def initialize(table_alias_length, aliases); end - # source://activerecord//lib/active_record/associations/alias_tracker.rb#58 + # pkg:gem/activerecord#lib/active_record/associations/alias_tracker.rb:58 def aliased_table_for(arel_table, table_name = T.unsafe(nil)); end - # Returns the value of attribute aliases. - # - # source://activerecord//lib/active_record/associations/alias_tracker.rb#80 + # pkg:gem/activerecord#lib/active_record/associations/alias_tracker.rb:80 def aliases; end private - # source://activerecord//lib/active_record/associations/alias_tracker.rb#83 + # pkg:gem/activerecord#lib/active_record/associations/alias_tracker.rb:83 def table_alias_for(table_name); end - # source://activerecord//lib/active_record/associations/alias_tracker.rb#87 + # pkg:gem/activerecord#lib/active_record/associations/alias_tracker.rb:87 def truncate(name); end class << self - # source://activerecord//lib/active_record/associations/alias_tracker.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/alias_tracker.rb:9 def create(pool, initial_table, joins, aliases = T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/alias_tracker.rb#28 + # pkg:gem/activerecord#lib/active_record/associations/alias_tracker.rb:28 def initial_count_for(connection, name, table_joins); end end end @@ -772,51 +769,45 @@ end # owner, the collection of its posts as target, and # the reflection object represents a :has_many macro. # -# source://activerecord//lib/active_record/associations/association.rb#35 +# pkg:gem/activerecord#lib/active_record/associations/association.rb:35 class ActiveRecord::Associations::Association - # @return [Association] a new instance of Association - # - # source://activerecord//lib/active_record/associations/association.rb#41 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:41 def initialize(owner, reflection); end - # source://activerecord//lib/active_record/associations/association.rb#198 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:198 def async_load_target; end # Whether the association represent a single record # or a collection of records. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#237 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:237 def collection?; end - # source://activerecord//lib/active_record/associations/association.rb#227 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:227 def create(attributes = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/associations/association.rb#231 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:231 def create!(attributes = T.unsafe(nil), &block); end - # Returns the value of attribute disable_joins. - # - # source://activerecord//lib/active_record/associations/association.rb#37 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:37 def disable_joins; end - # source://activerecord//lib/active_record/associations/association.rb#169 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:169 def extensions; end - # source://activerecord//lib/active_record/associations/association.rb#217 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:217 def initialize_attributes(record, except_from_scope_attributes = T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/association.rb#153 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:153 def inversed_from(record); end - # source://activerecord//lib/active_record/associations/association.rb#157 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:157 def inversed_from_queries(record); end # Returns the class of the target. belongs_to polymorphic overrides this to look at the # polymorphic_type field on the owner. # - # source://activerecord//lib/active_record/associations/association.rb#165 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:165 def klass; end # Loads the \target if needed and returns it. @@ -830,77 +821,73 @@ class ActiveRecord::Associations::Association # ActiveRecord::RecordNotFound is rescued within the method, and it is # not reraised. The proxy is \reset and +nil+ is the return value. # - # source://activerecord//lib/active_record/associations/association.rb#189 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:189 def load_target; end # Asserts the \target has been loaded setting the \loaded flag to +true+. # - # source://activerecord//lib/active_record/associations/association.rb#86 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:86 def loaded!; end # Has the \target been already \loaded? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#81 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:81 def loaded?; end # We can't dump @reflection and @through_reflection since it contains the scope proc # - # source://activerecord//lib/active_record/associations/association.rb#206 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:206 def marshal_dump; end - # source://activerecord//lib/active_record/associations/association.rb#211 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:211 def marshal_load(data); end - # source://activerecord//lib/active_record/associations/association.rb#39 - def options(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/association.rb:39 + def options(*, **, &); end - # source://activerecord//lib/active_record/associations/association.rb#36 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:36 def owner; end - # source://activerecord//lib/active_record/associations/association.rb#36 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:36 def owner=(_arg0); end - # Returns the value of attribute reflection. - # - # source://activerecord//lib/active_record/associations/association.rb#37 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:37 def reflection; end # Reloads the \target and returns +self+ on success. # The QueryCache is cleared if +force+ is true. # - # source://activerecord//lib/active_record/associations/association.rb#72 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:72 def reload(force = T.unsafe(nil)); end # Remove the inverse association, if possible # - # source://activerecord//lib/active_record/associations/association.rb#147 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:147 def remove_inverse_instance(record); end # Resets the \loaded flag to +false+ and sets the \target to +nil+. # - # source://activerecord//lib/active_record/associations/association.rb#61 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:61 def reset; end - # source://activerecord//lib/active_record/associations/association.rb#66 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:66 def reset_negative_cache; end - # source://activerecord//lib/active_record/associations/association.rb#119 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:119 def reset_scope; end - # source://activerecord//lib/active_record/associations/association.rb#107 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:107 def scope; end # Set the inverse association, if possible # - # source://activerecord//lib/active_record/associations/association.rb#132 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:132 def set_inverse_instance(record); end - # source://activerecord//lib/active_record/associations/association.rb#139 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:139 def set_inverse_instance_from_queries(record); end - # source://activerecord//lib/active_record/associations/association.rb#123 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:123 def set_strict_loading(record); end # The target is stale if the target no longer points to the record(s) that the @@ -910,17 +897,15 @@ class ActiveRecord::Associations::Association # # Note that if the target has not been loaded, it is not considered stale. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#97 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:97 def stale_target?; end - # source://activerecord//lib/active_record/associations/association.rb#53 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:53 def target; end # Sets the target of this association to \target, and the \loaded flag to +true+. # - # source://activerecord//lib/active_record/associations/association.rb#102 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:102 def target=(target); end private @@ -932,34 +917,30 @@ class ActiveRecord::Associations::Association # by scope.scoping { ... } or unscoped { ... } etc, which affects the scope which # actually gets built. # - # source://activerecord//lib/active_record/associations/association.rb#300 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:300 def association_scope; end - # source://activerecord//lib/active_record/associations/association.rb#383 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:383 def build_record(attributes); end - # source://activerecord//lib/active_record/associations/association.rb#398 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:398 def enqueue_destroy_association(options); end # Reader and writer methods call this so that consistent errors are presented # when the association target class does not exist. # - # source://activerecord//lib/active_record/associations/association.rb#244 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:244 def ensure_klass_exists!; end - # source://activerecord//lib/active_record/associations/association.rb#248 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:248 def find_target(async: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#320 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:320 def find_target?; end # Returns true if record contains the foreign_key # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#370 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:370 def foreign_key_for?(record); end # Returns true if there is a foreign key present on the owner which @@ -971,57 +952,47 @@ class ActiveRecord::Associations::Association # Currently implemented by belongs_to (vanilla and polymorphic) and # has_one/has_many :through associations which go through a belongs_to. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#332 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:332 def foreign_key_present?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#406 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:406 def inversable?(record); end - # source://activerecord//lib/active_record/associations/association.rb#350 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:350 def inverse_association_for(record); end # Can be redefined by subclasses, notably polymorphic belongs_to # The record parameter is necessary to support polymorphic inverses as we must check for # the association in the specific class of the record. # - # source://activerecord//lib/active_record/associations/association.rb#359 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:359 def inverse_reflection_for(record); end # Returns true if inverse association on the given record needs to be set. # This method is redefined by subclasses. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#365 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:365 def invertible_for?(record); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#411 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:411 def matches_foreign_key?(record); end # Raises ActiveRecord::AssociationTypeMismatch unless +record+ is of # the kind of the class of the associated objects. Meant to be used as # a safety check when you are about to assign an associated record. # - # source://activerecord//lib/active_record/associations/association.rb#339 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:339 def raise_on_type_mismatch!(record); end - # source://activerecord//lib/active_record/associations/association.rb#316 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:316 def scope_for_create; end # Returns true if statement cache should be skipped on the association reader. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#391 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:391 def skip_statement_cache?(scope); end - # source://activerecord//lib/active_record/associations/association.rb#276 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:276 def skip_strict_loading(&block); end # This should be implemented to return the values of the relevant key(s) on the owner, @@ -1030,254 +1001,226 @@ class ActiveRecord::Associations::Association # # This is only relevant to certain associations, which is why it returns +nil+ by default. # - # source://activerecord//lib/active_record/associations/association.rb#380 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:380 def stale_state; end # Can be overridden (i.e. in ThroughAssociation) to merge in other scopes (i.e. the # through association's scope) # - # source://activerecord//lib/active_record/associations/association.rb#312 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:312 def target_scope; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/association.rb#284 + # pkg:gem/activerecord#lib/active_record/associations/association.rb:284 def violates_strict_loading?; end end -# source://activerecord//lib/active_record/associations/association_scope.rb#5 +# pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:5 class ActiveRecord::Associations::AssociationScope - # @return [AssociationScope] a new instance of AssociationScope - # - # source://activerecord//lib/active_record/associations/association_scope.rb#15 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:15 def initialize(value_transformation); end - # source://activerecord//lib/active_record/associations/association_scope.rb#21 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:21 def scope(association); end private - # source://activerecord//lib/active_record/associations/association_scope.rb#124 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:124 def add_constraints(scope, owner, chain); end - # source://activerecord//lib/active_record/associations/association_scope.rb#161 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:161 def apply_scope(scope, table, key, value); end - # source://activerecord//lib/active_record/associations/association_scope.rb#169 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:169 def eval_scope(reflection, scope, owner); end - # source://activerecord//lib/active_record/associations/association_scope.rb#112 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:112 def get_chain(reflection, association, tracker); end - # source://activerecord//lib/active_record/associations/association_scope.rb#54 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:54 def join(table, constraint); end - # source://activerecord//lib/active_record/associations/association_scope.rb#58 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:58 def last_chain_scope(scope, reflection, owner); end - # source://activerecord//lib/active_record/associations/association_scope.rb#81 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:81 def next_chain_scope(scope, reflection, next_reflection); end - # source://activerecord//lib/active_record/associations/association_scope.rb#77 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:77 def transform_value(value); end - # Returns the value of attribute value_transformation. - # - # source://activerecord//lib/active_record/associations/association_scope.rb#52 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:52 def value_transformation; end class << self - # source://activerecord//lib/active_record/associations/association_scope.rb#10 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:10 def create(&block); end - # source://activerecord//lib/active_record/associations/association_scope.rb#34 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:34 def get_bind_values(owner, chain); end - # source://activerecord//lib/active_record/associations/association_scope.rb#6 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:6 def scope(association); end end end -# source://activerecord//lib/active_record/associations/association_scope.rb#19 +# pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:19 ActiveRecord::Associations::AssociationScope::INSTANCE = T.let(T.unsafe(nil), ActiveRecord::Associations::AssociationScope) -# source://activerecord//lib/active_record/associations/association_scope.rb#101 +# pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:101 class ActiveRecord::Associations::AssociationScope::ReflectionProxy < ::SimpleDelegator - # @return [ReflectionProxy] a new instance of ReflectionProxy - # - # source://activerecord//lib/active_record/associations/association_scope.rb#104 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:104 def initialize(reflection, aliased_table); end - # Returns the value of attribute aliased_table. - # - # source://activerecord//lib/active_record/associations/association_scope.rb#102 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:102 def aliased_table; end - # source://activerecord//lib/active_record/associations/association_scope.rb#109 + # pkg:gem/activerecord#lib/active_record/associations/association_scope.rb:109 def all_includes; end end # = Active Record Belongs To Association # -# source://activerecord//lib/active_record/associations/belongs_to_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:6 class ActiveRecord::Associations::BelongsToAssociation < ::ActiveRecord::Associations::SingularAssociation - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#59 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:59 def decrement_counters; end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#67 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:67 def decrement_counters_before_last_save; end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#46 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:46 def default(&block); end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:7 def handle_dependency; end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#63 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:63 def increment_counters; end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#41 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:41 def inversed_from(record); end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#50 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:50 def reset; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#90 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:90 def saved_change_to_target?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#82 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:82 def target_changed?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#86 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:86 def target_previously_changed?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#55 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:55 def updated?; end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#124 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:124 def find_target?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#157 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:157 def foreign_key_present?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#161 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:161 def invertible_for?(record); end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#153 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:153 def primary_key(klass); end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#95 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:95 def replace(record); end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#132 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:132 def replace_keys(record, force: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#128 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:128 def require_counter_update?; end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#166 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:166 def stale_state; end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#109 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:109 def update_counters(by); end - # source://activerecord//lib/active_record/associations/belongs_to_association.rb#119 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_association.rb:119 def update_counters_via_scope(klass, foreign_key, by); end end # = Active Record Belongs To Polymorphic Association # -# source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:6 class ActiveRecord::Associations::BelongsToPolymorphicAssociation < ::ActiveRecord::Associations::BelongsToAssociation - # source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:7 def klass; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#20 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:20 def saved_change_to_target?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#12 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:12 def target_changed?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#16 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:16 def target_previously_changed?; end private - # source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#35 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:35 def inverse_reflection_for(record); end - # source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#39 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:39 def raise_on_type_mismatch!(record); end - # source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#25 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:25 def replace_keys(record, force: T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/belongs_to_polymorphic_association.rb#43 + # pkg:gem/activerecord#lib/active_record/associations/belongs_to_polymorphic_association.rb:43 def stale_state; end end -# source://activerecord//lib/active_record/associations.rb#18 +# This is the parent Association class which defines the variables +# used by all associations. +# +# The hierarchy is defined as follows: +# Association +# - SingularAssociation +# - BelongsToAssociation +# - HasOneAssociation +# - CollectionAssociation +# - HasManyAssociation +# This class is inherited by the has_one and belongs_to association classes +# +# pkg:gem/activerecord#lib/active_record/associations.rb:18 module ActiveRecord::Associations::Builder; end -# source://activerecord//lib/active_record/associations/builder/association.rb#15 +# pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:15 class ActiveRecord::Associations::Builder::Association class << self - # source://activerecord//lib/active_record/associations/builder/association.rb#25 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:25 def build(model, name, scope, options, &block); end - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/associations/builder/association.rb#40 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:40 def create_reflection(model, name, scope, options, &block); end - # Returns the value of attribute extensions. - # - # source://activerecord//lib/active_record/associations/builder/association.rb#17 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:17 def extensions; end - # Sets the attribute extensions - # - # @param value the value to set the attribute extensions to. - # - # source://activerecord//lib/active_record/associations/builder/association.rb#17 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:17 def extensions=(_arg0); end private - # source://activerecord//lib/active_record/associations/builder/association.rb#145 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:145 def add_after_commit_jobs_callback(model, dependent); end - # source://activerecord//lib/active_record/associations/builder/association.rb#140 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:140 def add_destroy_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/association.rb#53 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:53 def build_scope(scope); end - # source://activerecord//lib/active_record/associations/builder/association.rb#130 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:130 def check_dependent_options(dependent, model); end # Defines the setter and getter methods for the association @@ -1287,219 +1230,207 @@ class ActiveRecord::Associations::Builder::Association # # Post.first.comments and Post.first.comments= methods are defined by this method... # - # source://activerecord//lib/active_record/associations/builder/association.rb#95 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:95 def define_accessors(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/association.rb#77 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:77 def define_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/association.rb#122 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:122 def define_change_tracking_methods(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/association.rb#73 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:73 def define_extensions(model, name); end - # source://activerecord//lib/active_record/associations/builder/association.rb#102 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:102 def define_readers(mixin, name); end - # source://activerecord//lib/active_record/associations/builder/association.rb#118 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:118 def define_validations(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/association.rb#110 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:110 def define_writers(mixin, name); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/associations/builder/association.rb#61 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:61 def macro; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/associations/builder/association.rb#126 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:126 def valid_dependent_options; end - # source://activerecord//lib/active_record/associations/builder/association.rb#65 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:65 def valid_options(options); end - # source://activerecord//lib/active_record/associations/builder/association.rb#69 + # pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:69 def validate_options(options); end end end -# source://activerecord//lib/active_record/associations/builder/association.rb#21 +# pkg:gem/activerecord#lib/active_record/associations/builder/association.rb:21 ActiveRecord::Associations::Builder::Association::VALID_OPTIONS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/associations/builder/belongs_to.rb#4 +# pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:4 class ActiveRecord::Associations::Builder::BelongsTo < ::ActiveRecord::Associations::Builder::SingularAssociation class << self - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#44 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:44 def touch_record(o, changes, foreign_key, name, touch); end private - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#27 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:27 def add_counter_cache_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#103 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:103 def add_default_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#109 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:109 def add_destroy_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#79 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:79 def add_touch_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#20 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:20 def define_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#144 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:144 def define_change_tracking_methods(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#113 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:113 def define_validations(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:5 def macro; end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#16 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:16 def valid_dependent_options; end - # source://activerecord//lib/active_record/associations/builder/belongs_to.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/builder/belongs_to.rb:9 def valid_options(options); end end end -# source://activerecord//lib/active_record/associations/builder/collection_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/builder/collection_association.rb:6 class ActiveRecord::Associations::Builder::CollectionAssociation < ::ActiveRecord::Associations::Builder::Association class << self - # source://activerecord//lib/active_record/associations/builder/collection_association.rb#13 + # pkg:gem/activerecord#lib/active_record/associations/builder/collection_association.rb:13 def define_callbacks(model, reflection); end private - # source://activerecord//lib/active_record/associations/builder/collection_association.rb#30 + # pkg:gem/activerecord#lib/active_record/associations/builder/collection_association.rb:30 def define_callback(model, callback_name, name, options); end - # source://activerecord//lib/active_record/associations/builder/collection_association.rb#22 + # pkg:gem/activerecord#lib/active_record/associations/builder/collection_association.rb:22 def define_extensions(model, name, &block); end # Defines the setter and getter methods for the collection_singular_ids. # - # source://activerecord//lib/active_record/associations/builder/collection_association.rb#58 + # pkg:gem/activerecord#lib/active_record/associations/builder/collection_association.rb:58 def define_readers(mixin, name); end - # source://activerecord//lib/active_record/associations/builder/collection_association.rb#68 + # pkg:gem/activerecord#lib/active_record/associations/builder/collection_association.rb:68 def define_writers(mixin, name); end - # source://activerecord//lib/active_record/associations/builder/collection_association.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/builder/collection_association.rb:9 def valid_options(options); end end end -# source://activerecord//lib/active_record/associations/builder/collection_association.rb#7 +# pkg:gem/activerecord#lib/active_record/associations/builder/collection_association.rb:7 ActiveRecord::Associations::Builder::CollectionAssociation::CALLBACKS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#4 +# pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:4 class ActiveRecord::Associations::Builder::HasAndBelongsToMany - # @return [HasAndBelongsToMany] a new instance of HasAndBelongsToMany - # - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:7 def initialize(association_name, lhs_model, options); end - # Returns the value of attribute association_name. - # - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:5 def association_name; end - # Returns the value of attribute lhs_model. - # - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:5 def lhs_model; end - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#59 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:59 def middle_reflection(join_model); end - # Returns the value of attribute options. - # - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:5 def options; end - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#13 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:13 def through_model; end private - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#92 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:92 def belongs_to_options(options); end - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#71 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:71 def middle_options(join_model); end - # source://activerecord//lib/active_record/associations/builder/has_and_belongs_to_many.rb#80 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_and_belongs_to_many.rb:80 def table_name; end end -# source://activerecord//lib/active_record/associations/builder/has_many.rb#4 +# pkg:gem/activerecord#lib/active_record/associations/builder/has_many.rb:4 class ActiveRecord::Associations::Builder::HasMany < ::ActiveRecord::Associations::Builder::CollectionAssociation class << self private - # source://activerecord//lib/active_record/associations/builder/has_many.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_many.rb:5 def macro; end - # source://activerecord//lib/active_record/associations/builder/has_many.rb#17 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_many.rb:17 def valid_dependent_options; end - # source://activerecord//lib/active_record/associations/builder/has_many.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_many.rb:9 def valid_options(options); end end end -# source://activerecord//lib/active_record/associations/builder/has_one.rb#4 +# pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:4 class ActiveRecord::Associations::Builder::HasOne < ::ActiveRecord::Associations::Builder::SingularAssociation class << self - # source://activerecord//lib/active_record/associations/builder/has_one.rb#37 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:37 def touch_record(record, name, touch); end private - # source://activerecord//lib/active_record/associations/builder/has_one.rb#26 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:26 def add_destroy_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/has_one.rb#46 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:46 def add_touch_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/has_one.rb#21 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:21 def define_callbacks(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/has_one.rb#30 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:30 def define_validations(model, reflection); end - # source://activerecord//lib/active_record/associations/builder/has_one.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:5 def macro; end - # source://activerecord//lib/active_record/associations/builder/has_one.rb#17 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:17 def valid_dependent_options; end - # source://activerecord//lib/active_record/associations/builder/has_one.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/builder/has_one.rb:9 def valid_options(options); end end end -# source://activerecord//lib/active_record/associations/builder/singular_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/builder/singular_association.rb:6 class ActiveRecord::Associations::Builder::SingularAssociation < ::ActiveRecord::Associations::Builder::Association class << self private - # source://activerecord//lib/active_record/associations/builder/singular_association.rb#11 + # pkg:gem/activerecord#lib/active_record/associations/builder/singular_association.rb:11 def define_accessors(model, reflection); end # Defines the (build|create)_association methods for belongs_to or has_one association # - # source://activerecord//lib/active_record/associations/builder/singular_association.rb#30 + # pkg:gem/activerecord#lib/active_record/associations/builder/singular_association.rb:30 def define_constructors(mixin, name); end - # source://activerecord//lib/active_record/associations/builder/singular_association.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/builder/singular_association.rb:7 def valid_options(options); end end end @@ -2447,7 +2378,7 @@ end # All of the association macros can be specialized through options. This makes cases # more complex than the simple and guessable ones possible. # -# source://activerecord//lib/active_record/associations.rb#1032 +# pkg:gem/activerecord#lib/active_record/associations.rb:1032 module ActiveRecord::Associations::ClassMethods # Specifies a one-to-one association with another class. This method # should only be used if this class contains the foreign key. If the @@ -2636,7 +2567,7 @@ module ActiveRecord::Associations::ClassMethods # belongs_to :account, strict_loading: true # belongs_to :note, query_constraints: [:organization_id, :note_id] # - # source://activerecord//lib/active_record/associations.rb#1689 + # pkg:gem/activerecord#lib/active_record/associations.rb:1689 def belongs_to(name, scope = T.unsafe(nil), **options); end # Specifies a many-to-many relationship with another class. This associates two classes via an @@ -2816,7 +2747,7 @@ module ActiveRecord::Associations::ClassMethods # has_and_belongs_to_many :categories, -> { readonly } # has_and_belongs_to_many :categories, strict_loading: true # - # source://activerecord//lib/active_record/associations.rb#1870 + # pkg:gem/activerecord#lib/active_record/associations.rb:1870 def has_and_belongs_to_many(name, scope = T.unsafe(nil), **options, &extension); end # Specifies a one-to-many association. The following methods for retrieval and query of @@ -3089,7 +3020,7 @@ module ActiveRecord::Associations::ClassMethods # has_many :comments, query_constraints: [:blog_id, :post_id] # has_many :comments, index_errors: :nested_attributes_order # - # source://activerecord//lib/active_record/associations.rb#1302 + # pkg:gem/activerecord#lib/active_record/associations.rb:1302 def has_many(name, scope = T.unsafe(nil), **options, &extension); end # Specifies a one-to-one association with another class. This method @@ -3284,7 +3215,7 @@ module ActiveRecord::Associations::ClassMethods # has_one :credit_card, strict_loading: true # has_one :employment_record_book, query_constraints: [:organization_id, :employee_id] # - # source://activerecord//lib/active_record/associations.rb#1498 + # pkg:gem/activerecord#lib/active_record/associations.rb:1498 def has_one(name, scope = T.unsafe(nil), **options); end end @@ -3312,23 +3243,21 @@ end # If you need to work on all current children, new and existing records, # +load_target+ and the +loaded+ flag are your friends. # -# source://activerecord//lib/active_record/associations/collection_association.rb#30 +# pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:30 class ActiveRecord::Associations::CollectionAssociation < ::ActiveRecord::Associations::Association - # source://activerecord//lib/active_record/associations/collection_association.rb#281 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:281 def add_to_target(record, skip_callbacks: T.unsafe(nil), replace: T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/associations/collection_association.rb#117 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:117 def build(attributes = T.unsafe(nil), &block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_association.rb#316 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:316 def collection?; end # Add +records+ to this association. Since +<<+ flattens its argument list # and inserts each record, +push+ and +concat+ behave identically. # - # source://activerecord//lib/active_record/associations/collection_association.rb#127 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:127 def concat(*records); end # Removes +records+ from this association calling +before_remove+ and @@ -3339,7 +3268,7 @@ class ActiveRecord::Associations::CollectionAssociation < ::ActiveRecord::Associ # are actually removed from the database, that depends precisely on # +delete_records+. They are in any case removed from the collection. # - # source://activerecord//lib/active_record/associations/collection_association.rb#186 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:186 def delete(*records); end # Removes all records from the association without calling callbacks @@ -3356,7 +3285,7 @@ class ActiveRecord::Associations::CollectionAssociation < ::ActiveRecord::Associ # # See delete for more info. # - # source://activerecord//lib/active_record/associations/collection_association.rb#150 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:150 def delete_all(dependent = T.unsafe(nil)); end # Deletes the +records+ and removes them from this association calling @@ -3365,14 +3294,14 @@ class ActiveRecord::Associations::CollectionAssociation < ::ActiveRecord::Associ # Note that this method removes records from the database ignoring the # +:dependent+ option. # - # source://activerecord//lib/active_record/associations/collection_association.rb#195 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:195 def destroy(*records); end # Destroy all the records from this association. # # See destroy for more info. # - # source://activerecord//lib/active_record/associations/collection_association.rb#172 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:172 def destroy_all; end # Returns true if the collection is empty. @@ -3384,63 +3313,55 @@ class ActiveRecord::Associations::CollectionAssociation < ::ActiveRecord::Associ # loaded and you are going to fetch the records anyway it is better to # check collection.length.zero?. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_association.rb#232 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:232 def empty?; end - # source://activerecord//lib/active_record/associations/collection_association.rb#94 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:94 def find(*args); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_association.rb#308 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:308 def find_from_target?; end # Implements the ids reader method, e.g. foo.item_ids for Foo.has_many :items # - # source://activerecord//lib/active_record/associations/collection_association.rb#51 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:51 def ids_reader; end # Implements the ids writer method, e.g. foo.item_ids= for Foo.has_many :items # - # source://activerecord//lib/active_record/associations/collection_association.rb#62 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:62 def ids_writer(ids); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_association.rb#258 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:258 def include?(record); end - # source://activerecord//lib/active_record/associations/collection_association.rb#272 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:272 def load_target; end - # source://activerecord//lib/active_record/associations/collection_association.rb#31 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:31 def nested_attributes_target; end - # source://activerecord//lib/active_record/associations/collection_association.rb#31 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:31 def nested_attributes_target=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_association.rb#304 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:304 def null_scope?; end # Implements the reader method, e.g. foo.items for Foo.has_many :items # - # source://activerecord//lib/active_record/associations/collection_association.rb#34 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:34 def reader; end # Replace this collection with +other_array+. This will perform a diff # and delete/add only records that have changed. # - # source://activerecord//lib/active_record/associations/collection_association.rb#242 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:242 def replace(other_array); end - # source://activerecord//lib/active_record/associations/collection_association.rb#87 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:87 def reset; end - # source://activerecord//lib/active_record/associations/collection_association.rb#298 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:298 def scope; end # Returns the size of the collection by executing a SELECT COUNT(*) @@ -3454,59 +3375,53 @@ class ActiveRecord::Associations::CollectionAssociation < ::ActiveRecord::Associ # This method is abstract in the sense that it relies on # +count_records+, which is a method descendants have to provide. # - # source://activerecord//lib/active_record/associations/collection_association.rb#209 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:209 def size; end - # source://activerecord//lib/active_record/associations/collection_association.rb#285 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:285 def target=(record); end # Implements the writer method, e.g. foo.items= for Foo.has_many :items # - # source://activerecord//lib/active_record/associations/collection_association.rb#46 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:46 def writer(records); end private - # source://activerecord//lib/active_record/associations/collection_association.rb#354 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:354 def _create_record(attributes, raise = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/associations/collection_association.rb#492 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:492 def callback(method, record); end - # source://activerecord//lib/active_record/associations/collection_association.rb#498 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:498 def callbacks_for(callback_name); end - # @raise [ActiveRecord::Rollback] - # - # source://activerecord//lib/active_record/associations/collection_association.rb#438 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:438 def concat_records(records, raise = T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/collection_association.rb#385 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:385 def delete_or_destroy(records, method); end # Delete the given records from the association, # using one of the methods +:destroy+, +:delete_all+ # or +:nullify+ (or +nil+, in which case a default is used). # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/associations/collection_association.rb#414 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:414 def delete_records(records, method); end # If the :inverse_of option has been # specified, then #find scans the entire collection. # - # source://activerecord//lib/active_record/associations/collection_association.rb#521 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:521 def find_by_scan(*args); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_association.rb#507 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:507 def include_in_memory?(record); end # Do the relevant stuff to insert the given record into the association collection. # - # source://activerecord//lib/active_record/associations/collection_association.rb#377 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:377 def insert_record(record, validate = T.unsafe(nil), raise = T.unsafe(nil), &block); end # We have some records loaded from the database (persisted) and some that are @@ -3520,22 +3435,22 @@ class ActiveRecord::Associations::CollectionAssociation < ::ActiveRecord::Associ # * Any changes made to attributes on objects in the memory array are to be preserved # * Otherwise, attributes should have the value found in the database # - # source://activerecord//lib/active_record/associations/collection_association.rb#335 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:335 def merge_target_lists(persisted, memory); end - # source://activerecord//lib/active_record/associations/collection_association.rb#399 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:399 def remove_records(existing_records, records, method); end - # source://activerecord//lib/active_record/associations/collection_association.rb#430 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:430 def replace_common_records_in_memory(new_target, original_target); end - # source://activerecord//lib/active_record/associations/collection_association.rb#457 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:457 def replace_on_target(record, skip_callbacks, replace:, inversing: T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/collection_association.rb#418 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:418 def replace_records(new_target, original_target); end - # source://activerecord//lib/active_record/associations/collection_association.rb#321 + # pkg:gem/activerecord#lib/active_record/associations/collection_association.rb:321 def transaction(&block); end end @@ -3566,12 +3481,10 @@ end # is computed directly through SQL and does not trigger by itself the # instantiation of the actual post records. # -# source://activerecord//lib/active_record/associations/collection_proxy.rb#31 +# pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:31 class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation - # @return [CollectionProxy] a new instance of CollectionProxy - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#32 - def initialize(klass, association, **_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:32 + def initialize(klass, association, **); end # Adds one or more +records+ to the collection by setting their foreign keys # to the association's primary key. Since << flattens its argument list and @@ -3595,7 +3508,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # # # # ] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1049 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1049 def <<(*records); end # Equivalent to Array#==. Returns +true+ if the two arrays @@ -3626,60 +3539,38 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets == other # # => true # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#980 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:980 def ==(other); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def _select!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def _select!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def all(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def and(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def and(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def and!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def and!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def annotate(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def annotate(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def annotate!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def annotate!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def annotate_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def annotate_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def annotate_values=(arg); end - # Adds one or more +records+ to the collection by setting their foreign keys - # to the association's primary key. Since << flattens its argument list and - # inserts each record, +push+ and +concat+ behave identically. Returns +self+ - # so several appends may be chained together. - # - # class Person < ActiveRecord::Base - # has_many :pets - # end - # - # person.pets.size # => 0 - # person.pets << Pet.new(name: 'Fancy-Fancy') - # person.pets << [Pet.new(name: 'Spook'), Pet.new(name: 'Choo-Choo')] - # person.pets.size # => 3 - # - # person.id # => 1 - # person.pets - # # => [ - # # #, - # # #, - # # # - # # ] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1049 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1053 def append(*records); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def arel(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def arel(*, **, &); end # Returns a new object of the collection type that has been instantiated # with +attributes+ and linked to this object, but have not yet been saved. @@ -3706,12 +3597,12 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets.size # => 5 # size of the collection # person.pets.count # => 0 # count from database # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#318 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:318 def build(attributes = T.unsafe(nil), &block); end # -- # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#724 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:724 def calculate(operation, column_name); end # Equivalent to +delete_all+. The difference is that returns +self+, instead @@ -3721,36 +3612,14 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # running an SQL query into the database, the +updated_at+ column of # the object is not changed. # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1066 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1066 def clear; end - # Adds one or more +records+ to the collection by setting their foreign keys - # to the association's primary key. Since << flattens its argument list and - # inserts each record, +push+ and +concat+ behave identically. Returns +self+ - # so several appends may be chained together. - # - # class Person < ActiveRecord::Base - # has_many :pets - # end - # - # person.pets.size # => 0 - # person.pets << Pet.new(name: 'Fancy-Fancy') - # person.pets << [Pet.new(name: 'Spook'), Pet.new(name: 'Choo-Choo')] - # person.pets.size # => 3 - # - # person.id # => 1 - # person.pets - # # => [ - # # #, - # # #, - # # # - # # ] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1049 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1054 def concat(*records); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def construct_join_dependency(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def construct_join_dependency(*, **, &); end # Returns a new object of the collection type that has been instantiated with # attributes, linked to this object and that has already been saved (if it @@ -3779,7 +3648,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # # # # ] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#349 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:349 def create(attributes = T.unsafe(nil), &block); end # Like #create, except that if the record is invalid, raises an exception. @@ -3795,19 +3664,19 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets.create!(name: nil) # # => ActiveRecord::RecordInvalid: Validation failed: Name can't be blank # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#365 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:365 def create!(attributes = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def create_with(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def create_with(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def create_with!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def create_with!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def create_with_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def create_with_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def create_with_value=(arg); end # Deletes the +records+ supplied from the collection according to the strategy @@ -3926,7 +3795,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # # # # ] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#620 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:620 def delete(*records); end # Deletes all the records from the collection according to the strategy @@ -4009,7 +3878,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # Pet.find(1, 2, 3) # # => ActiveRecord::RecordNotFound: Couldn't find all Pets with 'id': (1, 2, 3) # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#474 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:474 def delete_all(dependent = T.unsafe(nil)); end # Destroys the +records+ supplied and removes them from the collection. @@ -4081,7 +3950,7 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # Pet.find(4, 5, 6) # => ActiveRecord::RecordNotFound: Couldn't find all Pets with 'id': (4, 5, 6) # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#692 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:692 def destroy(*records); end # Deletes the records of the collection directly from the database @@ -4108,31 +3977,31 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # Pet.find(1) # => Couldn't find Pet with id=1 # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#501 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:501 def destroy_all; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def distinct(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def distinct(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def distinct!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def distinct!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def distinct_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def distinct_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def distinct_value=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def eager_load(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def eager_load(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def eager_load!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def eager_load!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def eager_load_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def eager_load_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def eager_load_values=(arg); end # Returns +true+ if the collection is empty. If the collection has been @@ -4154,37 +4023,35 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets.count # => 0 # person.pets.empty? # => true # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#831 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:831 def empty?; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def except(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def except(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def excluding(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def excluding(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def excluding!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def excluding!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def extending(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def extending(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def extending!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def extending!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def extending_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def extending_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def extending_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def extensions(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def extensions(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def extract_associated(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def extract_associated(*, **, &); end # Finds an object in the collection responding to the +id+. Uses the same # rules as ActiveRecord::FinderMethods.find. Returns ActiveRecord::RecordNotFound @@ -4213,47 +4080,47 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # # # # ] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#138 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:138 def find(*args); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def from(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def from(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def from!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def from!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def from_clause(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def from_clause(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def from_clause=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def group(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def group(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def group!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def group!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def group_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def group_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def group_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def having(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def having(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def having!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def having!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def having_clause(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def having_clause(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def having_clause=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def in_order_of(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def in_order_of(*, **, &); end # Returns +true+ if the given +record+ is present in the collection. # @@ -4266,54 +4133,52 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets.include?(Pet.find(20)) # => true # person.pets.include?(Pet.find(21)) # => false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#927 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:927 def include?(record); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def includes(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def includes(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def includes!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def includes!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def includes_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def includes_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def includes_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def insert(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def insert(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def insert!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def insert!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def insert_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def insert_all(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def insert_all!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def insert_all!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1118 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1118 def inspect; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def invert_where(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def invert_where(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def invert_where!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def invert_where!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def joins(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def joins(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def joins!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def joins!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def joins_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def joins_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def joins_values=(arg); end # Returns the last record, or the last +n+ records, from the collection. @@ -4343,51 +4208,43 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # another_person_without.pets.last # => nil # another_person_without.pets.last(3) # => [] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#259 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:259 def last(limit = T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def left_joins(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def left_joins(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def left_outer_joins(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def left_outer_joins(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def left_outer_joins!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def left_outer_joins!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def left_outer_joins_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def left_outer_joins_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def left_outer_joins_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def limit(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def limit(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def limit!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def limit!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def limit_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def limit_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def limit_value=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def load_async(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def load_async(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#44 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:44 def load_target; end - # Returns +true+ if the association has been loaded, otherwise +false+. - # - # person.pets.loaded? # => false - # person.pets.records - # person.pets.loaded? # => true - # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#53 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:56 def loaded; end # Returns +true+ if the association has been loaded, otherwise +false+. @@ -4396,132 +4253,103 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets.records # person.pets.loaded? # => true # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#53 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:53 def loaded?; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def lock(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def lock(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def lock!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def lock!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def lock_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def lock_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def lock_value=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def merge(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def merge(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def merge!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def merge!(*, **, &); end - # Returns a new object of the collection type that has been instantiated - # with +attributes+ and linked to this object, but have not yet been saved. - # You can pass an array of attributes hashes, this will return an array - # with the new objects. - # - # class Person - # has_many :pets - # end - # - # person.pets.build - # # => # - # - # person.pets.build(name: 'Fancy-Fancy') - # # => # - # - # person.pets.build([{name: 'Spook'}, {name: 'Choo-Choo'}, {name: 'Brain'}]) - # # => [ - # # #, - # # #, - # # # - # # ] - # - # person.pets.size # => 5 # size of the collection - # person.pets.count # => 0 # count from database - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#318 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:321 def new(attributes = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def none(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def none(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def none!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def none!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def null_relation?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def null_relation?(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def offset(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def offset(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def offset!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def offset!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def offset_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def offset_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def offset_value=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def only(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def only(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def optimizer_hints(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def optimizer_hints(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def optimizer_hints!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def optimizer_hints!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def optimizer_hints_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def optimizer_hints_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def optimizer_hints_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def or(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def or(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def or!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def or!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def order(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def order(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def order!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def order!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def order_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def order_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def order_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#728 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:728 def pluck(*column_names); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def preload(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def preload(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def preload!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def preload!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def preload_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def preload_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def preload_values=(arg); end - # @raise [NoMethodError] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1056 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1056 def prepend(*args); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1123 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1123 def pretty_print(pp); end # Returns the association object for the collection. @@ -4538,44 +4366,22 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # See Associations::ClassMethods@Association+extensions for more. # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#944 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:944 def proxy_association; end - # Adds one or more +records+ to the collection by setting their foreign keys - # to the association's primary key. Since << flattens its argument list and - # inserts each record, +push+ and +concat+ behave identically. Returns +self+ - # so several appends may be chained together. - # - # class Person < ActiveRecord::Base - # has_many :pets - # end - # - # person.pets.size # => 0 - # person.pets << Pet.new(name: 'Fancy-Fancy') - # person.pets << [Pet.new(name: 'Spook'), Pet.new(name: 'Choo-Choo')] - # person.pets.size # => 3 - # - # person.id # => 1 - # person.pets - # # => [ - # # #, - # # #, - # # # - # # ] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1049 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1052 def push(*records); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def readonly(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def readonly(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def readonly!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def readonly!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def readonly_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def readonly_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def readonly_value=(arg); end # :method: to_ary @@ -4617,26 +4423,26 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # # # # ] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1024 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1024 def records; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def references(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def references(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def references!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def references!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def references_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def references_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def references_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def regroup(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def regroup(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def regroup!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def regroup!(*, **, &); end # Reloads the collection from the database. Returns +self+. # @@ -4653,19 +4459,19 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets.reload # fetches pets from the database # # => [#] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1085 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1085 def reload; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def reorder(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def reorder(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def reorder!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def reorder!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def reordering_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def reordering_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def reordering_value=(arg); end # Replaces this collection with +other_array+. This will perform a diff @@ -4691,14 +4497,14 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets.replace(["doo", "ggie", "gaga"]) # # => ActiveRecord::AssociationTypeMismatch: Pet expected, got String # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#391 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:391 def replace(other_array); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def reselect(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def reselect(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def reselect!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def reselect!(*, **, &); end # Unloads the association. Returns +self+. # @@ -4717,39 +4523,39 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # person.pets # fetches pets from the database # # => [#] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1106 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1106 def reset; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1112 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1112 def reset_scope; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def reverse_order(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def reverse_order(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def reverse_order!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def reverse_order!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def reverse_order_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def reverse_order_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def reverse_order_value=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def rewhere(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def rewhere(*, **, &); end # Returns a Relation object for the records in this association # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#949 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:949 def scope; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def scoping(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def scoping(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def select_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def select_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def select_values=(arg); end # Returns the size of the collection. If the collection hasn't been loaded, @@ -4777,38 +4583,38 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # # Because the collection is already loaded, this will behave like # # collection.size and no SQL count query is executed. # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#782 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:782 def size; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def skip_preloading!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def skip_preloading!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def skip_query_cache!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def skip_query_cache!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def skip_query_cache_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def skip_query_cache_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def skip_query_cache_value=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def spawn(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def spawn(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def strict_loading(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def strict_loading(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def strict_loading!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def strict_loading!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def strict_loading_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def strict_loading_value(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def strict_loading_value=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def structurally_compatible?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def structurally_compatible?(*, **, &); end # Gives a record (or N records if a parameter is supplied) from the collection # using the same rules as ActiveRecord::FinderMethods.take. @@ -4836,120 +4642,114 @@ class ActiveRecord::Associations::CollectionProxy < ::ActiveRecord::Relation # another_person_without.pets.take # => nil # another_person_without.pets.take(2) # => [] # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#289 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:289 def take(limit = T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#40 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:40 def target; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def uniq!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def uniq!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def unscope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def unscope(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def unscope!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def unscope!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def unscope_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def unscope_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def unscope_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def upsert(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def upsert(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def upsert_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def upsert_all(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def where(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def where(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def where!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def where!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def where_clause(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def where_clause(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def where_clause=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def with(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def with(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def with!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def with!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def with_recursive(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def with_recursive(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def with_recursive!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def with_recursive!(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def with_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def with_values(*, **, &); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 def with_values=(arg); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1137 - def without(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1137 + def without(*, **, &); end private - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1158 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1158 def exec_queries; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1154 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1154 def find_from_target?; end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1145 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1145 def find_nth_from_last(index); end - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1140 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1140 def find_nth_with_limit(index, limit); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/collection_proxy.rb#1150 + # pkg:gem/activerecord#lib/active_record/associations/collection_proxy.rb:1150 def null_scope?; end end -# source://activerecord//lib/active_record/associations/disable_joins_association_scope.rb#5 +# pkg:gem/activerecord#lib/active_record/associations/disable_joins_association_scope.rb:5 class ActiveRecord::Associations::DisableJoinsAssociationScope < ::ActiveRecord::Associations::AssociationScope - # source://activerecord//lib/active_record/associations/disable_joins_association_scope.rb#6 + # pkg:gem/activerecord#lib/active_record/associations/disable_joins_association_scope.rb:6 def scope(association); end private - # source://activerecord//lib/active_record/associations/disable_joins_association_scope.rb#33 + # pkg:gem/activerecord#lib/active_record/associations/disable_joins_association_scope.rb:33 def add_constraints(reflection, key, join_ids, owner, ordered); end - # source://activerecord//lib/active_record/associations/disable_joins_association_scope.rb#18 + # pkg:gem/activerecord#lib/active_record/associations/disable_joins_association_scope.rb:18 def last_scope_chain(reverse_chain, owner); end end -# source://activerecord//lib/active_record/associations/foreign_association.rb#4 +# pkg:gem/activerecord#lib/active_record/associations/foreign_association.rb:4 module ActiveRecord::Associations::ForeignAssociation - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/foreign_association.rb#5 + # pkg:gem/activerecord#lib/active_record/associations/foreign_association.rb:5 def foreign_key_present?; end - # source://activerecord//lib/active_record/associations/foreign_association.rb#13 + # pkg:gem/activerecord#lib/active_record/associations/foreign_association.rb:13 def nullified_owner_attributes; end private # Sets the owner attributes on the given record # - # source://activerecord//lib/active_record/associations/foreign_association.rb#22 + # pkg:gem/activerecord#lib/active_record/associations/foreign_association.rb:22 def set_owner_attributes(record); end end @@ -4960,23 +4760,23 @@ end # If the association has a :through option further specialization # is provided by its child HasManyThroughAssociation. # -# source://activerecord//lib/active_record/associations/has_many_association.rb#11 +# pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:11 class ActiveRecord::Associations::HasManyAssociation < ::ActiveRecord::Associations::CollectionAssociation include ::ActiveRecord::Associations::ForeignAssociation - # source://activerecord//lib/active_record/associations/has_many_association.rb#14 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:14 def handle_dependency; end - # source://activerecord//lib/active_record/associations/has_many_association.rb#61 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:61 def insert_record(record, validate = T.unsafe(nil), raise = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/associations/has_many_association.rb#143 - def _create_record(attributes, *_arg1); end + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:143 + def _create_record(attributes, *); end - # source://activerecord//lib/active_record/associations/has_many_association.rb#139 - def concat_records(records, *_arg1); end + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:139 + def concat_records(records, *); end # Returns the number of records in this collection. # @@ -4992,56 +4792,54 @@ class ActiveRecord::Associations::HasManyAssociation < ::ActiveRecord::Associati # If the collection is empty the target is set to an empty array and # the loaded flag is set to true as well. # - # source://activerecord//lib/active_record/associations/has_many_association.rb#80 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:80 def count_records; end - # source://activerecord//lib/active_record/associations/has_many_association.rb#112 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:112 def delete_count(method, scope); end - # source://activerecord//lib/active_record/associations/has_many_association.rb#120 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:120 def delete_or_nullify_all_records(method); end # Deletes the records according to the :dependent option. # - # source://activerecord//lib/active_record/associations/has_many_association.rb#127 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:127 def delete_records(records, method); end - # source://activerecord//lib/active_record/associations/has_many_association.rb#158 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:158 def difference(a, b); end - # source://activerecord//lib/active_record/associations/has_many_association.rb#162 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:162 def intersection(a, b); end - # source://activerecord//lib/active_record/associations/has_many_association.rb#98 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:98 def update_counter(difference, reflection = T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/has_many_association.rb#151 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:151 def update_counter_if_success(saved_successfully, difference); end - # source://activerecord//lib/active_record/associations/has_many_association.rb#104 + # pkg:gem/activerecord#lib/active_record/associations/has_many_association.rb:104 def update_counter_in_memory(difference, reflection = T.unsafe(nil)); end end # = Active Record Has Many Through Association # -# source://activerecord//lib/active_record/associations/has_many_through_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:6 class ActiveRecord::Associations::HasManyThroughAssociation < ::ActiveRecord::Associations::HasManyAssociation include ::ActiveRecord::Associations::ThroughAssociation - # @return [HasManyThroughAssociation] a new instance of HasManyThroughAssociation - # - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:9 def initialize(owner, reflection); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#14 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:14 def concat(*records); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#24 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:24 def insert_record(record, validate = T.unsafe(nil), raise = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#90 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:90 def build_record(attributes); end # The through record (built with build_record) is temporarily cached @@ -5050,97 +4848,87 @@ class ActiveRecord::Associations::HasManyThroughAssociation < ::ActiveRecord::As # However, after insert_record has been called, the cache is cleared in # order to allow multiple instances of the same record in an association. # - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#56 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:56 def build_through_record(record); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#37 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:37 def concat_records(records); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#136 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:136 def delete_or_nullify_all_records(method); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#140 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:140 def delete_records(records, method); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#209 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:209 def delete_through_records(records); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#177 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:177 def difference(a, b); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#193 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:193 def distribution(array); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#225 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:225 def find_target(async: T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#183 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:183 def intersection(a, b); end # NOTE - not sure that we can actually cope with inverses here # - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#233 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:233 def invertible_for?(record); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#189 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:189 def mark_occurrence(distribution, record); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#116 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:116 def remove_records(existing_records, records, method); end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#81 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:81 def save_through_record(record); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#121 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:121 def target_reflection_has_associated_record?; end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#199 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:199 def through_records_for(record); end - # Returns the value of attribute through_scope. - # - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#69 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:69 def through_scope; end - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#71 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:71 def through_scope_attributes; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/has_many_through_association.rb#125 + # pkg:gem/activerecord#lib/active_record/associations/has_many_through_association.rb:125 def update_through_counter?(method); end end # = Active Record Has One Association # -# source://activerecord//lib/active_record/associations/has_one_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:6 class ActiveRecord::Associations::HasOneAssociation < ::ActiveRecord::Associations::SingularAssociation include ::ActiveRecord::Associations::ForeignAssociation - # source://activerecord//lib/active_record/associations/has_one_association.rb#26 + # pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:26 def delete(method = T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/has_one_association.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:9 def handle_dependency; end private - # source://activerecord//lib/active_record/associations/has_one_association.rb#133 + # pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:133 def _create_record(attributes, raise_error = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/associations/has_one_association.rb#119 + # pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:119 def nullify_owner_attributes(record); end - # source://activerecord//lib/active_record/associations/has_one_association.rb#95 + # pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:95 def remove_target!(method); end - # source://activerecord//lib/active_record/associations/has_one_association.rb#59 + # pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:59 def replace(record, save = T.unsafe(nil)); end # The reason that the save param for replace is false, if for create (not just build), @@ -5148,266 +4936,228 @@ class ActiveRecord::Associations::HasOneAssociation < ::ActiveRecord::Associatio # the record is instantiated, and so they are set straight away and do not need to be # updated within replace. # - # source://activerecord//lib/active_record/associations/has_one_association.rb#91 + # pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:91 def set_new_record(record); end - # source://activerecord//lib/active_record/associations/has_one_association.rb#125 + # pkg:gem/activerecord#lib/active_record/associations/has_one_association.rb:125 def transaction_if(value, &block); end end # = Active Record Has One Through Association # -# source://activerecord//lib/active_record/associations/has_one_through_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/has_one_through_association.rb:6 class ActiveRecord::Associations::HasOneThroughAssociation < ::ActiveRecord::Associations::HasOneAssociation include ::ActiveRecord::Associations::ThroughAssociation private - # source://activerecord//lib/active_record/associations/has_one_through_association.rb#15 + # pkg:gem/activerecord#lib/active_record/associations/has_one_through_association.rb:15 def create_through_record(record, save); end - # source://activerecord//lib/active_record/associations/has_one_through_association.rb#10 + # pkg:gem/activerecord#lib/active_record/associations/has_one_through_association.rb:10 def replace(record, save = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/join_dependency.rb#5 +# pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:5 class ActiveRecord::Associations::JoinDependency extend ::ActiveSupport::Autoload - # @return [JoinDependency] a new instance of JoinDependency - # - # source://activerecord//lib/active_record/associations/join_dependency.rb#71 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:71 def initialize(base, table, associations, join_type); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#153 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:153 def apply_column_aliases(relation); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#77 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:77 def base_klass; end - # source://activerecord//lib/active_record/associations/join_dependency.rb#158 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:158 def each(&block); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#105 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:105 def instantiate(result_set, strict_loading_value, &block); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#85 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:85 def join_constraints(joins_to_add, alias_tracker, references); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#81 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:81 def reflections; end protected - # Returns the value of attribute join_root. - # - # source://activerecord//lib/active_record/associations/join_dependency.rb#163 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:163 def join_root; end - # Returns the value of attribute join_type. - # - # source://activerecord//lib/active_record/associations/join_dependency.rb#163 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:163 def join_type; end private - # Returns the value of attribute alias_tracker. - # - # source://activerecord//lib/active_record/associations/join_dependency.rb#166 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:166 def alias_tracker; end - # source://activerecord//lib/active_record/associations/join_dependency.rb#168 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:168 def aliases; end - # source://activerecord//lib/active_record/associations/join_dependency.rb#228 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:228 def build(associations, base_klass); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#242 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:242 def construct(ar_parent, parent, row, seen, model_cache, strict_loading_value); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#278 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:278 def construct_model(record, node, row, model_cache, id, strict_loading_value); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#223 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:223 def find_reflection(klass, name); end - # Returns the value of attribute join_root_alias. - # - # source://activerecord//lib/active_record/associations/join_dependency.rb#166 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:166 def join_root_alias; end - # source://activerecord//lib/active_record/associations/join_dependency.rb#190 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:190 def make_constraints(parent, child, join_type); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#184 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:184 def make_join_constraints(join_root, join_type); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#214 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:214 def walk(left, right, join_type); end class << self - # source://activerecord//lib/active_record/associations/join_dependency.rb#47 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:47 def make_tree(associations); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#53 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:53 def walk_tree(associations, hash); end end end -# source://activerecord//lib/active_record/associations/join_dependency.rb#13 +# pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:13 class ActiveRecord::Associations::JoinDependency::Aliases - # @return [Aliases] a new instance of Aliases - # - # source://activerecord//lib/active_record/associations/join_dependency.rb#14 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:14 def initialize(tables); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#34 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:34 def column_alias(node, column); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#30 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:30 def column_aliases(node); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#26 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:26 def columns; end end -# source://activerecord//lib/active_record/associations/join_dependency.rb#44 +# pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 class ActiveRecord::Associations::JoinDependency::Aliases::Column < ::Struct - # Returns the value of attribute alias - # - # @return [Object] the current value of alias + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def alias; end - # Sets the attribute alias - # - # @param value [Object] the value to set the attribute alias to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def alias=(_); end - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def name=(_); end class << self + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def inspect; end + + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def members; end + + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:44 def new(*_arg0); end end end -# source://activerecord//lib/active_record/associations/join_dependency.rb#38 +# pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 class ActiveRecord::Associations::JoinDependency::Aliases::Table < ::Struct - # source://activerecord//lib/active_record/associations/join_dependency.rb#39 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:39 def column_aliases; end - # Returns the value of attribute columns - # - # @return [Object] the current value of columns + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def columns; end - # Sets the attribute columns - # - # @param value [Object] the value to set the attribute columns to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def columns=(_); end - # Returns the value of attribute node - # - # @return [Object] the current value of node + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def node; end - # Sets the attribute node - # - # @param value [Object] the value to set the attribute node to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def node=(_); end class << self + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def inspect; end + + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def members; end + + # pkg:gem/activerecord#lib/active_record/associations/join_dependency.rb:38 def new(*_arg0); end end end -# source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#9 +# pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:9 class ActiveRecord::Associations::JoinDependency::JoinAssociation < ::ActiveRecord::Associations::JoinDependency::JoinPart - # @return [JoinAssociation] a new instance of JoinAssociation - # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#13 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:13 def initialize(reflection, children); end - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#24 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:24 def join_constraints(foreign_table, foreign_klass, join_type, alias_tracker); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#19 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:19 def match?(other); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#79 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:79 def readonly?; end - # Returns the value of attribute reflection. - # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#10 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:10 def reflection; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#85 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:85 def strict_loading?; end - # Returns the value of attribute table. - # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#11 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:11 def table; end - # Sets the attribute table - # - # @param value the value to set the attribute table to. - # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#11 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:11 def table=(_arg0); end - # Returns the value of attribute tables. - # - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#10 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:10 def tables; end private - # source://activerecord//lib/active_record/associations/join_dependency/join_association.rb#92 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_association.rb:92 def append_constraints(join, constraints); end end -# source://activerecord//lib/active_record/associations/join_dependency/join_base.rb#8 +# pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_base.rb:8 class ActiveRecord::Associations::JoinDependency::JoinBase < ::ActiveRecord::Associations::JoinDependency::JoinPart - # @return [JoinBase] a new instance of JoinBase - # - # source://activerecord//lib/active_record/associations/join_dependency/join_base.rb#11 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_base.rb:11 def initialize(base_klass, table, children); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/join_dependency/join_base.rb#16 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_base.rb:16 def match?(other); end - # Returns the value of attribute table. - # - # source://activerecord//lib/active_record/associations/join_dependency/join_base.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_base.rb:9 def table; end end @@ -5418,93 +5168,80 @@ end # operations (for example a has_and_belongs_to_many JoinAssociation would result in # two; one for the join table and one for the target table). # -# source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#12 +# pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:12 class ActiveRecord::Associations::JoinDependency::JoinPart include ::Enumerable - # @return [JoinPart] a new instance of JoinPart - # - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#22 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:22 def initialize(base_klass, children); end - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#20 - def attribute_types(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:20 + def attribute_types(*, **, &); end # The Active Record class which this join part is associated 'about'; for a JoinBase # this is the actual base model, for a JoinAssociation this is the target model of the # association. # - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#18 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:18 def base_klass; end # The Active Record class which this join part is associated 'about'; for a JoinBase # this is the actual base model, for a JoinAssociation this is the target model of the # association. # - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#18 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:18 def children; end - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#20 - def column_names(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:20 + def column_names(*, **, &); end - # @yield [_self] - # @yieldparam _self [ActiveRecord::Associations::JoinDependency::JoinPart] the object that the method was called on - # - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#31 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:31 def each(&block); end - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#36 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:36 def each_children(&block); end - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#48 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:48 def extract_record(row, column_names_with_alias); end - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#65 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:65 def instantiate(row, aliases, column_types = T.unsafe(nil), &block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#27 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:27 def match?(other); end - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#20 - def primary_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:20 + def primary_key(*, **, &); end # An Arel::Table for the active_record # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#44 + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:44 def table; end - # source://activerecord//lib/active_record/associations/join_dependency/join_part.rb#20 - def table_name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/join_dependency/join_part.rb:20 + def table_name(*, **, &); end end -# source://activerecord//lib/active_record/associations/nested_error.rb#7 +# pkg:gem/activerecord#lib/active_record/associations/nested_error.rb:7 class ActiveRecord::Associations::NestedError < ::ActiveModel::NestedError - # @return [NestedError] a new instance of NestedError - # - # source://activerecord//lib/active_record/associations/nested_error.rb#8 + # pkg:gem/activerecord#lib/active_record/associations/nested_error.rb:8 def initialize(association, inner_error); end private - # Returns the value of attribute association. - # - # source://activerecord//lib/active_record/associations/nested_error.rb#16 + # pkg:gem/activerecord#lib/active_record/associations/nested_error.rb:16 def association; end - # source://activerecord//lib/active_record/associations/nested_error.rb#18 + # pkg:gem/activerecord#lib/active_record/associations/nested_error.rb:18 def compute_attribute(inner_error); end - # source://activerecord//lib/active_record/associations/nested_error.rb#33 + # pkg:gem/activerecord#lib/active_record/associations/nested_error.rb:33 def index; end - # source://activerecord//lib/active_record/associations/nested_error.rb#28 + # pkg:gem/activerecord#lib/active_record/associations/nested_error.rb:28 def index_errors_setting; end - # source://activerecord//lib/active_record/associations/nested_error.rb#37 + # pkg:gem/activerecord#lib/active_record/associations/nested_error.rb:37 def ordered_records; end end @@ -5548,7 +5285,7 @@ end # This could result in many rows that contain redundant data and it performs poorly at scale # and is therefore only used when necessary. # -# source://activerecord//lib/active_record/associations/preloader.rb#46 +# pkg:gem/activerecord#lib/active_record/associations/preloader.rb:46 class ActiveRecord::Associations::Preloader extend ::ActiveSupport::Autoload @@ -5594,471 +5331,391 @@ class ActiveRecord::Associations::Preloader # queries by reusing in-memory objects. The optimization is only applied # to single associations (i.e. :belongs_to, :has_one) with no scopes. # - # @return [Preloader] a new instance of Preloader - # - # source://activerecord//lib/active_record/associations/preloader.rb#99 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:99 def initialize(records:, associations:, scope: T.unsafe(nil), available_records: T.unsafe(nil), associate_by_default: T.unsafe(nil)); end - # Returns the value of attribute associate_by_default. - # - # source://activerecord//lib/active_record/associations/preloader.rb#56 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:56 def associate_by_default; end - # Returns the value of attribute associations. - # - # source://activerecord//lib/active_record/associations/preloader.rb#56 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:56 def associations; end - # source://activerecord//lib/active_record/associations/preloader.rb#126 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:126 def branches; end - # source://activerecord//lib/active_record/associations/preloader.rb#120 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:120 def call; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader.rb#116 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:116 def empty?; end - # source://activerecord//lib/active_record/associations/preloader.rb#130 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:130 def loaders; end - # Returns the value of attribute records. - # - # source://activerecord//lib/active_record/associations/preloader.rb#56 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:56 def records; end - # Returns the value of attribute scope. - # - # source://activerecord//lib/active_record/associations/preloader.rb#56 + # pkg:gem/activerecord#lib/active_record/associations/preloader.rb:56 def scope; end end -# source://activerecord//lib/active_record/associations/preloader/association.rb#8 +# pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:8 class ActiveRecord::Associations::Preloader::Association - # @return [Association] a new instance of Association - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#104 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:104 def initialize(klass, owners, reflection, preload_scope, reflection_scope, associate_by_default); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#218 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:218 def associate_records_from_unscoped(unscoped_records); end # The name of the key on the associated records # - # source://activerecord//lib/active_record/associations/preloader/association.rb#161 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:161 def association_key_name; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#119 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:119 def future_classes; end - # Returns the value of attribute klass. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#102 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:102 def klass; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#197 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:197 def load_records(raw_records = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#176 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:176 def loaded?(owner); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#165 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:165 def loader_query; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#169 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:169 def owners_by_key; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#154 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:154 def preloaded_records; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#148 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:148 def records_by_owner; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#135 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:135 def run; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#131 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:131 def run?; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#127 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:127 def runnable_loaders; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#184 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:184 def scope; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#188 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:188 def set_inverse(record); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#115 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:115 def table_name; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#180 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:180 def target_for(owner); end private - # source://activerecord//lib/active_record/associations/preloader/association.rb#245 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:245 def associate_records_to_owner(owner, records); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#282 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:282 def association_key_type; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#294 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:294 def build_scope; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#310 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:310 def cascade_strict_loading(scope); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#274 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:274 def convert_key(key); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#266 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:266 def derive_key(owner, key); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#258 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:258 def key_conversion_required?; end - # Returns the value of attribute model. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#238 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:238 def model; end # The name of the key on the model which declares the association # - # source://activerecord//lib/active_record/associations/preloader/association.rb#241 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:241 def owner_key_name; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#286 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:286 def owner_key_type; end - # Returns the value of attribute owners. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#238 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:238 def owners; end - # Returns the value of attribute preload_scope. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#238 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:238 def preload_scope; end - # Returns the value of attribute reflection. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#238 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:238 def reflection; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#290 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:290 def reflection_scope; end end -# source://activerecord//lib/active_record/associations/preloader/association.rb#9 +# pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:9 class ActiveRecord::Associations::Preloader::Association::LoaderQuery - # @return [LoaderQuery] a new instance of LoaderQuery - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#12 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:12 def initialize(scope, association_key_name); end - # Returns the value of attribute association_key_name. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#10 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:10 def association_key_name; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#17 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:17 def eql?(other); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#24 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:24 def hash; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#41 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:41 def load_records_for_keys(keys, &block); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#32 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:32 def load_records_in_batch(loaders); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#28 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:28 def records_for(loaders); end - # Returns the value of attribute scope. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#10 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:10 def scope; end end -# source://activerecord//lib/active_record/associations/preloader/association.rb#60 +# pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:60 class ActiveRecord::Associations::Preloader::Association::LoaderRecords - # @return [LoaderRecords] a new instance of LoaderRecords - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#61 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:61 def initialize(loaders, loader_query); end - # source://activerecord//lib/active_record/associations/preloader/association.rb#70 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:70 def records; end private - # source://activerecord//lib/active_record/associations/preloader/association.rb#97 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:97 def already_loaded_records; end - # Returns the value of attribute already_loaded_records_by_key. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#75 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:75 def already_loaded_records_by_key; end - # Returns the value of attribute keys_to_load. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#75 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:75 def keys_to_load; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#91 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:91 def load_records; end - # Returns the value of attribute loader_query. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#75 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:75 def loader_query; end - # Returns the value of attribute loaders. - # - # source://activerecord//lib/active_record/associations/preloader/association.rb#75 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:75 def loaders; end - # source://activerecord//lib/active_record/associations/preloader/association.rb#77 + # pkg:gem/activerecord#lib/active_record/associations/preloader/association.rb:77 def populate_keys_to_load_and_already_loaded_records; end end -# source://activerecord//lib/active_record/associations/preloader/batch.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/preloader/batch.rb:6 class ActiveRecord::Associations::Preloader::Batch - # @return [Batch] a new instance of Batch - # - # source://activerecord//lib/active_record/associations/preloader/batch.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/preloader/batch.rb:7 def initialize(preloaders, available_records:); end - # source://activerecord//lib/active_record/associations/preloader/batch.rb#12 + # pkg:gem/activerecord#lib/active_record/associations/preloader/batch.rb:12 def call; end private - # source://activerecord//lib/active_record/associations/preloader/batch.rb#40 + # pkg:gem/activerecord#lib/active_record/associations/preloader/batch.rb:40 def group_and_load_similar(loaders); end - # Returns the value of attribute loaders. - # - # source://activerecord//lib/active_record/associations/preloader/batch.rb#38 + # pkg:gem/activerecord#lib/active_record/associations/preloader/batch.rb:38 def loaders; end end -# source://activerecord//lib/active_record/associations/preloader/branch.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:6 class ActiveRecord::Associations::Preloader::Branch - # @return [Branch] a new instance of Branch - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#11 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:11 def initialize(association:, children:, parent:, associate_by_default:, scope:); end - # Returns the value of attribute associate_by_default. - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#8 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:8 def associate_by_default; end - # Returns the value of attribute association. - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:7 def association; end - # Returns the value of attribute children. - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:7 def children; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#72 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:72 def done?; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#27 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:27 def future_classes; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#80 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:80 def grouped_records; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#31 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:31 def immediate_future_classes; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#53 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:53 def likely_reflections; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#118 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:118 def loaders; end - # Returns the value of attribute parent. - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:7 def parent; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#108 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:108 def polymorphic?; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#68 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:68 def preloaded_records; end - # Sets the attribute preloaded_records - # - # @param value the value to set the attribute preloaded_records to. - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#9 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:9 def preloaded_records=(_arg0); end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#91 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:91 def preloaders_for_reflection(reflection, reflection_records); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#60 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:60 def root?; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#76 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:76 def runnable_loaders; end - # Returns the value of attribute scope. - # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#8 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:8 def scope; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#64 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:64 def source_records; end - # source://activerecord//lib/active_record/associations/preloader/branch.rb#43 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:43 def target_classes; end private - # source://activerecord//lib/active_record/associations/preloader/branch.rb#126 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:126 def build_children(children); end # Returns a class containing the logic needed to load preload the data # and attach it to a relation. The class returned implements a `run` method # that accepts a preloader. # - # source://activerecord//lib/active_record/associations/preloader/branch.rb#143 + # pkg:gem/activerecord#lib/active_record/associations/preloader/branch.rb:143 def preloader_for(reflection); end end -# source://activerecord//lib/active_record/associations/preloader/through_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:6 class ActiveRecord::Associations::Preloader::ThroughAssociation < ::ActiveRecord::Associations::Preloader::Association - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#49 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:49 def future_classes; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:7 def preloaded_records; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#11 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:11 def records_by_owner; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#39 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:39 def runnable_loaders; end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#65 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:65 def data_available?; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#74 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:74 def middle_records; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#98 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:98 def preload_index; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#70 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:70 def source_preloaders; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#90 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:90 def source_records_by_owner; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#86 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:86 def source_reflection; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#78 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:78 def through_preloaders; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#94 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:94 def through_records_by_owner; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#82 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:82 def through_reflection; end - # source://activerecord//lib/active_record/associations/preloader/through_association.rb#104 + # pkg:gem/activerecord#lib/active_record/associations/preloader/through_association.rb:104 def through_scope; end end -# source://activerecord//lib/active_record/associations/singular_association.rb#5 +# pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:6 class ActiveRecord::Associations::SingularAssociation < ::ActiveRecord::Associations::Association - # source://activerecord//lib/active_record/associations/singular_association.rb#29 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:29 def build(attributes = T.unsafe(nil), &block); end # Implements the reload reader method, e.g. foo.reload_bar for # Foo.has_one :bar # - # source://activerecord//lib/active_record/associations/singular_association.rb#37 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:37 def force_reload_reader; end # Implements the reader method, e.g. foo.bar for Foo.has_one :bar # - # source://activerecord//lib/active_record/associations/singular_association.rb#7 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:7 def reader; end # Resets the \loaded flag to +false+ and sets the \target to +nil+. # - # source://activerecord//lib/active_record/associations/singular_association.rb#18 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:18 def reset; end # Implements the writer method, e.g. foo.bar= for Foo.belongs_to :bar # - # source://activerecord//lib/active_record/associations/singular_association.rb#25 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:25 def writer(record); end private - # @raise [RecordInvalid] - # - # source://activerecord//lib/active_record/associations/singular_association.rb#67 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:67 def _create_record(attributes, raise_error = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/associations/singular_association.rb#47 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:47 def find_target(async: T.unsafe(nil)); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/associations/singular_association.rb#59 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:59 def replace(record); end - # source://activerecord//lib/active_record/associations/singular_association.rb#43 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:43 def scope_for_create; end - # source://activerecord//lib/active_record/associations/singular_association.rb#63 + # pkg:gem/activerecord#lib/active_record/associations/singular_association.rb:63 def set_new_record(record); end end # = Active Record Through Association # -# source://activerecord//lib/active_record/associations/through_association.rb#6 +# pkg:gem/activerecord#lib/active_record/associations/through_association.rb:6 module ActiveRecord::Associations::ThroughAssociation - # source://activerecord//lib/active_record/associations/through_association.rb#7 - def source_reflection(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:7 + def source_reflection(*, **, &); end private - # source://activerecord//lib/active_record/associations/through_association.rb#116 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:116 def build_record(attributes); end # Construct attributes for :through pointing to owner and associate. This is used by the @@ -6074,24 +5731,22 @@ module ActiveRecord::Associations::ThroughAssociation # situation it is more natural for the user to just create or modify their join records # directly as required. # - # source://activerecord//lib/active_record/associations/through_association.rb#57 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:57 def construct_join_attributes(*records); end - # source://activerecord//lib/active_record/associations/through_association.rb#96 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:96 def ensure_mutable; end - # source://activerecord//lib/active_record/associations/through_association.rb#106 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:106 def ensure_not_nested; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/associations/through_association.rb#90 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:90 def foreign_key_present?; end # Note: this does not capture all cases, for example it would be impractical # to try to properly support stale-checking for nested associations. # - # source://activerecord//lib/active_record/associations/through_association.rb#82 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:82 def stale_state; end # We merge in these scopes for two reasons: @@ -6099,77 +5754,71 @@ module ActiveRecord::Associations::ThroughAssociation # 1. To get the default_scope conditions for any of the other reflections in the chain # 2. To get the type conditions for any STI models in the chain # - # source://activerecord//lib/active_record/associations/through_association.rb#34 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:34 def target_scope; end - # source://activerecord//lib/active_record/associations/through_association.rb#26 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:26 def through_association; end - # source://activerecord//lib/active_record/associations/through_association.rb#14 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:14 def through_reflection; end - # source://activerecord//lib/active_record/associations/through_association.rb#10 + # pkg:gem/activerecord#lib/active_record/associations/through_association.rb:10 def transaction(&block); end end -# source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#7 +# pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:7 class ActiveRecord::AsynchronousQueriesTracker - # @return [AsynchronousQueriesTracker] a new instance of AsynchronousQueriesTracker - # - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#45 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:45 def initialize; end - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#49 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:49 def current_session; end - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#58 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:58 def finalize_session(wait = T.unsafe(nil)); end - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#53 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:53 def start_session; end class << self - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#40 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:40 def complete(asynchronous_queries_tracker); end - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#32 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:32 def install_executor_hooks(executor = T.unsafe(nil)); end - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#36 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:36 def run; end end end -# source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#8 +# pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:8 class ActiveRecord::AsynchronousQueriesTracker::Session - # @return [Session] a new instance of Session - # - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#9 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:9 def initialize; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#14 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:14 def active?; end - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#22 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:22 def finalize(wait = T.unsafe(nil)); end - # source://activerecord//lib/active_record/asynchronous_queries_tracker.rb#18 + # pkg:gem/activerecord#lib/active_record/asynchronous_queries_tracker.rb:18 def synchronize(&block); end end # AsynchronousQueryInsideTransactionError will be raised when attempting # to perform an asynchronous query from inside a transaction # -# source://activerecord//lib/active_record/errors.rb#536 +# pkg:gem/activerecord#lib/active_record/errors.rb:536 class ActiveRecord::AsynchronousQueryInsideTransactionError < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/attribute_assignment.rb#4 +# pkg:gem/activerecord#lib/active_record/attribute_assignment.rb:4 module ActiveRecord::AttributeAssignment private - # source://activerecord//lib/active_record/attribute_assignment.rb#6 + # pkg:gem/activerecord#lib/active_record/attribute_assignment.rb:6 def _assign_attributes(attributes); end # Instantiates objects for all attribute classes that needs more than one constructor parameter. This is done @@ -6179,24 +5828,24 @@ module ActiveRecord::AttributeAssignment # parentheses to have the parameters typecasted before they're used in the constructor. Use i for Integer and # f for Float. If all the values for a given attribute are empty, the attribute will be set to +nil+. # - # source://activerecord//lib/active_record/attribute_assignment.rb#36 + # pkg:gem/activerecord#lib/active_record/attribute_assignment.rb:36 def assign_multiparameter_attributes(pairs); end # Assign any deferred nested attributes after the base attributes have been set. # - # source://activerecord//lib/active_record/attribute_assignment.rb#26 + # pkg:gem/activerecord#lib/active_record/attribute_assignment.rb:26 def assign_nested_parameter_attributes(pairs); end - # source://activerecord//lib/active_record/attribute_assignment.rb#42 + # pkg:gem/activerecord#lib/active_record/attribute_assignment.rb:42 def execute_callstack_for_multiparameter_attributes(callstack); end - # source://activerecord//lib/active_record/attribute_assignment.rb#60 + # pkg:gem/activerecord#lib/active_record/attribute_assignment.rb:60 def extract_callstack_for_multiparameter_attributes(pairs); end - # source://activerecord//lib/active_record/attribute_assignment.rb#78 + # pkg:gem/activerecord#lib/active_record/attribute_assignment.rb:78 def find_parameter_position(multiparameter_name); end - # source://activerecord//lib/active_record/attribute_assignment.rb#74 + # pkg:gem/activerecord#lib/active_record/attribute_assignment.rb:74 def type_cast_attribute_value(multiparameter_name, value); end end @@ -6204,27 +5853,21 @@ end # {ActiveRecord::Base#attributes=}[rdoc-ref:ActiveModel::AttributeAssignment#attributes=] method. # The exception has an +attribute+ property that is the name of the offending attribute. # -# source://activerecord//lib/active_record/errors.rb#449 +# pkg:gem/activerecord#lib/active_record/errors.rb:449 class ActiveRecord::AttributeAssignmentError < ::ActiveRecord::ActiveRecordError - # @return [AttributeAssignmentError] a new instance of AttributeAssignmentError - # - # source://activerecord//lib/active_record/errors.rb#452 + # pkg:gem/activerecord#lib/active_record/errors.rb:452 def initialize(message = T.unsafe(nil), exception = T.unsafe(nil), attribute = T.unsafe(nil)); end - # Returns the value of attribute attribute. - # - # source://activerecord//lib/active_record/errors.rb#450 + # pkg:gem/activerecord#lib/active_record/errors.rb:450 def attribute; end - # Returns the value of attribute exception. - # - # source://activerecord//lib/active_record/errors.rb#450 + # pkg:gem/activerecord#lib/active_record/errors.rb:450 def exception; end end # = Active Record Attribute Methods # -# source://activerecord//lib/active_record/attribute_methods.rb#7 +# pkg:gem/activerecord#lib/active_record/attribute_methods.rb:7 module ActiveRecord::AttributeMethods extend ::ActiveSupport::Concern extend ::ActiveSupport::Autoload @@ -6271,7 +5914,7 @@ module ActiveRecord::AttributeMethods # person[:organization_id] # => ActiveModel::MissingAttributeError: missing attribute 'organization_id' for Person # person[:id] # => nil # - # source://activerecord//lib/active_record/attribute_methods.rb#415 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:415 def [](attr_name); end # Updates the attribute identified by +attr_name+ using the specified @@ -6284,12 +5927,10 @@ module ActiveRecord::AttributeMethods # person[:date_of_birth] = "2004-12-12" # person[:date_of_birth] # => Date.new(2004, 12, 12) # - # source://activerecord//lib/active_record/attribute_methods.rb#428 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:428 def []=(attr_name, value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#322 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:322 def _has_attribute?(attr_name); end # Returns the name of all database fields which have been read from this @@ -6321,7 +5962,7 @@ module ActiveRecord::AttributeMethods # end # end # - # source://activerecord//lib/active_record/attribute_methods.rb#460 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:460 def accessed_fields; end # Returns an #inspect-like string for the value of the @@ -6340,7 +5981,7 @@ module ActiveRecord::AttributeMethods # person.attribute_for_inspect(:tag_ids) # # => "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]" # - # source://activerecord//lib/active_record/attribute_methods.rb#365 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:365 def attribute_for_inspect(attr_name); end # Returns an array of names for the attributes available on this object. @@ -6352,7 +5993,7 @@ module ActiveRecord::AttributeMethods # person.attribute_names # # => ["id", "created_at", "updated_at", "name", "age"] # - # source://activerecord//lib/active_record/attribute_methods.rb#334 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:334 def attribute_names; end # Returns +true+ if the specified +attribute+ has been set by the user or by a @@ -6371,9 +6012,7 @@ module ActiveRecord::AttributeMethods # task.attribute_present?(:title) # => true # task.attribute_present?(:is_done) # => true # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#387 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:387 def attribute_present?(attr_name); end # Returns a hash of all the attributes with their names as keys and the values of the attributes as values. @@ -6385,7 +6024,7 @@ module ActiveRecord::AttributeMethods # person.attributes # # => {"id"=>3, "created_at"=>Sun, 21 Oct 2012 04:53:04, "updated_at"=>Sun, 21 Oct 2012 04:53:04, "name"=>"Francesco", "age"=>22} # - # source://activerecord//lib/active_record/attribute_methods.rb#346 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:346 def attributes; end # Returns +true+ if the given attribute is in the attributes hash, otherwise +false+. @@ -6400,9 +6039,7 @@ module ActiveRecord::AttributeMethods # person.has_attribute?('age') # => true # person.has_attribute?(:nothing) # => false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#316 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:316 def has_attribute?(attr_name); end # A Person object with a name attribute can ask person.respond_to?(:name), @@ -6422,50 +6059,42 @@ module ActiveRecord::AttributeMethods # person.respond_to?('age?') # => true # person.respond_to?(:nothing) # => false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#291 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:291 def respond_to?(name, include_private = T.unsafe(nil)); end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#499 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:499 def attribute_method?(attr_name); end # Filters out the virtual columns and also primary keys, from the attribute names, when the primary # key is to be generated (e.g. the id attribute has no value). # - # source://activerecord//lib/active_record/attribute_methods.rb#519 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:519 def attributes_for_create(attribute_names); end # Filters the primary keys, readonly attributes and virtual columns from the attribute names. # - # source://activerecord//lib/active_record/attribute_methods.rb#508 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:508 def attributes_for_update(attribute_names); end - # source://activerecord//lib/active_record/attribute_methods.rb#503 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:503 def attributes_with_values(attribute_names); end - # source://activerecord//lib/active_record/attribute_methods.rb#527 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:527 def format_for_inspect(name, value); end - # source://activerecord//lib/active_record/attribute_methods.rb#475 - def method_missing(name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:475 + def method_missing(name, *, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#543 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:543 def pk_attribute?(name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#465 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:465 def respond_to_missing?(name, include_private = T.unsafe(nil)); end class << self - # source://activerecord//lib/active_record/attribute_methods.rb#30 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:30 def dangerous_attribute_methods; end end @@ -6538,7 +6167,7 @@ end # task.id_before_type_cast # => "1" # task.completed_on_before_type_cast # => "2012-10-21" # -# source://activerecord//lib/active_record/attribute_methods/before_type_cast.rb#28 +# pkg:gem/activerecord#lib/active_record/attribute_methods/before_type_cast.rb:28 module ActiveRecord::AttributeMethods::BeforeTypeCast extend ::ActiveSupport::Concern @@ -6553,12 +6182,12 @@ module ActiveRecord::AttributeMethods::BeforeTypeCast # task.attributes_before_type_cast # # => {"id"=>nil, "title"=>nil, "is_done"=>true, "completed_on"=>"2012-10-21", "created_at"=>nil, "updated_at"=>nil} # - # source://activerecord//lib/active_record/attribute_methods/before_type_cast.rb#82 + # pkg:gem/activerecord#lib/active_record/attribute_methods/before_type_cast.rb:82 def attributes_before_type_cast; end # Returns a hash of attributes for assignment to the database. # - # source://activerecord//lib/active_record/attribute_methods/before_type_cast.rb#87 + # pkg:gem/activerecord#lib/active_record/attribute_methods/before_type_cast.rb:87 def attributes_for_database; end # Returns the value of the attribute identified by +attr_name+ before @@ -6574,7 +6203,7 @@ module ActiveRecord::AttributeMethods::BeforeTypeCast # task.read_attribute_before_type_cast('completed_on') # => "2012-10-21" # task.read_attribute_before_type_cast(:completed_on) # => "2012-10-21" # - # source://activerecord//lib/active_record/attribute_methods/before_type_cast.rb#48 + # pkg:gem/activerecord#lib/active_record/attribute_methods/before_type_cast.rb:48 def read_attribute_before_type_cast(attr_name); end # Returns the value of the attribute identified by +attr_name+ after @@ -6588,30 +6217,26 @@ module ActiveRecord::AttributeMethods::BeforeTypeCast # book.read_attribute(:status) # => "published" # book.read_attribute_for_database(:status) # => 2 # - # source://activerecord//lib/active_record/attribute_methods/before_type_cast.rb#65 + # pkg:gem/activerecord#lib/active_record/attribute_methods/before_type_cast.rb:65 def read_attribute_for_database(attr_name); end private # Dispatch target for *_before_type_cast attribute methods. # - # source://activerecord//lib/active_record/attribute_methods/before_type_cast.rb#93 + # pkg:gem/activerecord#lib/active_record/attribute_methods/before_type_cast.rb:93 def attribute_before_type_cast(attr_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/before_type_cast.rb#101 + # pkg:gem/activerecord#lib/active_record/attribute_methods/before_type_cast.rb:101 def attribute_came_from_user?(attr_name); end - # source://activerecord//lib/active_record/attribute_methods/before_type_cast.rb#97 + # pkg:gem/activerecord#lib/active_record/attribute_methods/before_type_cast.rb:97 def attribute_for_database(attr_name); end end -# source://activerecord//lib/active_record/attribute_methods.rb#41 +# pkg:gem/activerecord#lib/active_record/attribute_methods.rb:41 module ActiveRecord::AttributeMethods::ClassMethods - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#260 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:260 def _has_attribute?(attr_name); end # Allows you to make aliases for attributes. @@ -6629,10 +6254,10 @@ module ActiveRecord::AttributeMethods::ClassMethods # Person.where(nickname: "Bob") # # SELECT "people".* FROM "people" WHERE "people"."name" = "Bob" # - # source://activerecord//lib/active_record/attribute_methods.rb#66 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:66 def alias_attribute(new_name, old_name); end - # source://activerecord//lib/active_record/attribute_methods.rb#87 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:87 def alias_attribute_method_definition(code_generator, pattern, new_name, old_name); end # Returns +true+ if +attribute+ is an attribute method and table exists, @@ -6645,14 +6270,10 @@ module ActiveRecord::AttributeMethods::ClassMethods # Person.attribute_method?(:age=) # => true # Person.attribute_method?(:nothing) # => false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#224 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:224 def attribute_method?(attribute); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#98 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:98 def attribute_methods_generated?; end # Returns an array of column names as strings if it's not an abstract class and @@ -6664,38 +6285,34 @@ module ActiveRecord::AttributeMethods::ClassMethods # Person.attribute_names # # => ["id", "created_at", "updated_at", "name", "age"] # - # source://activerecord//lib/active_record/attribute_methods.rb#236 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:236 def attribute_names; end # A method name is 'dangerous' if it is already (re)defined by Active Record, but # not by any ancestors. (So 'puts' is not dangerous but 'save' is.) # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#183 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:183 def dangerous_attribute_method?(name); end # A class method is 'dangerous' if it is already (re)defined by Active Record, but # not by any ancestors. (So 'puts' is not dangerous but 'new' is.) # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#201 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:201 def dangerous_class_method?(method_name); end # Generates all the attribute related methods for columns in the database # accessors, mutators and query methods. # - # source://activerecord//lib/active_record/attribute_methods.rb#104 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:104 def define_attribute_methods; end - # source://activerecord//lib/active_record/attribute_methods.rb#76 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:76 def eagerly_generate_alias_attribute_methods(_new_name, _old_name); end - # source://activerecord//lib/active_record/attribute_methods.rb#80 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:80 def generate_alias_attribute_methods(code_generator, new_name, old_name); end - # source://activerecord//lib/active_record/attribute_methods.rb#127 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:127 def generate_alias_attributes; end # Returns true if the given attribute exists, otherwise false. @@ -6709,12 +6326,10 @@ module ActiveRecord::AttributeMethods::ClassMethods # Person.has_attribute?(:age) # => true # Person.has_attribute?(:nothing) # => false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#254 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:254 def has_attribute?(attr_name); end - # source://activerecord//lib/active_record/attribute_methods.rb#42 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:42 def initialize_generated_modules; end # Raises an ActiveRecord::DangerousAttributeError exception when an @@ -6732,71 +6347,63 @@ module ActiveRecord::AttributeMethods::ClassMethods # Person.instance_method_already_implemented?(:name) # # => false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#165 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:165 def instance_method_already_implemented?(method_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods.rb#187 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:187 def method_defined_within?(name, klass, superklass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/attribute_methods.rb#143 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:143 def undefine_attribute_methods; end private - # source://activerecord//lib/active_record/attribute_methods.rb#265 + # pkg:gem/activerecord#lib/active_record/attribute_methods.rb:265 def inherited(child_class); end end -# source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#5 +# pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:5 module ActiveRecord::AttributeMethods::CompositePrimaryKey # Returns the primary key column's value. If the primary key is composite, # returns an array of the primary key column values. # - # source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#8 + # pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:8 def id; end # Sets the primary key column's value. If the primary key is composite, # raises TypeError when the set value not enumerable. # - # source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#26 + # pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:26 def id=(value); end # Queries the primary key column's value. If the primary key is composite, # all primary key column values must be queryable. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#37 + # pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:37 def id?; end # Returns the primary key column's value before type cast. If the primary key is composite, # returns an array of primary key column values before type cast. # - # source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#47 + # pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:47 def id_before_type_cast; end - # source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#75 + # pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:75 def id_for_database; end # Returns the primary key column's value from the database. If the primary key is composite, # returns an array of primary key column values from database. # - # source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#67 + # pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:67 def id_in_database; end # Returns the primary key column's previous value. If the primary key is composite, # returns an array of primary key column previous values. # - # source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#57 + # pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:57 def id_was; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/composite_primary_key.rb#16 + # pkg:gem/activerecord#lib/active_record/attribute_methods/composite_primary_key.rb:16 def primary_key_values_present?; end end @@ -6833,7 +6440,7 @@ end # +saved_change_to_name?+ or by passing an argument to the generic method # saved_change_to_attribute?("name"). # -# source://activerecord//lib/active_record/attribute_methods/dirty.rb#39 +# pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:39 module ActiveRecord::AttributeMethods::Dirty extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -6850,7 +6457,7 @@ module ActiveRecord::AttributeMethods::Dirty # invoked as +name_before_last_save+ instead of # attribute_before_last_save("name"). # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#108 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:108 def attribute_before_last_save(attr_name); end # Returns the change to an attribute that will be persisted during the @@ -6864,7 +6471,7 @@ module ActiveRecord::AttributeMethods::Dirty # If the attribute will change, the result will be an array containing the # original value and the new value about to be saved. # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#152 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:152 def attribute_change_to_be_saved(attr_name); end # Returns the value of an attribute in the database, as opposed to the @@ -6876,7 +6483,7 @@ module ActiveRecord::AttributeMethods::Dirty # saved. It can be invoked as +name_in_database+ instead of # attribute_in_database("name"). # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#164 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:164 def attribute_in_database(attr_name); end # Returns a hash of the attributes that will change when the record is @@ -6886,32 +6493,30 @@ module ActiveRecord::AttributeMethods::Dirty # original attribute values in the database (as opposed to the in-memory # values about to be saved). # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#191 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:191 def attributes_in_database; end # Returns an array of the names of any attributes that will change when # the record is next saved. # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#181 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:181 def changed_attribute_names_to_save; end # Returns a hash containing all the changes that will be persisted during # the next save. # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#175 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:175 def changes_to_save; end # Will the next call to +save+ have any changes to persist? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#169 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:169 def has_changes_to_save?; end # reload the record and clears changed attributes. # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#63 - def reload(*_arg0); end + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:63 + def reload(*); end # Returns the change to an attribute during the last save. If the # attribute was changed, the result will be an array containing the @@ -6922,7 +6527,7 @@ module ActiveRecord::AttributeMethods::Dirty # invoked as +saved_change_to_name+ instead of # saved_change_to_attribute("name"). # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#98 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:98 def saved_change_to_attribute(attr_name); end # Did this attribute change when we last saved? @@ -6942,21 +6547,17 @@ module ActiveRecord::AttributeMethods::Dirty # When specified, this method will return false unless the value will be # changed to the given value. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#86 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:86 def saved_change_to_attribute?(attr_name, **options); end # Returns a hash containing all the changes that were just saved. # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#118 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:118 def saved_changes; end # Did the last call to +save+ have any changes to change? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#113 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:113 def saved_changes?; end # Will this attribute change the next time we save? @@ -6976,29 +6577,27 @@ module ActiveRecord::AttributeMethods::Dirty # When specified, this method will return false unless the value will be # changed to the given value. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#138 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:138 def will_save_change_to_attribute?(attr_name, **options); end private - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#239 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:239 def _create_record(attribute_names = T.unsafe(nil)); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#204 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:204 def _touch_row(attribute_names, time); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#233 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:233 def _update_record(attribute_names = T.unsafe(nil)); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#249 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:249 def attribute_names_for_partial_inserts; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#245 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:245 def attribute_names_for_partial_updates; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#196 + # pkg:gem/activerecord#lib/active_record/attribute_methods/dirty.rb:196 def init_internals; end module GeneratedClassMethods @@ -7028,15 +6627,15 @@ module ActiveRecord::AttributeMethods::Dirty end end -# source://activerecord//lib/active_record/attribute_methods.rb#25 +# pkg:gem/activerecord#lib/active_record/attribute_methods.rb:25 class ActiveRecord::AttributeMethods::GeneratedAttributeMethods < ::Module; end -# source://activerecord//lib/active_record/attribute_methods.rb#26 +# pkg:gem/activerecord#lib/active_record/attribute_methods.rb:26 ActiveRecord::AttributeMethods::GeneratedAttributeMethods::LOCK = T.let(T.unsafe(nil), Monitor) # = Active Record Attribute Methods Primary Key # -# source://activerecord//lib/active_record/attribute_methods/primary_key.rb#6 +# pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:6 module ActiveRecord::AttributeMethods::PrimaryKey extend ::ActiveSupport::Concern @@ -7045,88 +6644,76 @@ module ActiveRecord::AttributeMethods::PrimaryKey # Returns the primary key column's value. If the primary key is composite, # returns an array of the primary key column values. # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#18 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:18 def id; end # Sets the primary key column's value. If the primary key is composite, # raises TypeError when the set value not enumerable. # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#28 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:28 def id=(value); end # Queries the primary key column's value. If the primary key is composite, # all primary key column values must be queryable. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#34 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:34 def id?; end # Returns the primary key column's value before type cast. If the primary key is composite, # returns an array of primary key column values before type cast. # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#40 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:40 def id_before_type_cast; end - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#56 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:56 def id_for_database; end # Returns the primary key column's value from the database. If the primary key is composite, # returns an array of primary key column values from database. # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#52 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:52 def id_in_database; end # Returns the primary key column's previous value. If the primary key is composite, # returns an array of primary key column previous values. # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#46 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:46 def id_was; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#22 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:22 def primary_key_values_present?; end # Returns this record's primary key value wrapped in an array if one is # available. # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#11 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:11 def to_key; end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#61 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:61 def attribute_method?(attr_name); end end -# source://activerecord//lib/active_record/attribute_methods/primary_key.rb#65 +# pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:65 module ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#85 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:85 def composite_primary_key?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#73 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:73 def dangerous_attribute_method?(method_name); end - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#103 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:103 def get_primary_key(base_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#69 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:69 def instance_method_already_implemented?(method_name); end # Defines the primary key field -- can be overridden in subclasses. # Overwriting will negate any effect of the +primary_key_prefix_type+ # setting, though. # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#80 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:80 def primary_key; end # Sets the name of the primary key column. @@ -7145,27 +6732,27 @@ module ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods # # Project.primary_key # => "foo_id" # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#130 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:130 def primary_key=(value); end # Returns a quoted version of the primary key name. # - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#91 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:91 def quoted_primary_key; end - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#95 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:95 def reset_primary_key; end private - # source://activerecord//lib/active_record/attribute_methods/primary_key.rb#143 + # pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:143 def inherited(base); end end -# source://activerecord//lib/active_record/attribute_methods/primary_key.rb#66 +# pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:66 ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods::ID_ATTRIBUTE_METHODS = T.let(T.unsafe(nil), Set) -# source://activerecord//lib/active_record/attribute_methods/primary_key.rb#67 +# pkg:gem/activerecord#lib/active_record/attribute_methods/primary_key.rb:67 ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods::PRIMARY_KEY_NOT_SET = T.let(T.unsafe(nil), BasicObject) # = Active Record Attribute Methods \Query @@ -7202,37 +6789,34 @@ ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods::PRIMARY_KEY_NOT_SET = # product.name = "Orange" # product.name? # => true # -# source://activerecord//lib/active_record/attribute_methods/query.rb#38 +# pkg:gem/activerecord#lib/active_record/attribute_methods/query.rb:38 module ActiveRecord::AttributeMethods::Query extend ::ActiveSupport::Concern - # source://activerecord//lib/active_record/attribute_methods/query.rb#53 + # pkg:gem/activerecord#lib/active_record/attribute_methods/query.rb:53 def _query_attribute(attr_name); end # Returns +true+ or +false+ for the attribute identified by +attr_name+, # depending on the attribute type and value. # - # source://activerecord//lib/active_record/attribute_methods/query.rb#47 + # pkg:gem/activerecord#lib/active_record/attribute_methods/query.rb:47 def query_attribute(attr_name); end private - # Returns +true+ or +false+ for the attribute identified by +attr_name+, - # depending on the attribute type and value. - # - # source://activerecord//lib/active_record/attribute_methods/query.rb#47 + # pkg:gem/activerecord#lib/active_record/attribute_methods/query.rb:59 def attribute?(attr_name); end - # source://activerecord//lib/active_record/attribute_methods/query.rb#63 + # pkg:gem/activerecord#lib/active_record/attribute_methods/query.rb:63 def query_cast_attribute(attr_name, value); end end -# source://activerecord//lib/active_record/attribute_methods.rb#23 +# pkg:gem/activerecord#lib/active_record/attribute_methods.rb:23 ActiveRecord::AttributeMethods::RESTRICTED_CLASS_METHODS = T.let(T.unsafe(nil), Array) # = Active Record Attribute Methods \Read # -# source://activerecord//lib/active_record/attribute_methods/read.rb#6 +# pkg:gem/activerecord#lib/active_record/attribute_methods/read.rb:6 module ActiveRecord::AttributeMethods::Read extend ::ActiveSupport::Concern @@ -7241,7 +6825,7 @@ module ActiveRecord::AttributeMethods::Read # This method exists to avoid the expensive primary_key check internally, without # breaking compatibility with the read_attribute API # - # source://activerecord//lib/active_record/attribute_methods/read.rb#38 + # pkg:gem/activerecord#lib/active_record/attribute_methods/read.rb:38 def _read_attribute(attr_name, &block); end # Returns the value of the attribute identified by +attr_name+ after it @@ -7249,29 +6833,26 @@ module ActiveRecord::AttributeMethods::Read # to Date.new(2004, 12, 12). (For information about specific type # casting behavior, see the types under ActiveModel::Type.) # - # source://activerecord//lib/active_record/attribute_methods/read.rb#29 + # pkg:gem/activerecord#lib/active_record/attribute_methods/read.rb:29 def read_attribute(attr_name, &block); end private - # This method exists to avoid the expensive primary_key check internally, without - # breaking compatibility with the read_attribute API - # - # source://activerecord//lib/active_record/attribute_methods/read.rb#38 + # pkg:gem/activerecord#lib/active_record/attribute_methods/read.rb:42 def attribute(attr_name, &block); end end -# source://activerecord//lib/active_record/attribute_methods/read.rb#9 +# pkg:gem/activerecord#lib/active_record/attribute_methods/read.rb:9 module ActiveRecord::AttributeMethods::Read::ClassMethods private - # source://activerecord//lib/active_record/attribute_methods/read.rb#11 + # pkg:gem/activerecord#lib/active_record/attribute_methods/read.rb:11 def define_method_attribute(canonical_name, owner:, as: T.unsafe(nil)); end end # = Active Record Attribute Methods \Serialization # -# source://activerecord//lib/active_record/attribute_methods/serialization.rb#6 +# pkg:gem/activerecord#lib/active_record/attribute_methods/serialization.rb:6 module ActiveRecord::AttributeMethods::Serialization extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7288,7 +6869,7 @@ module ActiveRecord::AttributeMethods::Serialization module GeneratedInstanceMethods; end end -# source://activerecord//lib/active_record/attribute_methods/serialization.rb#23 +# pkg:gem/activerecord#lib/active_record/attribute_methods/serialization.rb:23 module ActiveRecord::AttributeMethods::Serialization::ClassMethods # If you have an attribute that needs to be saved to the database as a # serialized object, and retrieved by deserializing into the same object, @@ -7449,29 +7030,25 @@ module ActiveRecord::AttributeMethods::Serialization::ClassMethods # serialize :preferences, coder: Rot13JSON # end # - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#183 + # pkg:gem/activerecord#lib/active_record/attribute_methods/serialization.rb:183 def serialize(attr_name, coder: T.unsafe(nil), type: T.unsafe(nil), yaml: T.unsafe(nil), **options); end private - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#208 + # pkg:gem/activerecord#lib/active_record/attribute_methods/serialization.rb:208 def build_column_serializer(attr_name, coder, type, yaml = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#225 + # pkg:gem/activerecord#lib/active_record/attribute_methods/serialization.rb:225 def type_incompatible_with_serialize?(cast_type, coder, type); end end -# source://activerecord//lib/active_record/attribute_methods/serialization.rb#9 +# pkg:gem/activerecord#lib/active_record/attribute_methods/serialization.rb:9 class ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError < ::StandardError - # @return [ColumnNotSerializableError] a new instance of ColumnNotSerializableError - # - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#10 + # pkg:gem/activerecord#lib/active_record/attribute_methods/serialization.rb:10 def initialize(name, type); end end -# source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#7 +# pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:7 module ActiveRecord::AttributeMethods::TimeZoneConversion extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -7501,47 +7078,45 @@ module ActiveRecord::AttributeMethods::TimeZoneConversion end end -# source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#65 +# pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:65 module ActiveRecord::AttributeMethods::TimeZoneConversion::ClassMethods private - # @return [Boolean] - # - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#75 + # pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:75 def create_time_zone_conversion_attribute?(name, cast_type); end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:67 def hook_attribute_type(name, cast_type); end end -# source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#8 +# pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:8 class ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#35 + # pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:35 def ==(other); end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#17 + # pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:17 def cast(value); end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#13 + # pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:13 def deserialize(value); end private - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#40 + # pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:40 def convert_time_to_time_zone(value); end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#52 + # pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:52 def set_time_zone_without_conversion(value); end class << self - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#9 + # pkg:gem/activerecord#lib/active_record/attribute_methods/time_zone_conversion.rb:9 def new(subtype); end end end # = Active Record Attribute Methods \Write # -# source://activerecord//lib/active_record/attribute_methods/write.rb#6 +# pkg:gem/activerecord#lib/active_record/attribute_methods/write.rb:6 module ActiveRecord::AttributeMethods::Write extend ::ActiveSupport::Concern @@ -7550,35 +7125,32 @@ module ActiveRecord::AttributeMethods::Write # This method exists to avoid the expensive primary_key check internally, without # breaking compatibility with the write_attribute API # - # source://activerecord//lib/active_record/attribute_methods/write.rb#41 + # pkg:gem/activerecord#lib/active_record/attribute_methods/write.rb:41 def _write_attribute(attr_name, value); end # Updates the attribute identified by +attr_name+ using the specified # +value+. The attribute value will be type cast upon being read. # - # source://activerecord//lib/active_record/attribute_methods/write.rb#31 + # pkg:gem/activerecord#lib/active_record/attribute_methods/write.rb:31 def write_attribute(attr_name, value); end private - # This method exists to avoid the expensive primary_key check internally, without - # breaking compatibility with the write_attribute API - # - # source://activerecord//lib/active_record/attribute_methods/write.rb#41 + # pkg:gem/activerecord#lib/active_record/attribute_methods/write.rb:45 def attribute=(attr_name, value); end end -# source://activerecord//lib/active_record/attribute_methods/write.rb#13 +# pkg:gem/activerecord#lib/active_record/attribute_methods/write.rb:13 module ActiveRecord::AttributeMethods::Write::ClassMethods private - # source://activerecord//lib/active_record/attribute_methods/write.rb#15 + # pkg:gem/activerecord#lib/active_record/attribute_methods/write.rb:15 def define_method_attribute=(canonical_name, owner:, as: T.unsafe(nil)); end end # See ActiveRecord::Attributes::ClassMethods for documentation # -# source://activerecord//lib/active_record/attributes.rb#7 +# pkg:gem/activerecord#lib/active_record/attributes.rb:7 module ActiveRecord::Attributes extend ::ActiveSupport::Concern include ::ActiveModel::AttributeRegistration @@ -7589,9 +7161,9 @@ end # = Active Record \Attributes # -# source://activerecord//lib/active_record/attributes.rb#12 +# pkg:gem/activerecord#lib/active_record/attributes.rb:12 module ActiveRecord::Attributes::ClassMethods - # source://activerecord//lib/active_record/attributes.rb#252 + # pkg:gem/activerecord#lib/active_record/attributes.rb:252 def _default_attributes; end # This API only accepts type objects, and will do its work immediately instead of @@ -7616,30 +7188,30 @@ module ActiveRecord::Attributes::ClassMethods # [+user_provided_default+] # Whether the default value should be cast using +cast+ or +deserialize+. # - # source://activerecord//lib/active_record/attributes.rb#242 + # pkg:gem/activerecord#lib/active_record/attributes.rb:242 def define_attribute(name, cast_type, default: T.unsafe(nil), user_provided_default: T.unsafe(nil)); end protected - # source://activerecord//lib/active_record/attributes.rb#279 - def reload_schema_from_cache(*_arg0); end + # pkg:gem/activerecord#lib/active_record/attributes.rb:279 + def reload_schema_from_cache(*); end private - # source://activerecord//lib/active_record/attributes.rb#288 + # pkg:gem/activerecord#lib/active_record/attributes.rb:288 def define_default_attribute(name, value, type, from_user:); end - # source://activerecord//lib/active_record/attributes.rb#304 + # pkg:gem/activerecord#lib/active_record/attributes.rb:304 def reset_default_attributes; end - # source://activerecord//lib/active_record/attributes.rb#308 + # pkg:gem/activerecord#lib/active_record/attributes.rb:308 def resolve_type_name(name, **options); end - # source://activerecord//lib/active_record/attributes.rb#312 + # pkg:gem/activerecord#lib/active_record/attributes.rb:312 def type_for_column(connection, column); end end -# source://activerecord//lib/active_record/attributes.rb#285 +# pkg:gem/activerecord#lib/active_record/attributes.rb:285 ActiveRecord::Attributes::ClassMethods::NO_DEFAULT_PROVIDED = T.let(T.unsafe(nil), Object) # = Active Record Autosave Association @@ -7777,36 +7349,32 @@ ActiveRecord::Attributes::ClassMethods::NO_DEFAULT_PROVIDED = T.let(T.unsafe(nil # exception is if a custom validation context is used, in which case the validations # will always fire on the associated records. # -# source://activerecord//lib/active_record/autosave_association.rb#140 +# pkg:gem/activerecord#lib/active_record/autosave_association.rb:140 module ActiveRecord::AutosaveAssociation extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::AutosaveAssociation::ClassMethods - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#284 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:284 def autosaving_belongs_to_for?(association); end # Returns whether or not this record has been changed in any way (including whether # any of its nested autosave associations are likewise changed) # - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#275 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:275 def changed_for_autosave?; end # Returns the association for the parent being destroyed. # # Used to avoid updating the counter cache unnecessarily. # - # source://activerecord//lib/active_record/autosave_association.rb#269 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:269 def destroyed_by_association; end # Records the association that is being destroyed and destroying this # record in the process. # - # source://activerecord//lib/active_record/autosave_association.rb#262 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:262 def destroyed_by_association=(reflection); end # Marks this record to be destroyed as part of the parent's save transaction. @@ -7815,92 +7383,78 @@ module ActiveRecord::AutosaveAssociation # # Only useful if the :autosave option on the parent is enabled for this associated model. # - # source://activerecord//lib/active_record/autosave_association.rb#249 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:249 def mark_for_destruction; end # Returns whether or not this record will be destroyed as part of the parent's save transaction. # # Only useful if the :autosave option on the parent is enabled for this associated model. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#256 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:256 def marked_for_destruction?; end # Reloads the attributes of the object as usual and clears marked_for_destruction flag. # - # source://activerecord//lib/active_record/autosave_association.rb#238 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:238 def reload(options = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#279 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:279 def validating_belongs_to_for?(association); end private - # source://activerecord//lib/active_record/autosave_association.rb#592 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:592 def _ensure_no_duplicate_errors; end # If the record is new or it has changed, returns true. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#510 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:510 def _record_changed?(reflection, record, key); end # Is used as an around_save callback to check while saving a collection # association whether or not the parent was a new record before saving. # - # source://activerecord//lib/active_record/autosave_association.rb#402 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:402 def around_save_collection_association; end # Returns the record for an association collection that should be validated # or saved. If +autosave+ is +false+ only new records will be returned, # unless the parent is/was a new record itself. # - # source://activerecord//lib/active_record/autosave_association.rb#298 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:298 def associated_records_to_validate_or_save(association, new_record, autosave); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#517 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:517 def association_foreign_key_changed?(reflection, record, key); end # Returns whether or not the association is valid and applies any errors to # the parent, self, if it wasn't. Skips any :autosave # enabled records if they're marked_for_destruction? or destroyed. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#371 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:371 def association_valid?(association, record); end - # source://activerecord//lib/active_record/autosave_association.rb#576 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:576 def compute_primary_key(reflection, record); end - # source://activerecord//lib/active_record/autosave_association.rb#290 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:290 def init_internals; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#526 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:526 def inverse_polymorphic_association_changed?(reflection, record); end # Go through nested autosave associations that are loaded in memory (without loading # any new ones), and return true if any are changed for autosave. # Returns false if already called to prevent an infinite loop. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/autosave_association.rb#311 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:311 def nested_records_changed_for_autosave?; end # Saves the associated record if it's new or :autosave is enabled. # # In addition, it will destroy the association if it was marked for destruction. # - # source://activerecord//lib/active_record/autosave_association.rb#536 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:536 def save_belongs_to_association(reflection); end # Saves any new associated records, or all loaded autosave associations if @@ -7912,7 +7466,7 @@ module ActiveRecord::AutosaveAssociation # This all happens inside a transaction, _if_ the Transactions module is included into # ActiveRecord::Base after the AutosaveAssociation module, which it does by default. # - # source://activerecord//lib/active_record/autosave_association.rb#419 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:419 def save_collection_association(reflection); end # Saves the associated record if it's new or :autosave is enabled @@ -7924,41 +7478,41 @@ module ActiveRecord::AutosaveAssociation # This all happens inside a transaction, _if_ the Transactions module is included into # ActiveRecord::Base after the AutosaveAssociation module, which it does by default. # - # source://activerecord//lib/active_record/autosave_association.rb#473 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:473 def save_has_one_association(reflection); end # Validate the association if :validate or :autosave is # turned on for the belongs_to association. # - # source://activerecord//lib/active_record/autosave_association.rb#343 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:343 def validate_belongs_to_association(reflection); end # Validate the associated records if :validate or # :autosave is turned on for the association specified by # +reflection+. # - # source://activerecord//lib/active_record/autosave_association.rb#360 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:360 def validate_collection_association(reflection); end # Validate the association if :validate or :autosave is # turned on for the has_one association. # - # source://activerecord//lib/active_record/autosave_association.rb#329 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:329 def validate_has_one_association(reflection); end end -# source://activerecord//lib/active_record/autosave_association.rb#143 +# pkg:gem/activerecord#lib/active_record/autosave_association.rb:143 module ActiveRecord::AutosaveAssociation::AssociationBuilderExtension class << self - # source://activerecord//lib/active_record/autosave_association.rb#144 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:144 def build(model, reflection); end - # source://activerecord//lib/active_record/autosave_association.rb#148 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:148 def valid_options; end end end -# source://activerecord//lib/active_record/autosave_association.rb#157 +# pkg:gem/activerecord#lib/active_record/autosave_association.rb:157 module ActiveRecord::AutosaveAssociation::ClassMethods private @@ -7974,13 +7528,13 @@ module ActiveRecord::AutosaveAssociation::ClassMethods # check if the save or validation methods have already been defined # before actually defining them. # - # source://activerecord//lib/active_record/autosave_association.rb#189 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:189 def add_autosave_association_callbacks(reflection); end - # source://activerecord//lib/active_record/autosave_association.rb#219 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:219 def define_autosave_validation_callbacks(reflection); end - # source://activerecord//lib/active_record/autosave_association.rb#159 + # pkg:gem/activerecord#lib/active_record/autosave_association.rb:159 def define_non_cyclic_method(name, &block); end end @@ -8251,7 +7805,7 @@ end # So it's possible to assign a logger to the class through Base.logger= which will then be used by all # instances in the current object space. # -# source://activerecord//lib/active_record/base.rb#282 +# pkg:gem/activerecord#lib/active_record/base.rb:282 class ActiveRecord::Base include ::ActionText::Encryption include ::ActiveModel::Validations @@ -8382,1388 +7936,1388 @@ class ActiveRecord::Base extend ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods extend ::ActionText::Attribute::ClassMethods - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _before_commit_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _commit_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _create_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _destroy_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _find_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _initialize_callbacks; end - # source://activerecord//lib/active_record/reflection.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def _reflections; end - # source://activerecord//lib/active_record/reflection.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def _reflections?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _rollback_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _run_before_commit_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _run_commit_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _run_create_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _run_destroy_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _run_find_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _run_initialize_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _run_rollback_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _run_save_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _run_touch_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _run_update_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _run_validate_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _run_validation_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _save_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _touch_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _update_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _validate_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _validation_callbacks; end - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _validators; end - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _validators?; end - # source://activerecord//lib/active_record/reflection.rb#12 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def aggregate_reflections; end - # source://activerecord//lib/active_record/reflection.rb#12 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def aggregate_reflections?; end - # source://activestorage/8.0.5.1/lib/active_storage/reflection.rb#53 + # pkg:gem/activerecord#lib/active_record/base.rb:337 def attachment_reflections; end - # source://activestorage/8.0.5.1/lib/active_storage/reflection.rb#53 + # pkg:gem/activerecord#lib/active_record/base.rb:337 def attachment_reflections?; end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_aliases; end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_aliases?; end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_method_patterns; end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_method_patterns?; end - # source://activerecord//lib/active_record/reflection.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatic_scope_inversing; end - # source://activerecord//lib/active_record/reflection.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatic_scope_inversing?; end - # source://activerecord//lib/active_record/reflection.rb#14 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatically_invert_plural_associations; end - # source://activerecord//lib/active_record/reflection.rb#14 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatically_invert_plural_associations?; end - # source://activerecord//lib/active_record/integration.rb#16 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_timestamp_format; end - # source://activerecord//lib/active_record/integration.rb#16 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_timestamp_format?; end - # source://activerecord//lib/active_record/integration.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_versioning; end - # source://activerecord//lib/active_record/integration.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_versioning?; end - # source://activerecord//lib/active_record/integration.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def collection_cache_versioning; end - # source://activerecord//lib/active_record/integration.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def collection_cache_versioning?; end - # source://activerecord//lib/active_record/model_schema.rb#183 - def column_for_attribute(name, &_arg1); end + # pkg:gem/activerecord#lib/active_record/base.rb:302 + def column_for_attribute(name, &); end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def counter_cached_association_names; end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def counter_cached_association_names?; end - # source://activerecord//lib/active_record/core.rb#98 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_connection_handler; end - # source://activerecord//lib/active_record/core.rb#98 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_connection_handler?; end - # source://activerecord//lib/active_record/core.rb#100 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_role; end - # source://activerecord//lib/active_record/core.rb#100 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_role?; end - # source://activerecord//lib/active_record/scoping/default.rb#20 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def default_scope_override; end - # source://activerecord//lib/active_record/scoping/default.rb#19 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def default_scopes; end - # source://activerecord//lib/active_record/core.rb#102 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_shard; end - # source://activerecord//lib/active_record/core.rb#102 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_shard?; end - # source://activerecord//lib/active_record/enum.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:295 def defined_enums; end - # source://activerecord//lib/active_record/enum.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:295 def defined_enums?; end - # source://activerecord//lib/active_record/core.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def destroy_association_async_batch_size; end - # source://activerecord//lib/active_record/core.rb#37 - def destroy_association_async_job(&_arg0); end + # pkg:gem/activerecord#lib/active_record/base.rb:299 + def destroy_association_async_job(&); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:313 def encrypted_attributes; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:313 def encrypted_attributes=(_arg0); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:313 def encrypted_attributes?; end - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:325 def include_root_in_json; end - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:325 def include_root_in_json?; end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # pkg:gem/activerecord#lib/active_record/base.rb:311 def lock_optimistically; end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # pkg:gem/activerecord#lib/active_record/base.rb:311 def lock_optimistically?; end - # source://activerecord//lib/active_record/core.rb#22 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def logger; end - # source://activerecord//lib/active_record/core.rb#22 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def logger?; end - # source://activemodel/8.0.5.1/lib/active_model/naming.rb#255 - def model_name(&_arg0); end + # pkg:gem/activerecord#lib/active_record/base.rb:283 + def model_name(&); end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:320 def nested_attributes_options; end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:320 def nested_attributes_options?; end - # source://activerecord//lib/active_record/normalization.rb#8 + # pkg:gem/activerecord#lib/active_record/base.rb:331 def normalized_attributes; end - # source://activerecord//lib/active_record/normalization.rb#8 + # pkg:gem/activerecord#lib/active_record/base.rb:331 def normalized_attributes=(_arg0); end - # source://activerecord//lib/active_record/normalization.rb#8 + # pkg:gem/activerecord#lib/active_record/base.rb:331 def normalized_attributes?; end - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def param_delimiter=(_arg0); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_inserts; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_inserts?; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_updates; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_updates?; end - # source://activerecord//lib/active_record/model_schema.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def pluralize_table_names; end - # source://activerecord//lib/active_record/model_schema.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def pluralize_table_names?; end - # source://activerecord//lib/active_record/model_schema.rb#163 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def primary_key_prefix_type; end - # source://activerecord//lib/active_record/model_schema.rb#163 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def primary_key_prefix_type?; end - # source://activerecord//lib/active_record/timestamp.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:316 def record_timestamps; end - # source://activerecord//lib/active_record/timestamp.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:316 def record_timestamps=(_arg0); end - # source://activerecord//lib/active_record/timestamp.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:316 def record_timestamps?; end - # source://activerecord//lib/active_record/signed_id.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:329 def signed_id_verifier_secret; end - # source://activerecord//lib/active_record/signed_id.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:329 def signed_id_verifier_secret?; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def skip_time_zone_conversion_for_attributes; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord//lib/active_record/inheritance.rb#43 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_class_name; end - # source://activerecord//lib/active_record/inheritance.rb#43 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_class_name?; end - # source://activerecord//lib/active_record/inheritance.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_sti_class; end - # source://activerecord//lib/active_record/inheritance.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_sti_class?; end - # source://activerecord//lib/active_record/model_schema.rb#164 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_prefix; end - # source://activerecord//lib/active_record/model_schema.rb#164 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_prefix?; end - # source://activerecord//lib/active_record/model_schema.rb#165 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_suffix; end - # source://activerecord//lib/active_record/model_schema.rb#165 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_suffix?; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_attributes; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_attributes?; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_types; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_types?; end - # source://activerecord//lib/active_record/model_schema.rb#183 - def type_for_attribute(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/base.rb:302 + def type_for_attribute(*, **, &); end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __callbacks=(value); end - # source://activerecord//lib/active_record/readonly_attributes.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:301 def _attr_readonly; end - # source://activerecord//lib/active_record/readonly_attributes.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:301 def _attr_readonly=(value); end - # source://activerecord//lib/active_record/readonly_attributes.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:301 def _attr_readonly?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _before_commit_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _before_commit_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _commit_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _commit_callbacks=(value); end - # source://activerecord//lib/active_record/counter_cache.rb#9 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def _counter_cache_columns; end - # source://activerecord//lib/active_record/counter_cache.rb#9 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def _counter_cache_columns=(value); end - # source://activerecord//lib/active_record/counter_cache.rb#9 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def _counter_cache_columns?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _create_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _create_callbacks=(value); end - # source://activerecord//lib/active_record/core.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def _destroy_association_async_job; end - # source://activerecord//lib/active_record/core.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def _destroy_association_async_job=(value); end - # source://activerecord//lib/active_record/core.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def _destroy_association_async_job?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _destroy_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _destroy_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _find_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _find_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _initialize_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _initialize_callbacks=(value); end - # source://activerecord//lib/active_record/reflection.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def _reflections; end - # source://activerecord//lib/active_record/reflection.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def _reflections=(value); end - # source://activerecord//lib/active_record/reflection.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def _reflections?; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _rollback_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:321 def _rollback_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _save_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _save_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _touch_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _touch_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _update_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _update_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _validate_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _validate_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _validation_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def _validation_callbacks=(value); end - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _validators; end - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _validators=(value); end - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def _validators?; end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def after_create(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def after_destroy(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def after_find(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def after_initialize(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def after_save(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def after_touch(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def after_update(*args, **options, &block); end - # source://activerecord//lib/active_record/reflection.rb#12 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def aggregate_reflections; end - # source://activerecord//lib/active_record/reflection.rb#12 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def aggregate_reflections=(value); end - # source://activerecord//lib/active_record/reflection.rb#12 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def aggregate_reflections?; end - # source://activerecord//lib/active_record/core.rb#121 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def application_record_class?; end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#137 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def around_create(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#137 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def around_destroy(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#137 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def around_save(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#137 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def around_update(*args, **options, &block); end - # source://activerecord//lib/active_record/core.rb#141 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def asynchronous_queries_session; end - # source://activerecord//lib/active_record/core.rb#145 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def asynchronous_queries_tracker; end - # source://activestorage/8.0.5.1/lib/active_storage/reflection.rb#53 + # pkg:gem/activerecord#lib/active_record/base.rb:337 def attachment_reflections; end - # source://activestorage/8.0.5.1/lib/active_storage/reflection.rb#53 + # pkg:gem/activerecord#lib/active_record/base.rb:337 def attachment_reflections=(value); end - # source://activestorage/8.0.5.1/lib/active_storage/reflection.rb#53 + # pkg:gem/activerecord#lib/active_record/base.rb:337 def attachment_reflections?; end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_aliases; end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_aliases=(value); end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_aliases?; end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_method_patterns; end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_method_patterns=(value); end - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def attribute_method_patterns?; end - # source://activerecord//lib/active_record/core.rb#119 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def attributes_for_inspect; end - # source://activerecord//lib/active_record/core.rb#119 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def attributes_for_inspect=(value); end - # source://activerecord//lib/active_record/core.rb#119 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def attributes_for_inspect?; end - # source://activerecord//lib/active_record/reflection.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatic_scope_inversing; end - # source://activerecord//lib/active_record/reflection.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatic_scope_inversing=(value); end - # source://activerecord//lib/active_record/reflection.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatic_scope_inversing?; end - # source://activerecord//lib/active_record/reflection.rb#14 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatically_invert_plural_associations; end - # source://activerecord//lib/active_record/reflection.rb#14 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatically_invert_plural_associations=(value); end - # source://activerecord//lib/active_record/reflection.rb#14 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def automatically_invert_plural_associations?; end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#130 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def before_create(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#130 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def before_destroy(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#130 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def before_save(*args, **options, &block); end - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#130 + # pkg:gem/activerecord#lib/active_record/base.rb:315 def before_update(*args, **options, &block); end - # source://activerecord//lib/active_record/core.rb#89 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def belongs_to_required_by_default; end - # source://activerecord//lib/active_record/core.rb#89 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def belongs_to_required_by_default=(value); end - # source://activerecord//lib/active_record/core.rb#89 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def belongs_to_required_by_default?; end - # source://activerecord//lib/active_record/integration.rb#16 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_timestamp_format; end - # source://activerecord//lib/active_record/integration.rb#16 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_timestamp_format=(value); end - # source://activerecord//lib/active_record/integration.rb#16 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_timestamp_format?; end - # source://activerecord//lib/active_record/integration.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_versioning; end - # source://activerecord//lib/active_record/integration.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_versioning=(value); end - # source://activerecord//lib/active_record/integration.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def cache_versioning?; end - # source://activerecord//lib/active_record/integration.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def collection_cache_versioning; end - # source://activerecord//lib/active_record/integration.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def collection_cache_versioning=(value); end - # source://activerecord//lib/active_record/integration.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def collection_cache_versioning?; end - # source://activerecord//lib/active_record/core.rb#77 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def configurations; end - # source://activerecord//lib/active_record/core.rb#71 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def configurations=(config); end - # source://activerecord//lib/active_record/core.rb#216 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def connected_to_stack; end - # source://activerecord//lib/active_record/core.rb#230 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def connection_class; end - # source://activerecord//lib/active_record/core.rb#226 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def connection_class=(b); end - # source://activerecord//lib/active_record/core.rb#234 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def connection_class?; end - # source://activerecord//lib/active_record/core.rb#238 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def connection_class_for_self; end - # source://activerecord//lib/active_record/core.rb#133 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def connection_handler; end - # source://activerecord//lib/active_record/core.rb#137 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def connection_handler=(handler); end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def counter_cached_association_names; end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def counter_cached_association_names=(value); end - # source://activerecord//lib/active_record/counter_cache.rb#10 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def counter_cached_association_names?; end - # source://activerecord//lib/active_record/core.rb#196 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def current_preventing_writes; end - # source://activerecord//lib/active_record/core.rb#159 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def current_role; end - # source://activerecord//lib/active_record/core.rb#177 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def current_shard; end - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#20 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def default_column_serializer; end - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#20 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def default_column_serializer=(value); end - # source://activerecord//lib/active_record/attribute_methods/serialization.rb#20 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def default_column_serializer?; end - # source://activerecord//lib/active_record/core.rb#98 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_connection_handler; end - # source://activerecord//lib/active_record/core.rb#98 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_connection_handler=(value); end - # source://activerecord//lib/active_record/core.rb#98 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_connection_handler?; end - # source://activerecord//lib/active_record/core.rb#100 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_role; end - # source://activerecord//lib/active_record/core.rb#100 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_role=(value); end - # source://activerecord//lib/active_record/core.rb#100 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_role?; end - # source://activerecord//lib/active_record/scoping/default.rb#20 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def default_scope_override; end - # source://activerecord//lib/active_record/scoping/default.rb#20 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def default_scope_override=(value); end - # source://activerecord//lib/active_record/scoping/default.rb#19 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def default_scopes; end - # source://activerecord//lib/active_record/scoping/default.rb#19 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def default_scopes=(value); end - # source://activerecord//lib/active_record/core.rb#102 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_shard; end - # source://activerecord//lib/active_record/core.rb#102 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_shard=(value); end - # source://activerecord//lib/active_record/core.rb#102 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def default_shard?; end - # source://activerecord//lib/active_record/enum.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:295 def defined_enums; end - # source://activerecord//lib/active_record/enum.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:295 def defined_enums=(value); end - # source://activerecord//lib/active_record/enum.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:295 def defined_enums?; end - # source://activerecord//lib/active_record/core.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def destroy_association_async_batch_size; end - # source://activerecord//lib/active_record/core.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def destroy_association_async_batch_size=(value); end - # source://activerecord//lib/active_record/core.rb#27 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def destroy_association_async_job; end - # source://activerecord//lib/active_record/core.rb#24 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def destroy_association_async_job=(value); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:313 def encrypted_attributes; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:313 def encrypted_attributes=(value); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:313 def encrypted_attributes?; end - # source://activerecord//lib/active_record/core.rb#87 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def enumerate_columns_in_select_statements; end - # source://activerecord//lib/active_record/core.rb#87 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def enumerate_columns_in_select_statements=(value); end - # source://activerecord//lib/active_record/core.rb#87 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def enumerate_columns_in_select_statements?; end - # source://activerecord//lib/active_record/token_for.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:328 def generated_token_verifier; end - # source://activerecord//lib/active_record/token_for.rb#11 + # pkg:gem/activerecord#lib/active_record/base.rb:328 def generated_token_verifier=(value); end - # source://activerecord//lib/active_record/core.rb#94 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def has_many_inversing; end - # source://activerecord//lib/active_record/core.rb#94 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def has_many_inversing=(value); end - # source://activerecord//lib/active_record/core.rb#94 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def has_many_inversing?; end - # source://activerecord//lib/active_record/model_schema.rb#170 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def immutable_strings_by_default; end - # source://activerecord//lib/active_record/model_schema.rb#170 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def immutable_strings_by_default=(value); end - # source://activerecord//lib/active_record/model_schema.rb#170 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def immutable_strings_by_default?; end - # source://activerecord//lib/active_record/model_schema.rb#169 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def implicit_order_column; end - # source://activerecord//lib/active_record/model_schema.rb#169 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def implicit_order_column=(value); end - # source://activerecord//lib/active_record/model_schema.rb#169 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def implicit_order_column?; end - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:325 def include_root_in_json; end - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:325 def include_root_in_json=(value); end - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:325 def include_root_in_json?; end - # source://activerecord//lib/active_record/model_schema.rb#172 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def inheritance_column; end - # source://activerecord//lib/active_record/model_schema.rb#325 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def inheritance_column=(value); end - # source://activerecord//lib/active_record/model_schema.rb#172 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def inheritance_column?; end - # source://activerecord//lib/active_record/model_schema.rb#167 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def internal_metadata_table_name; end - # source://activerecord//lib/active_record/model_schema.rb#167 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def internal_metadata_table_name=(value); end - # source://activerecord//lib/active_record/model_schema.rb#167 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def internal_metadata_table_name?; end - # source://activerecord//lib/active_record/store.rb#101 + # pkg:gem/activerecord#lib/active_record/base.rb:326 def local_stored_attributes; end - # source://activerecord//lib/active_record/store.rb#101 + # pkg:gem/activerecord#lib/active_record/base.rb:326 def local_stored_attributes=(_arg0); end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # pkg:gem/activerecord#lib/active_record/base.rb:311 def lock_optimistically; end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # pkg:gem/activerecord#lib/active_record/base.rb:311 def lock_optimistically=(value); end - # source://activerecord//lib/active_record/locking/optimistic.rb#56 + # pkg:gem/activerecord#lib/active_record/base.rb:311 def lock_optimistically?; end - # source://activerecord//lib/active_record/core.rb#22 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def logger; end - # source://activerecord//lib/active_record/core.rb#22 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def logger=(value); end - # source://activerecord//lib/active_record/core.rb#22 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def logger?; end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:320 def nested_attributes_options; end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:320 def nested_attributes_options=(value); end - # source://activerecord//lib/active_record/nested_attributes.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:320 def nested_attributes_options?; end - # source://activerecord//lib/active_record/normalization.rb#8 + # pkg:gem/activerecord#lib/active_record/base.rb:331 def normalized_attributes; end - # source://activerecord//lib/active_record/normalization.rb#8 + # pkg:gem/activerecord#lib/active_record/base.rb:331 def normalized_attributes=(value); end - # source://activerecord//lib/active_record/normalization.rb#8 + # pkg:gem/activerecord#lib/active_record/base.rb:331 def normalized_attributes?; end - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def param_delimiter; end - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def param_delimiter=(value); end - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def param_delimiter?; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_inserts; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_inserts=(value); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_inserts?; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_updates; end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_updates=(value); end - # source://activerecord//lib/active_record/attribute_methods/dirty.rb#49 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def partial_updates?; end - # source://activerecord//lib/active_record/model_schema.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def pluralize_table_names; end - # source://activerecord//lib/active_record/model_schema.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def pluralize_table_names=(value); end - # source://activerecord//lib/active_record/model_schema.rb#168 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def pluralize_table_names?; end - # source://activerecord//lib/active_record/core.rb#207 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def preventing_writes?(class_name); end - # source://activerecord//lib/active_record/model_schema.rb#163 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def primary_key_prefix_type; end - # source://activerecord//lib/active_record/model_schema.rb#163 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def primary_key_prefix_type=(value); end - # source://activerecord//lib/active_record/model_schema.rb#163 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def primary_key_prefix_type?; end - # source://activerecord//lib/active_record/timestamp.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:316 def record_timestamps; end - # source://activerecord//lib/active_record/timestamp.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:316 def record_timestamps=(value); end - # source://activerecord//lib/active_record/timestamp.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:316 def record_timestamps?; end - # source://activerecord//lib/active_record/core.rb#96 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activerecord//lib/active_record/core.rb#96 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def run_commit_callbacks_on_first_saved_instances_in_transaction=(value); end - # source://activerecord//lib/active_record/core.rb#96 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def run_commit_callbacks_on_first_saved_instances_in_transaction?; end - # source://activerecord//lib/active_record/model_schema.rb#166 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def schema_migrations_table_name; end - # source://activerecord//lib/active_record/model_schema.rb#166 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def schema_migrations_table_name=(value); end - # source://activerecord//lib/active_record/model_schema.rb#166 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def schema_migrations_table_name?; end - # source://activerecord//lib/active_record/core.rb#104 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def shard_selector; end - # source://activerecord//lib/active_record/core.rb#104 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def shard_selector=(value); end - # source://activerecord//lib/active_record/core.rb#104 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def shard_selector?; end - # source://activerecord//lib/active_record/signed_id.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:329 def signed_id_verifier_secret; end - # source://activerecord//lib/active_record/signed_id.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:329 def signed_id_verifier_secret=(value); end - # source://activerecord//lib/active_record/signed_id.rb#13 + # pkg:gem/activerecord#lib/active_record/base.rb:329 def signed_id_verifier_secret?; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def skip_time_zone_conversion_for_attributes; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def skip_time_zone_conversion_for_attributes=(value); end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#61 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord//lib/active_record/inheritance.rb#43 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_class_name; end - # source://activerecord//lib/active_record/inheritance.rb#43 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_class_name=(value); end - # source://activerecord//lib/active_record/inheritance.rb#43 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_class_name?; end - # source://activerecord//lib/active_record/inheritance.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_sti_class; end - # source://activerecord//lib/active_record/inheritance.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_sti_class=(value); end - # source://activerecord//lib/active_record/inheritance.rb#47 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def store_full_sti_class?; end - # source://activerecord//lib/active_record/core.rb#91 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def strict_loading_by_default; end - # source://activerecord//lib/active_record/core.rb#91 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def strict_loading_by_default=(value); end - # source://activerecord//lib/active_record/core.rb#91 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def strict_loading_by_default?; end - # source://activerecord//lib/active_record/core.rb#92 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def strict_loading_mode; end - # source://activerecord//lib/active_record/core.rb#92 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def strict_loading_mode=(value); end - # source://activerecord//lib/active_record/core.rb#92 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def strict_loading_mode?; end - # source://activerecord//lib/active_record/core.rb#253 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def strict_loading_violation!(owner:, reflection:); end - # source://activerecord//lib/active_record/model_schema.rb#164 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_prefix; end - # source://activerecord//lib/active_record/model_schema.rb#164 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_prefix=(value); end - # source://activerecord//lib/active_record/model_schema.rb#164 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_prefix?; end - # source://activerecord//lib/active_record/model_schema.rb#165 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_suffix; end - # source://activerecord//lib/active_record/model_schema.rb#165 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_suffix=(value); end - # source://activerecord//lib/active_record/model_schema.rb#165 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def table_name_suffix?; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_attributes; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_attributes=(value); end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#60 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_attributes?; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_types; end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_types=(value); end - # source://activerecord//lib/active_record/attribute_methods/time_zone_conversion.rb#62 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def time_zone_aware_types?; end - # source://activerecord//lib/active_record/token_for.rb#10 + # pkg:gem/activerecord#lib/active_record/base.rb:328 def token_definitions; end - # source://activerecord//lib/active_record/token_for.rb#10 + # pkg:gem/activerecord#lib/active_record/base.rb:328 def token_definitions=(value); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __class_attr___callbacks=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:301 def __class_attr__attr_readonly; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:301 def __class_attr__attr_readonly=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def __class_attr__counter_cache_columns; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def __class_attr__counter_cache_columns=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr__destroy_association_async_job; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr__destroy_association_async_job=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def __class_attr__reflections; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def __class_attr__reflections=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __class_attr__validators; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __class_attr__validators=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def __class_attr_aggregate_reflections; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def __class_attr_aggregate_reflections=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:337 def __class_attr_attachment_reflections; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:337 def __class_attr_attachment_reflections=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_attribute_aliases; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_attribute_aliases=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_attribute_method_patterns; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_attribute_method_patterns=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_attributes_for_inspect; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_attributes_for_inspect=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def __class_attr_automatic_scope_inversing; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def __class_attr_automatic_scope_inversing=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def __class_attr_automatically_invert_plural_associations; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:324 def __class_attr_automatically_invert_plural_associations=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_belongs_to_required_by_default; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_belongs_to_required_by_default=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def __class_attr_cache_timestamp_format; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def __class_attr_cache_timestamp_format=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def __class_attr_cache_versioning; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def __class_attr_cache_versioning=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def __class_attr_collection_cache_versioning; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:307 def __class_attr_collection_cache_versioning=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def __class_attr_counter_cached_association_names; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:309 def __class_attr_counter_cached_association_names=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_default_column_serializer; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_default_column_serializer=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_default_connection_handler; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_default_connection_handler=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_default_role; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_default_role=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def __class_attr_default_scope_override; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def __class_attr_default_scope_override=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def __class_attr_default_scopes; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:304 def __class_attr_default_scopes=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_default_shard; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_default_shard=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:295 def __class_attr_defined_enums; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:295 def __class_attr_defined_enums=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_destroy_association_async_batch_size; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_destroy_association_async_batch_size=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:313 def __class_attr_encrypted_attributes; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:313 def __class_attr_encrypted_attributes=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_enumerate_columns_in_select_statements; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_enumerate_columns_in_select_statements=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:328 def __class_attr_generated_token_verifier; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:328 def __class_attr_generated_token_verifier=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_has_many_inversing; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_has_many_inversing=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_immutable_strings_by_default; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_immutable_strings_by_default=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_implicit_order_column; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_implicit_order_column=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:325 def __class_attr_include_root_in_json; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:325 def __class_attr_include_root_in_json=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_inheritance_column; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_inheritance_column=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_internal_metadata_table_name; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_internal_metadata_table_name=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:311 def __class_attr_lock_optimistically; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:311 def __class_attr_lock_optimistically=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_logger; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_logger=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:320 def __class_attr_nested_attributes_options; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:320 def __class_attr_nested_attributes_options=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:331 def __class_attr_normalized_attributes; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:331 def __class_attr_normalized_attributes=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __class_attr_param_delimiter; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:283 def __class_attr_param_delimiter=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_partial_inserts; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_partial_inserts=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_partial_updates; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_partial_updates=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_pluralize_table_names; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_pluralize_table_names=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_primary_key_prefix_type; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_primary_key_prefix_type=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:316 def __class_attr_record_timestamps; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:316 def __class_attr_record_timestamps=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_run_commit_callbacks_on_first_saved_instances_in_transaction=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_schema_migrations_table_name; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_schema_migrations_table_name=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_shard_selector; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_shard_selector=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:329 def __class_attr_signed_id_verifier_secret; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:329 def __class_attr_signed_id_verifier_secret=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_skip_time_zone_conversion_for_attributes; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_skip_time_zone_conversion_for_attributes=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def __class_attr_store_full_class_name; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def __class_attr_store_full_class_name=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def __class_attr_store_full_sti_class; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:303 def __class_attr_store_full_sti_class=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_strict_loading_by_default; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_strict_loading_by_default=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_strict_loading_mode; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:299 def __class_attr_strict_loading_mode=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_table_name_prefix; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_table_name_prefix=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_table_name_suffix; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def __class_attr_table_name_suffix=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_time_zone_aware_attributes; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_time_zone_aware_attributes=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_time_zone_aware_types; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:314 def __class_attr_time_zone_aware_types=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/base.rb:328 def __class_attr_token_definitions; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/base.rb:328 def __class_attr_token_definitions=(new_value); end - # source://activerecord//lib/active_record/model_schema.rb#172 + # pkg:gem/activerecord#lib/active_record/base.rb:302 def _inheritance_column=(value); end end end -# source://activerecord//lib/active_record/base.rb#0 +# pkg:gem/activerecord#lib/active_record/base.rb:314 module ActiveRecord::Base::GeneratedAssociationMethods; end -# source://activerecord//lib/active_record/base.rb#0 +# pkg:gem/activerecord#lib/active_record/base.rb:314 module ActiveRecord::Base::GeneratedAttributeMethods; end # = Active Record \Batches # -# source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#4 +# pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:4 module ActiveRecord::Batches # Looping through a collection of records from the database # (using the Scoping::Named::ClassMethods.all method, for example) @@ -9840,7 +9394,7 @@ module ActiveRecord::Batches # NOTE: By its nature, batch processing is subject to race conditions if # other processes are modifying the database. # - # source://activerecord//lib/active_record/relation/batches.rb#85 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:85 def find_each(start: T.unsafe(nil), finish: T.unsafe(nil), batch_size: T.unsafe(nil), error_on_ignore: T.unsafe(nil), cursor: T.unsafe(nil), order: T.unsafe(nil), &block); end # Yields each batch of records that was found by the find options as @@ -9906,7 +9460,7 @@ module ActiveRecord::Batches # NOTE: By its nature, batch processing is subject to race conditions if # other processes are modifying the database. # - # source://activerecord//lib/active_record/relation/batches.rb#161 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:161 def find_in_batches(start: T.unsafe(nil), finish: T.unsafe(nil), batch_size: T.unsafe(nil), error_on_ignore: T.unsafe(nil), cursor: T.unsafe(nil), order: T.unsafe(nil)); end # Yields ActiveRecord::Relation objects to work with a batch of records. @@ -9993,60 +9547,58 @@ module ActiveRecord::Batches # NOTE: By its nature, batch processing is subject to race conditions if # other processes are modifying the database. # - # source://activerecord//lib/active_record/relation/batches.rb#259 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:259 def in_batches(of: T.unsafe(nil), start: T.unsafe(nil), finish: T.unsafe(nil), load: T.unsafe(nil), error_on_ignore: T.unsafe(nil), cursor: T.unsafe(nil), order: T.unsafe(nil), use_ranges: T.unsafe(nil), &block); end private - # source://activerecord//lib/active_record/relation/batches.rb#369 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:369 def act_on_ignored_order(error_on_ignore); end - # source://activerecord//lib/active_record/relation/batches.rb#341 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:341 def apply_finish_limit(relation, cursor, finish, batch_orders); end - # source://activerecord//lib/active_record/relation/batches.rb#328 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:328 def apply_limits(relation, cursor, start, finish, batch_orders); end - # source://activerecord//lib/active_record/relation/batches.rb#334 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:334 def apply_start_limit(relation, cursor, start, batch_orders); end - # source://activerecord//lib/active_record/relation/batches.rb#348 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:348 def batch_condition(relation, cursor, values, operators); end - # source://activerecord//lib/active_record/relation/batches.rb#379 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:379 def batch_on_loaded_relation(relation:, start:, finish:, cursor:, order:, batch_limit:); end - # source://activerecord//lib/active_record/relation/batches.rb#426 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:426 def batch_on_unloaded_relation(relation:, start:, finish:, load:, cursor:, order:, use_ranges:, remaining:, batch_limit:); end - # source://activerecord//lib/active_record/relation/batches.rb#363 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:363 def build_batch_orders(cursor, order); end # This is a custom implementation of `<=>` operator, # which also takes into account how the collection will be ordered. # - # source://activerecord//lib/active_record/relation/batches.rb#414 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:414 def compare_values_for_order(values1, values2, order); end - # source://activerecord//lib/active_record/relation/batches.rb#305 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:305 def ensure_valid_options_for_batching!(cursor, start, finish, order); end - # source://activerecord//lib/active_record/relation/batches.rb#408 + # pkg:gem/activerecord#lib/active_record/relation/batches.rb:408 def record_cursor_values(record, cursor); end end -# source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#5 +# pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:5 class ActiveRecord::Batches::BatchEnumerator include ::Enumerable - # @return [BatchEnumerator] a new instance of BatchEnumerator - # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#8 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:8 def initialize(relation:, cursor:, of: T.unsafe(nil), start: T.unsafe(nil), finish: T.unsafe(nil), order: T.unsafe(nil), use_ranges: T.unsafe(nil)); end # The size of the batches yielded by the BatchEnumerator. # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#28 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:28 def batch_size; end # Deletes records in batches. Returns the total number of rows affected. @@ -10055,7 +9607,7 @@ class ActiveRecord::Batches::BatchEnumerator # # See Relation#delete_all for details of how each batch is deleted. # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#66 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:66 def delete_all; end # Destroys records in batches. Returns the total number of rows affected. @@ -10064,7 +9616,7 @@ class ActiveRecord::Batches::BatchEnumerator # # See Relation#destroy_all for details of how each batch is destroyed. # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#97 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:97 def destroy_all; end # Yields an ActiveRecord::Relation object for each batch of records. @@ -10073,7 +9625,7 @@ class ActiveRecord::Batches::BatchEnumerator # relation.update_all(awesome: true) # end # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#108 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:108 def each(&block); end # Looping through a collection of records from the database (using the @@ -10098,22 +9650,22 @@ class ActiveRecord::Batches::BatchEnumerator # person.award_trophy(index + 1) # end # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#53 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:53 def each_record(&block); end # The primary key value at which the BatchEnumerator ends, inclusive of the value. # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#22 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:22 def finish; end # The relation from which the BatchEnumerator yields batches. # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#25 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:25 def relation; end # The primary key value from which the BatchEnumerator starts, inclusive of the value. # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#19 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:19 def start; end # Touches records in batches. Returns the total number of rows affected. @@ -10122,8 +9674,8 @@ class ActiveRecord::Batches::BatchEnumerator # # See Relation#touch_all for details of how each batch is touched. # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#86 - def touch_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:86 + def touch_all(*, **, &); end # Updates records in batches. Returns the total number of rows affected. # @@ -10131,66 +9683,66 @@ class ActiveRecord::Batches::BatchEnumerator # # See Relation#update_all for details of how each batch is updated. # - # source://activerecord//lib/active_record/relation/batches/batch_enumerator.rb#75 + # pkg:gem/activerecord#lib/active_record/relation/batches/batch_enumerator.rb:75 def update_all(updates); end end -# source://activerecord//lib/active_record/relation/batches.rb#9 +# pkg:gem/activerecord#lib/active_record/relation/batches.rb:9 ActiveRecord::Batches::DEFAULT_ORDER = T.let(T.unsafe(nil), Symbol) -# source://activerecord//lib/active_record/relation/batches.rb#8 +# pkg:gem/activerecord#lib/active_record/relation/batches.rb:8 ActiveRecord::Batches::ORDER_IGNORE_MESSAGE = T.let(T.unsafe(nil), String) # = Active Record \Calculations # -# source://activerecord//lib/active_record/relation/calculations.rb#7 +# pkg:gem/activerecord#lib/active_record/relation/calculations.rb:7 module ActiveRecord::Calculations # Same as #average, but performs the query asynchronously and returns an # ActiveRecord::Promise. # - # source://activerecord//lib/active_record/relation/calculations.rb#122 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:122 def async_average(column_name); end # Same as #count, but performs the query asynchronously and returns an # ActiveRecord::Promise. # - # source://activerecord//lib/active_record/relation/calculations.rb#108 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:108 def async_count(column_name = T.unsafe(nil)); end # Same as #ids, but performs the query asynchronously and returns an # ActiveRecord::Promise. # - # source://activerecord//lib/active_record/relation/calculations.rb#408 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:408 def async_ids; end # Same as #maximum, but performs the query asynchronously and returns an # ActiveRecord::Promise. # - # source://activerecord//lib/active_record/relation/calculations.rb#152 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:152 def async_maximum(column_name); end # Same as #minimum, but performs the query asynchronously and returns an # ActiveRecord::Promise. # - # source://activerecord//lib/active_record/relation/calculations.rb#137 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:137 def async_minimum(column_name); end # Same as #pick, but performs the query asynchronously and returns an # ActiveRecord::Promise. # - # source://activerecord//lib/active_record/relation/calculations.rb#362 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:362 def async_pick(*column_names); end # Same as #pluck, but performs the query asynchronously and returns an # ActiveRecord::Promise. # - # source://activerecord//lib/active_record/relation/calculations.rb#333 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:333 def async_pluck(*column_names); end # Same as #sum, but performs the query asynchronously and returns an # ActiveRecord::Promise. # - # source://activerecord//lib/active_record/relation/calculations.rb#181 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:181 def async_sum(identity_or_column = T.unsafe(nil)); end # Calculates the average value on a given column. Returns +nil+ if there's @@ -10198,7 +9750,7 @@ module ActiveRecord::Calculations # # Person.average(:age) # => 35.8 # - # source://activerecord//lib/active_record/relation/calculations.rb#116 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:116 def average(column_name); end # This calculates aggregate values in the given column. Methods for #count, #sum, #average, @@ -10233,7 +9785,7 @@ module ActiveRecord::Calculations # ... # end # - # source://activerecord//lib/active_record/relation/calculations.rb#216 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:216 def calculate(operation, column_name); end # Count the records. @@ -10282,7 +9834,7 @@ module ActiveRecord::Calculations # load all records in the relation. If there are a lot of records in the # relation, loading all records could result in performance issues. # - # source://activerecord//lib/active_record/relation/calculations.rb#94 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:94 def count(column_name = T.unsafe(nil)); end # Returns the base model's ID's for the relation using the table's primary key @@ -10290,7 +9842,7 @@ module ActiveRecord::Calculations # Person.ids # SELECT people.id FROM people # Person.joins(:company).ids # SELECT people.id FROM people INNER JOIN companies ON companies.id = people.company_id # - # source://activerecord//lib/active_record/relation/calculations.rb#370 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:370 def ids; end # Calculates the maximum value on a given column. The value is returned @@ -10299,7 +9851,7 @@ module ActiveRecord::Calculations # # Person.maximum(:age) # => 93 # - # source://activerecord//lib/active_record/relation/calculations.rb#146 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:146 def maximum(column_name); end # Calculates the minimum value on a given column. The value is returned @@ -10308,7 +9860,7 @@ module ActiveRecord::Calculations # # Person.minimum(:age) # => 7 # - # source://activerecord//lib/active_record/relation/calculations.rb#131 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:131 def minimum(column_name); end # Pick the value(s) from the named column(s) in the current relation. @@ -10326,7 +9878,7 @@ module ActiveRecord::Calculations # # SELECT people.name, people.email_address FROM people WHERE id = 1 LIMIT 1 # # => [ 'David', 'david@loudthinking.com' ] # - # source://activerecord//lib/active_record/relation/calculations.rb#351 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:351 def pick(*column_names); end # Use #pluck as a shortcut to select one or more attributes without @@ -10372,7 +9924,7 @@ module ActiveRecord::Calculations # # See also #ids. # - # source://activerecord//lib/active_record/relation/calculations.rb#290 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:290 def pluck(*column_names); end # Calculates the sum of values on a given column. The value is returned @@ -10391,75 +9943,65 @@ module ActiveRecord::Calculations # load all records in the relation. If there are a lot of records in the # relation, loading all records could result in performance issues. # - # source://activerecord//lib/active_record/relation/calculations.rb#171 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:171 def sum(initial_value_or_column = T.unsafe(nil), &block); end protected - # source://activerecord//lib/active_record/relation/calculations.rb#413 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:413 def aggregate_column(column_name); end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/calculations.rb#425 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:425 def all_attributes?(column_names); end - # source://activerecord//lib/active_record/relation/calculations.rb#661 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:661 def build_count_subquery(relation, column_name, distinct); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/calculations.rb#654 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:654 def build_count_subquery?(operation, column_name, distinct); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/calculations.rb#460 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:460 def distinct_select?(column_name); end - # source://activerecord//lib/active_record/relation/calculations.rb#513 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:513 def execute_grouped_calculation(operation, column_name, distinct); end - # source://activerecord//lib/active_record/relation/calculations.rb#468 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:468 def execute_simple_calculation(operation, column_name, distinct); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/calculations.rb#429 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:429 def has_include?(column_name); end - # source://activerecord//lib/active_record/relation/calculations.rb#601 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:601 def lookup_cast_type_from_join_dependencies(name, join_dependencies = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/calculations.rb#464 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:464 def operation_over_aggregate_column(column, operation, distinct); end - # source://activerecord//lib/active_record/relation/calculations.rb#433 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:433 def perform_calculation(operation, column_name); end - # source://activerecord//lib/active_record/relation/calculations.rb#644 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:644 def select_for_count; end - # source://activerecord//lib/active_record/relation/calculations.rb#626 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:626 def type_cast_calculated_value(value, operation, type); end - # source://activerecord//lib/active_record/relation/calculations.rb#609 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:609 def type_cast_pluck_values(result, columns); end - # source://activerecord//lib/active_record/relation/calculations.rb#596 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:596 def type_for(field, &block); end end -# source://activerecord//lib/active_record/relation/calculations.rb#8 +# pkg:gem/activerecord#lib/active_record/relation/calculations.rb:8 class ActiveRecord::Calculations::ColumnAliasTracker - # @return [ColumnAliasTracker] a new instance of ColumnAliasTracker - # - # source://activerecord//lib/active_record/relation/calculations.rb#9 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:9 def initialize(connection); end - # source://activerecord//lib/active_record/relation/calculations.rb#14 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:14 def alias_for(field); end private @@ -10472,10 +10014,10 @@ class ActiveRecord::Calculations::ColumnAliasTracker # column_alias_for("count(distinct users.id)") # => "count_distinct_users_id" # column_alias_for("count(*)") # => "count_all" # - # source://activerecord//lib/active_record/relation/calculations.rb#35 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:35 def column_alias_for(field); end - # source://activerecord//lib/active_record/relation/calculations.rb#44 + # pkg:gem/activerecord#lib/active_record/relation/calculations.rb:44 def truncate(name); end end @@ -10753,7 +10295,7 @@ end # # Returns true or false depending on whether the proc is contained in the +before_save+ callback chain on a Topic model. # -# source://activerecord//lib/active_record/callbacks.rb#278 +# pkg:gem/activerecord#lib/active_record/callbacks.rb:278 module ActiveRecord::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -10766,25 +10308,25 @@ module ActiveRecord::Callbacks mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods mixes_in_class_methods ::ActiveSupport::DescendantsTracker - # source://activerecord//lib/active_record/callbacks.rb#419 + # pkg:gem/activerecord#lib/active_record/callbacks.rb:419 def destroy; end - # source://activerecord//lib/active_record/callbacks.rb#435 + # pkg:gem/activerecord#lib/active_record/callbacks.rb:435 def increment!(attribute, by = T.unsafe(nil), touch: T.unsafe(nil)); end - # source://activerecord//lib/active_record/callbacks.rb#431 - def touch(*_arg0, **_arg1); end + # pkg:gem/activerecord#lib/active_record/callbacks.rb:431 + def touch(*, **); end private - # source://activerecord//lib/active_record/callbacks.rb#444 + # pkg:gem/activerecord#lib/active_record/callbacks.rb:444 def _create_record; end - # source://activerecord//lib/active_record/callbacks.rb#448 + # pkg:gem/activerecord#lib/active_record/callbacks.rb:448 def _update_record; end - # source://activerecord//lib/active_record/callbacks.rb#440 - def create_or_update(**_arg0); end + # pkg:gem/activerecord#lib/active_record/callbacks.rb:440 + def create_or_update(**); end module GeneratedClassMethods def __callbacks; end @@ -10796,123 +10338,107 @@ module ActiveRecord::Callbacks end end -# source://activerecord//lib/active_record/callbacks.rb#281 +# pkg:gem/activerecord#lib/active_record/callbacks.rb:281 ActiveRecord::Callbacks::CALLBACKS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/callbacks.rb#288 +# pkg:gem/activerecord#lib/active_record/callbacks.rb:288 module ActiveRecord::Callbacks::ClassMethods include ::ActiveModel::Callbacks end -# source://activerecord//lib/active_record.rb#125 +# pkg:gem/activerecord#lib/active_record.rb:125 module ActiveRecord::Coders; end -# source://activerecord//lib/active_record/coders/column_serializer.rb#5 +# pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:5 class ActiveRecord::Coders::ColumnSerializer - # @return [ColumnSerializer] a new instance of ColumnSerializer - # - # source://activerecord//lib/active_record/coders/column_serializer.rb#9 + # pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:9 def initialize(attr_name, coder, object_class = T.unsafe(nil)); end # Public because it's called by Type::Serialized # - # source://activerecord//lib/active_record/coders/column_serializer.rb#46 + # pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:46 def assert_valid_value(object, action:); end - # Returns the value of attribute coder. - # - # source://activerecord//lib/active_record/coders/column_serializer.rb#7 + # pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:7 def coder; end - # source://activerecord//lib/active_record/coders/column_serializer.rb#22 + # pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:22 def dump(object); end - # source://activerecord//lib/active_record/coders/column_serializer.rb#16 + # pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:16 def init_with(coder); end - # source://activerecord//lib/active_record/coders/column_serializer.rb#29 + # pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:29 def load(payload); end - # Returns the value of attribute object_class. - # - # source://activerecord//lib/active_record/coders/column_serializer.rb#6 + # pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:6 def object_class; end private - # source://activerecord//lib/active_record/coders/column_serializer.rb#54 + # pkg:gem/activerecord#lib/active_record/coders/column_serializer.rb:54 def check_arity_of_constructor; end end -# source://activerecord//lib/active_record/coders/json.rb#5 +# pkg:gem/activerecord#lib/active_record/coders/json.rb:5 module ActiveRecord::Coders::JSON class << self - # source://activerecord//lib/active_record/coders/json.rb#6 + # pkg:gem/activerecord#lib/active_record/coders/json.rb:6 def dump(obj); end - # source://activerecord//lib/active_record/coders/json.rb#10 + # pkg:gem/activerecord#lib/active_record/coders/json.rb:10 def load(json); end end end -# source://activerecord//lib/active_record/coders/yaml_column.rb#7 +# pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:7 class ActiveRecord::Coders::YAMLColumn < ::ActiveRecord::Coders::ColumnSerializer - # @return [YAMLColumn] a new instance of YAMLColumn - # - # source://activerecord//lib/active_record/coders/yaml_column.rb#59 + # pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:59 def initialize(attr_name, object_class = T.unsafe(nil), permitted_classes: T.unsafe(nil), unsafe_load: T.unsafe(nil)); end - # source://activerecord//lib/active_record/coders/yaml_column.rb#77 + # pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:77 def coder; end - # source://activerecord//lib/active_record/coders/yaml_column.rb#68 + # pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:68 def init_with(coder); end private - # source://activerecord//lib/active_record/coders/yaml_column.rb#88 + # pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:88 def check_arity_of_constructor; end end -# source://activerecord//lib/active_record/coders/yaml_column.rb#8 +# pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:8 class ActiveRecord::Coders::YAMLColumn::SafeCoder - # @return [SafeCoder] a new instance of SafeCoder - # - # source://activerecord//lib/active_record/coders/yaml_column.rb#9 + # pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:9 def initialize(permitted_classes: T.unsafe(nil), unsafe_load: T.unsafe(nil)); end - # source://activerecord//lib/active_record/coders/yaml_column.rb#15 + # pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:15 def dump(object); end - # source://activerecord//lib/active_record/coders/yaml_column.rb#33 + # pkg:gem/activerecord#lib/active_record/coders/yaml_column.rb:33 def load(payload); end end -# source://activerecord//lib/active_record/associations/errors.rb#187 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:187 class ActiveRecord::CompositePrimaryKeyMismatchError < ::ActiveRecord::ActiveRecordError - # @return [CompositePrimaryKeyMismatchError] a new instance of CompositePrimaryKeyMismatchError - # - # source://activerecord//lib/active_record/associations/errors.rb#190 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:190 def initialize(reflection = T.unsafe(nil)); end - # Returns the value of attribute reflection. - # - # source://activerecord//lib/active_record/associations/errors.rb#188 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:188 def reflection; end end -# source://activerecord//lib/active_record/migration.rb#186 +# pkg:gem/activerecord#lib/active_record/migration.rb:186 class ActiveRecord::ConcurrentMigrationError < ::ActiveRecord::MigrationError - # @return [ConcurrentMigrationError] a new instance of ConcurrentMigrationError - # - # source://activerecord//lib/active_record/migration.rb#190 + # pkg:gem/activerecord#lib/active_record/migration.rb:190 def initialize(message = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/migration.rb#187 +# pkg:gem/activerecord#lib/active_record/migration.rb:187 ActiveRecord::ConcurrentMigrationError::DEFAULT_MESSAGE = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/migration.rb#188 +# pkg:gem/activerecord#lib/active_record/migration.rb:188 ActiveRecord::ConcurrentMigrationError::RELEASE_LOCK_FAILED_MESSAGE = T.let(T.unsafe(nil), String) # Raised when association is being configured improperly or user tries to use @@ -10921,10 +10447,12 @@ ActiveRecord::ConcurrentMigrationError::RELEASE_LOCK_FAILED_MESSAGE = T.let(T.un # {ActiveRecord::Base.has_and_belongs_to_many}[rdoc-ref:Associations::ClassMethods#has_and_belongs_to_many] # associations. # -# source://activerecord//lib/active_record/errors.rb#390 +# pkg:gem/activerecord#lib/active_record/errors.rb:390 class ActiveRecord::ConfigurationError < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/connection_adapters.rb#6 +# :stopdoc: +# +# pkg:gem/activerecord#lib/active_record/connection_adapters.rb:6 module ActiveRecord::ConnectionAdapters extend ::ActiveSupport::Autoload @@ -10939,10 +10467,10 @@ module ActiveRecord::ConnectionAdapters # # ActiveRecord::ConnectionAdapters.register("mysql", "ActiveRecord::ConnectionAdapters::TrilogyAdapter", "active_record/connection_adapters/trilogy_adapter") # - # source://activerecord//lib/active_record/connection_adapters.rb#22 + # pkg:gem/activerecord#lib/active_record/connection_adapters.rb:22 def register(name, class_name, path = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters.rb#26 + # pkg:gem/activerecord#lib/active_record/connection_adapters.rb:26 def resolve(adapter_name); end end end @@ -10963,7 +10491,7 @@ end # Most of the methods in the adapter are useful during migrations. Most # notably, the instance methods provided by SchemaStatements are very useful. # -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#30 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:30 class ActiveRecord::ConnectionAdapters::AbstractAdapter include ::ActiveSupport::Callbacks include ::ActiveRecord::Migration::JoinTable @@ -10977,54 +10505,46 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter extend ::ActiveSupport::DescendantsTracker extend ::ActiveRecord::ConnectionAdapters::Quoting::ClassMethods - # @return [AbstractAdapter] a new instance of AbstractAdapter - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#126 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:126 def initialize(config_or_deprecated_connection, deprecated_logger = T.unsafe(nil), deprecated_connection_options = T.unsafe(nil), deprecated_config = T.unsafe(nil)); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:32 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:33 def _checkin_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:33 def _checkout_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:33 def _run_checkin_callbacks(&block); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:33 def _run_checkout_callbacks(&block); end # Checks whether the connection to the database is still active. This includes # checking whether the database is actually capable of responding, i.e. whether # the connection isn't stale. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#658 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:658 def active?; end # Returns the human-readable name of the adapter. Use mixed case - one # can always use downcase if needed. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#355 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:355 def adapter_name; end # This is meant to be implemented by the adapters that support custom enum types # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#590 - def add_enum_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:590 + def add_enum_value(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#605 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:605 def advisory_locks_enabled?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#564 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:564 def async_enabled?; end # Called by ActiveRecord::InsertAll, @@ -11033,102 +10553,96 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # should be overridden by adapters to implement common features with # non-standard syntax like handling duplicates or returning values. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#850 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:850 def build_insert_sql(insert); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#821 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:821 def case_insensitive_comparison(attribute, value); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#817 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:817 def case_sensitive_comparison(attribute, value); end # Override to check all foreign key constraints in a database. # The adapter should raise a +ActiveRecord::StatementInvalid+ if foreign key # constraints are not met. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#643 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:643 def check_all_foreign_keys_valid!; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#195 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:195 def check_if_write_query(sql); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#865 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:865 def check_version; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#790 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:790 def clean!; end # Clear any caching the database adapter may be doing. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#744 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:744 def clear_cache!(new_connection: T.unsafe(nil)); end # Check the connection back in to the connection pool # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#837 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:837 def close; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#785 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:785 def connect!; end # Checks whether the connection to the database was established. This doesn't # include checking whether the database is actually capable of responding, i.e. # whether the connection is stale. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#651 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:651 def connected?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#284 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:284 def connection_descriptor; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#205 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:205 def connection_retries; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def create(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def create(*, **, &); end # This is meant to be implemented by the adapters that support custom enum types # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#578 - def create_enum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:578 + def create_enum(*, **, &); end # This is meant to be implemented by the adapters that support virtual tables # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#598 - def create_virtual_table(*_arg0); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:598 + def create_virtual_table(*); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#364 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:364 def database_exists?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#861 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:861 def database_version; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#841 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:841 def default_index_type?(index); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#221 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:221 def default_timezone; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#813 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:813 def default_uniqueness_comparison(attribute, value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def delete(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def delete(*, **, &); end # This is meant to be implemented by the adapters that support extensions # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#570 - def disable_extension(name, **_arg1); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:570 + def disable_extension(name, **); end # Override to turn off referential integrity while executing &block. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#636 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:636 def disable_referential_integrity; end # Immediately forget this connection ever existed. Unlike disconnect!, @@ -11138,47 +10652,47 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # undefined. This is called internally just before a forked process gets # rid of a connection that belonged to its parent. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#717 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:717 def discard!; end # Disconnects from the database if already connected. Otherwise, this # method does nothing. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#701 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:701 def disconnect!; end # This is meant to be implemented by the adapters that support custom enum types # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#582 - def drop_enum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:582 + def drop_enum(*, **, &); end # This is meant to be implemented by the adapters that support virtual tables # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#602 - def drop_virtual_table(*_arg0); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:602 + def drop_virtual_table(*); end # This is meant to be implemented by the adapters that support extensions # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#574 - def enable_extension(name, **_arg1); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:574 + def enable_extension(name, **); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def exec_insert_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def exec_insert_all(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def exec_query(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def exec_query(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def execute(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def execute(*, **, &); end # this method must only be called while holding connection pool's mutex # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#305 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:305 def expire; end # A list of extensions, to be filled in by adapters that support them. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#624 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:624 def extensions; end # This is meant to be implemented by the adapters that support advisory @@ -11186,85 +10700,69 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # Return true if we got the lock, otherwise false # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#613 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:613 def get_advisory_lock(lock_id); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#858 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:858 def get_database_version; end - # Returns the value of attribute owner. - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:46 def in_use?; end # A list of index algorithms, to be filled by adapters that support them. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#629 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:629 def index_algorithms; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def insert(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def insert(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#176 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:176 def inspect; end # this method must only be called while holding connection pool's mutex # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#269 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:269 def lease; end - # Returns the value of attribute lock. - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:44 def lock; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#183 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:183 def lock_thread=(lock_thread); end - # Returns the value of attribute logger. - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:44 def logger; end - # Returns the value of attribute owner. - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:44 def owner; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#45 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:45 def pinned; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#45 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:45 def pinned=(_arg0); end - # Returns the value of attribute pool. - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#43 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:43 def pool; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#48 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:48 def pool=(value); end # Should primary key values be selected from their corresponding # sequence before the insert statement? If true, next_sequence_value # is called before each insert to set the record's primary key. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#404 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:404 def prefetch_primary_key?(table_name = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#236 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:239 def prepared_statements; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#236 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:236 def prepared_statements?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#241 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:241 def prepared_statements_disabled_cache; end # Determines whether writes are currently being prevented. @@ -11272,9 +10770,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # Returns true if the connection is a replica or returns # the value of +current_preventing_writes+. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#229 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:229 def preventing_writes?; end # Provides access to the underlying database driver for this adapter. For @@ -11288,14 +10784,14 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # this client. If that is the case, generally you'll want to invalidate # the query cache using +ActiveRecord::Base.clear_query_cache+. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#805 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:805 def raw_connection; end # Disconnects from the database if already connected, and establishes a new # connection with the database. Implementors should define private #reconnect # instead. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#664 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:664 def reconnect!(restore_transactions: T.unsafe(nil)); end # This is meant to be implemented by the adapters that support advisory @@ -11303,29 +10799,25 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # Return true if we released the lock, otherwise false # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#620 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:620 def release_advisory_lock(lock_id); end # This is meant to be implemented by the adapters that support custom enum types # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#586 - def rename_enum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:586 + def rename_enum(*, **, &); end # This is meant to be implemented by the adapters that support custom enum types # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#594 - def rename_enum_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:594 + def rename_enum_value(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#201 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:201 def replica?; end # Returns true if its required to reload the connection between requests for development mode. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#757 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:757 def requires_reloading?; end # Reset the state of this connection, directing the DBMS to clear @@ -11337,41 +10829,37 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # should call super immediately after resetting the connection (and while # still holding @lock). # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#729 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:729 def reset!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def restart_db_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def restart_db_transaction(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#213 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:213 def retry_deadline; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#560 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:560 def return_value_after_insert?(column); end # The role (e.g. +:writing+) for the current connection. In a # non-multi role application, +:writing+ is returned. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#290 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:290 def role; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def rollback_db_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def rollback_db_transaction(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def rollback_to_savepoint(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def rollback_to_savepoint(*, **, &); end # Do TransactionRollbackErrors on savepoints affect the parent # transaction? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#388 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:388 def savepoint_errors_invalidate_transactions?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#300 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:300 def schema_cache; end # Returns the version identifier of the schema currently available in @@ -11379,304 +10867,226 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # numbered migration that has been executed, or 0 if no schema # information is present / the database is empty. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#872 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:872 def schema_version; end # Seconds since this connection was returned to the pool # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#334 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:334 def seconds_idle; end # Seconds since this connection last communicated with the server # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#340 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:340 def seconds_since_last_activity; end # The shard (e.g. +:default+) for the current connection. In # a non-sharded application, +:default+ is returned. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#296 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:296 def shard; end # this method must only be called while holding connection pool's mutex (and a desire for segfaults) # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#321 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:321 def steal!; end # Does this adapter support application-enforced advisory locking? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#397 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:397 def supports_advisory_locks?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#377 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:377 def supports_bulk_alter?; end # Does this adapter support creating check constraints? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#469 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:469 def supports_check_constraints?; end # Does this adapter support metadata comments on database objects (tables, columns, indexes)? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#504 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:504 def supports_comments?; end # Can comments for tables, columns, and indexes be specified in create/alter table statements? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#509 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:509 def supports_comments_in_create?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#528 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:528 def supports_common_table_expressions?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#552 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:552 def supports_concurrent_connections?; end # Does this adapter support datetime with precision? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#494 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:494 def supports_datetime_with_precision?; end # Does this adapter support DDL rollbacks in transactions? That is, would # CREATE TABLE or ALTER TABLE get rolled back by a transaction? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#373 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:373 def supports_ddl_transactions?; end # Does this adapter support creating deferrable constraints? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#464 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:464 def supports_deferrable_constraints?; end # Does this adapter support creating exclusion constraints? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#474 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:474 def supports_exclusion_constraints?; end # Does this adapter support explain? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#433 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:433 def supports_explain?; end # Does this adapter support expression indices? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#428 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:428 def supports_expression_index?; end # Does this adapter support database extensions? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#443 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:443 def supports_extensions?; end # Does this adapter support creating foreign key constraints? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#454 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:454 def supports_foreign_keys?; end # Does this adapter support foreign/external tables? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#519 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:519 def supports_foreign_tables?; end # Does this adapter support including non-key columns? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#423 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:423 def supports_index_include?; end # Does this adapter support index sort order? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#413 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:413 def supports_index_sort_order?; end # Does this adapter support creating indexes in the same statement as # creating the table? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#449 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:449 def supports_indexes_in_create?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#548 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:548 def supports_insert_conflict_target?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#540 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:540 def supports_insert_on_duplicate_skip?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#544 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:544 def supports_insert_on_duplicate_update?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#536 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:536 def supports_insert_returning?; end # Does this adapter support JSON data type? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#499 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:499 def supports_json?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#532 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:532 def supports_lazy_transactions?; end # Does this adapter support materialized views? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#489 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:489 def supports_materialized_views?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#556 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:556 def supports_nulls_not_distinct?; end # Does this adapter support optimizer hints? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#524 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:524 def supports_optimizer_hints?; end # Does this adapter support partial indices? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#418 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:418 def supports_partial_index?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#408 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:408 def supports_partitioned_indexes?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#392 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:392 def supports_restart_db_transaction?; end # Does this adapter support savepoints? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#382 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:382 def supports_savepoints?; end # Does this adapter support setting the isolation level for a transaction? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#438 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:438 def supports_transaction_isolation?; end # Does this adapter support creating unique constraints? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#479 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:479 def supports_unique_constraints?; end # Does this adapter support creating invalid constraints? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#459 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:459 def supports_validate_constraints?; end # Does this adapter support views? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#484 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:484 def supports_views?; end # Does this adapter support virtual columns? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#514 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:514 def supports_virtual_columns?; end # Removes the connection from the pool and disconnect it. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#738 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:738 def throw_away!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def truncate(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def truncate(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def truncate_tables(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def truncate_tables(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#346 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:346 def unprepared_statement; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 - def update(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:37 + def update(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#264 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:264 def valid_type?(type); end # Checks whether the connection to the database is still active (i.e. not stale). # This is done under the hood by calling #active?. If the connection # is no longer active, then this method will reconnect to the database. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#764 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:764 def verify!; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#209 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:209 def verify_timeout; end - # Returns the value of attribute visitor. - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:44 def visitor; end private @@ -11685,16 +11095,16 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # to both be thread-safe and not rely upon actual server communication. # This is useful for e.g. string escaping methods. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1096 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1096 def any_raw_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1197 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1197 def arel_visitor; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1223 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1223 def attempt_configure_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1085 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1085 def backoff(counter); end # Builds the result object. @@ -11702,78 +11112,69 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # This is an internal hook to make possible connection adapters to build # custom result objects with connection-specific data. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1208 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1208 def build_result(columns:, rows:, column_types: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1201 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1201 def build_statement_pool; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#831 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:831 def can_perform_case_insensitive_comparison_for?(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1183 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1183 def collector; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1172 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1172 def column_for(table_name, column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1178 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1178 def column_for_attribute(attribute); end # Perform any necessary initialization upon the newly-established + # @raw_connection -- this is the place to modify the adapter's # connection settings, run queries to configure any application-global # "session" variables, etc. # # Implementations may assume this method will only be called while # holding @lock (or from #initialize). # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1219 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1219 def configure_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1230 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1230 def default_prepared_statements; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1113 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1113 def extended_type_map_key; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1158 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1158 def instrumenter; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1071 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1071 def invalidate_transaction(exception); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1141 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1141 def log(sql, name = T.unsafe(nil), binds = T.unsafe(nil), type_casted_binds = T.unsafe(nil), async: T.unsafe(nil), &block); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1089 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1089 def reconnect; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#953 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:953 def reconnect_can_restore_state?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1066 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1066 def retryable_connection_error?(exception); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1078 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1078 def retryable_query_error?(exception); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1162 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1162 def translate_exception(exception, message:, sql:, binds:); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1129 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1129 def translate_exception_class(native_error, sql, binds); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1119 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1119 def type_map; end # Similar to any_raw_connection, but ensures it is validated and @@ -11782,19 +11183,17 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # server... but some drivers fail if they know the connection has gone # away. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1105 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1105 def valid_raw_connection; end # Mark the connection as verified. Call this inside a # `with_raw_connection` block only when the block is guaranteed to # exercise the raw connection. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1061 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1061 def verified!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1234 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:1234 def warning_ignored?(warning); end # Lock the monitor, ensure we're properly connected and @@ -11830,426 +11229,380 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # still-yielded connection in the outer block), but we currently # provide no special enforcement there. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#990 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:990 def with_raw_connection(allow_retry: T.unsafe(nil), materialize_transactions: T.unsafe(nil)); end class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:32 def __callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:32 def __callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:33 def _checkin_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:33 def _checkin_callbacks=(value); end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:33 def _checkout_callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:33 def _checkout_callbacks=(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#87 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:87 def build_read_query_regexp(*parts); end # Does the database for this adapter exist? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#360 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:360 def database_exists?(config); end # Opens a database console session. # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#122 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:122 def dbconsole(config, options = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#884 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:884 def extended_type_map(default_timezone:); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#93 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:93 def find_cmd_and_exec(commands, *args); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#877 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:877 def register_class_with_precision(mapping, key, klass, **kwargs); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#66 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:66 def type_cast_config_to_boolean(config); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#56 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:56 def type_cast_config_to_integer(config); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#74 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:74 def validate_default_timezone(config); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:32 def __class_attr___callbacks; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:32 def __class_attr___callbacks=(new_value); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#944 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:944 def extract_limit(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#940 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:940 def extract_precision(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#933 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:933 def extract_scale(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#893 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:893 def initialize_type_map(m); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#926 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:926 def register_class_with_limit(mapping, key, klass); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#31 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:31 ActiveRecord::ConnectionAdapters::AbstractAdapter::ADAPTER_NAME = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#41 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:41 ActiveRecord::ConnectionAdapters::AbstractAdapter::COMMENT_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#84 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:84 ActiveRecord::ConnectionAdapters::AbstractAdapter::DEFAULT_READ_QUERY = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#950 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:950 ActiveRecord::ConnectionAdapters::AbstractAdapter::EXTENDED_TYPE_MAPS = T.let(T.unsafe(nil), Concurrent::Map) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#40 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:40 ActiveRecord::ConnectionAdapters::AbstractAdapter::SIMPLE_INT = T.let(T.unsafe(nil), Regexp) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#949 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:949 ActiveRecord::ConnectionAdapters::AbstractAdapter::TYPE_MAP = T.let(T.unsafe(nil), ActiveRecord::Type::TypeMap) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#245 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:245 class ActiveRecord::ConnectionAdapters::AbstractAdapter::Version include ::Comparable - # @return [Version] a new instance of Version - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#250 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:250 def initialize(version_string, full_version_string = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#255 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:255 def <=>(version_string); end - # Returns the value of attribute full_version_string. - # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#248 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:248 def full_version_string; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#259 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract_adapter.rb:259 def to_s; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#11 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:11 module ActiveRecord::ConnectionAdapters::AbstractPool; end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#113 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:113 class ActiveRecord::ConnectionAdapters::AddColumnDefinition < ::Struct - # Returns the value of attribute column - # - # @return [Object] the current value of column + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:113 def column; end - # Sets the attribute column - # - # @param value [Object] the value to set the attribute column to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:113 def column=(_); end class << self + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:113 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:113 def inspect; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:113 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:113 def members; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:113 def new(*_arg0); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#624 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:624 class ActiveRecord::ConnectionAdapters::AlterTable - # @return [AlterTable] a new instance of AlterTable - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#630 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:630 def initialize(td); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#650 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:650 def add_check_constraint(expression, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#662 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:662 def add_column(name, type, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#642 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:642 def add_foreign_key(to_table, options); end - # Returns the value of attribute adds. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#625 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:625 def adds; end - # Returns the value of attribute check_constraint_adds. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#627 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:627 def check_constraint_adds; end - # Returns the value of attribute check_constraint_drops. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#627 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:627 def check_constraint_drops; end - # Returns the value of attribute constraint_drops. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#628 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:628 def constraint_drops; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#654 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:654 def drop_check_constraint(constraint_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#658 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:658 def drop_constraint(constraint_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#646 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:646 def drop_foreign_key(name); end - # Returns the value of attribute foreign_key_adds. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#626 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:626 def foreign_key_adds; end - # Returns the value of attribute foreign_key_drops. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#626 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:626 def foreign_key_drops; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#640 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:640 def name; end end -# source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#143 +# pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:143 class ActiveRecord::ConnectionAdapters::BoundSchemaReflection - # @return [BoundSchemaReflection] a new instance of BoundSchemaReflection - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#160 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:160 def initialize(abstract_schema_reflection, pool); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#185 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:185 def add(name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#173 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:173 def cached?(table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#165 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:165 def clear!; end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#217 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:217 def clear_data_source_cache!(name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#193 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:193 def columns(table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#197 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:197 def columns_hash(table_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#201 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:201 def columns_hash?(table_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#181 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:181 def data_source_exists?(name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#189 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:189 def data_sources(name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#221 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:221 def dump_to(filename); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#205 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:205 def indexes(table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#169 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:169 def load!; end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#177 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:177 def primary_keys(table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#213 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:213 def size; end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#209 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:209 def version; end class << self - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#155 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:155 def for_lone_connection(abstract_schema_reflection, connection); end end end -# :nodoc -# -# source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#144 +# pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:144 class ActiveRecord::ConnectionAdapters::BoundSchemaReflection::FakePool - # @return [FakePool] a new instance of FakePool + # :nodoc # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#145 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:145 def initialize(connection); end - # @yield [@connection] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#149 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:149 def with_connection; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#117 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 class ActiveRecord::ConnectionAdapters::ChangeColumnDefaultDefinition < ::Struct - # Returns the value of attribute column - # - # @return [Object] the current value of column + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def column; end - # Sets the attribute column - # - # @param value [Object] the value to set the attribute column to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def column=(_); end - # Returns the value of attribute default - # - # @return [Object] the current value of default + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def default; end - # Sets the attribute default - # - # @param value [Object] the value to set the attribute default to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def default=(_); end class << self + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def inspect; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def members; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:117 def new(*_arg0); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#115 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 class ActiveRecord::ConnectionAdapters::ChangeColumnDefinition < ::Struct - # Returns the value of attribute column - # - # @return [Object] the current value of column + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def column; end - # Sets the attribute column - # - # @param value [Object] the value to set the attribute column to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def column=(_); end - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def name=(_); end class << self + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def inspect; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def members; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:115 def new(*_arg0); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#175 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 class ActiveRecord::ConnectionAdapters::CheckConstraintDefinition < ::Struct - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#189 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:189 def defined_for?(name:, expression: T.unsafe(nil), validate: T.unsafe(nil), **options); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#185 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:185 def export_name_on_schema_dump?; end - # Returns the value of attribute expression - # - # @return [Object] the current value of expression + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def expression; end - # Sets the attribute expression - # - # @param value [Object] the value to set the attribute expression to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def expression=(_); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#176 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:176 def name; end - # Returns the value of attribute options - # - # @return [Object] the current value of options + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def options; end - # Sets the attribute options - # - # @param value [Object] the value to set the attribute options to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def options=(_); end - # Returns the value of attribute table_name - # - # @return [Object] the current value of table_name + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def table_name; end - # Sets the attribute table_name - # - # @param value [Object] the value to set the attribute table_name to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def table_name=(_); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#180 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:180 def validate?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#180 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:183 def validated?; end class << self + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def inspect; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def members; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:175 def new(*_arg0); end end end # An abstract definition of a column in a table. # -# source://activerecord//lib/active_record/connection_adapters/column.rb#7 +# pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:7 class ActiveRecord::ConnectionAdapters::Column include ::ActiveRecord::ConnectionAdapters::Deduplicable extend ::ActiveRecord::ConnectionAdapters::Deduplicable::ClassMethods @@ -12261,63 +11614,45 @@ class ActiveRecord::ConnectionAdapters::Column # +sql_type_metadata+ is various information about the type of the column # +null+ determines if this column allows +NULL+ values. # - # @return [Column] a new instance of Column - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#20 - def initialize(name, default, sql_type_metadata = T.unsafe(nil), null = T.unsafe(nil), default_function = T.unsafe(nil), collation: T.unsafe(nil), comment: T.unsafe(nil), **_arg7); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:20 + def initialize(name, default, sql_type_metadata = T.unsafe(nil), null = T.unsafe(nil), default_function = T.unsafe(nil), collation: T.unsafe(nil), comment: T.unsafe(nil), **); end - # source://activerecord//lib/active_record/connection_adapters/column.rb#75 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:75 def ==(other); end # whether the column is auto-populated by the database using a sequence # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#67 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:67 def auto_incremented_by_db?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#71 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:71 def auto_populated?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#34 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:34 def bigint?; end - # Returns the value of attribute collation. - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:10 def collation; end - # Returns the value of attribute comment. - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:10 def comment; end - # Returns the value of attribute default. - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:10 def default; end - # Returns the value of attribute default_function. - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:10 def default_function; end - # source://activerecord//lib/active_record/connection_adapters/column.rb#56 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:56 def encode_with(coder); end - # source://activerecord//lib/active_record/connection_adapters/column.rb#75 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:85 def eql?(other); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#30 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:30 def has_default?; end - # source://activerecord//lib/active_record/connection_adapters/column.rb#87 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:87 def hash; end # Returns the human name of the column name. @@ -12325,50 +11660,42 @@ class ActiveRecord::ConnectionAdapters::Column # ===== Examples # Column.new('sales_stage', ...).human_name # => 'Sales stage' # - # source://activerecord//lib/active_record/connection_adapters/column.rb#42 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:42 def human_name; end - # source://activerecord//lib/active_record/connection_adapters/column.rb#46 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:46 def init_with(coder); end - # source://activerecord//lib/active_record/connection_adapters/column.rb#12 - def limit(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:12 + def limit(*, **, &); end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:10 def name; end - # Returns the value of attribute null. - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:10 def null; end - # source://activerecord//lib/active_record/connection_adapters/column.rb#12 - def precision(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:12 + def precision(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/column.rb#12 - def scale(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:12 + def scale(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/column.rb#12 - def sql_type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:12 + def sql_type(*, **, &); end - # Returns the value of attribute sql_type_metadata. - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:10 def sql_type_metadata; end - # source://activerecord//lib/active_record/connection_adapters/column.rb#12 - def type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:12 + def type(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#99 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:99 def virtual?; end private - # source://activerecord//lib/active_record/connection_adapters/column.rb#104 + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:104 def deduplicated; end end @@ -12377,127 +11704,114 @@ end # +columns+ attribute of said TableDefinition object, in order to be used # for generating a number of table creation or table changing SQL statements. # -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#78 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 class ActiveRecord::ConnectionAdapters::ColumnDefinition < ::Struct - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#108 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:108 def aliased_types(name, fallback); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def collation; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def collation=(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def comment; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def comment=(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def default; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def default=(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def if_exists; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def if_exists=(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def if_not_exists; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def if_not_exists=(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def limit; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def limit=(value); end - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def name=(_); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def null; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def null=(value); end - # Returns the value of attribute options - # - # @return [Object] the current value of options + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def options; end - # Sets the attribute options - # - # @param value [Object] the value to set the attribute options to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def options=(_); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def precision; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def precision=(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#92 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:92 def primary_key?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def scale; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:97 def scale=(value); end - # Returns the value of attribute sql_type - # - # @return [Object] the current value of sql_type + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def sql_type; end - # Sets the attribute sql_type - # - # @param value [Object] the value to set the attribute sql_type to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def sql_type=(_); end - # Returns the value of attribute type - # - # @return [Object] the current value of type + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def type; end - # Sets the attribute type - # - # @param value [Object] the value to set the attribute type to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def type=(_); end class << self + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def inspect; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def members; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:78 def new(*_arg0); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#79 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:79 ActiveRecord::ConnectionAdapters::ColumnDefinition::OPTION_NAMES = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#303 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:303 module ActiveRecord::ConnectionAdapters::ColumnMethods extend ::ActiveSupport::Concern @@ -12506,15 +11820,15 @@ module ActiveRecord::ConnectionAdapters::ColumnMethods # Appends a primary key definition to the table definition. # Can be called multiple times, but this is probably not a good idea. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#308 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:308 def primary_key(name, type = T.unsafe(nil), **options); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#0 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:331 module ActiveRecord::ConnectionAdapters::ColumnMethods::ClassMethods private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#332 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:332 def define_column_methods(*column_types); end end @@ -12568,81 +11882,72 @@ end # about the model. The model needs to pass a connection specification name to the handler, # in order to look up the correct connection pool. # -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#56 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:56 class ActiveRecord::ConnectionAdapters::ConnectionHandler - # @return [ConnectionHandler] a new instance of ConnectionHandler - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#76 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:76 def initialize; end # Returns true if there are any active connections among the connection # pools that the ConnectionHandler is managing. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#157 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:157 def active_connections?(role = T.unsafe(nil)); end # Returns any connections in use by the current thread back to the pool, # and also returns connections to the pool cached by threads that are no # longer alive. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#164 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:164 def clear_active_connections!(role = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#178 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:178 def clear_all_connections!(role = T.unsafe(nil)); end # Clears reloadable connection caches in all connection pools. # # See ConnectionPool#clear_reloadable_connections! for details. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#174 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:174 def clear_reloadable_connections!(role = T.unsafe(nil)); end # Returns true if a connection that's accessible to this class has # already been opened. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#200 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:200 def connected?(connection_name, role: T.unsafe(nil), shard: T.unsafe(nil)); end # Returns the pools for a connection handler and given role. If +:all+ is passed, # all pools belonging to the connection handler will be returned. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#95 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:95 def connection_pool_list(role = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#89 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:89 def connection_pool_names; end - # Returns the pools for a connection handler and given role. If +:all+ is passed, - # all pools belonging to the connection handler will be returned. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#95 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:102 def connection_pools(role = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#104 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:104 def each_connection_pool(role = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#115 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:115 def establish_connection(config, owner_name: T.unsafe(nil), role: T.unsafe(nil), shard: T.unsafe(nil), clobber: T.unsafe(nil)); end # Disconnects all currently idle connections. # # See ConnectionPool#flush! for details. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#185 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:185 def flush_idle_connections!(role = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#81 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:81 def prevent_writes; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#85 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:85 def prevent_writes=(prevent_writes); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#205 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:205 def remove_connection_pool(connection_name, role: T.unsafe(nil), shard: T.unsafe(nil)); end # Locate the connection of the nearest super class. This can be an @@ -12650,35 +11955,33 @@ class ActiveRecord::ConnectionAdapters::ConnectionHandler # opened and set as the active connection for the class it was defined # for (not necessarily the current class). # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#193 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:193 def retrieve_connection(connection_name, role: T.unsafe(nil), shard: T.unsafe(nil)); end # Retrieving the connection pool happens a lot, so we cache it in @connection_name_to_pool_manager. # This makes retrieving the connection pool O(1) once the process is warm. # When a connection is established or removed, we invalidate the cache. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#214 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:214 def retrieve_connection_pool(connection_name, role: T.unsafe(nil), shard: T.unsafe(nil), strict: T.unsafe(nil)); end private - # Returns the value of attribute connection_name_to_pool_manager. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#240 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:240 def connection_name_to_pool_manager; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#282 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:282 def determine_owner_name(owner_name, config); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#256 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:256 def disconnect_pool_from_pool_manager(pool_manager, role, shard); end # Returns the pool manager for a connection name / identifier. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#243 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:243 def get_pool_manager(connection_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#252 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:252 def pool_managers; end # Returns an instance of PoolConfig for a given adapter. @@ -12691,33 +11994,27 @@ class ActiveRecord::ConnectionAdapters::ConnectionHandler # pool_config.db_config.configuration_hash # # => { host: "localhost", database: "foo", adapter: "sqlite3" } # - # @raise [AdapterNotSpecified] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#275 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:275 def resolve_pool_config(config, connection_name, role, shard); end # Get the existing pool manager or initialize and assign a new one. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#248 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:248 def set_pool_manager(connection_descriptor); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#57 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:57 class ActiveRecord::ConnectionAdapters::ConnectionHandler::ConnectionDescriptor - # @return [ConnectionDescriptor] a new instance of ConnectionDescriptor - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#58 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:58 def initialize(name, primary = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#71 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:71 def current_preventing_writes; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#63 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:63 def name; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_handler.rb#67 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_handler.rb:67 def primary_class?; end end @@ -12788,7 +12085,7 @@ end # * private methods that require being called in a +synchronize+ blocks # are now explicitly documented # -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#7 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:7 class ActiveRecord::ConnectionAdapters::ConnectionPool include ::ActiveRecord::ConnectionAdapters::QueryCache::ConnectionPoolConfiguration include ::MonitorMixin @@ -12801,20 +12098,10 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # # The default ConnectionPool maximum size is 5. # - # @return [ConnectionPool] a new instance of ConnectionPool - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#117 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:233 + def initialize(*, **, &); end - # Returns true if there is an open connection being used for the current thread. - # - # This method only works for connections that have been obtained through - # #lease_connection or #with_connection methods. Connections obtained through - # #checkout will not be detected by #active_connection? - # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#380 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:383 def active_connection; end # Returns true if there is an open connection being used for the current thread. @@ -12823,26 +12110,16 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # #lease_connection or #with_connection methods. Connections obtained through # #checkout will not be detected by #active_connection? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#380 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:380 def active_connection?; end - # Returns the value of attribute async_executor. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#223 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:223 def async_executor; end - # Returns the value of attribute automatic_reconnect. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#222 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:222 def automatic_reconnect; end - # Sets the attribute automatic_reconnect - # - # @param value the value to set the attribute automatic_reconnect to. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#222 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:222 def automatic_reconnect=(_arg0); end # Check-in a database connection back into the pool, indicating that you @@ -12851,7 +12128,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # +conn+: an AbstractAdapter object, which was obtained by earlier by # calling #checkout on this pool. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#579 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:579 def checkin(conn); end # Check-out a database connection from the pool, indicating that you want @@ -12869,22 +12146,16 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # Raises: # - ActiveRecord::ConnectionTimeoutError no connection can be obtained from the pool. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#551 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:551 def checkout(checkout_timeout = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#132 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:946 def checkout_and_verify(connection); end - # Returns the value of attribute checkout_timeout. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#222 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:222 def checkout_timeout; end - # Sets the attribute checkout_timeout - # - # @param value the value to set the attribute checkout_timeout to. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#222 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:222 def checkout_timeout=(_arg0); end # Clears reloadable connections from the pool and re-connects connections that @@ -12895,7 +12166,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # connections in the pool within a timeout interval (default duration is # spec.db_config.checkout_timeout * 2 seconds). # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#509 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:509 def clear_reloadable_connections(raise_on_acquisition_timeout = T.unsafe(nil)); end # Clears reloadable connections from the pool and re-connects connections that @@ -12907,17 +12178,15 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # clears the cache and reloads connections without any regard for other # connection owning threads. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#533 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:533 def clear_reloadable_connections!; end # Returns true if a connection has already been opened. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#431 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:431 def connected?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#371 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:371 def connection_descriptor; end # Returns an array containing the connections currently in the pool. @@ -12932,12 +12201,10 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # thread-safety guarantees of the underlying method. Many of the methods # on connection adapter classes are inherently multi-thread unsafe. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#446 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:446 def connections; end - # Returns the value of attribute db_config. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#223 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:223 def db_config; end # Discards all connections in the pool (even if they're currently @@ -12946,12 +12213,10 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # # See AbstractAdapter#discard! # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#488 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:488 def discard!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#498 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:498 def discarded?; end # Disconnects all connections in the pool, and clears the pool. @@ -12961,7 +12226,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # connections in the pool within a timeout interval (default duration is # spec.db_config.checkout_timeout * 2 seconds). # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#456 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:456 def disconnect(raise_on_acquisition_timeout = T.unsafe(nil)); end # Disconnects all connections in the pool, and clears the pool. @@ -12971,26 +12236,26 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # spec.db_config.checkout_timeout * 2 seconds), then the pool is forcefully # disconnected without any regard for other connection owning threads. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#479 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:479 def disconnect!; end # Disconnect all connections that have been idle for at least # +minimum_idle+ seconds. Connections currently checked out, or that were # checked in less than +minimum_idle+ seconds ago, are unaffected. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#652 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:652 def flush(minimum_idle = T.unsafe(nil)); end # Disconnect all currently idle connections. Connections currently checked # out are unaffected. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#674 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:674 def flush!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#279 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:279 def inspect; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#307 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:307 def internal_metadata; end # Retrieve the connection associated with the current thread, or call @@ -12999,44 +12264,38 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # #lease_connection can be called any number of times; the connection is # held in a cache keyed by a thread. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#316 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:316 def lease_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#295 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:295 def migration_context; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#299 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:299 def migrations_paths; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#705 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:705 def new_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#679 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:679 def num_waiting_in_queue; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#323 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:323 def permanent_lease?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#327 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:327 def pin_connection!(lock_thread); end - # Returns the value of attribute pool_config. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#223 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:223 def pool_config; end # Recover lost connections for the pool. A lost connection can occur if # a programmer forgets to checkin a connection at the end of a thread # or a thread dies unexpectedly. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#629 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:629 def reap; end - # Returns the value of attribute reaper. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#223 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:223 def reaper; end # Signal that the thread is finished with the current connection. @@ -13047,56 +12306,50 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # #lease_connection or #with_connection methods, connections obtained through # #checkout will not be automatically released. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#392 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:392 def release_connection(existing_lease = T.unsafe(nil)); end # Remove a connection from the connection pool. The connection will # remain open and active but will no longer be managed by this pool. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#597 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:597 def remove(conn); end - # Returns the value of attribute role. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#223 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:223 def role; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#700 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:700 def schedule_query(future_result); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#286 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:286 def schema_cache; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#303 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:303 def schema_migration; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#225 - def schema_reflection(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:225 + def schema_reflection(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#290 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:290 def schema_reflection=(schema_reflection); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#225 - def server_version(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:225 + def server_version(*, **, &); end - # Returns the value of attribute shard. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#223 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:223 def shard; end - # Returns the value of attribute size. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#223 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:223 def size; end # Returns the connection pool's usage statistic. # # ActiveRecord::Base.connection_pool.stat # => { size: 15, connections: 1, busy: 1, dead: 0, idle: 0, waiting: 0, checkout_timeout: 5 } # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#686 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:686 def stat; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#343 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:343 def unpin_connection!; end # Yields a connection from the connection pool to the block. If no connection @@ -13109,7 +12362,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # connection will be properly returned to the pool by the code that checked # it out. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#409 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:409 def with_connection(prevent_permanent_checkout: T.unsafe(nil)); end private @@ -13126,48 +12379,43 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # Implementation detail: the connection returned by +acquire_connection+ # will already be "+connection.lease+ -ed" to the current thread. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#866 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:866 def acquire_connection(checkout_timeout); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#930 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:930 def adopt_connection(conn); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#757 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:757 def attempt_to_checkout_all_existing_connections(raise_on_acquisition_timeout = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#718 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:718 def build_async_executor; end # -- # this is unfortunately not concurrent # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#736 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:736 def bulk_make_new_connections(num_new_conns_needed); end # -- # Must be called in a synchronize block. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#806 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:806 def checkout_for_exclusive_access(checkout_timeout); end - # @raise [ConnectionNotEstablished] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#941 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:941 def checkout_new_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#714 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:714 def connection_lease; end - # -- - # if owner_thread param is omitted, this must be called in synchronize block - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#891 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:896 def release(conn, owner_thread = T.unsafe(nil)); end # -- # if owner_thread param is omitted, this must be called in synchronize block # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#891 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:891 def remove_connection_from_thread_cache(conn, owner_thread = T.unsafe(nil)); end # If the pool is not at a @size limit, establish new connection. Connecting @@ -13176,7 +12424,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # Implementation constraint: a newly established connection returned by this # method must be in the +.leased+ state. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#903 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:903 def try_to_checkout_new_connection; end # Take control of all existing connections so a "group" action such as @@ -13184,14 +12432,14 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # wrap it in +synchronize+ because some pool's actions are allowed # to be performed outside of the main +synchronize+ block. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#750 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:750 def with_exclusively_acquired_all_connections(raise_on_acquisition_timeout = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#826 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:826 def with_new_connections_blocked; end class << self - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#213 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:213 def install_executor_hooks(executor = T.unsafe(nil)); end end end @@ -13199,32 +12447,30 @@ end # Adds the ability to turn a basic fair FIFO queue into one # biased to some thread. # -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#137 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:137 module ActiveRecord::ConnectionAdapters::ConnectionPool::BiasableQueue - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#177 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:177 def with_a_bias_for(thread); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#138 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:138 class ActiveRecord::ConnectionAdapters::ConnectionPool::BiasableQueue::BiasedConditionVariable # semantics of condition variables guarantee that +broadcast+, +broadcast_on_biased+, # +signal+ and +wait+ methods are only called while holding a lock # - # @return [BiasedConditionVariable] a new instance of BiasedConditionVariable - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#141 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:141 def initialize(lock, other_cond, preferred_thread); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#148 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:148 def broadcast; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#153 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:153 def broadcast_on_biased; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#158 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:158 def signal; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#167 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:167 def wait(timeout); end end @@ -13234,76 +12480,60 @@ end # @lock as the main pool) so that a returned connection is already # leased and there is no need to re-enter synchronized block. # -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#198 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:198 class ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue < ::ActiveRecord::ConnectionAdapters::ConnectionPool::Queue include ::ActiveRecord::ConnectionAdapters::ConnectionPool::BiasableQueue private - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#202 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:202 def internal_poll(timeout); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#193 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:193 module ActiveRecord::ConnectionAdapters::ConnectionPool::ExecutorHooks class << self - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#199 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:199 def complete(_); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#195 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:195 def run; end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#148 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:148 class ActiveRecord::ConnectionAdapters::ConnectionPool::Lease - # @return [Lease] a new instance of Lease - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#151 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:151 def initialize; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#163 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:163 def clear(connection); end - # Returns the value of attribute connection. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#149 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:149 def connection; end - # Sets the attribute connection - # - # @param value the value to set the attribute connection to. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#149 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:149 def connection=(_arg0); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#156 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:156 def release; end - # Returns the value of attribute sticky. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#149 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:149 def sticky; end - # Sets the attribute sticky - # - # @param value the value to set the attribute sticky to. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#149 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:149 def sticky=(_arg0); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#174 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:174 class ActiveRecord::ConnectionAdapters::ConnectionPool::LeaseRegistry - # @return [LeaseRegistry] a new instance of LeaseRegistry - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#175 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:175 def initialize; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#180 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:180 def [](context); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#186 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:186 def clear; end end @@ -13312,39 +12542,35 @@ end # Threadsafe, fair, LIFO queue. Meant to be used by ConnectionPool # with which it shares a Monitor. # -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#12 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:12 class ActiveRecord::ConnectionAdapters::ConnectionPool::Queue - # @return [Queue] a new instance of Queue - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#13 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:13 def initialize(lock = T.unsafe(nil)); end # Add +element+ to the queue. Never blocks. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#36 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:36 def add(element); end # Test if any threads are currently waiting on the queue. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#21 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:21 def any_waiting?; end # Remove all elements from the queue. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#51 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:51 def clear; end # If +element+ is in the queue, remove and return it, or +nil+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:44 def delete(element); end # Returns the number of threads currently waiting on this # queue. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#29 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:29 def num_waiting; end # Remove the head of the queue. @@ -13362,16 +12588,14 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool::Queue # - ActiveRecord::ConnectionTimeoutError if +timeout+ is given and no element # becomes available within +timeout+ seconds, # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#71 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:71 def poll(timeout = T.unsafe(nil)); end private # Test if the queue currently contains any elements. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#85 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:85 def any?; end # A thread can remove an element from the queue without @@ -13379,33 +12603,31 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool::Queue # connections is strictly greater than the number of waiting # threads. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#93 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:93 def can_remove_no_wait?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#76 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:76 def internal_poll(timeout); end # Remove and return the head of the queue if the number of # available elements is strictly greater than the number of # threads currently waiting. Otherwise, return +nil+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#105 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:105 def no_wait_poll; end # Removes and returns the head of the queue if possible, or +nil+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:98 def remove; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#80 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:80 def synchronize(&block); end # Waits on the queue up to +timeout+ seconds, then removes and # returns the head of the queue. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/queue.rb#111 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/queue.rb:111 def wait_poll(timeout); end end @@ -13418,198 +12640,172 @@ end # Configure the frequency by setting +reaping_frequency+ in your database # YAML file (default 60 seconds). # -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb#16 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb:16 class ActiveRecord::ConnectionAdapters::ConnectionPool::Reaper - # @return [Reaper] a new instance of Reaper - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb#19 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb:19 def initialize(pool, frequency); end - # Returns the value of attribute frequency. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb#17 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb:17 def frequency; end - # Returns the value of attribute pool. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb#17 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb:17 def pool; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb#71 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb:71 def run; end class << self - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb#29 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb:29 def register_pool(pool, frequency); end private - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb#40 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb:40 def spawn_thread(frequency); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#124 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:124 ActiveRecord::ConnectionAdapters::ConnectionPool::WeakThreadKeyMap = ObjectSpace::WeakKeyMap -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#119 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 class ActiveRecord::ConnectionAdapters::CreateIndexDefinition < ::Struct - # Returns the value of attribute algorithm - # - # @return [Object] the current value of algorithm + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def algorithm; end - # Sets the attribute algorithm - # - # @param value [Object] the value to set the attribute algorithm to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def algorithm=(_); end - # Returns the value of attribute if_not_exists - # - # @return [Object] the current value of if_not_exists + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def if_not_exists; end - # Sets the attribute if_not_exists - # - # @param value [Object] the value to set the attribute if_not_exists to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def if_not_exists=(_); end - # Returns the value of attribute index - # - # @return [Object] the current value of index + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def index; end - # Sets the attribute index - # - # @param value [Object] the value to set the attribute index to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def index=(_); end class << self + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def inspect; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def members; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:119 def new(*_arg0); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/database_limits.rb#5 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_limits.rb:5 module ActiveRecord::ConnectionAdapters::DatabaseLimits # Returns the maximum length of an index name. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_limits.rb#21 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_limits.rb:21 def index_name_length; end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_limits.rb#6 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_limits.rb:6 def max_identifier_length; end # Returns the maximum length of a table alias. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_limits.rb#16 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_limits.rb:16 def table_alias_length; end # Returns the maximum length of a table name. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_limits.rb#11 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_limits.rb:11 def table_name_length; end private - # source://activerecord//lib/active_record/connection_adapters/abstract/database_limits.rb#26 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_limits.rb:26 def bind_params_length; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#5 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:5 module ActiveRecord::ConnectionAdapters::DatabaseStatements - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#6 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:6 def initialize; end # Register a record with the current transaction so that its after_commit and after_rollback callbacks # can be called. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#405 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:405 def add_transaction_record(record, ensure_finalize = T.unsafe(nil)); end # Begins the transaction (and turns off auto-committing). # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#410 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:410 def begin_db_transaction; end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#412 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:412 def begin_deferred_transaction(isolation_level = T.unsafe(nil)); end # Begins the transaction with the isolation level set. Raises an error by # default; adapters that support setting the isolation level should implement # this method. # - # @raise [ActiveRecord::TransactionIsolationError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#432 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:432 def begin_isolated_db_transaction(isolation); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def begin_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def begin_transaction(*, **, &); end # This is used in the StatementCache object. It returns an object that # can be used to query the database repeatedly. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#56 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:56 def cacheable_query(klass, arel); end # Commits the transaction (and turns on auto-committing). # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#446 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:446 def commit_db_transaction; end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def commit_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def commit_transaction(*, **, &); end - # Executes an INSERT query and returns the new record's ID - # - # +id_value+ will be returned unless the value is +nil+, in - # which case the database will attempt to calculate the last inserted - # id and return that value. - # - # If the next id was calculated in advance (as in Oracle), it should be - # passed in as +id_value+. - # Some adapters support the `returning` keyword argument which allows defining the return value of the method: - # `nil` is the default value and maintains default behavior. If an array of column names is passed - - # an array of is returned from the method representing values of the specified columns from the inserted row. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#195 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:203 def create(arel, name = T.unsafe(nil), pk = T.unsafe(nil), id_value = T.unsafe(nil), sequence_name = T.unsafe(nil), binds = T.unsafe(nil), returning: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def current_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def current_transaction(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#468 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:468 def default_sequence_name(table, column); end # Executes the delete statement and returns the number of rows affected. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#212 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:212 def delete(arel, name = T.unsafe(nil), binds = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def dirty_current_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def dirty_current_transaction(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def disable_lazy_transactions!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def disable_lazy_transactions!(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#498 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:498 def empty_insert_statement_value(primary_key = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def enable_lazy_transactions!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def enable_lazy_transactions!(*, **, &); end # Executes delete +sql+ statement in the context of this connection using # +binds+ as the bind substitutes. +name+ is logged along with # the executed +sql+ statement. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#165 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:165 def exec_delete(sql, name = T.unsafe(nil), binds = T.unsafe(nil)); end # Executes insert +sql+ statement in the context of this connection using @@ -13619,10 +12815,10 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # `nil` is the default value and maintains default behavior. If an array of column names is passed - # the result will contain values of the specified columns from the inserted row. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#157 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:157 def exec_insert(sql, name = T.unsafe(nil), binds = T.unsafe(nil), pk = T.unsafe(nil), sequence_name = T.unsafe(nil), returning: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#176 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:176 def exec_insert_all(sql, name); end # Executes +sql+ statement in the context of this connection using @@ -13633,20 +12829,20 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # will be cleared. If the query is read-only, consider using #select_all # instead. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#147 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:147 def exec_query(sql, name = T.unsafe(nil), binds = T.unsafe(nil), prepare: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#462 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:462 def exec_restart_db_transaction; end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#456 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:456 def exec_rollback_db_transaction; end # Executes update +sql+ statement in the context of this connection using # +binds+ as the bind substitutes. +name+ is logged along with # the executed +sql+ statement. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#172 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:172 def exec_update(sql, name = T.unsafe(nil), binds = T.unsafe(nil)); end # Executes the SQL statement in the context of this connection and returns @@ -13664,12 +12860,10 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # method may be manually memory managed. Consider using #exec_query # wrapper instead. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#136 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:136 def execute(sql, name = T.unsafe(nil), allow_retry: T.unsafe(nil)); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#180 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:180 def explain(arel, binds = T.unsafe(nil), options = T.unsafe(nil)); end # Returns an Arel SQL literal for the CURRENT_TIMESTAMP for usage with @@ -13678,7 +12872,7 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # Adapters supporting datetime with precision should override this to # provide as much precision as is available. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#536 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:536 def high_precision_current_timestamp; end # Executes an INSERT query and returns the new record's ID @@ -13693,7 +12887,7 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # `nil` is the default value and maintains default behavior. If an array of column names is passed - # an array of is returned from the method representing values of the specified columns from the inserted row. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#195 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:195 def insert(arel, name = T.unsafe(nil), pk = T.unsafe(nil), id_value = T.unsafe(nil), sequence_name = T.unsafe(nil), binds = T.unsafe(nil), returning: T.unsafe(nil)); end # Inserts the given fixture into the table. Overridden in adapters that require @@ -13702,39 +12896,39 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # We keep this method to provide fallback # for databases like SQLite that do not support bulk inserts. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#482 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:482 def insert_fixture(fixture, table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#486 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:486 def insert_fixtures_set(fixture_set, tables_to_delete = T.unsafe(nil)); end # Execute a query and returns an ActiveRecord::Result # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#546 - def internal_exec_query(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:546 + def internal_exec_query(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#372 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:372 def mark_transaction_written_if_write(sql); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def materialize_transactions(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def materialize_transactions(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def open_transactions(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def open_transactions(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#113 - def query(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:113 + def query(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#105 - def query_value(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:105 + def query_value(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#109 - def query_values(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:109 + def query_values(*, **, &); end # Same as raw_execute but returns an ActiveRecord::Result object. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#541 - def raw_exec_query(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:541 + def raw_exec_query(*, **, &); end # Hook point called after an isolated DB transaction is committed # or rolled back. @@ -13743,31 +12937,31 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # But some databases like SQLite set it on a per connection level # and need to explicitly reset it after commit or rollback. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#442 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:442 def reset_isolation_level; end # Set the sequence to the max value of the table's column. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#473 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:473 def reset_sequence!(table, column, sequence = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#383 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:383 def reset_transaction(restore: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#458 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:458 def restart_db_transaction; end # Rolls back the transaction (and turns on auto-committing). Must be # done if the transaction block raises an exception or returns false. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#450 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:450 def rollback_db_transaction; end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#464 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:464 def rollback_to_savepoint(name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def rollback_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def rollback_transaction(*, **, &); end # Sanitizes the given LIMIT parameter in order to prevent SQL injection. # @@ -13776,40 +12970,40 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # # Returns Integer and Arel::Nodes::SqlLiteral limits as is. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#508 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:508 def sanitize_limit(limit); end # Returns an ActiveRecord::Result instance. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#69 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:69 def select_all(arel, name = T.unsafe(nil), binds = T.unsafe(nil), preparable: T.unsafe(nil), async: T.unsafe(nil), allow_retry: T.unsafe(nil)); end # Returns a record hash with the column names as keys and column values # as values. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#84 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:84 def select_one(arel, name = T.unsafe(nil), binds = T.unsafe(nil), async: T.unsafe(nil)); end # Returns an array of arrays containing the field values. # Order is the same as that returned by +columns+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#101 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:101 def select_rows(arel, name = T.unsafe(nil), binds = T.unsafe(nil), async: T.unsafe(nil)); end # Returns a single value from a record # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#89 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:89 def select_value(arel, name = T.unsafe(nil), binds = T.unsafe(nil), async: T.unsafe(nil)); end # Returns an array of the values of the first column in a select: # select_values("SELECT id FROM companies LIMIT 3") => [1,2,3] # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#95 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:95 def select_values(arel, name = T.unsafe(nil), binds = T.unsafe(nil)); end # Converts an arel AST to SQL # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#12 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:12 def to_sql(arel_or_sql_string, binds = T.unsafe(nil)); end # Runs the given block in a database transaction, and returns the result @@ -13932,254 +13126,227 @@ module ActiveRecord::ConnectionAdapters::DatabaseStatements # isolation level. # :args: (requires_new: nil, isolation: nil, &block) # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#352 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:352 def transaction(requires_new: T.unsafe(nil), isolation: T.unsafe(nil), joinable: T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#420 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:420 def transaction_isolation_levels; end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#365 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:365 def transaction_manager; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#379 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:379 def transaction_open?; end # Executes the truncate statement. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#218 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:218 def truncate(table_name, name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#222 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:222 def truncate_tables(*table_names); end # Executes the update statement and returns the number of rows affected. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#206 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:206 def update(arel, name = T.unsafe(nil), binds = T.unsafe(nil)); end # Fixture value is quoted by Arel, however scalar values # are not quotable. In this case we want to convert # the column value to YAML. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#519 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:519 def with_yaml_fallback(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#367 - def within_new_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:367 + def within_new_transaction(*, **, &); end # Determines whether the SQL statement is a write query. # - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#118 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:118 def write_query?(sql); end private - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#570 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:570 def affected_rows(raw_result); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#732 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:732 def arel_from_relation(relation); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#607 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:607 def build_fixture_sql(fixtures, table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#649 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:649 def build_fixture_statements(fixture_set); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#656 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:656 def build_truncate_statement(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#660 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:660 def build_truncate_statements(table_names); end # Receive a native adapter result object and returns an ActiveRecord::Result object. # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#566 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:566 def cast_result(raw_result); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#666 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:666 def combine_multi_statements(total_sql); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#603 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:603 def default_insert_value(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#594 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:594 def execute_batch(statements, name = T.unsafe(nil), **kwargs); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#740 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:740 def extract_table_ref_from_insert_sql(sql); end # Same as #internal_exec_query, but yields a native adapter result # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#589 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:589 def internal_execute(sql, name = T.unsafe(nil), binds = T.unsafe(nil), prepare: T.unsafe(nil), async: T.unsafe(nil), allow_retry: T.unsafe(nil), materialize_transactions: T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#719 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:719 def last_inserted_id(result); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#561 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:561 def perform_query(raw_connection, sql, binds, type_casted_binds, prepare:, notification_payload:, batch:); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#574 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:574 def preprocess_query(sql); end # Lowest level way to execute a query. Doesn't check for illegal writes, doesn't annotate queries, yields a native result object. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#552 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:552 def raw_execute(sql, name = T.unsafe(nil), binds = T.unsafe(nil), prepare: T.unsafe(nil), async: T.unsafe(nil), allow_retry: T.unsafe(nil), materialize_transactions: T.unsafe(nil), batch: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#723 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:723 def returning_column_values(result); end # Returns an ActiveRecord::Result instance. # - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#671 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:671 def select(sql, name = T.unsafe(nil), binds = T.unsafe(nil), prepare: T.unsafe(nil), async: T.unsafe(nil), allow_retry: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#727 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:727 def single_value_from_rows(rows); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#702 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:702 def sql_for_insert(sql, pk, binds, returning); end - # source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#17 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:17 def to_sql_and_binds(arel_or_sql_string, binds = T.unsafe(nil), preparable = T.unsafe(nil), allow_retry = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#600 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:600 ActiveRecord::ConnectionAdapters::DatabaseStatements::DEFAULT_INSERT_VALUE = T.let(T.unsafe(nil), Arel::Nodes::SqlLiteral) # This is a safe default, even if not high precision on all databases # -# source://activerecord//lib/active_record/connection_adapters/abstract/database_statements.rb#528 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/database_statements.rb:528 ActiveRecord::ConnectionAdapters::DatabaseStatements::HIGH_PRECISION_CURRENT_TIMESTAMP = T.let(T.unsafe(nil), Arel::Nodes::SqlLiteral) -# source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#5 +# pkg:gem/activerecord#lib/active_record/connection_adapters/deduplicable.rb:5 module ActiveRecord::ConnectionAdapters::Deduplicable extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::ConnectionAdapters::Deduplicable::ClassMethods - # source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#18 + # pkg:gem/activerecord#lib/active_record/connection_adapters/deduplicable.rb:21 def -@; end - # source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#18 + # pkg:gem/activerecord#lib/active_record/connection_adapters/deduplicable.rb:18 def deduplicate; end private - # source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#24 + # pkg:gem/activerecord#lib/active_record/connection_adapters/deduplicable.rb:24 def deduplicated; end end -# source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#8 +# pkg:gem/activerecord#lib/active_record/connection_adapters/deduplicable.rb:8 module ActiveRecord::ConnectionAdapters::Deduplicable::ClassMethods - # source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#13 - def new(*_arg0, **_arg1); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/deduplicable.rb:13 + def new(*, **); end - # source://activerecord//lib/active_record/connection_adapters/deduplicable.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/deduplicable.rb:9 def registry; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#123 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 class ActiveRecord::ConnectionAdapters::ForeignKeyDefinition < ::Struct - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#128 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:128 def column; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#148 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:148 def custom_primary_key?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#144 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:144 def deferrable; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#161 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:161 def defined_for?(to_table: T.unsafe(nil), validate: T.unsafe(nil), **options); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#157 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:157 def export_name_on_schema_dump?; end - # Returns the value of attribute from_table - # - # @return [Object] the current value of from_table + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def from_table; end - # Sets the attribute from_table - # - # @param value [Object] the value to set the attribute from_table to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def from_table=(_); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#124 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:124 def name; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#136 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:136 def on_delete; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#140 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:140 def on_update; end - # Returns the value of attribute options - # - # @return [Object] the current value of options + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def options; end - # Sets the attribute options - # - # @param value [Object] the value to set the attribute options to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def options=(_); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#132 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:132 def primary_key; end - # Returns the value of attribute to_table - # - # @return [Object] the current value of to_table + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def to_table; end - # Sets the attribute to_table - # - # @param value [Object] the value to set the attribute to_table to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def to_table=(_); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#152 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:152 def validate?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#152 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:155 def validated?; end private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#170 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:170 def default_primary_key; end class << self + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def inspect; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def members; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:123 def new(*_arg0); end end end @@ -14188,328 +13355,288 @@ end # this type are typically created and returned by methods in database # adapters. e.g. ActiveRecord::ConnectionAdapters::MySQL::SchemaStatements#indexes # -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#8 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:8 class ActiveRecord::ConnectionAdapters::IndexDefinition - # @return [IndexDefinition] a new instance of IndexDefinition - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#11 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:11 def initialize(table, name, unique = T.unsafe(nil), columns = T.unsafe(nil), lengths: T.unsafe(nil), orders: T.unsafe(nil), opclasses: T.unsafe(nil), where: T.unsafe(nil), type: T.unsafe(nil), using: T.unsafe(nil), include: T.unsafe(nil), nulls_not_distinct: T.unsafe(nil), comment: T.unsafe(nil), valid: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#46 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:46 def column_options; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def columns; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def comment; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#54 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:54 def defined_for?(columns = T.unsafe(nil), name: T.unsafe(nil), unique: T.unsafe(nil), valid: T.unsafe(nil), include: T.unsafe(nil), nulls_not_distinct: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def include; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def lengths; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def name; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def nulls_not_distinct; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def opclasses; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def orders; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def table; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def type; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def unique; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def using; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def valid; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#42 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:42 def valid?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:9 def where; end private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#65 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:65 def concise_options(options); end end -# source://activerecord//lib/active_record/connection_adapters/column.rb#115 +# pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:115 class ActiveRecord::ConnectionAdapters::NullColumn < ::ActiveRecord::ConnectionAdapters::Column - # @return [NullColumn] a new instance of NullColumn - # - # source://activerecord//lib/active_record/connection_adapters/column.rb#116 - def initialize(name, **_arg1); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/column.rb:116 + def initialize(name, **); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#14 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:14 class ActiveRecord::ConnectionAdapters::NullPool include ::ActiveRecord::ConnectionAdapters::AbstractPool - # @return [NullPool] a new instance of NullPool - # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#24 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:24 def initialize; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#43 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:43 def async_executor; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#41 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:41 def checkin(_); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#40 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:40 def connection_descriptor; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#45 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:45 def db_config; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#49 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:49 def dirties_query_cache; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#39 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:39 def query_cache; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#42 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:42 def remove(_); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#38 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:38 def schema_cache; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#34 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:34 def schema_reflection; end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#30 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:30 def server_version(connection); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#22 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:22 ActiveRecord::ConnectionAdapters::NullPool::NULL_CONFIG = T.let(T.unsafe(nil), ActiveRecord::ConnectionAdapters::NullPool::NullConfig) -# source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#17 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:17 class ActiveRecord::ConnectionAdapters::NullPool::NullConfig - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#18 - def method_missing(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/connection_pool.rb:18 + def method_missing(*, **, &); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#110 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:110 class ActiveRecord::ConnectionAdapters::NullTransaction - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#115 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:115 def add_record(record, _ = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#123 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:123 def after_commit; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#124 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:124 def after_rollback; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#122 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:122 def before_commit; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#112 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:112 def closed?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#118 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:118 def dirty!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#117 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:117 def dirty?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#120 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:120 def invalidate!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#119 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:119 def invalidated?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#114 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:114 def joinable?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#121 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:121 def materialized?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#113 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:113 def open?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#116 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:116 def restartable?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#111 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:111 def state; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#125 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:125 def user_transaction; end end -# source://activerecord//lib/active_record/connection_adapters/pool_config.rb#5 +# pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:5 class ActiveRecord::ConnectionAdapters::PoolConfig include ::MonitorMixin - # @return [PoolConfig] a new instance of PoolConfig - # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#28 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:28 def initialize(connection_class, db_config, role, shard); end - # Returns the value of attribute connection_descriptor. - # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#8 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:8 def connection_descriptor; end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#43 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:43 def connection_descriptor=(connection_descriptor); end - # Returns the value of attribute db_config. - # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#8 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:8 def db_config; end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#69 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:69 def discard_pool!; end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#52 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:52 def disconnect!(automatic_reconnect: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#65 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:65 def pool; end - # Returns the value of attribute role. - # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#8 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:8 def role; end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#11 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:11 def schema_reflection; end - # Sets the attribute schema_reflection - # - # @param value the value to set the attribute schema_reflection to. - # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:9 def schema_reflection=(_arg0); end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#39 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:39 def server_version(connection); end - # Sets the attribute server_version - # - # @param value the value to set the attribute server_version to. - # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:9 def server_version=(_arg0); end - # Returns the value of attribute shard. - # - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#8 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:8 def shard; end class << self - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#19 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:19 def discard_pools!; end - # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#23 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:23 def disconnect_all!; end end end -# source://activerecord//lib/active_record/connection_adapters/pool_config.rb#15 +# pkg:gem/activerecord#lib/active_record/connection_adapters/pool_config.rb:15 ActiveRecord::ConnectionAdapters::PoolConfig::INSTANCES = T.let(T.unsafe(nil), ObjectSpace::WeakMap) -# source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#5 +# pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:5 class ActiveRecord::ConnectionAdapters::PoolManager - # @return [PoolManager] a new instance of PoolManager - # - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#6 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:6 def initialize; end - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#26 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:26 def each_pool_config(role = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:44 def get_pool_config(role, shard); end - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#18 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:18 def pool_configs(role = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#40 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:40 def remove_pool_config(role, shard); end - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#36 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:36 def remove_role(role); end - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#14 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:14 def role_names; end - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#48 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:48 def set_pool_config(role, shard, pool_config); end - # source://activerecord//lib/active_record/connection_adapters/pool_manager.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/pool_manager.rb:10 def shard_names; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#121 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:121 class ActiveRecord::ConnectionAdapters::PrimaryKeyDefinition < ::Struct - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:121 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:121 def name=(_); end class << self + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:121 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:121 def inspect; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:121 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:121 def members; end + + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:121 def new(*_arg0); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#8 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:8 module ActiveRecord::ConnectionAdapters::QueryCache - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#194 - def initialize(*_arg0); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:194 + def initialize(*); end # Enable the query cache within the block. # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#217 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:217 def cache(&block); end # Clears the query cache. @@ -14519,29 +13646,25 @@ module ActiveRecord::ConnectionAdapters::QueryCache # the same SQL query and repeatedly return the same result each time, silently # undermining the randomness you were expecting. # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#243 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:243 def clear_query_cache; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#233 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:233 def disable_query_cache!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#221 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:221 def enable_query_cache!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#201 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:201 def query_cache; end - # Sets the attribute query_cache - # - # @param value the value to set the attribute query_cache to. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#199 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:199 def query_cache=(_arg0); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#212 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:212 def query_cache_enabled; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#247 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:247 def select_all(arel, name = T.unsafe(nil), binds = T.unsafe(nil), preparable: T.unsafe(nil), async: T.unsafe(nil), allow_retry: T.unsafe(nil)); end # Disable the query cache within the block. @@ -14549,7 +13672,7 @@ module ActiveRecord::ConnectionAdapters::QueryCache # Set dirties: false to prevent query caches on all connections from being cleared by write operations. # (By default, write operations dirty all connections' query caches in case they are replicas whose cache would now be outdated.) # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#229 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:229 def uncached(dirties: T.unsafe(nil), &block); end private @@ -14557,149 +13680,127 @@ module ActiveRecord::ConnectionAdapters::QueryCache # Database adapters can override this method to # provide custom cache information. # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#319 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:319 def cache_notification_info(sql, name, binds); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#311 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:311 def cache_notification_info_result(sql, name, binds, result); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#289 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:289 def cache_sql(sql, name, binds); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#271 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:271 def lookup_sql_cache(sql, name, binds); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#267 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:267 def unset_query_cache!; end class << self - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#20 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:20 def dirties_query_cache(base, *method_names); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#12 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:12 def included(base); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#116 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:116 module ActiveRecord::ConnectionAdapters::QueryCache::ConnectionPoolConfiguration - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#117 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:117 + def initialize(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#132 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:132 def checkout_and_verify(connection); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#177 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:177 def clear_query_cache; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#173 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:173 def dirties_query_cache; end # Disable the query cache within the block. # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#139 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:139 def disable_query_cache(dirties: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#164 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:164 def disable_query_cache!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#149 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:149 def enable_query_cache; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#159 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:159 def enable_query_cache!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#187 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:187 def query_cache; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#169 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:169 def query_cache_enabled; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#9 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:9 ActiveRecord::ConnectionAdapters::QueryCache::DEFAULT_SIZE = T.let(T.unsafe(nil), Integer) -# source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#97 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:97 class ActiveRecord::ConnectionAdapters::QueryCache::QueryCacheRegistry - # @return [QueryCacheRegistry] a new instance of QueryCacheRegistry - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#98 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:98 def initialize; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#109 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:109 def clear; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#103 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:103 def compute_if_absent(context); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#34 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:34 class ActiveRecord::ConnectionAdapters::QueryCache::Store - # @return [Store] a new instance of Store - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#39 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:39 def initialize(version, max_size); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#58 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:58 def [](key); end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#83 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:83 def clear; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#67 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:67 def compute_if_absent(key); end - # Returns the value of attribute dirties. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#35 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:35 def dirties; end - # Sets the attribute dirties - # - # @param value the value to set the attribute dirties to. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#35 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:35 def dirties=(_arg0); end - # Returns the value of attribute dirties. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#35 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:37 def dirties?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#53 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:53 def empty?; end - # Returns the value of attribute enabled. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#35 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:35 def enabled; end - # Sets the attribute enabled - # - # @param value the value to set the attribute enabled to. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#35 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:35 def enabled=(_arg0); end - # Returns the value of attribute enabled. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#35 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:36 def enabled?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#48 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:48 def size; end private - # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#89 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/query_cache.rb:89 def check_version; end end # = Active Record Connection Adapters \Quoting # -# source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#9 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:9 module ActiveRecord::ConnectionAdapters::Quoting extend ::ActiveSupport::Concern @@ -14709,7 +13810,7 @@ module ActiveRecord::ConnectionAdapters::Quoting # MySQL might perform dangerous castings when comparing a string to a number, # so this method will cast numbers to string. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#112 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:112 def cast_bound_value(value); end # If you are having to call this function, you are likely doing something @@ -14722,32 +13823,32 @@ module ActiveRecord::ConnectionAdapters::Quoting # (varchar vs binary) for example. The type used to get this primitive # should have been provided before reaching the connection adapter. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#125 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:125 def lookup_cast_type_from_column(column); end # Quotes the column value to help prevent # {SQL injection attacks}[https://en.wikipedia.org/wiki/SQL_injection]. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#73 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:73 def quote(value); end # Quotes the column name. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#136 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:136 def quote_column_name(column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#157 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:157 def quote_default_expression(value, column); end # Quotes a string, escaping any ' (single quote) and \ (backslash) # characters. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#131 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:131 def quote_string(s); end # Quotes the table name. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#141 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:141 def quote_table_name(table_name); end # Override to return the quoted table name for assignment. Defaults to @@ -14759,53 +13860,53 @@ module ActiveRecord::ConnectionAdapters::Quoting # We override this in the sqlite3 and postgresql adapters to use only # the column name (as per syntax requirements). # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#153 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:153 def quote_table_name_for_assignment(table, attr); end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#206 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:206 def quoted_binary(value); end # Quote date/time values for use in SQL input. Includes microseconds # if the value is a Time responding to usec. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#184 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:184 def quoted_date(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#174 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:174 def quoted_false; end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#201 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:201 def quoted_time(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#166 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:166 def quoted_true; end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#210 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:210 def sanitize_as_sql_comment(value); end # Cast a +value+ to a type that the database understands. For example, # SQLite does not understand dates, so this method will convert a Date # to a String. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#94 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:94 def type_cast(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#178 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:178 def unquoted_false; end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#170 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:170 def unquoted_true; end private - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#234 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:234 def lookup_cast_type(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#224 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:224 def type_casted_binds(binds); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#12 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:12 module ActiveRecord::ConnectionAdapters::Quoting::ClassMethods # Regexp for column names (with or without a table name prefix). # Matches the following: @@ -14813,7 +13914,7 @@ module ActiveRecord::ConnectionAdapters::Quoting::ClassMethods # "#{table_name}.#{column_name}" # "#{column_name}" # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#18 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:18 def column_name_matcher; end # Regexp for column names with order (with or without a table name prefix, @@ -14828,635 +13929,524 @@ module ActiveRecord::ConnectionAdapters::Quoting::ClassMethods # "#{column_name} #{direction} NULLS FIRST" # "#{column_name} NULLS LAST" # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:44 def column_name_with_order_matcher; end # Quotes the column name. Must be implemented by subclasses # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#61 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:61 def quote_column_name(column_name); end # Quotes the table name. Defaults to column name quoting. # - # source://activerecord//lib/active_record/connection_adapters/abstract/quoting.rb#66 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/quoting.rb:66 def quote_table_name(table_name); end end # = Active Record Real \Transaction # -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#449 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:449 class ActiveRecord::ConnectionAdapters::RealTransaction < ::ActiveRecord::ConnectionAdapters::Transaction - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#487 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:487 def commit; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#450 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:450 def materialize!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#464 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:464 def restart; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#478 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:478 def rollback; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#198 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:198 class ActiveRecord::ConnectionAdapters::ReferenceDefinition - # @return [ReferenceDefinition] a new instance of ReferenceDefinition - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#199 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:199 def initialize(name, polymorphic: T.unsafe(nil), index: T.unsafe(nil), foreign_key: T.unsafe(nil), type: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#219 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:219 def add(table_name, connection); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#233 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:233 def add_to(table); end private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#250 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:250 def as_options(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#288 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:288 def column_name; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#292 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:292 def column_names; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#280 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:280 def columns; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#254 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:254 def conditional_options; end - # Returns the value of attribute foreign_key. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#248 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:248 def foreign_key; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#276 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:276 def foreign_key_options; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#296 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:296 def foreign_table_name; end - # Returns the value of attribute index. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#248 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:248 def index; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#266 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:266 def index_options(table_name); end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#248 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:248 def name; end - # Returns the value of attribute options. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#248 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:248 def options; end - # Returns the value of attribute polymorphic. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#248 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:248 def polymorphic; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#262 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:262 def polymorphic_index_name(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#258 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:258 def polymorphic_options; end - # Returns the value of attribute type. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#248 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:248 def type; end end # = Active Record Restart Parent \Transaction # -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#376 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:376 class ActiveRecord::ConnectionAdapters::RestartParentTransaction < ::ActiveRecord::ConnectionAdapters::Transaction - # @return [RestartParentTransaction] a new instance of RestartParentTransaction - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#377 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:377 def initialize(connection, parent_transaction, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#396 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:396 def commit; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#400 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:400 def full_rollback?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#389 - def materialize!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:389 + def materialize!(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#389 - def materialized?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:389 + def materialized?(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#389 - def restart(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:389 + def restart(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#391 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:391 def rollback; end end # = Active Record Savepoint \Transaction # -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#404 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:404 class ActiveRecord::ConnectionAdapters::SavepointTransaction < ::ActiveRecord::ConnectionAdapters::Transaction - # @return [SavepointTransaction] a new instance of SavepointTransaction - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#405 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:405 def initialize(connection, savepoint_name, parent_transaction, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#439 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:439 def commit; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#445 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:445 def full_rollback?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#417 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:417 def materialize!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#422 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:422 def restart; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#431 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:431 def rollback; end end # = Active Record Connection Adapters \Savepoints # -# source://activerecord//lib/active_record/connection_adapters/abstract/savepoints.rb#6 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/savepoints.rb:6 module ActiveRecord::ConnectionAdapters::Savepoints - # source://activerecord//lib/active_record/connection_adapters/abstract/savepoints.rb#11 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/savepoints.rb:11 def create_savepoint(name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/savepoints.rb#7 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/savepoints.rb:7 def current_savepoint_name; end - # source://activerecord//lib/active_record/connection_adapters/abstract/savepoints.rb#15 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/savepoints.rb:15 def exec_rollback_to_savepoint(name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/savepoints.rb#19 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/savepoints.rb:19 def release_savepoint(name = T.unsafe(nil)); end end # = Active Record Connection Adapters Schema Cache # -# source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#227 +# pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:227 class ActiveRecord::ConnectionAdapters::SchemaCache - # @return [SchemaCache] a new instance of SchemaCache - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#255 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:255 def initialize; end # Add internal cache for table with +table_name+. # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#326 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:326 def add(pool, table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#396 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:396 def add_all(pool); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#294 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:294 def cached?(table_name); end # Clear out internal caches for the data source +name+. # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#388 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:388 def clear_data_source_cache!(_connection, name); end # Get the columns for a table # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#338 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:338 def columns(pool, table_name); end # Get the columns for a table as a hash, key is the column name # value is the column object. # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#352 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:352 def columns_hash(pool, table_name); end # Checks whether the columns hash is already cached for a table. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#359 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:359 def columns_hash?(_pool, table_name); end # A cached lookup for table existence. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#309 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:309 def data_source_exists?(pool, name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#406 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:406 def dump_to(filename); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#273 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:273 def encode_with(coder); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#363 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:363 def indexes(pool, table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#281 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:281 def init_with(coder); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#416 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:416 def marshal_dump; end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#420 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:420 def marshal_load(array); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#298 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:298 def primary_keys(pool, table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#379 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:379 def schema_version; end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#383 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:383 def size; end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#375 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:375 def version(pool); end private - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#448 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:448 def deep_deduplicate(value); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#440 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:440 def derive_columns_hash_and_deduplicate_values; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#436 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:436 def ignored_table?(table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#264 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:264 def initialize_dup(other); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#461 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:461 def open(filename); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#428 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:428 def tables_to_cache(pool); end class << self - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#228 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:228 def _load_from(filename); end private - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#244 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:244 def read(filename, &block); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#5 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:5 class ActiveRecord::ConnectionAdapters::SchemaCreation - # @return [SchemaCreation] a new instance of SchemaCreation - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#6 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:6 def initialize(conn); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#11 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:11 def accept(o); end private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#175 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:175 def action_sql(action, dependency); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#150 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:150 def add_column_options!(sql, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#141 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:141 def add_table_options!(create_sql, o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#146 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:146 def column_options(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def options_include_default?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def options_include_default?(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def quote_column_name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def quote_column_name(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def quote_default_expression(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def quote_default_expression(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def quote_table_name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def quote_table_name(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#133 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:133 def quoted_columns(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def quoted_columns_for_index(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def quoted_columns_for_index(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def supports_check_constraints?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def supports_check_constraints?(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def supports_exclusion_constraints?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def supports_exclusion_constraints?(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def supports_index_include?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def supports_index_include?(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#137 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:137 def supports_index_using?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def supports_indexes_in_create?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def supports_indexes_in_create?(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def supports_nulls_not_distinct?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def supports_nulls_not_distinct?(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def supports_partial_index?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def supports_partial_index?(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def supports_unique_constraints?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def supports_unique_constraints?(*, **, &); end # Returns any SQL string to go between CREATE and TABLE. May be nil. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#171 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:171 def table_modifier_in_create(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#165 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:165 def to_sql(sql); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def type_to_sql(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def type_to_sql(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#16 - def use_foreign_keys?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:16 + def use_foreign_keys?(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#129 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:129 def visit_AddCheckConstraint(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#41 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:41 def visit_AddColumnDefinition(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#96 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:96 def visit_AddForeignKey(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#24 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:24 def visit_AlterTable(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#125 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:125 def visit_CheckConstraintDefinition(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#34 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:34 def visit_ColumnDefinition(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#106 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:106 def visit_CreateIndexDefinition(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#100 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:104 def visit_DropCheckConstraint(name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#100 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:100 def visit_DropConstraint(name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#100 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:103 def visit_DropForeignKey(name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#83 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:83 def visit_ForeignKeyDefinition(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#79 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:79 def visit_PrimaryKeyDefinition(o); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_creation.rb#45 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_creation.rb:45 def visit_TableDefinition(o); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#5 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:5 class ActiveRecord::ConnectionAdapters::SchemaDumper < ::ActiveRecord::SchemaDumper private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#13 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:13 def column_spec(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#17 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:17 def column_spec_for_primary_key(column); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#38 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:38 def default_primary_key?(column); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#42 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:42 def explicit_primary_key_default?(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#25 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:25 def prepare_column_options(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#101 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:101 def schema_collation(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#86 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:86 def schema_default(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#97 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:97 def schema_expression(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#62 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:62 def schema_limit(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#67 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:67 def schema_precision(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#82 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:82 def schema_scale(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#54 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:54 def schema_type(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#46 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:46 def schema_type_with_virtual(column); end class << self - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#8 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:8 def create(connection, options); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_dumper.rb#6 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_dumper.rb:6 ActiveRecord::ConnectionAdapters::SchemaDumper::DEFAULT_DATETIME_PRECISION = T.let(T.unsafe(nil), Integer) -# source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#7 +# pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:7 class ActiveRecord::ConnectionAdapters::SchemaReflection - # @return [SchemaReflection] a new instance of SchemaReflection - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#16 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:16 def initialize(cache_path, cache = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#41 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:41 def add(pool, name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#79 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:79 def cached?(table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#21 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:21 def clear!; end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#73 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:73 def clear_data_source_cache!(pool, name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#49 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:49 def columns(pool, table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#53 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:53 def columns_hash(pool, table_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#57 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:57 def columns_hash?(pool, table_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#37 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:37 def data_source_exists?(pool, name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#45 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:45 def data_sources(pool, name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#91 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:91 def dump_to(pool, filename); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#61 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:61 def indexes(pool, table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#27 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:27 def load!(pool); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#33 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:33 def primary_keys(pool, table_name); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#69 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:69 def size(pool); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#65 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:65 def version(pool); end private - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#106 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:106 def cache(pool); end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#100 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:100 def empty_cache; end - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#116 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:116 def load_cache(pool); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#110 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:110 def possible_cache_available?; end class << self - # Returns the value of attribute check_schema_cache_dump_version. - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:10 def check_schema_cache_dump_version; end - # Sets the attribute check_schema_cache_dump_version - # - # @param value the value to set the attribute check_schema_cache_dump_version to. - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#10 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:10 def check_schema_cache_dump_version=(_arg0); end - # Returns the value of attribute use_schema_cache_dump. - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:9 def use_schema_cache_dump; end - # Sets the attribute use_schema_cache_dump - # - # @param value the value to set the attribute use_schema_cache_dump to. - # - # source://activerecord//lib/active_record/connection_adapters/schema_cache.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/schema_cache.rb:9 def use_schema_cache_dump=(_arg0); end end end -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#8 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:8 module ActiveRecord::ConnectionAdapters::SchemaStatements include ::ActiveRecord::Migration::JoinTable - # Adds a reference. The reference column is a bigint by default, - # the :type option can be used to specify a different type. - # Optionally adds a +_type+ column, if :polymorphic option is provided. - # - # The +options+ hash can include the following keys: - # [:type] - # The reference column type. Defaults to +:bigint+. - # [:index] - # Add an appropriate index. Defaults to true. - # See #add_index for usage of this option. - # [:foreign_key] - # Add an appropriate foreign key constraint. Defaults to false, pass true - # to add. In case the join table can't be inferred from the association - # pass :to_table with the appropriate table name. - # [:polymorphic] - # Whether an additional +_type+ column should be added. Defaults to false. - # [:null] - # Whether the column allows nulls. Defaults to true. - # - # ====== Create a user_id bigint column without an index - # - # add_reference(:products, :user, index: false) - # - # ====== Create a user_id string column - # - # add_reference(:products, :user, type: :string) - # - # ====== Create supplier_id, supplier_type columns - # - # add_reference(:products, :supplier, polymorphic: true) - # - # ====== Create a supplier_id column with a unique index - # - # add_reference(:products, :supplier, index: { unique: true }) - # - # ====== Create a supplier_id column with a named index - # - # add_reference(:products, :supplier, index: { name: "my_supplier_index" }) - # - # ====== Create a supplier_id column and appropriate foreign key - # - # add_reference(:products, :supplier, foreign_key: true) - # - # ====== Create a supplier_id column and a foreign key to the firms table - # - # add_reference(:products, :supplier, foreign_key: { to_table: :firms }) - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1066 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1069 def add_belongs_to(table_name, ref_name, **options); end # Adds a new check constraint to the table. +expression+ is a String @@ -15476,7 +14466,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # [:validate] # (PostgreSQL only) Specify whether or not the constraint should be validated. Defaults to +true+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1296 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1296 def add_check_constraint(table_name, expression, if_not_exists: T.unsafe(nil), **options); end # Add a new +type+ column named +column_name+ to +table_name+. @@ -15569,10 +14559,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # Ignores the method call if the column exists # add_column(:shapes, :triangle, 'polygon', if_not_exists: true) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#639 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:639 def add_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#646 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:646 def add_columns(table_name, *column_names, type:, **options); end # Adds a new foreign key. +from_table+ is the table with the key column, @@ -15642,7 +14632,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # (PostgreSQL only) Specify whether or not the foreign key should be deferrable. Valid values are booleans or # +:deferred+ or +:immediate+ to specify the default behavior. Defaults to +false+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1176 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1176 def add_foreign_key(from_table, to_table, **options); end # Adds a new index to the table. +column_name+ can be a single Symbol, or @@ -15791,10 +14781,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # For more information see the {"Transactional Migrations" section}[rdoc-ref:Migration]. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#918 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:918 def add_index(table_name, column_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1479 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1479 def add_index_options(table_name, column_name, name: T.unsafe(nil), if_not_exists: T.unsafe(nil), internal: T.unsafe(nil), **options); end # Adds a reference. The reference column is a bigint by default, @@ -15844,7 +14834,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # add_reference(:products, :supplier, foreign_key: { to_table: :firms }) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1066 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1066 def add_reference(table_name, ref_name, **options); end # Adds timestamps (+created_at+ and +updated_at+) columns to +table_name+. @@ -15852,10 +14842,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # add_timestamps(:suppliers, null: true) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1462 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1462 def add_timestamps(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1367 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1367 def assume_migrated_upto_version(version); end # Builds an AlterTable object for adding a column to a table. @@ -15864,7 +14854,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # if the same arguments were passed to #add_column. See #add_column for information about # passing a +table_name+, +column_name+, +type+ and other options that can be passed. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#657 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:657 def build_add_column_definition(table_name, column_name, type, **options); end # Builds a ChangeColumnDefaultDefinition object. @@ -15873,9 +14863,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # if the same arguments were passed to #change_column_default. See #change_column_default for # information about passing a +table_name+, +column_name+, +type+ and other options that can be passed. # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#741 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:741 def build_change_column_default_definition(table_name, column_name, default_or_changes); end # Builds a CreateIndexDefinition object. @@ -15884,7 +14872,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # if the same arguments were passed to #add_index. See #add_index for information about # passing a +table_name+, +column_name+, and other additional options that can be passed. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#928 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:928 def build_create_index_definition(table_name, column_name, **options); end # Builds a TableDefinition object for a join table. @@ -15893,19 +14881,17 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # if the same arguments were passed to #create_join_table. See #create_join_table for # information about what arguments should be passed. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#411 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:411 def build_create_join_table_definition(table_1, table_2, column_options: T.unsafe(nil), **options); end # Returns a TableDefinition object containing information about the table that would be created # if the same arguments were passed to #create_table. See #create_table for information about # passing a +table_name+, and other additional options that can be passed. # - # @yield [table_definition] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#336 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:336 def build_create_table_definition(table_name, id: T.unsafe(nil), primary_key: T.unsafe(nil), force: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1558 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1558 def bulk_change_table(table_name, operations); end # Changes the column's definition according to the new options. @@ -15914,9 +14900,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # change_column(:suppliers, :name, :string, limit: 80) # change_column(:accounts, :description, :text) # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#714 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:714 def change_column(table_name, column_name, type, **options); end # Changes the comment for a column or removes it if +nil+. @@ -15926,9 +14910,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # change_column_comment(:posts, :state, from: "old_comment", to: "new_comment") # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1540 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1540 def change_column_comment(table_name, column_name, comment_or_changes); end # Sets a new default value for a column: @@ -15945,9 +14927,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # change_column_default(:posts, :state, from: nil, to: "draft") # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#732 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:732 def change_column_default(table_name, column_name, default_or_changes); end # Sets or removes a NOT NULL constraint on a column. The +null+ flag @@ -15967,9 +14947,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # Please note the fourth argument does not set a column's default. # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#761 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:761 def change_column_null(table_name, column_name, null, default = T.unsafe(nil)); end # A block for changing columns in +table+. @@ -16051,7 +15029,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # See also Table for details on all of the various column transformations. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#513 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:513 def change_table(table_name, base = T.unsafe(nil), **options); end # Changes the comment for a table or removes it if +nil+. @@ -16061,29 +15039,23 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # change_table_comment(:posts, from: "old_comment", to: "new_comment") # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1530 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1530 def change_table_comment(table_name, comment_or_changes); end # Checks to see if a check constraint exists on a table for a given check constraint definition. # # check_constraint_exists?(:products, name: "price_check") # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1344 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1344 def check_constraint_exists?(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1308 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1308 def check_constraint_options(table_name, expression, options); end # Returns an array of check constraints for the given table. # The check constraints are represented as CheckConstraintDefinition objects. # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1276 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1276 def check_constraints(table_name); end # Checks to see if a column exists in a given table. @@ -16103,14 +15075,12 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # column_exists?(:suppliers, :name, :string, null: false) # column_exists?(:suppliers, :tax, :decimal, precision: 8, scale: 2) # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#132 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:132 def column_exists?(table_name, column_name, type = T.unsafe(nil), **options); end # Returns an array of +Column+ objects for the table specified by +table_name+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#107 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:107 def columns(table_name); end # Given a set of columns and an ORDER BY clause, returns the columns for a SELECT DISTINCT. @@ -16119,7 +15089,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # columns_for_distinct("posts.id", ["posts.created_at desc"]) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1428 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1428 def columns_for_distinct(columns, orders); end # Creates a new join table with the name created using the lexical order of the first two @@ -16169,10 +15139,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # part_id bigint NOT NULL, # ) ENGINE=InnoDB DEFAULT CHARSET=utf8 # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#392 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:392 def create_join_table(table_1, table_2, column_options: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1544 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1544 def create_schema_dumper(options); end # Creates a new table with the name +table_name+. +table_name+ may either @@ -16321,25 +15291,23 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # See also TableDefinition#column for details on how to create columns. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#296 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:296 def create_table(table_name, id: T.unsafe(nil), primary_key: T.unsafe(nil), force: T.unsafe(nil), **options, &block); end # Checks to see if the data source +name+ exists on the database. # # data_source_exists?(:ebooks) # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#44 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:44 def data_source_exists?(name); end # Returns the relation names usable to back Active Record models. # For most adapters this means all #tables and #views. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#34 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:34 def data_sources; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1432 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1432 def distinct_relation_for_primary_key(relation); end # Drops the join table specified by the given arguments. @@ -16349,7 +15317,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # to provide one in a migration's +change+ method so it can be reverted. # In that case, the block will be used by #create_join_table. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#430 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:430 def drop_join_table(table_1, table_2, **options); end # Drops a table or tables from the database. @@ -16365,13 +15333,13 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # it can be helpful to provide these in a migration's +change+ method so it can be reverted. # In that case, +options+ and the block will be used by #create_table except if you provide more than one table which is not supported. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#543 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:543 def drop_table(*table_names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1358 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1358 def dump_schema_information; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1244 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1244 def foreign_key_column_for(table_name, column_name); end # Checks to see if a foreign key exists on a table for a given foreign key definition. @@ -16385,23 +15353,19 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # Checks to see if a foreign key with a custom name exists. # foreign_key_exists?(:accounts, name: "special_fk_name") # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1240 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1240 def foreign_key_exists?(from_table, to_table = T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1249 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1249 def foreign_key_options(from_table, to_table, options); end # Returns an array of foreign keys for the given table. # The foreign keys are represented as ForeignKeyDefinition objects. # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1106 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1106 def foreign_keys(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1507 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1507 def index_algorithm(algorithm); end # Checks to see if an index exists on a table for a given index definition. @@ -16421,71 +15385,49 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # Check a valid index exists (PostgreSQL only) # index_exists?(:suppliers, :company_id, valid: true) # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#102 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:102 def index_exists?(table_name, column_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#995 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:995 def index_name(table_name, options); end # Verifies the existence of an index with a given name. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1014 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1014 def index_name_exists?(table_name, index_name); end # Returns an array of indexes for the given table. # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#81 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:81 def indexes(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1363 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1363 def internal_string_options_for_primary_key; end # Returns the maximum length of an index name in bytes. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1596 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1596 def max_index_name_size; end # Returns a hash of mappings from the abstract data types to the native # database types. See TableDefinition#column for details on the recognized # abstract data types. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#14 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:14 def native_database_types; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1520 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1520 def options_include_default?(options); end # Returns just a table's primary key # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#145 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:145 def primary_key(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1513 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1513 def quoted_columns_for_index(column_names, options); end - # Removes the reference(s). Also removes a +type+ column if one exists. - # - # ====== Remove the reference - # - # remove_reference(:products, :user, index: false) - # - # ====== Remove polymorphic reference - # - # remove_reference(:products, :supplier, polymorphic: true) - # - # ====== Remove the reference with a foreign key - # - # remove_reference(:products, :user, foreign_key: true) - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1085 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1102 def remove_belongs_to(table_name, ref_name, foreign_key: T.unsafe(nil), polymorphic: T.unsafe(nil), **options); end # Removes the given check constraint from the table. Removing a check constraint @@ -16502,7 +15444,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # to provide this in a migration's +change+ method so it can be reverted. # In that case, +expression+ will be used by #add_check_constraint. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1327 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1327 def remove_check_constraint(table_name, expression = T.unsafe(nil), if_exists: T.unsafe(nil), **options); end # Removes the column from the table definition. @@ -16521,7 +15463,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # remove_column(:suppliers, :qualification, if_exists: true) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#702 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:702 def remove_column(table_name, column_name, type = T.unsafe(nil), **options); end # Removes the given columns from the table definition. @@ -16532,10 +15474,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # remove_columns(:suppliers, :qualification, :experience, type: :string, null: false) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#678 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:678 def remove_columns(table_name, *column_names, type: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1351 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1351 def remove_constraint(table_name, constraint_name); end # Removes the given foreign key from the table. Any option parameters provided @@ -16569,7 +15511,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # [:to_table] # The name of the table that contains the referenced primary key. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1217 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1217 def remove_foreign_key(from_table, to_table = T.unsafe(nil), **options); end # Removes the given index from the table. @@ -16609,7 +15551,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # For more information see the {"Transactional Migrations" section}[rdoc-ref:Migration]. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#969 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:969 def remove_index(table_name, column_name = T.unsafe(nil), **options); end # Removes the reference(s). Also removes a +type+ column if one exists. @@ -16626,23 +15568,21 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # remove_reference(:products, :user, foreign_key: true) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1085 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1085 def remove_reference(table_name, ref_name, foreign_key: T.unsafe(nil), polymorphic: T.unsafe(nil), **options); end # Removes the timestamp columns (+created_at+ and +updated_at+) from the table definition. # # remove_timestamps(:suppliers) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1471 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1471 def remove_timestamps(table_name, **options); end # Renames a column. # # rename_column(:suppliers, :description, :name) # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#769 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:769 def rename_column(table_name, column_name, new_column_name); end # Renames an index. @@ -16651,275 +15591,243 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # rename_index :people, 'index_people_on_last_name', 'index_users_on_last_name' # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#983 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:983 def rename_index(table_name, old_name, new_name); end # Renames a table. # # rename_table('octopuses', 'octopi') # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#527 - def rename_table(table_name, new_name, **_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:527 + def rename_table(table_name, new_name, **); end # Returns an instance of SchemaCreation, which can be used to visit a schema definition # object and return DDL. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1554 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1554 def schema_creation; end # Truncates a table alias according to the limits of the current adapter. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#28 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:28 def table_alias_for(table_name); end # Returns the table comment that's stored in database metadata. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#23 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:23 def table_comment(table_name); end # Checks to see if the table +table_name+ exists on the database. # # table_exists?(:developers) # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#59 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:59 def table_exists?(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#18 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:18 def table_options(table_name); end # Returns an array of table names defined in the database. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#51 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:51 def tables; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1388 - def type_to_sql(type, limit: T.unsafe(nil), precision: T.unsafe(nil), scale: T.unsafe(nil), **_arg4); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1388 + def type_to_sql(type, limit: T.unsafe(nil), precision: T.unsafe(nil), scale: T.unsafe(nil), **); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1475 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1475 def update_table_definition(table_name, base); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1548 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1548 def use_foreign_keys?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1587 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1587 def valid_column_definition_options; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1591 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1591 def valid_primary_key_options; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1583 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1583 def valid_table_definition_options; end # Checks to see if the view +view_name+ exists on the database. # # view_exists?(:ebooks) # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#74 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:74 def view_exists?(view_name); end # Returns an array of view names defined in the database. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#66 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:66 def views; end private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1840 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1840 def add_column_for_alter(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1625 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1625 def add_index_sort_order(quoted_columns, **options); end # Overridden by the MySQL adapter for supporting index lengths and by # the PostgreSQL adapter for supporting operator classes. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1642 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1642 def add_options_for_index_columns(quoted_columns, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1863 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1863 def add_timestamps_for_alter(table_name, **options); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1832 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1832 def can_remove_index_by_name?(column_name, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1846 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1846 def change_column_default_for_alter(table_name, column_name, default_or_changes); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1800 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1800 def check_constraint_for(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1806 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1806 def check_constraint_for!(table_name, expression: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1790 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1790 def check_constraint_name(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1621 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1621 def column_options_keys; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1708 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1708 def create_alter_table(name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1704 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1704 def create_table_definition(name, **options); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1893 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1893 def data_source_sql(name = T.unsafe(nil), type: T.unsafe(nil)); end # Try to identify whether the given column name is an expression # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1748 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1748 def expression_column_name?(column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1778 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1778 def extract_foreign_key_action(specifier); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1823 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1830 def extract_new_comment_value(default_or_changes); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1823 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1823 def extract_new_default_value(default_or_changes); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1720 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1720 def fetch_type_metadata(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1768 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1768 def foreign_key_for(from_table, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1773 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1773 def foreign_key_for!(from_table, to_table: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1758 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1758 def foreign_key_name(table_name, options); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1786 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1786 def foreign_keys_enabled?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1601 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1601 def generate_index_name(table_name, column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1731 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1731 def index_column_names(column_names); end - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1650 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1650 def index_name_for_remove(table_name, column_name, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1739 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1739 def index_name_options(column_names); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1880 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1880 def insert_versions_sql(versions); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1632 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1632 def options_for_index_columns(options); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1897 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1897 def quoted_scope(name = T.unsafe(nil), type: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1836 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1836 def reference_name_for_table(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1855 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1855 def remove_column_for_alter(table_name, column_name, type = T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1859 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1859 def remove_columns_for_alter(table_name, *column_names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1876 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1876 def remove_timestamps_for_alter(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1691 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1691 def rename_column_indexes(table_name, column_name, new_column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1851 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1851 def rename_column_sql(table_name, column_name, new_column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1682 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1682 def rename_table_indexes(table_name, new_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1752 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1752 def strip_table_name_prefix_and_suffix(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1615 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1615 def validate_change_column_null_argument!(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1712 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1712 def validate_create_table_options!(options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1811 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1811 def validate_index_length!(table_name, new_name, internal = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1817 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_statements.rb:1817 def validate_table_length!(table_name); end end -# source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#6 +# pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:6 class ActiveRecord::ConnectionAdapters::SqlTypeMetadata include ::ActiveRecord::ConnectionAdapters::Deduplicable extend ::ActiveRecord::ConnectionAdapters::Deduplicable::ClassMethods - # @return [SqlTypeMetadata] a new instance of SqlTypeMetadata - # - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#11 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:11 def initialize(sql_type: T.unsafe(nil), type: T.unsafe(nil), limit: T.unsafe(nil), precision: T.unsafe(nil), scale: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#19 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:19 def ==(other); end - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#19 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:27 def eql?(other); end - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#29 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:29 def hash; end - # Returns the value of attribute limit. - # - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:9 def limit; end - # Returns the value of attribute precision. - # - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:9 def precision; end - # Returns the value of attribute scale. - # - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:9 def scale; end - # Returns the value of attribute sql_type. - # - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:9 def sql_type; end - # Returns the value of attribute type. - # - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:9 def type; end private - # source://activerecord//lib/active_record/connection_adapters/sql_type_metadata.rb#39 + # pkg:gem/activerecord#lib/active_record/connection_adapters/sql_type_metadata.rb:39 def deduplicated; end end @@ -16969,36 +15877,27 @@ end # t.remove_timestamps # end # -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#715 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:715 class ActiveRecord::ConnectionAdapters::Table include ::ActiveRecord::ConnectionAdapters::ColumnMethods extend ::ActiveRecord::ConnectionAdapters::ColumnMethods::ClassMethods - # @return [Table] a new instance of Table - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#720 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:720 def initialize(table_name, base); end - # Adds a reference. - # - # t.references(:user) - # t.belongs_to(:supplier, foreign_key: true) - # - # See {connection.add_reference}[rdoc-ref:SchemaStatements#add_reference] for details of the options you can use. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#871 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:877 def belongs_to(*args, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def bigint(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def binary(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:327 def blob(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def boolean(*names, **options); end # Changes the column's definition according to the new options. @@ -17008,7 +15907,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See TableDefinition#column for details of the options you can use. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#797 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:797 def change(column_name, type, **options); end # Sets a new default value for a column. @@ -17019,7 +15918,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.change_column_default}[rdoc-ref:SchemaStatements#change_column_default] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#809 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:809 def change_default(column_name, default_or_changes); end # Sets or removes a NOT NULL constraint on a column. @@ -17029,7 +15928,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.change_column_null}[rdoc-ref:SchemaStatements#change_column_null] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#819 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:819 def change_null(column_name, null, default = T.unsafe(nil)); end # Adds a check constraint. @@ -17038,7 +15937,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.add_check_constraint}[rdoc-ref:SchemaStatements#add_check_constraint] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#929 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:929 def check_constraint(*args, **options); end # Checks if a check_constraint exists on a table. @@ -17049,9 +15948,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.check_constraint_exists?}[rdoc-ref:SchemaStatements#check_constraint_exists?] # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#949 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:949 def check_constraint_exists?(*args, **options); end # Adds a new column to the named table. @@ -17060,7 +15957,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See TableDefinition#column for details of the options you can use. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#730 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:730 def column(column_name, type, index: T.unsafe(nil), **options); end # Checks to see if a column exists. @@ -17069,21 +15966,19 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.column_exists?}[rdoc-ref:SchemaStatements#column_exists?] # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#744 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:744 def column_exists?(column_name, type = T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def date(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def datetime(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def decimal(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def float(*names, **options); end # Adds a foreign key to the table using a supplied table name. @@ -17093,7 +15988,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.add_foreign_key}[rdoc-ref:SchemaStatements#add_foreign_key] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#899 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:899 def foreign_key(*args, **options); end # Checks to see if a foreign key exists. @@ -17102,9 +15997,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.foreign_key_exists?}[rdoc-ref:SchemaStatements#foreign_key_exists?] # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#920 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:920 def foreign_key_exists?(*args, **options); end # Adds a new index to the table. +column_name+ can be a single Symbol, or @@ -17116,7 +16009,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.add_index}[rdoc-ref:SchemaStatements#add_index] for details of the options you can use. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#756 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:756 def index(column_name, **options); end # Checks to see if an index exists. @@ -17127,23 +16020,19 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.index_exists?}[rdoc-ref:SchemaStatements#index_exists?] # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#768 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:768 def index_exists?(column_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def integer(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def json(*names, **options); end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#718 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:718 def name; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:328 def numeric(*names, **options); end # Adds a reference. @@ -17153,7 +16042,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.add_reference}[rdoc-ref:SchemaStatements#add_reference] for details of the options you can use. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#871 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:871 def references(*args, **options); end # Removes the column(s) from the table definition. @@ -17163,17 +16052,10 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.remove_columns}[rdoc-ref:SchemaStatements#remove_columns] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#829 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:829 def remove(*column_names, **options); end - # Removes a reference. Optionally removes a +type+ column. - # - # t.remove_references(:user) - # t.remove_belongs_to(:supplier, polymorphic: true) - # - # See {connection.remove_reference}[rdoc-ref:SchemaStatements#remove_reference] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#885 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:891 def remove_belongs_to(*args, **options); end # Removes the given check constraint from the table. @@ -17182,7 +16064,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.remove_check_constraint}[rdoc-ref:SchemaStatements#remove_check_constraint] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#938 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:938 def remove_check_constraint(*args, **options); end # Removes the given foreign key from the table. @@ -17192,7 +16074,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.remove_foreign_key}[rdoc-ref:SchemaStatements#remove_foreign_key] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#910 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:910 def remove_foreign_key(*args, **options); end # Removes the given index from the table. @@ -17204,7 +16086,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.remove_index}[rdoc-ref:SchemaStatements#remove_index] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#842 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:842 def remove_index(column_name = T.unsafe(nil), **options); end # Removes a reference. Optionally removes a +type+ column. @@ -17214,7 +16096,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.remove_reference}[rdoc-ref:SchemaStatements#remove_reference] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#885 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:885 def remove_references(*args, **options); end # Removes the timestamp columns (+created_at+ and +updated_at+) from the table. @@ -17223,7 +16105,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.remove_timestamps}[rdoc-ref:SchemaStatements#remove_timestamps] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#852 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:852 def remove_timestamps(**options); end # Renames a column. @@ -17232,7 +16114,7 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.rename_column}[rdoc-ref:SchemaStatements#rename_column] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#861 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:861 def rename(column_name, new_column_name); end # Renames the given index on the table. @@ -17241,19 +16123,19 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.rename_index}[rdoc-ref:SchemaStatements#rename_index] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#777 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:777 def rename_index(index_name, new_index_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def string(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def text(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def time(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def timestamp(*names, **options); end # Adds timestamps (+created_at+ and +updated_at+) columns to the table. @@ -17262,15 +16144,15 @@ class ActiveRecord::ConnectionAdapters::Table # # See {connection.add_timestamps}[rdoc-ref:SchemaStatements#add_timestamps] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#786 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:786 def timestamps(**options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def virtual(*names, **options); end private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#954 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:954 def raise_on_if_exist_options(options); end end @@ -17294,55 +16176,41 @@ end # end # end # -# source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#366 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:366 class ActiveRecord::ConnectionAdapters::TableDefinition include ::ActiveRecord::ConnectionAdapters::ColumnMethods extend ::ActiveRecord::ConnectionAdapters::ColumnMethods::ClassMethods - # @return [TableDefinition] a new instance of TableDefinition - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#371 - def initialize(conn, name, temporary: T.unsafe(nil), if_not_exists: T.unsafe(nil), options: T.unsafe(nil), as: T.unsafe(nil), comment: T.unsafe(nil), **_arg7); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:371 + def initialize(conn, name, temporary: T.unsafe(nil), if_not_exists: T.unsafe(nil), options: T.unsafe(nil), as: T.unsafe(nil), comment: T.unsafe(nil), **); end # Returns a ColumnDefinition for the column with name +name+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#421 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:421 def [](name); end - # Returns the value of attribute as. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def as; end - # Adds a reference. - # - # t.references(:user) - # t.belongs_to(:supplier, foreign_key: true) - # t.belongs_to(:supplier, foreign_key: true, type: :integer) - # - # See {connection.add_reference}[rdoc-ref:SchemaStatements#add_reference] for details of the options you can use. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#551 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:556 def belongs_to(*args, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def bigint(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def binary(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:327 def blob(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def boolean(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#525 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:525 def check_constraint(expression, **options); end - # Returns the value of attribute check_constraints. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def check_constraints; end # Instantiates a new column for the table. @@ -17413,42 +16281,36 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # t.references :taggable, polymorphic: { default: 'Photo' }, index: false # end # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#492 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:492 def column(name, type, index: T.unsafe(nil), **options); end # Returns an array of ColumnDefinition objects for the columns of the table. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#418 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:418 def columns; end - # Returns the value of attribute comment. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def comment; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def date(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def datetime(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def decimal(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def float(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#521 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:521 def foreign_key(to_table, **options); end - # Returns the value of attribute foreign_keys. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def foreign_keys; end - # Returns the value of attribute if_not_exists. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def if_not_exists; end # Adds index options to the indexes hash, keyed by column name @@ -17456,43 +16318,37 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # # index(:account_id, name: 'index_projects_on_account_id') # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#517 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:517 def index(column_name, **options); end - # Returns the value of attribute indexes. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def indexes; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def integer(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def json(*names, **options); end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def name; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#583 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:583 def new_check_constraint_definition(expression, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#558 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:558 def new_column_definition(name, type, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#575 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:575 def new_foreign_key_definition(to_table, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:328 def numeric(*names, **options); end - # Returns the value of attribute options. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def options; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#412 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:412 def primary_keys(name = T.unsafe(nil)); end # Adds a reference. @@ -17503,33 +16359,31 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # # See {connection.add_reference}[rdoc-ref:SchemaStatements#add_reference] for details of the options you can use. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#551 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:551 def references(*args, **options); end # remove the column +name+ from the table. # remove_column(:account_id) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#509 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:509 def remove_column(name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#395 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:395 def set_primary_key(table_name, id, primary_key, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def string(*names, **options); end - # Returns the value of attribute temporary. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#369 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:369 def temporary; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def text(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def time(*names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def timestamp(*names, **options); end # Appends :datetime columns :created_at and @@ -17537,375 +16391,307 @@ class ActiveRecord::ConnectionAdapters::TableDefinition # # t.timestamps null: false # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#533 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:533 def timestamps(**options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#335 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:334 def virtual(*names, **options); end private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#601 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:601 def aliased_types(name, fallback); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#593 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:593 def create_column_definition(name, type, options); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#605 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:605 def integer_like_primary_key?(type, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#609 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:609 def integer_like_primary_key_type(type, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#613 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:613 def raise_on_duplicate_column(name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_definitions.rb#589 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/schema_definitions.rb:589 def valid_column_definition_options; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#128 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:128 class ActiveRecord::ConnectionAdapters::Transaction - # @return [Transaction] a new instance of Transaction - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#153 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:153 def initialize(connection, isolation: T.unsafe(nil), joinable: T.unsafe(nil), run_commit_callbacks: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#185 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:185 def add_record(record, ensure_finalize = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#203 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:203 def after_commit(&block); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#211 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:211 def after_rollback(&block); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#195 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:195 def before_commit(&block); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#274 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:274 def before_commit_records; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#181 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:181 def closed?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#298 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:298 def commit_records; end - # Returns the value of attribute connection. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#148 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:148 def connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#169 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:169 def dirty!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#173 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:173 def dirty?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#327 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:327 def full_rollback?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#233 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:233 def incomplete!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#151 - def invalidate!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:151 + def invalidate!(*, **, &); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#151 - def invalidated?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:151 + def invalidated?(*, **, &); end - # Returns the value of attribute isolation_level. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#148 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:148 def isolation_level; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#328 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:328 def joinable?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#237 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:237 def materialize!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#242 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:242 def materialized?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#177 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:177 def open?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#219 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:219 def records; end # Can this transaction's current state be recreated by # rollback+begin ? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#229 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:229 def restartable?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#246 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:246 def restore!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#254 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:254 def rollback_records; end - # Returns the value of attribute savepoint_name. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#148 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:148 def savepoint_name; end - # Returns the value of attribute state. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#148 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:148 def state; end - # Returns the value of attribute user_transaction. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#148 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:148 def user_transaction; end - # Returns the value of attribute written. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#149 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:149 def written; end - # Sets the attribute written - # - # @param value the value to set the attribute written to. - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#149 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:149 def written=(_arg0); end protected - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#331 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:331 def append_callbacks(callbacks); end private - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#348 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:348 def prepare_instances_to_run_callbacks_on(records); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#340 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:340 def run_action_on_records(records, instances_to_run_callbacks_on); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#336 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:336 def unique_records; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#129 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:129 class ActiveRecord::ConnectionAdapters::Transaction::Callback - # @return [Callback] a new instance of Callback - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#130 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:130 def initialize(event, callback); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#139 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:139 def after_commit; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#143 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:143 def after_rollback; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#135 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:135 def before_commit; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#79 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:79 class ActiveRecord::ConnectionAdapters::TransactionInstrumenter - # @return [TransactionInstrumenter] a new instance of TransactionInstrumenter - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#80 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:80 def initialize(payload = T.unsafe(nil)); end - # @raise [InstrumentationNotStartedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#101 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:101 def finish(outcome); end - # @raise [InstrumentationAlreadyStartedError] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#90 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:90 def start; end end -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#88 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:88 class ActiveRecord::ConnectionAdapters::TransactionInstrumenter::InstrumentationAlreadyStartedError < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#87 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:87 class ActiveRecord::ConnectionAdapters::TransactionInstrumenter::InstrumentationNotStartedError < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#497 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:497 class ActiveRecord::ConnectionAdapters::TransactionManager - # @return [TransactionManager] a new instance of TransactionManager - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#498 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:498 def initialize(connection); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#506 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:506 def begin_transaction(isolation: T.unsafe(nil), joinable: T.unsafe(nil), _lazy: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#593 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:593 def commit_transaction; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#661 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:661 def current_transaction; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#561 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:561 def dirty_current_transaction; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#548 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:548 def disable_lazy_transactions!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#553 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:553 def enable_lazy_transactions!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#557 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:557 def lazy_transactions_enabled?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#577 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:577 def materialize_transactions; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#657 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:657 def open_transactions; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#573 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:573 def restorable?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#565 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:565 def restore_transactions; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#610 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:610 def rollback_transaction(transaction = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#622 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:622 def within_new_transaction(isolation: T.unsafe(nil), joinable: T.unsafe(nil)); end private # Deallocate invalidated prepared statements outside of the transaction # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#669 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:669 def after_failure_actions(transaction, error); end end -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#666 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:666 ActiveRecord::ConnectionAdapters::TransactionManager::NULL_TRANSACTION = T.let(T.unsafe(nil), ActiveRecord::ConnectionAdapters::NullTransaction) # = Active Record Connection Adapters Transaction State # -# source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#8 +# pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:8 class ActiveRecord::ConnectionAdapters::TransactionState - # @return [TransactionState] a new instance of TransactionState - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#9 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:9 def initialize(state = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#14 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:14 def add_child(state); end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#66 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:66 def commit!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#23 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:23 def committed?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#47 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:47 def completed?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#19 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:19 def finalized?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#70 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:70 def full_commit!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#56 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:56 def full_rollback!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#27 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:27 def fully_committed?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#43 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:43 def fully_completed?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#35 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:35 def fully_rolledback?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#61 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:61 def invalidate!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#39 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:39 def invalidated?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#74 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:74 def nullify!; end - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#51 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:51 def rollback!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_adapters/abstract/transaction.rb#31 + # pkg:gem/activerecord#lib/active_record/connection_adapters/abstract/transaction.rb:31 def rolledback?; end end # ConnectionFailed will be raised when the network connection to the # database fails while sending a query or waiting for its result. # -# source://activerecord//lib/active_record/errors.rb#582 +# pkg:gem/activerecord#lib/active_record/errors.rb:582 class ActiveRecord::ConnectionFailed < ::ActiveRecord::QueryAborted; end # = Active Record Connection Handling # -# source://activerecord//lib/active_record/connection_handling.rb#5 +# pkg:gem/activerecord#lib/active_record/connection_handling.rb:5 module ActiveRecord::ConnectionHandling - # source://activerecord//lib/active_record/connection_handling.rb#340 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:340 def adapter_class; end - # source://activerecord//lib/active_record/connection_handling.rb#374 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:374 def clear_cache!; end # Clears the query cache for all connections associated with the current thread. # - # source://activerecord//lib/active_record/connection_handling.rb#260 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:260 def clear_query_caches_for_current_thread; end # Returns +true+ if Active Record is connected. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_handling.rb#353 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:353 def connected?; end # Connects to a role (e.g. writing, reading, or a custom role) and/or @@ -17935,7 +16721,7 @@ module ActiveRecord::ConnectionHandling # Dog.first # finds first Dog record stored on the shard one replica # end # - # source://activerecord//lib/active_record/connection_handling.rb#136 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:136 def connected_to(role: T.unsafe(nil), shard: T.unsafe(nil), prevent_writes: T.unsafe(nil), &blk); end # Returns true if role is the current connected role and/or @@ -17953,9 +16739,7 @@ module ActiveRecord::ConnectionHandling # ActiveRecord::Base.connected_to?(role: :writing, shard: :shard_one) #=> true # end # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_handling.rb#255 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:255 def connected_to?(role:, shard: T.unsafe(nil)); end # Passes the block to +connected_to+ for every +shard+ the @@ -17965,7 +16749,7 @@ module ActiveRecord::ConnectionHandling # Optionally, +role+ and/or +prevent_writes+ can be passed which # will be forwarded to each +connected_to+ call. # - # source://activerecord//lib/active_record/connection_handling.rb#188 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:188 def connected_to_all_shards(role: T.unsafe(nil), prevent_writes: T.unsafe(nil), &blk); end # Connects a role and/or shard to the provided connection names. Optionally +prevent_writes+ @@ -17982,7 +16766,7 @@ module ActiveRecord::ConnectionHandling # Person.first # Read from primary writer # end # - # source://activerecord//lib/active_record/connection_handling.rb#165 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:165 def connected_to_many(*classes, role:, shard: T.unsafe(nil), prevent_writes: T.unsafe(nil)); end # Use a specified connection. @@ -17993,12 +16777,12 @@ module ActiveRecord::ConnectionHandling # It is not recommended to use this method in a request since it # does not yield to a block like +connected_to+. # - # source://activerecord//lib/active_record/connection_handling.rb#201 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:201 def connecting_to(role: T.unsafe(nil), shard: T.unsafe(nil), prevent_writes: T.unsafe(nil)); end # Soft deprecated. Use +#with_connection+ or +#lease_connection+ instead. # - # source://activerecord//lib/active_record/connection_handling.rb#276 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:276 def connection; end # Returns the db_config object from the associated connection: @@ -18009,22 +16793,20 @@ module ActiveRecord::ConnectionHandling # # Use only for reading. # - # source://activerecord//lib/active_record/connection_handling.rb#336 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:336 def connection_db_config; end - # source://activerecord//lib/active_record/connection_handling.rb#344 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:344 def connection_pool; end # Returns the connection specification name from the current class or its parent. # - # source://activerecord//lib/active_record/connection_handling.rb#318 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:318 def connection_specification_name; end - # Sets the attribute connection_specification_name - # - # @param value the value to set the attribute connection_specification_name to. + # Returns the connection specification name from the current class or its parent. # - # source://activerecord//lib/active_record/connection_handling.rb#315 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:315 def connection_specification_name=(_arg0); end # Connects a model to the databases specified. The +database+ keyword @@ -18053,9 +16835,7 @@ module ActiveRecord::ConnectionHandling # # Returns an array of database connections. # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/connection_handling.rb#81 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:81 def connects_to(database: T.unsafe(nil), shards: T.unsafe(nil)); end # Establishes the connection to the database. Accepts a hash as input where @@ -18100,7 +16880,7 @@ module ActiveRecord::ConnectionHandling # The exceptions AdapterNotSpecified, AdapterNotFound, and +ArgumentError+ # may be returned on an error. # - # source://activerecord//lib/active_record/connection_handling.rb#50 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:50 def establish_connection(config_or_env = T.unsafe(nil)); end # Returns the connection currently associated with the class. This can @@ -18109,12 +16889,10 @@ module ActiveRecord::ConnectionHandling # The connection will remain leased for the entire duration of the request # or job, or until +#release_connection+ is called. # - # source://activerecord//lib/active_record/connection_handling.rb#271 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:271 def lease_connection; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_handling.rb#325 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:325 def primary_class?; end # Prohibit swapping shards while inside of the passed block. @@ -18124,36 +16902,32 @@ module ActiveRecord::ConnectionHandling # is useful in cases you're using sharding to provide per-request # database isolation. # - # source://activerecord//lib/active_record/connection_handling.rb#213 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:213 def prohibit_shard_swapping(enabled = T.unsafe(nil)); end # Return the currently leased connection into the pool # - # source://activerecord//lib/active_record/connection_handling.rb#300 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:300 def release_connection; end - # source://activerecord//lib/active_record/connection_handling.rb#357 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:357 def remove_connection; end - # source://activerecord//lib/active_record/connection_handling.rb#348 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:348 def retrieve_connection; end - # source://activerecord//lib/active_record/connection_handling.rb#370 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:370 def schema_cache; end - # source://activerecord//lib/active_record/connection_handling.rb#378 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:378 def shard_keys; end # Determine whether or not shard swapping is currently prohibited # - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_handling.rb#222 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:222 def shard_swapping_prohibited?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/connection_handling.rb#382 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:382 def sharded?; end # Prevent writing to the database regardless of role. @@ -18168,7 +16942,7 @@ module ActiveRecord::ConnectionHandling # See +READ_QUERY+ for the queries that are blocked by this # method. # - # source://activerecord//lib/active_record/connection_handling.rb#237 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:237 def while_preventing_writes(enabled = T.unsafe(nil), &block); end # Checkouts a connection from the pool, yield it and then check it back in. @@ -18179,50 +16953,42 @@ module ActiveRecord::ConnectionHandling # If #connection is called inside the block, the connection won't be checked back in # unless the +prevent_permanent_checkout+ argument is set to +true+. # - # source://activerecord//lib/active_record/connection_handling.rb#311 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:311 def with_connection(prevent_permanent_checkout: T.unsafe(nil), &block); end private - # source://activerecord//lib/active_record/connection_handling.rb#409 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:409 def append_to_connected_to_stack(entry); end - # source://activerecord//lib/active_record/connection_handling.rb#387 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:387 def resolve_config_for_connection(config_or_env); end - # source://activerecord//lib/active_record/connection_handling.rb#396 + # pkg:gem/activerecord#lib/active_record/connection_handling.rb:396 def with_role_and_shard(role, shard, prevent_writes); end end -# source://activerecord//lib/active_record/connection_handling.rb#7 +# pkg:gem/activerecord#lib/active_record/connection_handling.rb:7 ActiveRecord::ConnectionHandling::DEFAULT_ENV = T.let(T.unsafe(nil), Proc) -# source://activerecord//lib/active_record/connection_handling.rb#6 +# pkg:gem/activerecord#lib/active_record/connection_handling.rb:6 ActiveRecord::ConnectionHandling::RAILS_ENV = T.let(T.unsafe(nil), Proc) # Raised when a database connection pool is requested but # has not been defined. # -# source://activerecord//lib/active_record/errors.rb#89 +# pkg:gem/activerecord#lib/active_record/errors.rb:89 class ActiveRecord::ConnectionNotDefined < ::ActiveRecord::ConnectionNotEstablished - # @return [ConnectionNotDefined] a new instance of ConnectionNotDefined - # - # source://activerecord//lib/active_record/errors.rb#90 + # pkg:gem/activerecord#lib/active_record/errors.rb:90 def initialize(message = T.unsafe(nil), connection_name: T.unsafe(nil), role: T.unsafe(nil), shard: T.unsafe(nil)); end - # Returns the value of attribute connection_name. - # - # source://activerecord//lib/active_record/errors.rb#97 + # pkg:gem/activerecord#lib/active_record/errors.rb:97 def connection_name; end - # Returns the value of attribute role. - # - # source://activerecord//lib/active_record/errors.rb#97 + # pkg:gem/activerecord#lib/active_record/errors.rb:97 def role; end - # Returns the value of attribute shard. - # - # source://activerecord//lib/active_record/errors.rb#97 + # pkg:gem/activerecord#lib/active_record/errors.rb:97 def shard; end end @@ -18230,14 +16996,12 @@ end # {ActiveRecord::Base.lease_connection=}[rdoc-ref:ConnectionHandling#lease_connection] # is given a +nil+ object). # -# source://activerecord//lib/active_record/errors.rb#67 +# pkg:gem/activerecord#lib/active_record/errors.rb:67 class ActiveRecord::ConnectionNotEstablished < ::ActiveRecord::AdapterError - # @return [ConnectionNotEstablished] a new instance of ConnectionNotEstablished - # - # source://activerecord//lib/active_record/errors.rb#68 + # pkg:gem/activerecord#lib/active_record/errors.rb:68 def initialize(message = T.unsafe(nil), connection_pool: T.unsafe(nil)); end - # source://activerecord//lib/active_record/errors.rb#72 + # pkg:gem/activerecord#lib/active_record/errors.rb:72 def set_pool(connection_pool); end end @@ -18245,12 +17009,12 @@ end # acquisition timeout period: because max connections in pool # are in use. # -# source://activerecord//lib/active_record/errors.rb#84 +# pkg:gem/activerecord#lib/active_record/errors.rb:84 class ActiveRecord::ConnectionTimeoutError < ::ActiveRecord::ConnectionNotEstablished; end # = Active Record \Core # -# source://activerecord//lib/active_record/core.rb#10 +# pkg:gem/activerecord#lib/active_record/core.rb:10 module ActiveRecord::Core include ::ActiveModel::Access extend ::ActiveSupport::Concern @@ -18268,15 +17032,12 @@ module ActiveRecord::Core # # Instantiates a single new object # User.new(first_name: 'Jamie') # - # @yield [_self] - # @yieldparam _self [ActiveRecord::Core] the object that the method was called on - # - # source://activerecord//lib/active_record/core.rb#471 + # pkg:gem/activerecord#lib/active_record/core.rb:471 def initialize(attributes = T.unsafe(nil)); end # Allows sort on objects # - # source://activerecord//lib/active_record/core.rb#665 + # pkg:gem/activerecord#lib/active_record/core.rb:665 def <=>(other_object); end # Returns true if +comparison_object+ is the same exact object, or +comparison_object+ @@ -18289,15 +17050,13 @@ module ActiveRecord::Core # Note also that destroying a record preserves its ID in the model instance, so deleted # models are still comparable. # - # source://activerecord//lib/active_record/core.rb#631 + # pkg:gem/activerecord#lib/active_record/core.rb:631 def ==(comparison_object); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/core.rb#677 + # pkg:gem/activerecord#lib/active_record/core.rb:677 def blank?; end - # source://activerecord//lib/active_record/core.rb#770 + # pkg:gem/activerecord#lib/active_record/core.rb:770 def connection_handler; end # Populate +coder+ with attributes about this record that should be @@ -18313,34 +17072,22 @@ module ActiveRecord::Core # Post.new.encode_with(coder) # coder # => {"attributes" => {"id" => nil, ... }} # - # source://activerecord//lib/active_record/core.rb#587 + # pkg:gem/activerecord#lib/active_record/core.rb:587 def encode_with(coder); end - # Returns true if +comparison_object+ is the same exact object, or +comparison_object+ - # is of the same type and +self+ has an ID and it is equal to +comparison_object.id+. - # - # Note that new records are different from any other record by definition, unless the - # other record is the receiver itself. Besides, if you fetch existing records with - # +select+ and leave the ID out, you're on your own, this predicate will return false. - # - # Note also that destroying a record preserves its ID in the model instance, so deleted - # models are still comparable. - # - # source://activerecord//lib/active_record/core.rb#631 + # pkg:gem/activerecord#lib/active_record/core.rb:637 def eql?(comparison_object); end # Clone and freeze the attributes hash such that associations are still # accessible, even on destroyed records, but cloned models will not be # frozen. # - # source://activerecord//lib/active_record/core.rb#654 + # pkg:gem/activerecord#lib/active_record/core.rb:654 def freeze; end # Returns +true+ if the attributes hash has been frozen. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/core.rb#660 + # pkg:gem/activerecord#lib/active_record/core.rb:660 def frozen?; end # Returns all attributes of the record as a nicely formatted string, @@ -18349,16 +17096,16 @@ module ActiveRecord::Core # Post.first.full_inspect # #=> "#" # - # source://activerecord//lib/active_record/core.rb#794 + # pkg:gem/activerecord#lib/active_record/core.rb:794 def full_inspect; end # Delegates to id in order to allow two records of the same type and id to work with something like: # [ Person.find(1), Person.find(2), Person.find(3) ] & [ Person.find(1), Person.find(4) ] # => [ Person.find(1) ] # - # source://activerecord//lib/active_record/core.rb#641 + # pkg:gem/activerecord#lib/active_record/core.rb:641 def hash; end - # source://activerecord//lib/active_record/core.rb#563 + # pkg:gem/activerecord#lib/active_record/core.rb:563 def init_attributes(_); end # Initialize an empty model object from +coder+. +coder+ should be @@ -18376,17 +17123,14 @@ module ActiveRecord::Core # post.init_with(coder) # post.title # => 'hello world' # - # source://activerecord//lib/active_record/core.rb#498 + # pkg:gem/activerecord#lib/active_record/core.rb:498 def init_with(coder, &block); end # Initialize an empty model object from +attributes+. # +attributes+ should be an attributes object, and unlike the # `initialize` method, no assignment calls are made per attribute. # - # @yield [_self] - # @yieldparam _self [ActiveRecord::Core] the object that the method was called on - # - # source://activerecord//lib/active_record/core.rb#508 + # pkg:gem/activerecord#lib/active_record/core.rb:508 def init_with_attributes(attributes, new_record = T.unsafe(nil)); end # Returns the attributes of the record as a nicely formatted string. @@ -18400,18 +17144,16 @@ module ActiveRecord::Core # Post.first.inspect # #=> "#" # - # source://activerecord//lib/active_record/core.rb#784 + # pkg:gem/activerecord#lib/active_record/core.rb:784 def inspect; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/core.rb#673 + # pkg:gem/activerecord#lib/active_record/core.rb:673 def present?; end # Takes a PP and prettily prints this record to it, allowing you to get a nice result from pp record # when pp is required. # - # source://activerecord//lib/active_record/core.rb#800 + # pkg:gem/activerecord#lib/active_record/core.rb:800 def pretty_print(pp); end # Prevents records from being written to the database: @@ -18438,14 +17180,12 @@ module ActiveRecord::Core # # but you won't be able to persist the changes. # - # source://activerecord//lib/active_record/core.rb#766 + # pkg:gem/activerecord#lib/active_record/core.rb:766 def readonly!; end # Returns +true+ if the record is read only. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/core.rb#682 + # pkg:gem/activerecord#lib/active_record/core.rb:682 def readonly?; end # Sets the record to strict_loading mode. This will raise an error @@ -18480,61 +17220,51 @@ module ActiveRecord::Core # user.comments.first.ratings.to_a # # => ActiveRecord::StrictLoadingViolationError # - # source://activerecord//lib/active_record/core.rb#722 + # pkg:gem/activerecord#lib/active_record/core.rb:722 def strict_loading!(value = T.unsafe(nil), mode: T.unsafe(nil)); end # Returns +true+ if the record is in strict_loading mode. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/core.rb#687 + # pkg:gem/activerecord#lib/active_record/core.rb:687 def strict_loading?; end # Returns +true+ if the record uses strict_loading with +:all+ mode enabled. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/core.rb#739 + # pkg:gem/activerecord#lib/active_record/core.rb:739 def strict_loading_all?; end - # Returns the value of attribute strict_loading_mode. - # - # source://activerecord//lib/active_record/core.rb#731 + # pkg:gem/activerecord#lib/active_record/core.rb:731 def strict_loading_mode; end # Returns +true+ if the record uses strict_loading with +:n_plus_one_only+ mode enabled. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/core.rb#734 + # pkg:gem/activerecord#lib/active_record/core.rb:734 def strict_loading_n_plus_one_only?; end private - # source://activerecord//lib/active_record/core.rb#890 + # pkg:gem/activerecord#lib/active_record/core.rb:890 def all_attributes_for_inspect; end - # source://activerecord//lib/active_record/core.rb#886 + # pkg:gem/activerecord#lib/active_record/core.rb:886 def attributes_for_inspect; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/core.rb#856 + # pkg:gem/activerecord#lib/active_record/core.rb:856 def custom_inspect_method_defined?; end - # source://activerecord//lib/active_record/core.rb#836 + # pkg:gem/activerecord#lib/active_record/core.rb:836 def init_internals; end - # source://activerecord//lib/active_record/core.rb#550 + # pkg:gem/activerecord#lib/active_record/core.rb:550 def initialize_dup(other); end - # source://activerecord//lib/active_record/core.rb#853 + # pkg:gem/activerecord#lib/active_record/core.rb:853 def initialize_internals_callback; end - # source://activerecord//lib/active_record/core.rb#871 + # pkg:gem/activerecord#lib/active_record/core.rb:871 def inspect_with_attributes(attributes_to_list); end - # source://activerecord//lib/active_record/core.rb#867 + # pkg:gem/activerecord#lib/active_record/core.rb:867 def inspection_filter; end # +Array#flatten+ will call +#to_ary+ (recursively) on each of the elements of @@ -18546,7 +17276,7 @@ module ActiveRecord::Core # # See also https://tenderlovemaking.com/2011/06/28/til-its-ok-to-return-nil-from-to_ary.html # - # source://activerecord//lib/active_record/core.rb#832 + # pkg:gem/activerecord#lib/active_record/core.rb:832 def to_ary; end module GeneratedClassMethods @@ -18606,79 +17336,79 @@ module ActiveRecord::Core end end -# source://activerecord//lib/active_record/core.rb#265 +# pkg:gem/activerecord#lib/active_record/core.rb:265 module ActiveRecord::Core::ClassMethods # Returns an instance of +Arel::Table+ loaded with the current table name. # - # source://activerecord//lib/active_record/core.rb#391 + # pkg:gem/activerecord#lib/active_record/core.rb:391 def arel_table; end - # source://activerecord//lib/active_record/core.rb#403 + # pkg:gem/activerecord#lib/active_record/core.rb:403 def cached_find_by_statement(connection, key, &block); end # Returns columns which shouldn't be exposed while calling +#inspect+. # - # source://activerecord//lib/active_record/core.rb#349 + # pkg:gem/activerecord#lib/active_record/core.rb:349 def filter_attributes; end # Specifies columns which shouldn't be exposed while calling +#inspect+. # - # source://activerecord//lib/active_record/core.rb#358 + # pkg:gem/activerecord#lib/active_record/core.rb:358 def filter_attributes=(filter_attributes); end - # source://activerecord//lib/active_record/core.rb#270 + # pkg:gem/activerecord#lib/active_record/core.rb:270 def find(*ids); end - # source://activerecord//lib/active_record/core.rb#283 + # pkg:gem/activerecord#lib/active_record/core.rb:283 def find_by(*args); end - # source://activerecord//lib/active_record/core.rb#330 + # pkg:gem/activerecord#lib/active_record/core.rb:330 def find_by!(*args); end - # source://activerecord//lib/active_record/core.rb#338 + # pkg:gem/activerecord#lib/active_record/core.rb:338 def generated_association_methods; end - # source://activerecord//lib/active_record/core.rb#266 + # pkg:gem/activerecord#lib/active_record/core.rb:266 def initialize_find_by_cache; end - # source://activerecord//lib/active_record/core.rb#334 + # pkg:gem/activerecord#lib/active_record/core.rb:334 def initialize_generated_modules; end # Returns a string like 'Post(id:integer, title:string, body:text)' # - # source://activerecord//lib/active_record/core.rb#375 + # pkg:gem/activerecord#lib/active_record/core.rb:375 def inspect; end - # source://activerecord//lib/active_record/core.rb#363 + # pkg:gem/activerecord#lib/active_record/core.rb:363 def inspection_filter; end - # source://activerecord//lib/active_record/core.rb#395 + # pkg:gem/activerecord#lib/active_record/core.rb:395 def predicate_builder; end - # source://activerecord//lib/active_record/core.rb#399 + # pkg:gem/activerecord#lib/active_record/core.rb:399 def type_caster; end private - # source://activerecord//lib/active_record/core.rb#441 + # pkg:gem/activerecord#lib/active_record/core.rb:441 def cached_find_by(keys, values); end - # source://activerecord//lib/active_record/core.rb#409 + # pkg:gem/activerecord#lib/active_record/core.rb:409 def inherited(subclass); end - # source://activerecord//lib/active_record/core.rb#431 + # pkg:gem/activerecord#lib/active_record/core.rb:431 def relation; end end -# source://activerecord//lib/active_record/core.rb#860 +# pkg:gem/activerecord#lib/active_record/core.rb:860 class ActiveRecord::Core::InspectionMask - # source://activerecord//lib/active_record/core.rb#861 + # pkg:gem/activerecord#lib/active_record/core.rb:861 def pretty_print(pp); end end # = Active Record Counter Cache # -# source://activerecord//lib/active_record/counter_cache.rb#5 +# pkg:gem/activerecord#lib/active_record/counter_cache.rb:5 module ActiveRecord::CounterCache extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -18688,15 +17418,13 @@ module ActiveRecord::CounterCache private - # source://activerecord//lib/active_record/counter_cache.rb#200 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:200 def _create_record(attribute_names = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/counter_cache.rb#226 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:226 def _foreign_keys_equal?(fkey1, fkey2); end - # source://activerecord//lib/active_record/counter_cache.rb#210 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:210 def destroy_row; end module GeneratedClassMethods @@ -18714,11 +17442,9 @@ module ActiveRecord::CounterCache end end -# source://activerecord//lib/active_record/counter_cache.rb#13 +# pkg:gem/activerecord#lib/active_record/counter_cache.rb:13 module ActiveRecord::CounterCache::ClassMethods - # @return [Boolean] - # - # source://activerecord//lib/active_record/counter_cache.rb#182 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:182 def counter_cache_column?(name); end # Decrement a numeric field by one, via a direct SQL update. @@ -18748,7 +17474,7 @@ module ActiveRecord::CounterCache::ClassMethods # # and update the updated_at value. # DiscussionBoard.decrement_counter(:posts_count, 5, touch: true) # - # source://activerecord//lib/active_record/counter_cache.rb#178 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:178 def decrement_counter(counter_name, id, by: T.unsafe(nil), touch: T.unsafe(nil)); end # Increment a numeric field by one, via a direct SQL update. @@ -18780,10 +17506,10 @@ module ActiveRecord::CounterCache::ClassMethods # # and update the updated_at value. # DiscussionBoard.increment_counter(:posts_count, 5, touch: true) # - # source://activerecord//lib/active_record/counter_cache.rb#148 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:148 def increment_counter(counter_name, id, by: T.unsafe(nil), touch: T.unsafe(nil)); end - # source://activerecord//lib/active_record/counter_cache.rb#186 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:186 def load_schema!; end # Resets one or more counter caches to their correct value using an SQL @@ -18807,7 +17533,7 @@ module ActiveRecord::CounterCache::ClassMethods # # attributes. # Post.reset_counters(1, :comments, touch: true) # - # source://activerecord//lib/active_record/counter_cache.rb#34 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:34 def reset_counters(id, *counters, touch: T.unsafe(nil)); end # A generic "counter updater" implementation, intended primarily to be @@ -18852,19 +17578,19 @@ module ActiveRecord::CounterCache::ClassMethods # # `updated_at` = '2016-10-13T09:59:23-05:00' # # WHERE id IN (10, 15) # - # source://activerecord//lib/active_record/counter_cache.rb#115 + # pkg:gem/activerecord#lib/active_record/counter_cache.rb:115 def update_counters(id, counters); end end # Raised when attribute has a name reserved by Active Record (when attribute # has name of one of Active Record instance methods). # -# source://activerecord//lib/active_record/errors.rb#440 +# pkg:gem/activerecord#lib/active_record/errors.rb:440 class ActiveRecord::DangerousAttributeError < ::ActiveRecord::ActiveRecordError; end # Raised when creating a database if it exists. # -# source://activerecord//lib/active_record/errors.rb#357 +# pkg:gem/activerecord#lib/active_record/errors.rb:357 class ActiveRecord::DatabaseAlreadyExists < ::ActiveRecord::StatementInvalid; end # = Active Record Database Configurations @@ -18881,21 +17607,15 @@ class ActiveRecord::DatabaseAlreadyExists < ::ActiveRecord::StatementInvalid; en # conditions of the handler. See ::register_db_config_handler for more on # registering custom handlers. # -# source://activerecord//lib/active_record/database_configurations/database_config.rb#4 +# pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:4 class ActiveRecord::DatabaseConfigurations - # @return [DatabaseConfigurations] a new instance of DatabaseConfigurations - # - # source://activerecord//lib/active_record/database_configurations.rb#73 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:73 def initialize(configurations = T.unsafe(nil)); end - # source://activerecord//lib/active_record/database_configurations.rb#27 - def any?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:27 + def any?(*, **, &); end - # Checks if the application's configurations are empty. - # - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations.rb#150 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:153 def blank?; end # Collects the configs for the environment and optionally the specification @@ -18920,19 +17640,15 @@ class ActiveRecord::DatabaseConfigurations # iterating over the primary connections (i.e. migrations don't need to run for the # write and read connection). Defaults to +false+. # - # source://activerecord//lib/active_record/database_configurations.rb#98 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:98 def configs_for(env_name: T.unsafe(nil), name: T.unsafe(nil), config_key: T.unsafe(nil), include_hidden: T.unsafe(nil)); end - # Returns the value of attribute configurations. - # - # source://activerecord//lib/active_record/database_configurations.rb#26 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:26 def configurations; end # Checks if the application's configurations are empty. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations.rb#150 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:150 def empty?; end # Returns a single +DatabaseConfig+ object based on the requested environment. @@ -18940,7 +17656,7 @@ class ActiveRecord::DatabaseConfigurations # If the application has multiple databases +find_db_config+ will return # the first +DatabaseConfig+ for the environment. # - # source://activerecord//lib/active_record/database_configurations.rb#127 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:127 def find_db_config(env); end # A primary configuration is one that is named primary or if there is @@ -18950,9 +17666,7 @@ class ActiveRecord::DatabaseConfigurations # example, when Rails dumps the schema, the primary configuration's schema # file will be named `schema.rb` instead of `primary_schema.rb`. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations.rb#142 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:142 def primary?(name); end # Returns fully resolved connection, accepts hash, string or symbol. @@ -18975,52 +17689,52 @@ class ActiveRecord::DatabaseConfigurations # DatabaseConfigurations.new({}).resolve("postgresql://localhost/foo") # # => DatabaseConfigurations::UrlConfig.new(config: {"adapter" => "postgresql", "host" => "localhost", "database" => "foo"}) # - # source://activerecord//lib/active_record/database_configurations.rb#174 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:174 def resolve(config); end private - # source://activerecord//lib/active_record/database_configurations.rb#200 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:200 def build_configs(configs); end - # source://activerecord//lib/active_record/database_configurations.rb#239 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:239 def build_configuration_sentence; end - # source://activerecord//lib/active_record/database_configurations.rb#273 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:273 def build_db_config_from_hash(env_name, name, config); end - # source://activerecord//lib/active_record/database_configurations.rb#252 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:252 def build_db_config_from_raw_config(env_name, name, config); end - # source://activerecord//lib/active_record/database_configurations.rb#263 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:263 def build_db_config_from_string(env_name, name, config); end - # source://activerecord//lib/active_record/database_configurations.rb#188 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:188 def default_env; end - # source://activerecord//lib/active_record/database_configurations.rb#192 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:192 def env_with_configs(env = T.unsafe(nil)); end - # source://activerecord//lib/active_record/database_configurations.rb#295 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:295 def environment_url_config(env, name, config); end - # source://activerecord//lib/active_record/database_configurations.rb#302 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:302 def environment_value_for(name); end - # source://activerecord//lib/active_record/database_configurations.rb#286 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:286 def merge_db_environment_variables(current_env, configs); end - # source://activerecord//lib/active_record/database_configurations.rb#225 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:225 def resolve_symbol_connection(name); end - # source://activerecord//lib/active_record/database_configurations.rb#219 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:219 def walk_configs(env_name, config); end class << self - # source://activerecord//lib/active_record/database_configurations.rb#29 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:29 def db_config_handlers; end - # source://activerecord//lib/active_record/database_configurations.rb#29 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:29 def db_config_handlers=(_arg0); end # Allows an application to register a custom handler for database configuration @@ -19053,14 +17767,14 @@ class ActiveRecord::DatabaseConfigurations # For configs that have a +:vitess+ key, a +VitessConfig+ object will be # created instead of a +UrlConfig+. # - # source://activerecord//lib/active_record/database_configurations.rb#61 + # pkg:gem/activerecord#lib/active_record/database_configurations.rb:61 def register_db_config_handler(&block); end end end # Expands a connection string into a hash. # -# source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#10 +# pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:10 class ActiveRecord::DatabaseConfigurations::ConnectionUrlResolver # == Example # @@ -19077,21 +17791,19 @@ class ActiveRecord::DatabaseConfigurations::ConnectionUrlResolver # timeout: "3000" # } # - # @return [ConnectionUrlResolver] a new instance of ConnectionUrlResolver - # - # source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#25 + # pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:25 def initialize(url); end # Converts the given URL to a full connection hash. # - # source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#38 + # pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:38 def to_hash; end private # Returns name of the database. # - # source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#91 + # pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:91 def database_from_path; end # Converts the query parameters of the URI into a hash. @@ -19104,21 +17816,19 @@ class ActiveRecord::DatabaseConfigurations::ConnectionUrlResolver # "localhost" # # => {} # - # source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#60 + # pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:60 def query_hash; end - # source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#64 + # pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:64 def raw_config; end - # source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#82 + # pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:82 def resolved_adapter; end - # Returns the value of attribute uri. - # - # source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#45 + # pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:45 def uri; end - # source://activerecord//lib/active_record/database_configurations/connection_url_resolver.rb#47 + # pkg:gem/activerecord#lib/active_record/database_configurations/connection_url_resolver.rb:47 def uri_parser; end end @@ -19126,122 +17836,81 @@ end # UrlConfig respectively. It will never return a +DatabaseConfig+ object, # as this is the parent class for the types of database configuration objects. # -# source://activerecord//lib/active_record/database_configurations/database_config.rb#8 +# pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:8 class ActiveRecord::DatabaseConfigurations::DatabaseConfig - # @return [DatabaseConfig] a new instance of DatabaseConfig - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#11 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:11 def initialize(env_name, name); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#43 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:43 def _database=(database); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#47 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:47 def adapter; end - # source://activerecord//lib/active_record/database_configurations/database_config.rb#17 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:17 def adapter_class; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#71 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:71 def checkout_timeout; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#39 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:39 def database; end - # source://activerecord//lib/active_record/database_configurations/database_config.rb#9 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:9 def env_name; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#91 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:91 def for_current_env?; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#35 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:35 def host; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#79 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:79 def idle_timeout; end - # source://activerecord//lib/active_record/database_configurations/database_config.rb#21 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:21 def inspect; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#63 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:63 def max_queue; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#59 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:59 def max_threads; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#87 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:87 def migrations_paths; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#55 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:55 def min_threads; end - # source://activerecord//lib/active_record/database_configurations/database_config.rb#9 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:9 def name; end - # source://activerecord//lib/active_record/database_configurations/database_config.rb#25 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:25 def new_connection; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#51 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:51 def pool; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#67 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:67 def query_cache; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#75 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:75 def reaping_frequency; end - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#83 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:83 def replica?; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#95 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:95 def schema_cache_path; end - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#103 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:103 def seeds?; end - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/database_config.rb#99 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:99 def use_metadata_table?; end - # source://activerecord//lib/active_record/database_configurations/database_config.rb#29 + # pkg:gem/activerecord#lib/active_record/database_configurations/database_config.rb:29 def validate!; end end @@ -19261,7 +17930,7 @@ end # # See ActiveRecord::DatabaseConfigurations for more info. # -# source://activerecord//lib/active_record/database_configurations/hash_config.rb#22 +# pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:22 class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::DatabaseConfigurations::DatabaseConfig # Initialize a new `HashConfig` object # @@ -19276,90 +17945,80 @@ class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::Databas # database adapter, name, and other important information for database # connections. # - # @return [HashConfig] a new instance of HashConfig - # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#38 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:38 def initialize(env_name, name, configuration_hash); end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#68 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:68 def _database=(database); end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#107 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:107 def adapter; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#92 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:92 def checkout_timeout; end - # Returns the value of attribute configuration_hash. - # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#23 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:23 def configuration_hash; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#64 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:64 def database; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#167 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:167 def database_tasks?; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#117 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:117 def default_schema_cache_path(db_dir = T.unsafe(nil)); end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#56 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:56 def host; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#102 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:102 def idle_timeout; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#125 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:125 def lazy_schema_cache_path; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#88 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:88 def max_queue; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#80 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:80 def max_threads; end # The migrations paths for a database configuration. If the `migrations_paths` # key is present in the config, `migrations_paths` will return its value. # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#52 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:52 def migrations_paths; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#76 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:76 def min_threads; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#72 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:72 def pool; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#129 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:129 def primary?; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#84 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:84 def query_cache; end # `reaping_frequency` is configurable mostly for historical reasons, but it # could also be useful if someone wants a very low `idle_timeout`. # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#98 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:98 def reaping_frequency; end # Determines whether a database configuration is for a replica / readonly # connection. If the `replica` key is present in the config, `replica?` will # return `true`. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#46 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:46 def replica?; end # The path to the schema cache dump file for a database. If omitted, the # filename will be read from ENV or a default will be derived. # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#113 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:113 def schema_cache_path; end # Determines whether to dump the schema/structure files and the filename that @@ -19371,10 +18030,10 @@ class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::Databas # If the config option is set that will be used. Otherwise Rails will generate # the filename from the database config name. # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#149 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:149 def schema_dump(format = T.unsafe(nil)); end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#161 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:161 def schema_format; end # Determines whether the db:prepare task should seed the database from db/seeds.rb. @@ -19382,26 +18041,22 @@ class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::Databas # If the `seeds` key is present in the config, `seeds?` will return its value. Otherwise, it # will return `true` for the primary database and `false` for all other configs. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#137 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:137 def seeds?; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#60 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:60 def socket; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#171 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:171 def use_metadata_table?; end private - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#176 + # pkg:gem/activerecord#lib/active_record/database_configurations/hash_config.rb:176 def schema_file_type(format); end end -# source://activerecord//lib/active_record/database_configurations.rb#24 +# pkg:gem/activerecord#lib/active_record/database_configurations.rb:24 class ActiveRecord::DatabaseConfigurations::InvalidConfigurationError < ::StandardError; end # = Active Record Database Url Config @@ -19423,7 +18078,7 @@ class ActiveRecord::DatabaseConfigurations::InvalidConfigurationError < ::Standa # # See ActiveRecord::DatabaseConfigurations for more info. # -# source://activerecord//lib/active_record/database_configurations/url_config.rb#24 +# pkg:gem/activerecord#lib/active_record/database_configurations/url_config.rb:24 class ActiveRecord::DatabaseConfigurations::UrlConfig < ::ActiveRecord::DatabaseConfigurations::HashConfig # Initialize a new +UrlConfig+ object # @@ -19439,14 +18094,10 @@ class ActiveRecord::DatabaseConfigurations::UrlConfig < ::ActiveRecord::Database # database adapter, name, and other important information for database # connections. # - # @return [UrlConfig] a new instance of UrlConfig - # - # source://activerecord//lib/active_record/database_configurations/url_config.rb#40 + # pkg:gem/activerecord#lib/active_record/database_configurations/url_config.rb:40 def initialize(env_name, name, url, configuration_hash = T.unsafe(nil)); end - # Returns the value of attribute url. - # - # source://activerecord//lib/active_record/database_configurations/url_config.rb#25 + # pkg:gem/activerecord#lib/active_record/database_configurations/url_config.rb:25 def url; end private @@ -19454,28 +18105,26 @@ class ActiveRecord::DatabaseConfigurations::UrlConfig < ::ActiveRecord::Database # Return a Hash that can be merged into the main config that represents # the passed in url # - # source://activerecord//lib/active_record/database_configurations/url_config.rb#69 + # pkg:gem/activerecord#lib/active_record/database_configurations/url_config.rb:69 def build_url_hash; end - # source://activerecord//lib/active_record/database_configurations/url_config.rb#61 + # pkg:gem/activerecord#lib/active_record/database_configurations/url_config.rb:61 def to_boolean!(configuration_hash, key); end end # Raised when connection to the database could not been established because it was not # able to connect to the host or when the authorization failed. # -# source://activerecord//lib/active_record/errors.rb#102 +# pkg:gem/activerecord#lib/active_record/errors.rb:102 class ActiveRecord::DatabaseConnectionError < ::ActiveRecord::ConnectionNotEstablished - # @return [DatabaseConnectionError] a new instance of DatabaseConnectionError - # - # source://activerecord//lib/active_record/errors.rb#103 + # pkg:gem/activerecord#lib/active_record/errors.rb:103 def initialize(message = T.unsafe(nil)); end class << self - # source://activerecord//lib/active_record/errors.rb#108 + # pkg:gem/activerecord#lib/active_record/errors.rb:108 def hostname_error(hostname); end - # source://activerecord//lib/active_record/errors.rb#115 + # pkg:gem/activerecord#lib/active_record/errors.rb:115 def username_error(username); end end end @@ -19483,7 +18132,7 @@ end # DatabaseVersionError will be raised when the database version is not supported, or when # the database version cannot be determined. # -# source://activerecord//lib/active_record/errors.rb#610 +# pkg:gem/activerecord#lib/active_record/errors.rb:610 class ActiveRecord::DatabaseVersionError < ::ActiveRecord::ActiveRecordError; end # Deadlocked will be raised when a transaction is rolled @@ -19492,7 +18141,7 @@ class ActiveRecord::DatabaseVersionError < ::ActiveRecord::ActiveRecordError; en # This is a subclass of TransactionRollbackError, please make sure to check # its documentation to be aware of its caveats. # -# source://activerecord//lib/active_record/errors.rb#552 +# pkg:gem/activerecord#lib/active_record/errors.rb:552 class ActiveRecord::Deadlocked < ::ActiveRecord::TransactionRollbackError; end # = Delegated types @@ -19665,7 +18314,7 @@ class ActiveRecord::Deadlocked < ::ActiveRecord::TransactionRollbackError; end # entry.entryable.id # => 2 # entry.entryable.subject # => 'Smiling' # -# source://activerecord//lib/active_record/delegated_type.rb#175 +# pkg:gem/activerecord#lib/active_record/delegated_type.rb:175 module ActiveRecord::DelegatedType # Defines this as a class that'll delegate its type for the passed +role+ to the class references in +types+. # That'll create a polymorphic +belongs_to+ relationship to that +role+, and it'll add all the delegated @@ -19723,151 +18372,149 @@ module ActiveRecord::DelegatedType # @entry.message_uuid # => returns entryable_uuid, when entryable_type == "Message", otherwise nil # @entry.comment_uuid # => returns entryable_uuid, when entryable_type == "Comment", otherwise nil # - # source://activerecord//lib/active_record/delegated_type.rb#231 + # pkg:gem/activerecord#lib/active_record/delegated_type.rb:231 def delegated_type(role, types:, **options); end private - # source://activerecord//lib/active_record/delegated_type.rb#237 + # pkg:gem/activerecord#lib/active_record/delegated_type.rb:237 def define_delegated_type_methods(role, types:, options:); end end -# source://activerecord//lib/active_record/relation/delegation.rb#6 +# pkg:gem/activerecord#lib/active_record/relation/delegation.rb:6 module ActiveRecord::Delegation extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Delegation::ClassMethods - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def &(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def &(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def +(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def +(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def -(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def -(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def [](*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def [](*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def as_json(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def as_json(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def compact(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def compact(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#106 - def connection(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:106 + def connection(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def each(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def each(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def encode_with(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def encode_with(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def in_groups(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def in_groups(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def in_groups_of(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def in_groups_of(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def index(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def index(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def intersect?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def intersect?(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def join(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def join(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def length(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def length(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#106 - def name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:106 + def name(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#106 - def primary_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:106 + def primary_key(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def reverse(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def reverse(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def rindex(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def rindex(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def rotate(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def rotate(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def sample(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def sample(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#106 - def sanitize_sql_like(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:106 + def sanitize_sql_like(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def shuffle(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def shuffle(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def slice(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def slice(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def split(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def split(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#106 - def table_name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:106 + def table_name(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def to_formatted_s(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def to_formatted_s(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def to_fs(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def to_fs(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def to_sentence(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def to_sentence(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def to_xml(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def to_xml(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#106 - def transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:106 + def transaction(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#106 - def unscoped(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:106 + def unscoped(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#106 - def with_connection(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:106 + def with_connection(*, **, &); end - # source://activerecord//lib/active_record/relation/delegation.rb#101 - def |(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:101 + def |(*, **, &); end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/delegation.rb#150 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:150 def respond_to_missing?(method, _); end class << self - # source://activerecord//lib/active_record/relation/delegation.rb#8 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:8 def delegated_classes; end - # source://activerecord//lib/active_record/relation/delegation.rb#17 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:17 def uncacheable_methods; end end end -# source://activerecord//lib/active_record/relation/delegation.rb#138 +# pkg:gem/activerecord#lib/active_record/relation/delegation.rb:138 module ActiveRecord::Delegation::ClassMethods - # source://activerecord//lib/active_record/relation/delegation.rb#139 - def create(model, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:139 + def create(model, *, **, &); end private - # source://activerecord//lib/active_record/relation/delegation.rb#144 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:144 def relation_class_for(model); end end -# source://activerecord//lib/active_record/relation/delegation.rb#108 +# pkg:gem/activerecord#lib/active_record/relation/delegation.rb:108 module ActiveRecord::Delegation::ClassSpecificRelation extend ::ActiveSupport::Concern @@ -19875,215 +18522,189 @@ module ActiveRecord::Delegation::ClassSpecificRelation private - # source://activerecord//lib/active_record/relation/delegation.rb#118 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:118 + def method_missing(method, *, **, &); end end -# source://activerecord//lib/active_record/relation/delegation.rb#111 +# pkg:gem/activerecord#lib/active_record/relation/delegation.rb:111 module ActiveRecord::Delegation::ClassSpecificRelation::ClassMethods - # source://activerecord//lib/active_record/relation/delegation.rb#112 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:112 def name; end end -# source://activerecord//lib/active_record/relation/delegation.rb#24 +# pkg:gem/activerecord#lib/active_record/relation/delegation.rb:24 module ActiveRecord::Delegation::DelegateCache - # source://activerecord//lib/active_record/relation/delegation.rb#52 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:52 def generate_relation_method(method); end - # source://activerecord//lib/active_record/relation/delegation.rb#47 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:47 def inherited(child_class); end - # source://activerecord//lib/active_record/relation/delegation.rb#32 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:32 def initialize_relation_delegate_cache; end - # source://activerecord//lib/active_record/relation/delegation.rb#28 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:28 def relation_delegate_class(klass); end protected - # source://activerecord//lib/active_record/relation/delegation.rb#57 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:57 def include_relation_methods(delegate); end private - # source://activerecord//lib/active_record/relation/delegation.rb#63 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:63 def generated_relation_methods; end class << self - # source://activerecord//lib/active_record/relation/delegation.rb#26 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:26 def delegate_base_methods; end - # source://activerecord//lib/active_record/relation/delegation.rb#26 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:26 def delegate_base_methods=(_arg0); end end end -# source://activerecord//lib/active_record/relation/delegation.rb#71 +# pkg:gem/activerecord#lib/active_record/relation/delegation.rb:71 class ActiveRecord::Delegation::GeneratedRelationMethods < ::Module - # source://activerecord//lib/active_record/relation/delegation.rb#74 + # pkg:gem/activerecord#lib/active_record/relation/delegation.rb:74 def generate_method(method); end end -# source://activerecord//lib/active_record/relation/delegation.rb#72 +# pkg:gem/activerecord#lib/active_record/relation/delegation.rb:72 ActiveRecord::Delegation::GeneratedRelationMethods::MUTEX = T.let(T.unsafe(nil), Thread::Mutex) # This error is raised when trying to destroy a parent instance in N:1 or 1:1 associations # (has_many, has_one) when there is at least 1 child associated instance. # ex: if @project.tasks.size > 0, DeleteRestrictionError will be raised when trying to destroy @project # -# source://activerecord//lib/active_record/associations/errors.rb#256 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:256 class ActiveRecord::DeleteRestrictionError < ::ActiveRecord::ActiveRecordError - # @return [DeleteRestrictionError] a new instance of DeleteRestrictionError - # - # source://activerecord//lib/active_record/associations/errors.rb#257 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:257 def initialize(name = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/destroy_association_async_job.rb#4 +# pkg:gem/activerecord#lib/active_record/destroy_association_async_job.rb:4 class ActiveRecord::DestroyAssociationAsyncError < ::StandardError; end # = Active Record Destroy Association Async Job # # Job to destroy the records associated with a destroyed record in background. # -# source://activerecord//lib/active_record/destroy_association_async_job.rb#10 +# pkg:gem/activerecord#lib/active_record/destroy_association_async_job.rb:10 class ActiveRecord::DestroyAssociationAsyncJob < ::ActiveJob::Base - # source://activerecord//lib/active_record/destroy_association_async_job.rb#15 + # pkg:gem/activerecord#lib/active_record/destroy_association_async_job.rb:15 def perform(owner_model_name: T.unsafe(nil), owner_id: T.unsafe(nil), association_class: T.unsafe(nil), association_ids: T.unsafe(nil), association_primary_key_column: T.unsafe(nil), ensuring_owner_was_method: T.unsafe(nil)); end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/destroy_association_async_job.rb#34 + # pkg:gem/activerecord#lib/active_record/destroy_association_async_job.rb:34 def owner_destroyed?(owner, ensuring_owner_was_method); end class << self private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/destroy_association_async_job.rb:11 def __class_attr_queue_name; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/destroy_association_async_job.rb:11 def __class_attr_queue_name=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/destroy_association_async_job.rb:13 def __class_attr_rescue_handlers; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/destroy_association_async_job.rb:13 def __class_attr_rescue_handlers=(new_value); end end end -# source://activerecord//lib/active_record/disable_joins_association_relation.rb#4 +# pkg:gem/activerecord#lib/active_record/disable_joins_association_relation.rb:4 class ActiveRecord::DisableJoinsAssociationRelation < ::ActiveRecord::Relation - # @return [DisableJoinsAssociationRelation] a new instance of DisableJoinsAssociationRelation - # - # source://activerecord//lib/active_record/disable_joins_association_relation.rb#7 + # pkg:gem/activerecord#lib/active_record/disable_joins_association_relation.rb:7 def initialize(klass, key, ids); end - # source://activerecord//lib/active_record/disable_joins_association_relation.rb#17 + # pkg:gem/activerecord#lib/active_record/disable_joins_association_relation.rb:17 def first(limit = T.unsafe(nil)); end - # Returns the value of attribute ids. - # - # source://activerecord//lib/active_record/disable_joins_association_relation.rb#5 + # pkg:gem/activerecord#lib/active_record/disable_joins_association_relation.rb:5 def ids; end - # Returns the value of attribute key. - # - # source://activerecord//lib/active_record/disable_joins_association_relation.rb#5 + # pkg:gem/activerecord#lib/active_record/disable_joins_association_relation.rb:5 def key; end - # source://activerecord//lib/active_record/disable_joins_association_relation.rb#13 + # pkg:gem/activerecord#lib/active_record/disable_joins_association_relation.rb:13 def limit(value); end - # source://activerecord//lib/active_record/disable_joins_association_relation.rb#25 + # pkg:gem/activerecord#lib/active_record/disable_joins_association_relation.rb:25 def load; end end -# source://activerecord//lib/active_record/migration.rb#101 +# pkg:gem/activerecord#lib/active_record/migration.rb:101 class ActiveRecord::DuplicateMigrationNameError < ::ActiveRecord::MigrationError - # @return [DuplicateMigrationNameError] a new instance of DuplicateMigrationNameError - # - # source://activerecord//lib/active_record/migration.rb#102 + # pkg:gem/activerecord#lib/active_record/migration.rb:102 def initialize(name = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/migration.rb#91 +# pkg:gem/activerecord#lib/active_record/migration.rb:91 class ActiveRecord::DuplicateMigrationVersionError < ::ActiveRecord::MigrationError - # @return [DuplicateMigrationVersionError] a new instance of DuplicateMigrationVersionError - # - # source://activerecord//lib/active_record/migration.rb#92 + # pkg:gem/activerecord#lib/active_record/migration.rb:92 def initialize(version = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/dynamic_matchers.rb#4 +# pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:4 module ActiveRecord::DynamicMatchers private - # source://activerecord//lib/active_record/dynamic_matchers.rb#15 - def method_missing(name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:15 + def method_missing(name, *, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#6 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:6 def respond_to_missing?(name, _); end end -# source://activerecord//lib/active_record/dynamic_matchers.rb#93 +# pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:93 class ActiveRecord::DynamicMatchers::FindBy < ::ActiveRecord::DynamicMatchers::Method - # source://activerecord//lib/active_record/dynamic_matchers.rb#100 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:100 def finder; end class << self - # source://activerecord//lib/active_record/dynamic_matchers.rb#96 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:96 def prefix; end end end -# source://activerecord//lib/active_record/dynamic_matchers.rb#105 +# pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:105 class ActiveRecord::DynamicMatchers::FindByBang < ::ActiveRecord::DynamicMatchers::Method - # source://activerecord//lib/active_record/dynamic_matchers.rb#116 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:116 def finder; end class << self - # source://activerecord//lib/active_record/dynamic_matchers.rb#108 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:108 def prefix; end - # source://activerecord//lib/active_record/dynamic_matchers.rb#112 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:112 def suffix; end end end -# source://activerecord//lib/active_record/dynamic_matchers.rb#26 +# pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:26 class ActiveRecord::DynamicMatchers::Method - # @return [Method] a new instance of Method - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#52 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:52 def initialize(model, method_name); end - # Returns the value of attribute attribute_names. - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#50 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:50 def attribute_names; end - # source://activerecord//lib/active_record/dynamic_matchers.rb#63 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:63 def define; end - # Returns the value of attribute model. - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#50 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:50 def model; end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#50 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:50 def name; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#59 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:59 def valid?; end private @@ -20091,41 +18712,35 @@ class ActiveRecord::DynamicMatchers::Method # Given that the parameters starts with `_`, the finder needs to use the # same parameter name. # - # source://activerecord//lib/active_record/dynamic_matchers.rb#84 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:84 def attributes_hash; end - # source://activerecord//lib/active_record/dynamic_matchers.rb#72 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:72 def body; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#88 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:88 def finder; end # The parameters in the signature may have reserved Ruby words, in order # to prevent errors, we start each param name with `_`. # - # source://activerecord//lib/active_record/dynamic_matchers.rb#78 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:78 def signature; end class << self - # source://activerecord//lib/active_record/dynamic_matchers.rb#32 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:32 def match(model, name); end - # Returns the value of attribute matchers. - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#30 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:30 def matchers; end - # source://activerecord//lib/active_record/dynamic_matchers.rb#37 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:37 def pattern; end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/dynamic_matchers.rb#41 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:41 def prefix; end - # source://activerecord//lib/active_record/dynamic_matchers.rb#45 + # pkg:gem/activerecord#lib/active_record/dynamic_matchers.rb:45 def suffix; end end end @@ -20134,15 +18749,13 @@ end # Eager loading polymorphic associations is only possible with # {ActiveRecord::Relation#preload}[rdoc-ref:QueryMethods#preload]. # -# source://activerecord//lib/active_record/associations/errors.rb#243 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:243 class ActiveRecord::EagerLoadPolymorphicError < ::ActiveRecord::ActiveRecordError - # @return [EagerLoadPolymorphicError] a new instance of EagerLoadPolymorphicError - # - # source://activerecord//lib/active_record/associations/errors.rb#244 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:244 def initialize(reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/encryption.rb#7 +# pkg:gem/activerecord#lib/active_record/encryption.rb:7 module ActiveRecord::Encryption include ::ActiveRecord::Encryption::Configurable include ::ActiveRecord::Encryption::Contexts @@ -20150,94 +18763,86 @@ module ActiveRecord::Encryption extend ::ActiveRecord::Encryption::Configurable::ClassMethods extend ::ActiveRecord::Encryption::Contexts::ClassMethods - # source://activerecord//lib/active_record/encryption/configurable.rb#10 + # pkg:gem/activerecord#lib/active_record/encryption.rb:47 def config; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # pkg:gem/activerecord#lib/active_record/encryption.rb:48 def custom_contexts; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # pkg:gem/activerecord#lib/active_record/encryption.rb:48 def custom_contexts=(obj); end - # source://activerecord//lib/active_record/encryption/contexts.rb#17 + # pkg:gem/activerecord#lib/active_record/encryption.rb:48 def default_context; end - # source://activerecord//lib/active_record/encryption/contexts.rb#17 + # pkg:gem/activerecord#lib/active_record/encryption.rb:48 def default_context=(val); end - # source://activerecord//lib/active_record/encryption/configurable.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption.rb:47 def encrypted_attribute_declaration_listeners; end - # source://activerecord//lib/active_record/encryption/configurable.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption.rb:47 def encrypted_attribute_declaration_listeners=(val); end class << self - # source://activerecord//lib/active_record/encryption/configurable.rb#10 + # pkg:gem/activerecord#lib/active_record/encryption.rb:47 def config; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # pkg:gem/activerecord#lib/active_record/encryption.rb:48 def custom_contexts; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # pkg:gem/activerecord#lib/active_record/encryption.rb:48 def custom_contexts=(obj); end - # source://activerecord//lib/active_record/encryption/contexts.rb#17 + # pkg:gem/activerecord#lib/active_record/encryption.rb:48 def default_context; end - # source://activerecord//lib/active_record/encryption/contexts.rb#17 + # pkg:gem/activerecord#lib/active_record/encryption.rb:48 def default_context=(val); end - # source://activerecord//lib/active_record/encryption.rb#50 + # pkg:gem/activerecord#lib/active_record/encryption.rb:50 def eager_load!; end - # source://activerecord//lib/active_record/encryption/configurable.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption.rb:47 def encrypted_attribute_declaration_listeners; end - # source://activerecord//lib/active_record/encryption/configurable.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption.rb:47 def encrypted_attribute_declaration_listeners=(val); end end end -# source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#5 +# pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:5 class ActiveRecord::Encryption::AutoFilteredParameters - # @return [AutoFilteredParameters] a new instance of AutoFilteredParameters - # - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#6 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:6 def initialize(app); end - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#14 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:14 def enable; end private - # Returns the value of attribute app. - # - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#20 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:20 def app; end - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#36 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:36 def apply_collected_attributes; end - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#53 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:53 def apply_filter(klass, attribute); end - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#28 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:28 def attribute_was_declared(klass, attribute); end - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#48 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:48 def collect_for_later(klass, attribute); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#44 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:44 def collecting?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#61 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:61 def excluded_from_filter_parameters?(filter_parameter); end - # source://activerecord//lib/active_record/encryption/auto_filtered_parameters.rb#22 + # pkg:gem/activerecord#lib/active_record/encryption/auto_filtered_parameters.rb:22 def install_collecting_hook; end end @@ -20248,7 +18853,7 @@ end # # See +Cipher::Aes256Gcm+. # -# source://activerecord//lib/active_record/encryption/cipher.rb#11 +# pkg:gem/activerecord#lib/active_record/encryption/cipher.rb:11 class ActiveRecord::Encryption::Cipher extend ::ActiveSupport::Autoload @@ -20257,26 +18862,26 @@ class ActiveRecord::Encryption::Cipher # When +key+ is an Array, it will try all the keys raising a # +ActiveRecord::Encryption::Errors::Decryption+ if none works. # - # source://activerecord//lib/active_record/encryption/cipher.rb#25 + # pkg:gem/activerecord#lib/active_record/encryption/cipher.rb:25 def decrypt(encrypted_message, key:); end # Encrypts the provided text and return an encrypted +Message+. # - # source://activerecord//lib/active_record/encryption/cipher.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/cipher.rb:15 def encrypt(clean_text, key:, deterministic: T.unsafe(nil)); end - # source://activerecord//lib/active_record/encryption/cipher.rb#35 + # pkg:gem/activerecord#lib/active_record/encryption/cipher.rb:35 def iv_length; end - # source://activerecord//lib/active_record/encryption/cipher.rb#31 + # pkg:gem/activerecord#lib/active_record/encryption/cipher.rb:31 def key_length; end private - # source://activerecord//lib/active_record/encryption/cipher.rb#48 + # pkg:gem/activerecord#lib/active_record/encryption/cipher.rb:48 def cipher_for(secret, deterministic: T.unsafe(nil)); end - # source://activerecord//lib/active_record/encryption/cipher.rb#40 + # pkg:gem/activerecord#lib/active_record/encryption/cipher.rb:40 def try_to_decrypt_with_each(encrypted_text, keys:); end end @@ -20287,289 +18892,201 @@ end # # See +Encryptor+ # -# source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#14 +# pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:14 class ActiveRecord::Encryption::Cipher::Aes256Gcm # When iv not provided, it will generate a random iv on each encryption operation (default and # recommended operation) # - # @return [Aes256Gcm] a new instance of Aes256Gcm - # - # source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#29 + # pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:29 def initialize(secret, deterministic: T.unsafe(nil)); end - # source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#55 + # pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:55 def decrypt(encrypted_message); end - # source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#34 + # pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:34 def encrypt(clear_text); end - # source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#82 + # pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:82 def inspect; end private - # source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#95 + # pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:95 def generate_deterministic_iv(clear_text); end - # source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#87 + # pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:87 def generate_iv(cipher, clear_text); end class << self - # source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#22 + # pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:22 def iv_length; end - # source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#18 + # pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:18 def key_length; end end end -# source://activerecord//lib/active_record/encryption/cipher/aes256_gcm.rb#15 +# pkg:gem/activerecord#lib/active_record/encryption/cipher/aes256_gcm.rb:15 ActiveRecord::Encryption::Cipher::Aes256Gcm::CIPHER_TYPE = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/encryption/cipher.rb#12 +# pkg:gem/activerecord#lib/active_record/encryption/cipher.rb:12 ActiveRecord::Encryption::Cipher::DEFAULT_ENCODING = T.let(T.unsafe(nil), Encoding) # Container of configuration options # -# source://activerecord//lib/active_record/encryption/config.rb#8 +# pkg:gem/activerecord#lib/active_record/encryption/config.rb:8 class ActiveRecord::Encryption::Config - # @return [Config] a new instance of Config - # - # source://activerecord//lib/active_record/encryption/config.rb#14 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:14 def initialize; end - # Returns the value of attribute add_to_filter_parameters. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def add_to_filter_parameters; end - # Sets the attribute add_to_filter_parameters - # - # @param value the value to set the attribute add_to_filter_parameters to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def add_to_filter_parameters=(_arg0); end - # Returns the value of attribute compressor. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def compressor; end - # Sets the attribute compressor - # - # @param value the value to set the attribute compressor to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def compressor=(_arg0); end - # Returns the value of attribute deterministic_key. - # - # source://activerecord//lib/active_record/encryption/config.rb#42 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def deterministic_key; end - # Sets the attribute deterministic_key - # - # @param value the value to set the attribute deterministic_key to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def deterministic_key=(_arg0); end - # Returns the value of attribute encrypt_fixtures. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def encrypt_fixtures; end - # Sets the attribute encrypt_fixtures - # - # @param value the value to set the attribute encrypt_fixtures to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def encrypt_fixtures=(_arg0); end - # Returns the value of attribute excluded_from_filter_parameters. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def excluded_from_filter_parameters; end - # Sets the attribute excluded_from_filter_parameters - # - # @param value the value to set the attribute excluded_from_filter_parameters to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def excluded_from_filter_parameters=(_arg0); end - # Returns the value of attribute extend_queries. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def extend_queries; end - # Sets the attribute extend_queries - # - # @param value the value to set the attribute extend_queries to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def extend_queries=(_arg0); end - # Returns the value of attribute forced_encoding_for_deterministic_encryption. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def forced_encoding_for_deterministic_encryption; end - # Sets the attribute forced_encoding_for_deterministic_encryption - # - # @param value the value to set the attribute forced_encoding_for_deterministic_encryption to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def forced_encoding_for_deterministic_encryption=(_arg0); end - # source://activerecord//lib/active_record/encryption/config.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:37 def has_deterministic_key?; end - # source://activerecord//lib/active_record/encryption/config.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:37 def has_key_derivation_salt?; end - # source://activerecord//lib/active_record/encryption/config.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:37 def has_primary_key?; end - # Returns the value of attribute hash_digest_class. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def hash_digest_class; end - # Sets the attribute hash_digest_class - # - # @param value the value to set the attribute hash_digest_class to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def hash_digest_class=(_arg0); end - # Returns the value of attribute key_derivation_salt. - # - # source://activerecord//lib/active_record/encryption/config.rb#42 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def key_derivation_salt; end - # Sets the attribute key_derivation_salt - # - # @param value the value to set the attribute key_derivation_salt to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def key_derivation_salt=(_arg0); end # Configure previous encryption schemes. # # config.active_record.encryption.previous = [ { key_provider: MyOldKeyProvider.new } ] # - # source://activerecord//lib/active_record/encryption/config.rb#21 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:21 def previous=(previous_schemes_properties); end - # Returns the value of attribute previous_schemes. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def previous_schemes; end - # Sets the attribute previous_schemes - # - # @param value the value to set the attribute previous_schemes to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def previous_schemes=(_arg0); end - # Returns the value of attribute primary_key. - # - # source://activerecord//lib/active_record/encryption/config.rb#42 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def primary_key; end - # Sets the attribute primary_key - # - # @param value the value to set the attribute primary_key to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def primary_key=(_arg0); end - # Returns the value of attribute store_key_references. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def store_key_references; end - # Sets the attribute store_key_references - # - # @param value the value to set the attribute store_key_references to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def store_key_references=(_arg0); end - # source://activerecord//lib/active_record/encryption/config.rb#27 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:27 def support_sha1_for_non_deterministic_encryption=(value); end - # Returns the value of attribute support_unencrypted_data. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def support_unencrypted_data; end - # Sets the attribute support_unencrypted_data - # - # @param value the value to set the attribute support_unencrypted_data to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def support_unencrypted_data=(_arg0); end - # Returns the value of attribute validate_column_size. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def validate_column_size; end - # Sets the attribute validate_column_size - # - # @param value the value to set the attribute validate_column_size to. - # - # source://activerecord//lib/active_record/encryption/config.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:9 def validate_column_size=(_arg0); end private - # source://activerecord//lib/active_record/encryption/config.rb#65 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:65 def add_previous_scheme(**properties); end - # source://activerecord//lib/active_record/encryption/config.rb#49 + # pkg:gem/activerecord#lib/active_record/encryption/config.rb:49 def set_defaults; end end # Configuration API for ActiveRecord::Encryption # -# source://activerecord//lib/active_record/encryption/configurable.rb#6 +# pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:6 module ActiveRecord::Encryption::Configurable extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Encryption::Configurable::ClassMethods end -# source://activerecord//lib/active_record/encryption/configurable.rb#0 +# pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:14 module ActiveRecord::Encryption::Configurable::ClassMethods - # source://activerecord//lib/active_record/encryption/configurable.rb#17 - def cipher(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:17 + def cipher(*, **, &); end - # source://activerecord//lib/active_record/encryption/configurable.rb#20 + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:20 def configure(primary_key: T.unsafe(nil), deterministic_key: T.unsafe(nil), key_derivation_salt: T.unsafe(nil), **properties); end - # source://activerecord//lib/active_record/encryption/configurable.rb#52 + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:52 def encrypted_attribute_was_declared(klass, name); end - # source://activerecord//lib/active_record/encryption/configurable.rb#17 - def encryptor(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:17 + def encryptor(*, **, &); end - # source://activerecord//lib/active_record/encryption/configurable.rb#17 - def frozen_encryption(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:17 + def frozen_encryption(*, **, &); end - # source://activerecord//lib/active_record/encryption/configurable.rb#17 - def key_generator(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:17 + def key_generator(*, **, &); end - # source://activerecord//lib/active_record/encryption/configurable.rb#17 - def key_provider(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:17 + def key_provider(*, **, &); end - # source://activerecord//lib/active_record/encryption/configurable.rb#17 - def message_serializer(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:17 + def message_serializer(*, **, &); end - # source://activerecord//lib/active_record/encryption/configurable.rb#47 + # pkg:gem/activerecord#lib/active_record/encryption/configurable.rb:47 def on_encrypted_attribute_declared(&block); end end @@ -20581,62 +19098,60 @@ end # * A cipher, the encryption algorithm # * A message serializer # -# source://activerecord//lib/active_record/encryption/context.rb#12 +# pkg:gem/activerecord#lib/active_record/encryption/context.rb:12 class ActiveRecord::Encryption::Context - # @return [Context] a new instance of Context - # - # source://activerecord//lib/active_record/encryption/context.rb#17 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:17 def initialize; end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def cipher; end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def cipher=(_arg0); end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def encryptor; end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def encryptor=(_arg0); end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def frozen_encryption; end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def frozen_encryption=(_arg0); end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:21 def frozen_encryption?; end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def key_generator; end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def key_generator=(_arg0); end - # source://activerecord//lib/active_record/encryption/context.rb#24 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def key_provider; end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def key_provider=(_arg0); end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def message_serializer; end - # source://activerecord//lib/active_record/encryption/context.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:15 def message_serializer=(_arg0); end private - # source://activerecord//lib/active_record/encryption/context.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:37 def build_default_key_provider; end - # source://activerecord//lib/active_record/encryption/context.rb#29 + # pkg:gem/activerecord#lib/active_record/encryption/context.rb:29 def set_defaults; end end -# source://activerecord//lib/active_record/encryption/context.rb#13 +# pkg:gem/activerecord#lib/active_record/encryption/context.rb:13 ActiveRecord::Encryption::Context::PROPERTIES = T.let(T.unsafe(nil), Array) # ActiveRecord::Encryption uses encryption contexts to configure the different entities used to @@ -20648,64 +19163,59 @@ ActiveRecord::Encryption::Context::PROPERTIES = T.let(T.unsafe(nil), Array) # # See Context. # -# source://activerecord//lib/active_record/encryption/contexts.rb#13 +# pkg:gem/activerecord#lib/active_record/encryption/contexts.rb:13 module ActiveRecord::Encryption::Contexts extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Encryption::Contexts::ClassMethods end -# source://activerecord//lib/active_record/encryption/contexts.rb#0 +# pkg:gem/activerecord#lib/active_record/encryption/contexts.rb:21 module ActiveRecord::Encryption::Contexts::ClassMethods - # source://activerecord//lib/active_record/encryption/contexts.rb#62 + # pkg:gem/activerecord#lib/active_record/encryption/contexts.rb:62 def context; end - # source://activerecord//lib/active_record/encryption/contexts.rb#66 + # pkg:gem/activerecord#lib/active_record/encryption/contexts.rb:66 def current_custom_context; end - # source://activerecord//lib/active_record/encryption/contexts.rb#57 + # pkg:gem/activerecord#lib/active_record/encryption/contexts.rb:57 def protecting_encrypted_data(&block); end - # source://activerecord//lib/active_record/encryption/contexts.rb#70 + # pkg:gem/activerecord#lib/active_record/encryption/contexts.rb:70 def reset_default_context; end - # source://activerecord//lib/active_record/encryption/contexts.rb#33 + # pkg:gem/activerecord#lib/active_record/encryption/contexts.rb:33 def with_encryption_context(properties); end - # source://activerecord//lib/active_record/encryption/contexts.rb#49 + # pkg:gem/activerecord#lib/active_record/encryption/contexts.rb:49 def without_encryption(&block); end end # A KeyProvider that derives keys from passwords. # -# source://activerecord//lib/active_record/encryption/derived_secret_key_provider.rb#6 +# pkg:gem/activerecord#lib/active_record/encryption/derived_secret_key_provider.rb:6 class ActiveRecord::Encryption::DerivedSecretKeyProvider < ::ActiveRecord::Encryption::KeyProvider - # @return [DerivedSecretKeyProvider] a new instance of DerivedSecretKeyProvider - # - # source://activerecord//lib/active_record/encryption/derived_secret_key_provider.rb#7 + # pkg:gem/activerecord#lib/active_record/encryption/derived_secret_key_provider.rb:7 def initialize(passwords, key_generator: T.unsafe(nil)); end private - # source://activerecord//lib/active_record/encryption/derived_secret_key_provider.rb#12 + # pkg:gem/activerecord#lib/active_record/encryption/derived_secret_key_provider.rb:12 def derive_key_from(password, using: T.unsafe(nil)); end end # A KeyProvider that derives keys from passwords. # -# source://activerecord//lib/active_record/encryption/deterministic_key_provider.rb#6 +# pkg:gem/activerecord#lib/active_record/encryption/deterministic_key_provider.rb:6 class ActiveRecord::Encryption::DeterministicKeyProvider < ::ActiveRecord::Encryption::DerivedSecretKeyProvider - # @raise [ActiveRecord::Encryption::Errors::Configuration] - # @return [DeterministicKeyProvider] a new instance of DeterministicKeyProvider - # - # source://activerecord//lib/active_record/encryption/deterministic_key_provider.rb#7 + # pkg:gem/activerecord#lib/active_record/encryption/deterministic_key_provider.rb:7 def initialize(password); end end # This is the concern mixed in Active Record models to make them encryptable. It adds the +encrypts+ # attribute declaration, as well as the API to encrypt and decrypt records. # -# source://activerecord//lib/active_record/encryption/encryptable_record.rb#7 +# pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:7 module ActiveRecord::Encryption::EncryptableRecord extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -20715,54 +19225,48 @@ module ActiveRecord::Encryption::EncryptableRecord # Returns the ciphertext for +attribute_name+. # - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#157 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:157 def ciphertext_for(attribute_name); end # Decrypts all the encryptable attributes and saves the changes. # - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#171 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:171 def decrypt; end # Encrypts all the encryptable attributes and saves the changes. # - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#166 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:166 def encrypt; end # Returns whether a given attribute is encrypted or not. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#146 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:146 def encrypted_attribute?(attribute_name); end private - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#178 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:178 def _create_record(attribute_names = T.unsafe(nil)); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#214 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:214 def build_decrypt_attribute_assignments; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#208 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:208 def build_encrypt_attribute_assignments; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#223 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:223 def cant_modify_encrypted_attributes_when_frozen; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#193 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:193 def decrypt_attributes; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#187 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:187 def encrypt_attributes; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#204 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:204 def has_encrypted_attributes?; end - # @raise [ActiveRecord::Encryption::Errors::Configuration] - # - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#200 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:200 def validate_encryption_allowed; end module GeneratedClassMethods @@ -20778,45 +19282,45 @@ module ActiveRecord::Encryption::EncryptableRecord end end -# source://activerecord//lib/active_record/encryption/encryptable_record.rb#0 +# pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:16 module ActiveRecord::Encryption::EncryptableRecord::ClassMethods - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#58 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:58 def deterministic_encrypted_attributes; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#49 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:49 def encrypts(*names, key_provider: T.unsafe(nil), key: T.unsafe(nil), deterministic: T.unsafe(nil), support_unencrypted_data: T.unsafe(nil), downcase: T.unsafe(nil), ignore_case: T.unsafe(nil), previous: T.unsafe(nil), compress: T.unsafe(nil), compressor: T.unsafe(nil), **context_properties); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#65 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:65 def source_attribute_from_preserved_attribute(attribute_name); end private - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#132 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:132 def add_length_validation_for_encrypted_columns; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#84 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:84 def encrypt_attribute(name, key_provider: T.unsafe(nil), key: T.unsafe(nil), deterministic: T.unsafe(nil), support_unencrypted_data: T.unsafe(nil), downcase: T.unsafe(nil), ignore_case: T.unsafe(nil), previous: T.unsafe(nil), compress: T.unsafe(nil), compressor: T.unsafe(nil), **context_properties); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#78 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:78 def global_previous_schemes_for(scheme); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#126 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:126 def load_schema!; end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#109 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:109 def override_accessors_to_preserve_original(name, original_attribute_name); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#98 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:98 def preserve_original_encrypted(name); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#70 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:70 def scheme_for(key_provider: T.unsafe(nil), key: T.unsafe(nil), deterministic: T.unsafe(nil), support_unencrypted_data: T.unsafe(nil), downcase: T.unsafe(nil), ignore_case: T.unsafe(nil), previous: T.unsafe(nil), **context_properties); end - # source://activerecord//lib/active_record/encryption/encryptable_record.rb#138 + # pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:138 def validate_column_size(attribute_name); end end -# source://activerecord//lib/active_record/encryption/encryptable_record.rb#176 +# pkg:gem/activerecord#lib/active_record/encryption/encryptable_record.rb:176 ActiveRecord::Encryption::EncryptableRecord::ORIGINAL_ATTRIBUTE_PREFIX = T.let(T.unsafe(nil), String) # An ActiveModel::Type::Value that encrypts/decrypts strings of text. @@ -20825,7 +19329,7 @@ ActiveRecord::Encryption::EncryptableRecord::ORIGINAL_ATTRIBUTE_PREFIX = T.let(T # model classes. Whenever you declare an attribute as encrypted, it configures an +EncryptedAttributeType+ # for that attribute. # -# source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#10 +# pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:10 class ActiveRecord::Encryption::EncryptedAttributeType < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Mutable @@ -20835,155 +19339,139 @@ class ActiveRecord::Encryption::EncryptedAttributeType < ::ActiveModel::Type::Va # * :cast_type - A type that will be used to serialize (before encrypting) and deserialize # (after decrypting). ActiveModel::Type::String by default. # - # @return [EncryptedAttributeType] a new instance of EncryptedAttributeType - # - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#23 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:23 def initialize(scheme:, cast_type: T.unsafe(nil), previous_type: T.unsafe(nil), default: T.unsafe(nil)); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#16 - def accessor(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:16 + def accessor(*, **, &); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#31 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:31 def cast(value); end - # Returns the value of attribute cast_type. - # - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#13 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:13 def cast_type; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#51 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:51 def changed_in_place?(raw_old_value, new_value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#35 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:35 def deserialize(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#15 - def deterministic?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:15 + def deterministic?(*, **, &); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#15 - def downcase?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:15 + def downcase?(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#47 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:47 def encrypted?(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#15 - def fixed?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:15 + def fixed?(*, **, &); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#15 - def key_provider(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:15 + def key_provider(*, **, &); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#15 - def previous_schemes(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:15 + def previous_schemes(*, **, &); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#56 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:56 def previous_types; end - # Returns the value of attribute scheme. - # - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#13 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:13 def scheme; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#39 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:39 def serialize(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#61 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:61 def support_unencrypted_data?; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#16 - def type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:16 + def type(*, **, &); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#15 - def with_context(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:15 + def with_context(*, **, &); end private - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#74 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:74 def build_previous_types_for(schemes); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#162 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:162 def clean_text_scheme; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#174 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:174 def database_type_to_text(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#102 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:102 def decrypt(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#84 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:84 def decrypt_as_text(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#158 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:158 def decryption_options; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#146 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:146 def encrypt(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#136 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:136 def encrypt_as_text(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#154 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:154 def encryption_options; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#150 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:150 def encryptor; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#114 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:114 def handle_deserialize_error(error, value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#66 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:66 def previous_schemes_including_clean_text; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#80 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:80 def previous_type?; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#70 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:70 def previous_types_without_clean_text; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#130 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:130 def serialize_with_current(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#126 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:126 def serialize_with_oldest(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#122 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:122 def serialize_with_oldest?; end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#166 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:166 def text_to_database_type(value); end - # source://activerecord//lib/active_record/encryption/encrypted_attribute_type.rb#106 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_attribute_type.rb:106 def try_to_deserialize_with_previous_encrypted_types(value); end end -# source://activerecord//lib/active_record/encryption/encrypted_fixtures.rb#5 +# pkg:gem/activerecord#lib/active_record/encryption/encrypted_fixtures.rb:5 module ActiveRecord::Encryption::EncryptedFixtures - # source://activerecord//lib/active_record/encryption/encrypted_fixtures.rb#6 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_fixtures.rb:6 def initialize(fixture, model_class); end private - # source://activerecord//lib/active_record/encryption/encrypted_fixtures.rb#14 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_fixtures.rb:14 def encrypt_fixture_data(fixture, model_class); end - # source://activerecord//lib/active_record/encryption/encrypted_fixtures.rb#26 + # pkg:gem/activerecord#lib/active_record/encryption/encrypted_fixtures.rb:26 def process_preserved_original_columns(fixture, model_class); end end # An encryptor that can encrypt data but can't decrypt it. # -# source://activerecord//lib/active_record/encryption/encrypting_only_encryptor.rb#6 +# pkg:gem/activerecord#lib/active_record/encryption/encrypting_only_encryptor.rb:6 class ActiveRecord::Encryption::EncryptingOnlyEncryptor < ::ActiveRecord::Encryption::Encryptor - # source://activerecord//lib/active_record/encryption/encrypting_only_encryptor.rb#7 + # pkg:gem/activerecord#lib/active_record/encryption/encrypting_only_encryptor.rb:7 def decrypt(encrypted_text, key_provider: T.unsafe(nil), cipher_options: T.unsafe(nil)); end end @@ -20993,7 +19481,7 @@ end # It interacts with a KeyProvider for getting the keys, and delegate to # ActiveRecord::Encryption::Cipher the actual encryption algorithm. # -# source://activerecord//lib/active_record/encryption/encryptor.rb#13 +# pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:13 class ActiveRecord::Encryption::Encryptor # ==== Options # @@ -21006,24 +19494,18 @@ class ActiveRecord::Encryption::Encryptor # If not provided, will default to +ActiveRecord::Encryption.config.compressor+, # which itself defaults to +Zlib+. # - # @return [Encryptor] a new instance of Encryptor - # - # source://activerecord//lib/active_record/encryption/encryptor.rb#27 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:27 def initialize(compress: T.unsafe(nil), compressor: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encryptor.rb#86 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:86 def binary?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encryptor.rb#90 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:90 def compress?; end # The compressor to use for compressing the payload. # - # source://activerecord//lib/active_record/encryption/encryptor.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:15 def compressor; end # Decrypts an +encrypted_text+ and returns the result as clean text. @@ -21038,7 +19520,7 @@ class ActiveRecord::Encryption::Encryptor # Cipher-specific options that will be passed to the Cipher configured in # +ActiveRecord::Encryption.cipher+. # - # source://activerecord//lib/active_record/encryption/encryptor.rb#69 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:69 def decrypt(encrypted_text, key_provider: T.unsafe(nil), cipher_options: T.unsafe(nil)); end # Encrypts +clean_text+ and returns the encrypted result. @@ -21061,67 +19543,65 @@ class ActiveRecord::Encryption::Encryptor # Cipher-specific options that will be passed to the Cipher configured in # +ActiveRecord::Encryption.cipher+. # - # source://activerecord//lib/active_record/encryption/encryptor.rb#51 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:51 def encrypt(clear_text, key_provider: T.unsafe(nil), cipher_options: T.unsafe(nil)); end # Returns whether the text is encrypted or not. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/encryptor.rb#79 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:79 def encrypted?(text); end private - # source://activerecord//lib/active_record/encryption/encryptor.rb#113 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:113 def build_encrypted_message(clear_text, key_provider:, cipher_options:); end - # source://activerecord//lib/active_record/encryption/encryptor.rb#109 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:109 def cipher; end - # source://activerecord//lib/active_record/encryption/encryptor.rb#146 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:146 def compress(data); end # Under certain threshold, ZIP compression is actually worse that not compressing # - # source://activerecord//lib/active_record/encryption/encryptor.rb#138 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:138 def compress_if_worth_it(string); end - # source://activerecord//lib/active_record/encryption/encryptor.rb#99 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:99 def default_key_provider; end - # source://activerecord//lib/active_record/encryption/encryptor.rb#127 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:127 def deserialize_message(message); end - # source://activerecord//lib/active_record/encryption/encryptor.rb#166 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:166 def force_encoding_if_needed(value); end - # source://activerecord//lib/active_record/encryption/encryptor.rb#174 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:174 def forced_encoding_for_deterministic_encryption; end - # source://activerecord//lib/active_record/encryption/encryptor.rb#123 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:123 def serialize_message(message); end - # source://activerecord//lib/active_record/encryption/encryptor.rb#133 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:133 def serializer; end - # source://activerecord//lib/active_record/encryption/encryptor.rb#160 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:160 def uncompress(data); end - # source://activerecord//lib/active_record/encryption/encryptor.rb#152 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:152 def uncompress_if_needed(data, compressed); end - # source://activerecord//lib/active_record/encryption/encryptor.rb#103 + # pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:103 def validate_payload_type(clear_text); end end -# source://activerecord//lib/active_record/encryption/encryptor.rb#95 +# pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:95 ActiveRecord::Encryption::Encryptor::DECRYPT_ERRORS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/encryption/encryptor.rb#96 +# pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:96 ActiveRecord::Encryption::Encryptor::ENCODING_ERRORS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/encryption/encryptor.rb#97 +# pkg:gem/activerecord#lib/active_record/encryption/encryptor.rb:97 ActiveRecord::Encryption::Encryptor::THRESHOLD_TO_JUSTIFY_COMPRESSION = T.let(T.unsafe(nil), Integer) # Implements a simple envelope encryption approach where: @@ -21137,54 +19617,54 @@ ActiveRecord::Encryption::Encryptor::THRESHOLD_TO_JUSTIFY_COMPRESSION = T.let(T. # it will try all the configured master keys looking for the right one, in order to # return the right decryption key. # -# source://activerecord//lib/active_record/encryption/envelope_encryption_key_provider.rb#17 +# pkg:gem/activerecord#lib/active_record/encryption/envelope_encryption_key_provider.rb:17 class ActiveRecord::Encryption::EnvelopeEncryptionKeyProvider - # source://activerecord//lib/active_record/encryption/envelope_encryption_key_provider.rb#31 + # pkg:gem/activerecord#lib/active_record/encryption/envelope_encryption_key_provider.rb:31 def active_primary_key; end - # source://activerecord//lib/active_record/encryption/envelope_encryption_key_provider.rb#26 + # pkg:gem/activerecord#lib/active_record/encryption/envelope_encryption_key_provider.rb:26 def decryption_keys(encrypted_message); end - # source://activerecord//lib/active_record/encryption/envelope_encryption_key_provider.rb#18 + # pkg:gem/activerecord#lib/active_record/encryption/envelope_encryption_key_provider.rb:18 def encryption_key; end private - # source://activerecord//lib/active_record/encryption/envelope_encryption_key_provider.rb#40 + # pkg:gem/activerecord#lib/active_record/encryption/envelope_encryption_key_provider.rb:40 def decrypt_data_key(encrypted_message); end - # source://activerecord//lib/active_record/encryption/envelope_encryption_key_provider.rb#36 + # pkg:gem/activerecord#lib/active_record/encryption/envelope_encryption_key_provider.rb:36 def encrypt_data_key(random_secret); end - # source://activerecord//lib/active_record/encryption/envelope_encryption_key_provider.rb#50 + # pkg:gem/activerecord#lib/active_record/encryption/envelope_encryption_key_provider.rb:50 def generate_random_secret; end - # source://activerecord//lib/active_record/encryption/envelope_encryption_key_provider.rb#46 + # pkg:gem/activerecord#lib/active_record/encryption/envelope_encryption_key_provider.rb:46 def primary_key_provider; end end -# source://activerecord//lib/active_record/encryption/errors.rb#5 +# pkg:gem/activerecord#lib/active_record/encryption/errors.rb:5 module ActiveRecord::Encryption::Errors; end -# source://activerecord//lib/active_record/encryption/errors.rb#6 +# pkg:gem/activerecord#lib/active_record/encryption/errors.rb:6 class ActiveRecord::Encryption::Errors::Base < ::StandardError; end -# source://activerecord//lib/active_record/encryption/errors.rb#10 +# pkg:gem/activerecord#lib/active_record/encryption/errors.rb:10 class ActiveRecord::Encryption::Errors::Configuration < ::ActiveRecord::Encryption::Errors::Base; end -# source://activerecord//lib/active_record/encryption/errors.rb#8 +# pkg:gem/activerecord#lib/active_record/encryption/errors.rb:8 class ActiveRecord::Encryption::Errors::Decryption < ::ActiveRecord::Encryption::Errors::Base; end -# source://activerecord//lib/active_record/encryption/errors.rb#7 +# pkg:gem/activerecord#lib/active_record/encryption/errors.rb:7 class ActiveRecord::Encryption::Errors::Encoding < ::ActiveRecord::Encryption::Errors::Base; end -# source://activerecord//lib/active_record/encryption/errors.rb#12 +# pkg:gem/activerecord#lib/active_record/encryption/errors.rb:12 class ActiveRecord::Encryption::Errors::EncryptedContentIntegrity < ::ActiveRecord::Encryption::Errors::Base; end -# source://activerecord//lib/active_record/encryption/errors.rb#9 +# pkg:gem/activerecord#lib/active_record/encryption/errors.rb:9 class ActiveRecord::Encryption::Errors::Encryption < ::ActiveRecord::Encryption::Errors::Base; end -# source://activerecord//lib/active_record/encryption/errors.rb#11 +# pkg:gem/activerecord#lib/active_record/encryption/errors.rb:11 class ActiveRecord::Encryption::Errors::ForbiddenClass < ::ActiveRecord::Encryption::Errors::Base; end # Automatically expand encrypted arguments to support querying both encrypted and unencrypted data @@ -21206,47 +19686,41 @@ class ActiveRecord::Encryption::Errors::ForbiddenClass < ::ActiveRecord::Encrypt # # This module is included if `config.active_record.encryption.extend_queries` is `true`. # -# source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#23 +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:23 module ActiveRecord::Encryption::ExtendedDeterministicQueries class << self - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#24 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:24 def install_support; end end end -# source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#134 +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:134 class ActiveRecord::Encryption::ExtendedDeterministicQueries::AdditionalValue - # @return [AdditionalValue] a new instance of AdditionalValue - # - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#137 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:137 def initialize(value, type); end - # Returns the value of attribute type. - # - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#135 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:135 def type; end - # Returns the value of attribute value. - # - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#135 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:135 def value; end private - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#143 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:143 def process(value); end end -# source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#124 +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:124 module ActiveRecord::Encryption::ExtendedDeterministicQueries::CoreQueries extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Encryption::ExtendedDeterministicQueries::CoreQueries::ClassMethods end -# source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#0 +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:127 module ActiveRecord::Encryption::ExtendedDeterministicQueries::CoreQueries::ClassMethods - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#128 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:128 def find_by(*args); end end @@ -21254,53 +19728,55 @@ end # +activerecord/test/cases/encryption/performance/extended_deterministic_queries_performance_test.rb+ # to make sure performance overhead is acceptable. # -# source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#41 +# @TODO We will extend this to support previous "encryption context" versions in future iterations +# @TODO Experimental. Support for every kind of query is pending +# @TODO It should not patch anything if not needed (no previous schemes or no support for previous encryption schemes) +# +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:41 module ActiveRecord::Encryption::ExtendedDeterministicQueries::EncryptedQuery class << self - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#43 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:43 def process_arguments(owner, args, check_for_additional_values); end private - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#89 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:89 def additional_values_for(value, type); end - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#71 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:71 def process_encrypted_query_argument(value, check_for_additional_values, type); end end end -# source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#148 +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:148 module ActiveRecord::Encryption::ExtendedDeterministicQueries::ExtendedEncryptableType - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#149 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:149 def serialize(data); end end -# source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#97 +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:97 module ActiveRecord::Encryption::ExtendedDeterministicQueries::RelationQueries - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#102 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:102 def exists?(*args); end - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#106 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:106 def scope_for_create; end - # source://activerecord//lib/active_record/encryption/extended_deterministic_queries.rb#98 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_queries.rb:98 def where(*args); end end -# source://activerecord//lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb#5 +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb:5 module ActiveRecord::Encryption::ExtendedDeterministicUniquenessValidator class << self - # source://activerecord//lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb#6 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb:6 def install_support; end end end -# source://activerecord//lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb#10 +# pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb:10 module ActiveRecord::Encryption::ExtendedDeterministicUniquenessValidator::EncryptedUniquenessValidator - # source://activerecord//lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb:11 def validate_each(record, attribute, value); end end @@ -21310,39 +19786,31 @@ end # in clean (public) and can be used, for example, to include information that # references the key for a future retrieval operation. # -# source://activerecord//lib/active_record/encryption/key.rb#10 +# pkg:gem/activerecord#lib/active_record/encryption/key.rb:10 class ActiveRecord::Encryption::Key - # @return [Key] a new instance of Key - # - # source://activerecord//lib/active_record/encryption/key.rb#13 + # pkg:gem/activerecord#lib/active_record/encryption/key.rb:13 def initialize(secret); end - # source://activerecord//lib/active_record/encryption/key.rb#23 + # pkg:gem/activerecord#lib/active_record/encryption/key.rb:23 def id; end - # Returns the value of attribute public_tags. - # - # source://activerecord//lib/active_record/encryption/key.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption/key.rb:11 def public_tags; end - # Returns the value of attribute secret. - # - # source://activerecord//lib/active_record/encryption/key.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption/key.rb:11 def secret; end class << self - # source://activerecord//lib/active_record/encryption/key.rb#18 + # pkg:gem/activerecord#lib/active_record/encryption/key.rb:18 def derive_from(password); end end end # Utility for generating and deriving random keys. # -# source://activerecord//lib/active_record/encryption/key_generator.rb#8 +# pkg:gem/activerecord#lib/active_record/encryption/key_generator.rb:8 class ActiveRecord::Encryption::KeyGenerator - # @return [KeyGenerator] a new instance of KeyGenerator - # - # source://activerecord//lib/active_record/encryption/key_generator.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption/key_generator.rb:11 def initialize(hash_digest_class: T.unsafe(nil)); end # Derives a key from the given password. The key will have a size in bytes of +:length+ (configured +Cipher+'s length @@ -21350,7 +19818,7 @@ class ActiveRecord::Encryption::KeyGenerator # # The generated key will be salted with the value of +ActiveRecord::Encryption.key_derivation_salt+ # - # source://activerecord//lib/active_record/encryption/key_generator.rb#38 + # pkg:gem/activerecord#lib/active_record/encryption/key_generator.rb:38 def derive_key_from(password, length: T.unsafe(nil)); end # Returns a random key in hexadecimal format. The key will have a size in bytes of +:length+ (configured +Cipher+'s @@ -21364,25 +19832,23 @@ class ActiveRecord::Encryption::KeyGenerator # # [ value ].pack("H*") # - # source://activerecord//lib/active_record/encryption/key_generator.rb#30 + # pkg:gem/activerecord#lib/active_record/encryption/key_generator.rb:30 def generate_random_hex_key(length: T.unsafe(nil)); end # Returns a random key. The key will have a size in bytes of +:length+ (configured +Cipher+'s length by default) # - # source://activerecord//lib/active_record/encryption/key_generator.rb#16 + # pkg:gem/activerecord#lib/active_record/encryption/key_generator.rb:16 def generate_random_key(length: T.unsafe(nil)); end - # Returns the value of attribute hash_digest_class. - # - # source://activerecord//lib/active_record/encryption/key_generator.rb#9 + # pkg:gem/activerecord#lib/active_record/encryption/key_generator.rb:9 def hash_digest_class; end private - # source://activerecord//lib/active_record/encryption/key_generator.rb#44 + # pkg:gem/activerecord#lib/active_record/encryption/key_generator.rb:44 def key_derivation_salt; end - # source://activerecord//lib/active_record/encryption/key_generator.rb#48 + # pkg:gem/activerecord#lib/active_record/encryption/key_generator.rb:48 def key_length; end end @@ -21392,11 +19858,9 @@ end # * A list of potential decryption keys. Serving multiple decryption keys supports rotation-schemes # where new keys are added but old keys need to continue working # -# source://activerecord//lib/active_record/encryption/key_provider.rb#10 +# pkg:gem/activerecord#lib/active_record/encryption/key_provider.rb:10 class ActiveRecord::Encryption::KeyProvider - # @return [KeyProvider] a new instance of KeyProvider - # - # source://activerecord//lib/active_record/encryption/key_provider.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption/key_provider.rb:11 def initialize(keys); end # Returns the list of decryption keys @@ -21404,7 +19868,7 @@ class ActiveRecord::Encryption::KeyProvider # When the message holds a reference to its encryption key, it will return an array # with that key. If not, it will return the list of keys. # - # source://activerecord//lib/active_record/encryption/key_provider.rb#32 + # pkg:gem/activerecord#lib/active_record/encryption/key_provider.rb:32 def decryption_keys(encrypted_message); end # Returns the last key in the list as the active key to perform encryptions @@ -21413,12 +19877,12 @@ class ActiveRecord::Encryption::KeyProvider # a public tag referencing the key itself. That key will be stored in the public # headers of the encrypted message # - # source://activerecord//lib/active_record/encryption/key_provider.rb#20 + # pkg:gem/activerecord#lib/active_record/encryption/key_provider.rb:20 def encryption_key; end private - # source://activerecord//lib/active_record/encryption/key_provider.rb#41 + # pkg:gem/activerecord#lib/active_record/encryption/key_provider.rb:41 def keys_grouped_by_id; end end @@ -21429,43 +19893,29 @@ end # # See Encryptor#encrypt # -# source://activerecord//lib/active_record/encryption/message.rb#11 +# pkg:gem/activerecord#lib/active_record/encryption/message.rb:11 class ActiveRecord::Encryption::Message - # @return [Message] a new instance of Message - # - # source://activerecord//lib/active_record/encryption/message.rb#14 + # pkg:gem/activerecord#lib/active_record/encryption/message.rb:14 def initialize(payload: T.unsafe(nil), headers: T.unsafe(nil)); end - # source://activerecord//lib/active_record/encryption/message.rb#21 + # pkg:gem/activerecord#lib/active_record/encryption/message.rb:21 def ==(other_message); end - # Returns the value of attribute headers. - # - # source://activerecord//lib/active_record/encryption/message.rb#12 + # pkg:gem/activerecord#lib/active_record/encryption/message.rb:12 def headers; end - # Sets the attribute headers - # - # @param value the value to set the attribute headers to. - # - # source://activerecord//lib/active_record/encryption/message.rb#12 + # pkg:gem/activerecord#lib/active_record/encryption/message.rb:12 def headers=(_arg0); end - # Returns the value of attribute payload. - # - # source://activerecord//lib/active_record/encryption/message.rb#12 + # pkg:gem/activerecord#lib/active_record/encryption/message.rb:12 def payload; end - # Sets the attribute payload - # - # @param value the value to set the attribute payload to. - # - # source://activerecord//lib/active_record/encryption/message.rb#12 + # pkg:gem/activerecord#lib/active_record/encryption/message.rb:12 def payload=(_arg0); end private - # source://activerecord//lib/active_record/encryption/message.rb#26 + # pkg:gem/activerecord#lib/active_record/encryption/message.rb:26 def validate_payload_type(payload); end end @@ -21486,64 +19936,56 @@ end # to prevent JSON parsing errors and encoding issues when # storing the resulting serialized data. # -# source://activerecord//lib/active_record/encryption/message_serializer.rb#23 +# pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:23 class ActiveRecord::Encryption::MessageSerializer - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/message_serializer.rb#36 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:36 def binary?; end - # @raise [ActiveRecord::Encryption::Errors::ForbiddenClass] - # - # source://activerecord//lib/active_record/encryption/message_serializer.rb#31 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:31 def dump(message); end - # source://activerecord//lib/active_record/encryption/message_serializer.rb#24 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:24 def load(serialized_content); end private - # source://activerecord//lib/active_record/encryption/message_serializer.rb#85 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:85 def decode_if_needed(value); end - # source://activerecord//lib/active_record/encryption/message_serializer.rb#77 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:77 def encode_if_needed(value); end - # source://activerecord//lib/active_record/encryption/message_serializer.rb#71 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:71 def headers_to_json(headers); end - # source://activerecord//lib/active_record/encryption/message_serializer.rb#64 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:64 def message_to_json(message); end - # source://activerecord//lib/active_record/encryption/message_serializer.rb#41 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:41 def parse_message(data, level); end - # source://activerecord//lib/active_record/encryption/message_serializer.rb#56 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:56 def parse_properties(headers, level); end - # source://activerecord//lib/active_record/encryption/message_serializer.rb#46 + # pkg:gem/activerecord#lib/active_record/encryption/message_serializer.rb:46 def validate_message_data_format(data, level); end end # An encryptor that won't decrypt or encrypt. It will just return the passed # values # -# source://activerecord//lib/active_record/encryption/null_encryptor.rb#7 +# pkg:gem/activerecord#lib/active_record/encryption/null_encryptor.rb:7 class ActiveRecord::Encryption::NullEncryptor - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/null_encryptor.rb#20 + # pkg:gem/activerecord#lib/active_record/encryption/null_encryptor.rb:20 def binary?; end - # source://activerecord//lib/active_record/encryption/null_encryptor.rb#12 + # pkg:gem/activerecord#lib/active_record/encryption/null_encryptor.rb:12 def decrypt(encrypted_text, key_provider: T.unsafe(nil), cipher_options: T.unsafe(nil)); end - # source://activerecord//lib/active_record/encryption/null_encryptor.rb#8 + # pkg:gem/activerecord#lib/active_record/encryption/null_encryptor.rb:8 def encrypt(clean_text, key_provider: T.unsafe(nil), cipher_options: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/null_encryptor.rb#16 + # pkg:gem/activerecord#lib/active_record/encryption/null_encryptor.rb:16 def encrypted?(text); end end @@ -21559,99 +20001,93 @@ end # # See +Properties::DEFAULT_PROPERTIES+, Key, Message # -# source://activerecord//lib/active_record/encryption/properties.rb#16 +# pkg:gem/activerecord#lib/active_record/encryption/properties.rb:16 class ActiveRecord::Encryption::Properties - # @return [Properties] a new instance of Properties - # - # source://activerecord//lib/active_record/encryption/properties.rb#42 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:42 def initialize(initial_properties = T.unsafe(nil)); end - # source://activerecord//lib/active_record/encryption/properties.rb#20 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:20 def ==(arg); end - # source://activerecord//lib/active_record/encryption/properties.rb#20 - def [](*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:20 + def [](*, **, &); end # Set a value for a given key # # It will raise an +EncryptedContentIntegrity+ if the value exists # - # @raise [Errors::EncryptedContentIntegrity] - # - # source://activerecord//lib/active_record/encryption/properties.rb#50 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:50 def []=(key, value); end - # source://activerecord//lib/active_record/encryption/properties.rb#62 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:62 def add(other_properties); end - # source://activerecord//lib/active_record/encryption/properties.rb#33 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:33 def auth_tag; end - # source://activerecord//lib/active_record/encryption/properties.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:37 def auth_tag=(value); end - # source://activerecord//lib/active_record/encryption/properties.rb#33 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:33 def compressed; end - # source://activerecord//lib/active_record/encryption/properties.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:37 def compressed=(value); end - # source://activerecord//lib/active_record/encryption/properties.rb#20 - def each(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:20 + def each(*, **, &); end - # source://activerecord//lib/active_record/encryption/properties.rb#33 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:33 def encoding; end - # source://activerecord//lib/active_record/encryption/properties.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:37 def encoding=(value); end - # source://activerecord//lib/active_record/encryption/properties.rb#33 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:33 def encrypted_data_key; end - # source://activerecord//lib/active_record/encryption/properties.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:37 def encrypted_data_key=(value); end - # source://activerecord//lib/active_record/encryption/properties.rb#33 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:33 def encrypted_data_key_id; end - # source://activerecord//lib/active_record/encryption/properties.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:37 def encrypted_data_key_id=(value); end - # source://activerecord//lib/active_record/encryption/properties.rb#33 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:33 def iv; end - # source://activerecord//lib/active_record/encryption/properties.rb#37 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:37 def iv=(value); end - # source://activerecord//lib/active_record/encryption/properties.rb#20 - def key?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:20 + def key?(*, **, &); end - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#169 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:19 + def method_missing(method, *, **, &); end - # source://activerecord//lib/active_record/encryption/properties.rb#68 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:68 def to_h; end - # source://activerecord//lib/active_record/encryption/properties.rb#56 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:56 def validate_value_type(value); end private - # Returns the value of attribute data. - # - # source://activerecord//lib/active_record/encryption/properties.rb#73 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:73 def data; end - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#161 + # pkg:gem/activerecord#lib/active_record/encryption/properties.rb:19 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/encryption/properties.rb#17 +# pkg:gem/activerecord#lib/active_record/encryption/properties.rb:17 ActiveRecord::Encryption::Properties::ALLOWED_VALUE_CLASSES = T.let(T.unsafe(nil), Array) # For each entry it generates an accessor exposing the full name # -# source://activerecord//lib/active_record/encryption/properties.rb#23 +# pkg:gem/activerecord#lib/active_record/encryption/properties.rb:23 ActiveRecord::Encryption::Properties::DEFAULT_PROPERTIES = T.let(T.unsafe(nil), Hash) # A +NullEncryptor+ that will raise an error when trying to encrypt data @@ -21660,24 +20096,18 @@ ActiveRecord::Encryption::Properties::DEFAULT_PROPERTIES = T.let(T.unsafe(nil), # and you want to make sure you won't overwrite any encryptable attribute with # the wrong content. # -# source://activerecord//lib/active_record/encryption/read_only_null_encryptor.rb#10 +# pkg:gem/activerecord#lib/active_record/encryption/read_only_null_encryptor.rb:10 class ActiveRecord::Encryption::ReadOnlyNullEncryptor - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/read_only_null_encryptor.rb#23 + # pkg:gem/activerecord#lib/active_record/encryption/read_only_null_encryptor.rb:23 def binary?; end - # source://activerecord//lib/active_record/encryption/read_only_null_encryptor.rb#15 + # pkg:gem/activerecord#lib/active_record/encryption/read_only_null_encryptor.rb:15 def decrypt(encrypted_text, key_provider: T.unsafe(nil), cipher_options: T.unsafe(nil)); end - # @raise [Errors::Encryption] - # - # source://activerecord//lib/active_record/encryption/read_only_null_encryptor.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption/read_only_null_encryptor.rb:11 def encrypt(clean_text, key_provider: T.unsafe(nil), cipher_options: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/read_only_null_encryptor.rb#19 + # pkg:gem/activerecord#lib/active_record/encryption/read_only_null_encryptor.rb:19 def encrypted?(text); end end @@ -21687,81 +20117,59 @@ end # # See EncryptedAttributeType, Context # -# source://activerecord//lib/active_record/encryption/scheme.rb#10 +# pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:10 class ActiveRecord::Encryption::Scheme - # @return [Scheme] a new instance of Scheme - # - # source://activerecord//lib/active_record/encryption/scheme.rb#13 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:13 def initialize(key_provider: T.unsafe(nil), key: T.unsafe(nil), deterministic: T.unsafe(nil), support_unencrypted_data: T.unsafe(nil), downcase: T.unsafe(nil), ignore_case: T.unsafe(nil), previous_schemes: T.unsafe(nil), compress: T.unsafe(nil), compressor: T.unsafe(nil), **context_properties); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/scheme.rb#78 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:78 def compatible_with?(other_scheme); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/scheme.rb#44 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:44 def deterministic?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/scheme.rb#40 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:40 def downcase?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/scheme.rb#52 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:52 def fixed?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/scheme.rb#36 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:36 def ignore_case?; end - # source://activerecord//lib/active_record/encryption/scheme.rb#57 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:57 def key_provider; end - # source://activerecord//lib/active_record/encryption/scheme.rb#61 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:61 def merge(other_scheme); end - # Returns the value of attribute previous_schemes. - # - # source://activerecord//lib/active_record/encryption/scheme.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:11 def previous_schemes; end - # Sets the attribute previous_schemes - # - # @param value the value to set the attribute previous_schemes to. - # - # source://activerecord//lib/active_record/encryption/scheme.rb#11 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:11 def previous_schemes=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/encryption/scheme.rb#48 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:48 def support_unencrypted_data?; end - # source://activerecord//lib/active_record/encryption/scheme.rb#65 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:65 def to_h; end - # source://activerecord//lib/active_record/encryption/scheme.rb#70 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:70 def with_context(&block); end private - # source://activerecord//lib/active_record/encryption/scheme.rb#102 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:102 def default_key_provider; end - # source://activerecord//lib/active_record/encryption/scheme.rb#96 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:96 def deterministic_key_provider; end - # source://activerecord//lib/active_record/encryption/scheme.rb#90 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:90 def key_provider_from_key; end - # @raise [Errors::Configuration] - # - # source://activerecord//lib/active_record/encryption/scheme.rb#83 + # pkg:gem/activerecord#lib/active_record/encryption/scheme.rb:83 def validate_config!; end end @@ -21925,124 +20333,104 @@ end # conversation.status = :active # conversation.valid? # => true # -# source://activerecord//lib/active_record/enum.rb#166 +# pkg:gem/activerecord#lib/active_record/enum.rb:166 module ActiveRecord::Enum - # source://activerecord//lib/active_record/enum.rb#217 + # pkg:gem/activerecord#lib/active_record/enum.rb:217 def enum(name, values = T.unsafe(nil), **options); end private - # source://activerecord//lib/active_record/enum.rb#223 + # pkg:gem/activerecord#lib/active_record/enum.rb:223 def _enum(name, values, prefix: T.unsafe(nil), suffix: T.unsafe(nil), scopes: T.unsafe(nil), instance_methods: T.unsafe(nil), validate: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/enum.rb#327 + # pkg:gem/activerecord#lib/active_record/enum.rb:327 def _enum_methods_module; end - # source://activerecord//lib/active_record/enum.rb#335 + # pkg:gem/activerecord#lib/active_record/enum.rb:335 def assert_valid_enum_definition_values(values); end - # source://activerecord//lib/active_record/enum.rb#362 + # pkg:gem/activerecord#lib/active_record/enum.rb:362 def assert_valid_enum_options(options); end - # source://activerecord//lib/active_record/enum.rb#375 + # pkg:gem/activerecord#lib/active_record/enum.rb:375 def detect_enum_conflict!(enum_name, method_name, klass_method = T.unsafe(nil)); end - # source://activerecord//lib/active_record/enum.rb#399 + # pkg:gem/activerecord#lib/active_record/enum.rb:399 def detect_negative_enum_conditions!(method_names); end - # source://activerecord//lib/active_record/enum.rb#290 + # pkg:gem/activerecord#lib/active_record/enum.rb:290 def inherited(base); end - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/enum.rb#389 + # pkg:gem/activerecord#lib/active_record/enum.rb:389 def raise_conflict_error(enum_name, method_name, type: T.unsafe(nil), source: T.unsafe(nil)); end class << self - # source://activerecord//lib/active_record/enum.rb#167 + # pkg:gem/activerecord#lib/active_record/enum.rb:167 def extended(base); end end end -# source://activerecord//lib/active_record/enum.rb#369 +# pkg:gem/activerecord#lib/active_record/enum.rb:369 ActiveRecord::Enum::ENUM_CONFLICT_MESSAGE = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/enum.rb#295 +# pkg:gem/activerecord#lib/active_record/enum.rb:295 class ActiveRecord::Enum::EnumMethods < ::Module - # @return [EnumMethods] a new instance of EnumMethods - # - # source://activerecord//lib/active_record/enum.rb#296 + # pkg:gem/activerecord#lib/active_record/enum.rb:296 def initialize(klass); end private - # source://activerecord//lib/active_record/enum.rb#303 + # pkg:gem/activerecord#lib/active_record/enum.rb:303 def define_enum_methods(name, value_method_name, value, scopes, instance_methods); end - # Returns the value of attribute klass. - # - # source://activerecord//lib/active_record/enum.rb#301 + # pkg:gem/activerecord#lib/active_record/enum.rb:301 def klass; end end -# source://activerecord//lib/active_record/enum.rb#171 +# pkg:gem/activerecord#lib/active_record/enum.rb:171 class ActiveRecord::Enum::EnumType < ::ActiveModel::Type::Value - # @return [EnumType] a new instance of EnumType - # - # source://activerecord//lib/active_record/enum.rb#174 + # pkg:gem/activerecord#lib/active_record/enum.rb:174 def initialize(name, mapping, subtype, raise_on_invalid_values: T.unsafe(nil)); end - # source://activerecord//lib/active_record/enum.rb#203 + # pkg:gem/activerecord#lib/active_record/enum.rb:203 def assert_valid_value(value); end - # source://activerecord//lib/active_record/enum.rb#181 + # pkg:gem/activerecord#lib/active_record/enum.rb:181 def cast(value); end - # source://activerecord//lib/active_record/enum.rb#191 + # pkg:gem/activerecord#lib/active_record/enum.rb:191 def deserialize(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/enum.rb#199 + # pkg:gem/activerecord#lib/active_record/enum.rb:199 def serializable?(value, &block); end - # source://activerecord//lib/active_record/enum.rb#195 + # pkg:gem/activerecord#lib/active_record/enum.rb:195 def serialize(value); end - # Returns the value of attribute subtype. - # - # source://activerecord//lib/active_record/enum.rb#211 + # pkg:gem/activerecord#lib/active_record/enum.rb:211 def subtype; end - # source://activerecord//lib/active_record/enum.rb#172 - def type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/enum.rb:172 + def type(*, **, &); end private - # Returns the value of attribute mapping. - # - # source://activerecord//lib/active_record/enum.rb#214 + # pkg:gem/activerecord#lib/active_record/enum.rb:214 def mapping; end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/enum.rb#214 + # pkg:gem/activerecord#lib/active_record/enum.rb:214 def name; end end -# source://activerecord//lib/active_record/migration.rb#215 +# pkg:gem/activerecord#lib/active_record/migration.rb:215 class ActiveRecord::EnvironmentMismatchError < ::ActiveRecord::ActiveRecordError - # @return [EnvironmentMismatchError] a new instance of EnvironmentMismatchError - # - # source://activerecord//lib/active_record/migration.rb#216 + # pkg:gem/activerecord#lib/active_record/migration.rb:216 def initialize(current: T.unsafe(nil), stored: T.unsafe(nil)); end end -# source://activerecord//lib/active_record/migration.rb#229 +# pkg:gem/activerecord#lib/active_record/migration.rb:229 class ActiveRecord::EnvironmentStorageError < ::ActiveRecord::ActiveRecordError - # @return [EnvironmentStorageError] a new instance of EnvironmentStorageError - # - # source://activerecord//lib/active_record/migration.rb#230 + # pkg:gem/activerecord#lib/active_record/migration.rb:230 def initialize; end end @@ -22051,29 +20439,29 @@ end # {ActiveRecord::Base.connection_pool.disconnect!}[rdoc-ref:ConnectionAdapters::ConnectionPool#disconnect!] # or {ActiveRecord::Base.connection_handler.clear_reloadable_connections!}[rdoc-ref:ConnectionAdapters::ConnectionHandler#clear_reloadable_connections!]. # -# source://activerecord//lib/active_record/errors.rb#128 +# pkg:gem/activerecord#lib/active_record/errors.rb:128 class ActiveRecord::ExclusiveConnectionTimeoutError < ::ActiveRecord::ConnectionTimeoutError; end -# source://activerecord//lib/active_record/explain.rb#6 +# pkg:gem/activerecord#lib/active_record/explain.rb:6 module ActiveRecord::Explain # Executes the block with the collect flag enabled. Queries are collected # asynchronously by the subscriber and returned. # - # source://activerecord//lib/active_record/explain.rb#9 + # pkg:gem/activerecord#lib/active_record/explain.rb:9 def collecting_queries_for_explain; end # Makes the adapter execute EXPLAIN for the tuples of queries and bindings. # Returns a formatted string ready to be logged. # - # source://activerecord//lib/active_record/explain.rb#19 + # pkg:gem/activerecord#lib/active_record/explain.rb:19 def exec_explain(queries, options = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/explain.rb#55 + # pkg:gem/activerecord#lib/active_record/explain.rb:55 def build_explain_clause(connection, options = T.unsafe(nil)); end - # source://activerecord//lib/active_record/explain.rb#40 + # pkg:gem/activerecord#lib/active_record/explain.rb:40 def render_bind(connection, attr); end end @@ -22083,76 +20471,62 @@ end # # returns the collected queries local to the current thread. # -# source://activerecord//lib/active_record/explain_registry.rb#11 +# pkg:gem/activerecord#lib/active_record/explain_registry.rb:11 class ActiveRecord::ExplainRegistry - # @return [ExplainRegistry] a new instance of ExplainRegistry - # - # source://activerecord//lib/active_record/explain_registry.rb#24 + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:24 def initialize; end - # Returns the value of attribute collect. - # - # source://activerecord//lib/active_record/explain_registry.rb#21 + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:21 def collect; end - # Sets the attribute collect - # - # @param value the value to set the attribute collect to. - # - # source://activerecord//lib/active_record/explain_registry.rb#21 + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:21 def collect=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/explain_registry.rb#28 + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:28 def collect?; end - # Returns the value of attribute queries. - # - # source://activerecord//lib/active_record/explain_registry.rb#22 + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:22 def queries; end - # source://activerecord//lib/active_record/explain_registry.rb#32 + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:32 def reset; end class << self - # source://activerecord//lib/active_record/explain_registry.rb#13 - def collect(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:13 + def collect(*, **, &); end - # source://activerecord//lib/active_record/explain_registry.rb#13 + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:13 def collect=(arg); end - # source://activerecord//lib/active_record/explain_registry.rb#13 - def collect?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:13 + def collect?(*, **, &); end - # source://activerecord//lib/active_record/explain_registry.rb#13 - def queries(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:13 + def queries(*, **, &); end - # source://activerecord//lib/active_record/explain_registry.rb#13 - def reset(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:13 + def reset(*, **, &); end private - # source://activerecord//lib/active_record/explain_registry.rb#16 + # pkg:gem/activerecord#lib/active_record/explain_registry.rb:16 def instance; end end end -# source://activerecord//lib/active_record/explain_subscriber.rb#7 +# pkg:gem/activerecord#lib/active_record/explain_subscriber.rb:7 class ActiveRecord::ExplainSubscriber - # source://activerecord//lib/active_record/explain_subscriber.rb#12 + # pkg:gem/activerecord#lib/active_record/explain_subscriber.rb:12 def finish(name, id, payload); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/explain_subscriber.rb#25 + # pkg:gem/activerecord#lib/active_record/explain_subscriber.rb:25 def ignore_payload?(payload); end - # source://activerecord//lib/active_record/explain_subscriber.rb#8 + # pkg:gem/activerecord#lib/active_record/explain_subscriber.rb:8 def start(name, id, payload); end end -# source://activerecord//lib/active_record/explain_subscriber.rb#24 +# pkg:gem/activerecord#lib/active_record/explain_subscriber.rb:24 ActiveRecord::ExplainSubscriber::EXPLAINED_SQLS = T.let(T.unsafe(nil), Regexp) # SCHEMA queries cannot be EXPLAINed, also we do not want to run EXPLAIN on @@ -22161,10 +20535,10 @@ ActiveRecord::ExplainSubscriber::EXPLAINED_SQLS = T.let(T.unsafe(nil), Regexp) # On the other hand, we want to monitor the performance of our real database # queries, not the performance of the access to the query cache. # -# source://activerecord//lib/active_record/explain_subscriber.rb#23 +# pkg:gem/activerecord#lib/active_record/explain_subscriber.rb:23 ActiveRecord::ExplainSubscriber::IGNORED_PAYLOADS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation/finder_methods.rb#6 +# pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:6 module ActiveRecord::FinderMethods # Returns true if a record exists in the table that matches the +id+ or # conditions given, or false otherwise. The argument can take six forms: @@ -22195,9 +20569,7 @@ module ActiveRecord::FinderMethods # Person.exists? # Person.where(name: 'Spartacus', rating: 4).exists? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/finder_methods.rb#357 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:357 def exists?(conditions = T.unsafe(nil)); end # Find the fifth record. @@ -22207,13 +20579,13 @@ module ActiveRecord::FinderMethods # Person.offset(3).fifth # returns the fifth object from OFFSET 3 (which is OFFSET 7) # Person.where(["user_name = :u", { u: user_name }]).fifth # - # source://activerecord//lib/active_record/relation/finder_methods.rb#271 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:271 def fifth; end # Same as #fifth but raises ActiveRecord::RecordNotFound if no record # is found. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#277 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:277 def fifth!; end # Find by id - This can either be a specific id (ID), a list of ids (ID, ID, ID), or an array of ids ([ID, ID, ID]). @@ -22306,7 +20678,7 @@ module ActiveRecord::FinderMethods # Person.find([]) # returns an empty array if the argument is an empty array. # Person.find # raises ActiveRecord::RecordNotFound exception if the argument is not provided. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#98 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:98 def find(*args); end # Finds the first record matching the specified conditions. There @@ -22318,13 +20690,13 @@ module ActiveRecord::FinderMethods # Post.find_by name: 'Spartacus', rating: 4 # Post.find_by "published_at < ?", 2.weeks.ago # - # source://activerecord//lib/active_record/relation/finder_methods.rb#111 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:111 def find_by(arg, *args); end # Like #find_by, except that if no record is found, raises # an ActiveRecord::RecordNotFound error. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#117 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:117 def find_by!(arg, *args); end # Finds the sole matching record. Raises ActiveRecord::RecordNotFound if no @@ -22333,7 +20705,7 @@ module ActiveRecord::FinderMethods # # Product.find_sole_by(["price = %?", price]) # - # source://activerecord//lib/active_record/relation/finder_methods.rb#160 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:160 def find_sole_by(arg, *args); end # Find the first record (or first N records if a parameter is supplied). @@ -22345,13 +20717,13 @@ module ActiveRecord::FinderMethods # Person.order("created_on DESC").offset(5).first # Person.first(3) # returns the first three objects fetched by SELECT * FROM people ORDER BY people.id LIMIT 3 # - # source://activerecord//lib/active_record/relation/finder_methods.rb#173 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:173 def first(limit = T.unsafe(nil)); end # Same as #first but raises ActiveRecord::RecordNotFound if no record # is found. Note that #first! accepts no arguments. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#183 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:183 def first!; end # Find the forty-second record. Also known as accessing "the reddit". @@ -22361,13 +20733,13 @@ module ActiveRecord::FinderMethods # Person.offset(3).forty_two # returns the forty-second object from OFFSET 3 (which is OFFSET 44) # Person.where(["user_name = :u", { u: user_name }]).forty_two # - # source://activerecord//lib/active_record/relation/finder_methods.rb#287 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:287 def forty_two; end # Same as #forty_two but raises ActiveRecord::RecordNotFound if no record # is found. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#293 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:293 def forty_two!; end # Find the fourth record. @@ -22377,13 +20749,13 @@ module ActiveRecord::FinderMethods # Person.offset(3).fourth # returns the fourth object from OFFSET 3 (which is OFFSET 6) # Person.where(["user_name = :u", { u: user_name }]).fourth # - # source://activerecord//lib/active_record/relation/finder_methods.rb#255 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:255 def fourth; end # Same as #fourth but raises ActiveRecord::RecordNotFound if no record # is found. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#261 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:261 def fourth!; end # Returns true if the relation contains the given record or false otherwise. @@ -22392,9 +20764,7 @@ module ActiveRecord::FinderMethods # compared to the records in memory. If the relation is unloaded, an # efficient existence query is performed, as in #exists?. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/finder_methods.rb#389 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:389 def include?(record); end # Find the last record (or last N records if a parameter is supplied). @@ -22413,24 +20783,16 @@ module ActiveRecord::FinderMethods # # [#, #, #] # - # source://activerecord//lib/active_record/relation/finder_methods.rb#202 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:202 def last(limit = T.unsafe(nil)); end # Same as #last but raises ActiveRecord::RecordNotFound if no record # is found. Note that #last! accepts no arguments. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#213 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:213 def last!; end - # Returns true if the relation contains the given record or false otherwise. - # - # No query is performed if the relation is loaded; the given record is - # compared to the records in memory. If the relation is unloaded, an - # efficient existence query is performed, as in #exists?. - # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/finder_methods.rb#389 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:407 def member?(record); end # This method is called whenever no records are found with either a single @@ -22442,7 +20804,7 @@ module ActiveRecord::FinderMethods # the expected number of results should be provided in the +expected_size+ # argument. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#417 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:417 def raise_record_not_found_exception!(ids = T.unsafe(nil), result_size = T.unsafe(nil), expected_size = T.unsafe(nil), key = T.unsafe(nil), not_found_ids = T.unsafe(nil)); end # Find the second record. @@ -22452,13 +20814,13 @@ module ActiveRecord::FinderMethods # Person.offset(3).second # returns the second object from OFFSET 3 (which is OFFSET 4) # Person.where(["user_name = :u", { u: user_name }]).second # - # source://activerecord//lib/active_record/relation/finder_methods.rb#223 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:223 def second; end # Same as #second but raises ActiveRecord::RecordNotFound if no record # is found. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#229 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:229 def second!; end # Find the second-to-last record. @@ -22468,13 +20830,13 @@ module ActiveRecord::FinderMethods # Person.offset(3).second_to_last # returns the second-to-last object from OFFSET 3 # Person.where(["user_name = :u", { u: user_name }]).second_to_last # - # source://activerecord//lib/active_record/relation/finder_methods.rb#319 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:319 def second_to_last; end # Same as #second_to_last but raises ActiveRecord::RecordNotFound if no record # is found. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#325 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:325 def second_to_last!; end # Finds the sole matching record. Raises ActiveRecord::RecordNotFound if no @@ -22483,7 +20845,7 @@ module ActiveRecord::FinderMethods # # Product.where(["price = %?", price]).sole # - # source://activerecord//lib/active_record/relation/finder_methods.rb#143 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:143 def sole; end # Gives a record (or N records if a parameter is supplied) without any implied @@ -22494,13 +20856,13 @@ module ActiveRecord::FinderMethods # Person.take(5) # returns 5 objects fetched by SELECT * FROM people LIMIT 5 # Person.where(["name LIKE '%?'", name]).take # - # source://activerecord//lib/active_record/relation/finder_methods.rb#128 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:128 def take(limit = T.unsafe(nil)); end # Same as #take but raises ActiveRecord::RecordNotFound if no record # is found. Note that #take! accepts no arguments. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#134 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:134 def take!; end # Find the third record. @@ -22510,13 +20872,13 @@ module ActiveRecord::FinderMethods # Person.offset(3).third # returns the third object from OFFSET 3 (which is OFFSET 5) # Person.where(["user_name = :u", { u: user_name }]).third # - # source://activerecord//lib/active_record/relation/finder_methods.rb#239 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:239 def third; end # Same as #third but raises ActiveRecord::RecordNotFound if no record # is found. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#245 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:245 def third!; end # Find the third-to-last record. @@ -22526,334 +20888,280 @@ module ActiveRecord::FinderMethods # Person.offset(3).third_to_last # returns the third-to-last object from OFFSET 3 # Person.where(["user_name = :u", { u: user_name }]).third_to_last # - # source://activerecord//lib/active_record/relation/finder_methods.rb#303 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:303 def third_to_last; end # Same as #third_to_last but raises ActiveRecord::RecordNotFound if no record # is found. # - # source://activerecord//lib/active_record/relation/finder_methods.rb#309 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:309 def third_to_last!; end private - # source://activerecord//lib/active_record/relation/finder_methods.rb#649 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:649 def _order_columns; end - # source://activerecord//lib/active_record/relation/finder_methods.rb#458 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:458 def apply_join_dependency(eager_loading: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#439 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:439 def construct_relation_for_exists(conditions); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#637 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:637 def find_last(limit); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#599 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:599 def find_nth(index); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#623 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:623 def find_nth_from_last(index); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#604 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:604 def find_nth_with_limit(index, limit); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#521 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:521 def find_one(id); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#542 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:542 def find_some(ids); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#568 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:568 def find_some_ordered(ids); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#583 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:583 def find_take; end - # source://activerecord//lib/active_record/relation/finder_methods.rb#591 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:591 def find_take_with_limit(limit); end - # @raise [UnknownPrimaryKey] - # - # source://activerecord//lib/active_record/relation/finder_methods.rb#492 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:492 def find_with_ids(*ids); end - # source://activerecord//lib/active_record/relation/finder_methods.rb#641 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:641 def ordered_relation; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/finder_methods.rb#488 + # pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:488 def using_limitable_reflections?(reflections); end end -# source://activerecord//lib/active_record/relation/finder_methods.rb#7 +# pkg:gem/activerecord#lib/active_record/relation/finder_methods.rb:7 ActiveRecord::FinderMethods::ONE_AS_ONE = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/fixtures.rb#806 +# pkg:gem/activerecord#lib/active_record/fixtures.rb:806 class ActiveRecord::Fixture include ::Enumerable - # @return [Fixture] a new instance of Fixture - # - # source://activerecord//lib/active_record/fixtures.rb#817 + # pkg:gem/activerecord#lib/active_record/fixtures.rb:817 def initialize(fixture, model_class); end - # source://activerecord//lib/active_record/fixtures.rb#830 + # pkg:gem/activerecord#lib/active_record/fixtures.rb:830 def [](key); end - # source://activerecord//lib/active_record/fixtures.rb#822 + # pkg:gem/activerecord#lib/active_record/fixtures.rb:822 def class_name; end - # source://activerecord//lib/active_record/fixtures.rb#826 + # pkg:gem/activerecord#lib/active_record/fixtures.rb:826 def each(&block); end - # @raise [FixtureClassNotFound] - # - # source://activerecord//lib/active_record/fixtures.rb#836 + # pkg:gem/activerecord#lib/active_record/fixtures.rb:836 def find; end - # Returns the value of attribute fixture. - # - # source://activerecord//lib/active_record/fixtures.rb#815 + # pkg:gem/activerecord#lib/active_record/fixtures.rb:815 def fixture; end - # Returns the value of attribute model_class. - # - # source://activerecord//lib/active_record/fixtures.rb#815 + # pkg:gem/activerecord#lib/active_record/fixtures.rb:815 def model_class; end - # Returns the value of attribute fixture. - # - # source://activerecord//lib/active_record/fixtures.rb#815 + # pkg:gem/activerecord#lib/active_record/fixtures.rb:834 def to_hash; end end -# source://activerecord//lib/active_record/fixtures.rb#809 +# pkg:gem/activerecord#lib/active_record/fixtures.rb:809 class ActiveRecord::Fixture::FixtureError < ::StandardError; end -# source://activerecord//lib/active_record/fixtures.rb#812 +# pkg:gem/activerecord#lib/active_record/fixtures.rb:812 class ActiveRecord::Fixture::FormatError < ::ActiveRecord::Fixture::FixtureError; end -# source://activerecord//lib/active_record/fixtures.rb#10 +# pkg:gem/activerecord#lib/active_record/fixtures.rb:10 class ActiveRecord::FixtureClassNotFound < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/future_result.rb#4 +# pkg:gem/activerecord#lib/active_record/future_result.rb:4 class ActiveRecord::FutureResult - # @return [FutureResult] a new instance of FutureResult - # - # source://activerecord//lib/active_record/future_result.rb#66 + # pkg:gem/activerecord#lib/active_record/future_result.rb:66 def initialize(pool, *args, **kwargs); end - # source://activerecord//lib/active_record/future_result.rb#94 + # pkg:gem/activerecord#lib/active_record/future_result.rb:94 def cancel; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/future_result.rb#141 + # pkg:gem/activerecord#lib/active_record/future_result.rb:141 def canceled?; end - # source://activerecord//lib/active_record/future_result.rb#62 - def empty?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/future_result.rb:62 + def empty?(*, **, &); end - # source://activerecord//lib/active_record/future_result.rb#90 + # pkg:gem/activerecord#lib/active_record/future_result.rb:90 def execute!(connection); end - # source://activerecord//lib/active_record/future_result.rb#100 + # pkg:gem/activerecord#lib/active_record/future_result.rb:100 def execute_or_skip; end - # Returns the value of attribute lock_wait. - # - # source://activerecord//lib/active_record/future_result.rb#64 + # pkg:gem/activerecord#lib/active_record/future_result.rb:64 def lock_wait; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/future_result.rb#137 + # pkg:gem/activerecord#lib/active_record/future_result.rb:137 def pending?; end - # source://activerecord//lib/active_record/future_result.rb#124 + # pkg:gem/activerecord#lib/active_record/future_result.rb:124 def result; end - # source://activerecord//lib/active_record/future_result.rb#85 + # pkg:gem/activerecord#lib/active_record/future_result.rb:85 def schedule!(session); end - # source://activerecord//lib/active_record/future_result.rb#81 + # pkg:gem/activerecord#lib/active_record/future_result.rb:81 def then(&block); end - # source://activerecord//lib/active_record/future_result.rb#62 - def to_a(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/future_result.rb:62 + def to_a(*, **, &); end private - # source://activerecord//lib/active_record/future_result.rb#171 + # pkg:gem/activerecord#lib/active_record/future_result.rb:171 def exec_query(connection, *args, **kwargs); end - # source://activerecord//lib/active_record/future_result.rb#146 + # pkg:gem/activerecord#lib/active_record/future_result.rb:146 def execute_or_wait; end - # source://activerecord//lib/active_record/future_result.rb#163 + # pkg:gem/activerecord#lib/active_record/future_result.rb:163 def execute_query(connection, async: T.unsafe(nil)); end class << self - # source://activerecord//lib/active_record/future_result.rb#53 + # pkg:gem/activerecord#lib/active_record/future_result.rb:53 def wrap(result); end end end -# source://activerecord//lib/active_record/future_result.rb#51 +# pkg:gem/activerecord#lib/active_record/future_result.rb:51 class ActiveRecord::FutureResult::Canceled < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/future_result.rb#5 +# pkg:gem/activerecord#lib/active_record/future_result.rb:5 class ActiveRecord::FutureResult::Complete - # @return [Complete] a new instance of Complete - # - # source://activerecord//lib/active_record/future_result.rb#9 + # pkg:gem/activerecord#lib/active_record/future_result.rb:9 def initialize(result); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/future_result.rb#17 + # pkg:gem/activerecord#lib/active_record/future_result.rb:17 def canceled?; end - # source://activerecord//lib/active_record/future_result.rb#7 - def empty?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/future_result.rb:7 + def empty?(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/future_result.rb#13 + # pkg:gem/activerecord#lib/active_record/future_result.rb:13 def pending?; end - # Returns the value of attribute result. - # - # source://activerecord//lib/active_record/future_result.rb#6 + # pkg:gem/activerecord#lib/active_record/future_result.rb:6 def result; end - # source://activerecord//lib/active_record/future_result.rb#21 + # pkg:gem/activerecord#lib/active_record/future_result.rb:21 def then(&block); end - # source://activerecord//lib/active_record/future_result.rb#7 - def to_a(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/future_result.rb:7 + def to_a(*, **, &); end end -# source://activerecord//lib/active_record/future_result.rb#26 +# pkg:gem/activerecord#lib/active_record/future_result.rb:26 class ActiveRecord::FutureResult::EventBuffer - # @return [EventBuffer] a new instance of EventBuffer - # - # source://activerecord//lib/active_record/future_result.rb#27 + # pkg:gem/activerecord#lib/active_record/future_result.rb:27 def initialize(future_result, instrumenter); end - # source://activerecord//lib/active_record/future_result.rb#42 + # pkg:gem/activerecord#lib/active_record/future_result.rb:42 def flush; end - # source://activerecord//lib/active_record/future_result.rb#33 + # pkg:gem/activerecord#lib/active_record/future_result.rb:33 def instrument(name, payload = T.unsafe(nil), &block); end end -# source://activerecord//lib/active_record/future_result.rb#175 +# pkg:gem/activerecord#lib/active_record/future_result.rb:175 class ActiveRecord::FutureResult::SelectAll < ::ActiveRecord::FutureResult private - # source://activerecord//lib/active_record/future_result.rb#177 - def exec_query(*_arg0, **_arg1); end + # pkg:gem/activerecord#lib/active_record/future_result.rb:177 + def exec_query(*, **); end end -# source://activerecord//lib/active_record/associations/errors.rb#74 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:74 class ActiveRecord::HasManyThroughAssociationNotFoundError < ::ActiveRecord::ActiveRecordError include ::DidYouMean::Correctable - # @return [HasManyThroughAssociationNotFoundError] a new instance of HasManyThroughAssociationNotFoundError - # - # source://activerecord//lib/active_record/associations/errors.rb#77 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:77 def initialize(owner_class = T.unsafe(nil), reflection = T.unsafe(nil)); end - # source://activerecord//lib/active_record/associations/errors.rb#90 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:90 def corrections; end - # Returns the value of attribute owner_class. - # - # source://activerecord//lib/active_record/associations/errors.rb#75 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:75 def owner_class; end - # Returns the value of attribute reflection. - # - # source://activerecord//lib/active_record/associations/errors.rb#75 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:75 def reflection; end end -# source://activerecord//lib/active_record/associations/errors.rb#124 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:124 class ActiveRecord::HasManyThroughAssociationPointlessSourceTypeError < ::ActiveRecord::ActiveRecordError - # @return [HasManyThroughAssociationPointlessSourceTypeError] a new instance of HasManyThroughAssociationPointlessSourceTypeError - # - # source://activerecord//lib/active_record/associations/errors.rb#125 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:125 def initialize(owner_class_name = T.unsafe(nil), reflection = T.unsafe(nil), source_reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#104 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:104 class ActiveRecord::HasManyThroughAssociationPolymorphicSourceError < ::ActiveRecord::ActiveRecordError - # @return [HasManyThroughAssociationPolymorphicSourceError] a new instance of HasManyThroughAssociationPolymorphicSourceError - # - # source://activerecord//lib/active_record/associations/errors.rb#105 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:105 def initialize(owner_class_name = T.unsafe(nil), reflection = T.unsafe(nil), source_reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#114 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:114 class ActiveRecord::HasManyThroughAssociationPolymorphicThroughError < ::ActiveRecord::ActiveRecordError - # @return [HasManyThroughAssociationPolymorphicThroughError] a new instance of HasManyThroughAssociationPolymorphicThroughError - # - # source://activerecord//lib/active_record/associations/errors.rb#115 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:115 def initialize(owner_class_name = T.unsafe(nil), reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#218 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:218 class ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection < ::ActiveRecord::ThroughCantAssociateThroughHasOneOrManyReflection; end -# source://activerecord//lib/active_record/associations/errors.rb#234 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:234 class ActiveRecord::HasManyThroughNestedAssociationsAreReadonly < ::ActiveRecord::ThroughNestedAssociationsAreReadonly; end -# source://activerecord//lib/active_record/associations/errors.rb#167 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:167 class ActiveRecord::HasManyThroughOrderError < ::ActiveRecord::ActiveRecordError - # @return [HasManyThroughOrderError] a new instance of HasManyThroughOrderError - # - # source://activerecord//lib/active_record/associations/errors.rb#168 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:168 def initialize(owner_class_name = T.unsafe(nil), reflection = T.unsafe(nil), through_reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#154 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:154 class ActiveRecord::HasManyThroughSourceAssociationNotFoundError < ::ActiveRecord::ActiveRecordError - # @return [HasManyThroughSourceAssociationNotFoundError] a new instance of HasManyThroughSourceAssociationNotFoundError - # - # source://activerecord//lib/active_record/associations/errors.rb#155 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:155 def initialize(reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#144 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:144 class ActiveRecord::HasOneAssociationPolymorphicThroughError < ::ActiveRecord::ActiveRecordError - # @return [HasOneAssociationPolymorphicThroughError] a new instance of HasOneAssociationPolymorphicThroughError - # - # source://activerecord//lib/active_record/associations/errors.rb#145 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:145 def initialize(owner_class_name = T.unsafe(nil), reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#134 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:134 class ActiveRecord::HasOneThroughCantAssociateThroughCollection < ::ActiveRecord::ActiveRecordError - # @return [HasOneThroughCantAssociateThroughCollection] a new instance of HasOneThroughCantAssociateThroughCollection - # - # source://activerecord//lib/active_record/associations/errors.rb#135 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:135 def initialize(owner_class_name = T.unsafe(nil), reflection = T.unsafe(nil), through_reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#221 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:221 class ActiveRecord::HasOneThroughCantAssociateThroughHasOneOrManyReflection < ::ActiveRecord::ThroughCantAssociateThroughHasOneOrManyReflection; end -# source://activerecord//lib/active_record/associations/errors.rb#237 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:237 class ActiveRecord::HasOneThroughNestedAssociationsAreReadonly < ::ActiveRecord::ThroughNestedAssociationsAreReadonly; end -# source://activerecord//lib/active_record/migration.rb#121 +# pkg:gem/activerecord#lib/active_record/migration.rb:121 class ActiveRecord::IllegalMigrationNameError < ::ActiveRecord::MigrationError - # @return [IllegalMigrationNameError] a new instance of IllegalMigrationNameError - # - # source://activerecord//lib/active_record/migration.rb#122 + # pkg:gem/activerecord#lib/active_record/migration.rb:122 def initialize(name = T.unsafe(nil)); end end @@ -22889,7 +21197,7 @@ end # Read more: # * https://www.martinfowler.com/eaaCatalog/singleTableInheritance.html # -# source://activerecord//lib/active_record/inheritance.rb#39 +# pkg:gem/activerecord#lib/active_record/inheritance.rb:39 module ActiveRecord::Inheritance extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -22904,13 +21212,13 @@ module ActiveRecord::Inheritance # do Reply.new without having to set Reply[Reply.inheritance_column] = "Reply" yourself. # No such attribute would be set for objects of the Message class in that example. # - # source://activerecord//lib/active_record/inheritance.rb#359 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:359 def ensure_proper_type; end - # source://activerecord//lib/active_record/inheritance.rb#343 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:343 def initialize_dup(other); end - # source://activerecord//lib/active_record/inheritance.rb#349 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:349 def initialize_internals_callback; end module GeneratedClassMethods @@ -22930,7 +21238,7 @@ module ActiveRecord::Inheritance end end -# source://activerecord//lib/active_record/inheritance.rb#52 +# pkg:gem/activerecord#lib/active_record/inheritance.rb:52 module ActiveRecord::Inheritance::ClassMethods # Set this to +true+ if this is an abstract class (see # abstract_class?). @@ -22974,7 +21282,7 @@ module ActiveRecord::Inheritance::ClassMethods # stay in the hierarchy, and Active Record will continue to correctly # derive the table name. # - # source://activerecord//lib/active_record/inheritance.rb#164 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:164 def abstract_class; end # Set this to +true+ if this is an abstract class (see @@ -23019,14 +21327,12 @@ module ActiveRecord::Inheritance::ClassMethods # stay in the hierarchy, and Active Record will continue to correctly # derive the table name. # - # source://activerecord//lib/active_record/inheritance.rb#164 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:164 def abstract_class=(_arg0); end # Returns whether this class is an abstract class or not. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/inheritance.rb#167 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:167 def abstract_class?; end # Returns the first class in the inheritance hierarchy that descends from either an @@ -23048,50 +21354,44 @@ module ActiveRecord::Inheritance::ClassMethods # Polygon.base_class # => Polygon # Square.base_class # => Polygon # - # source://activerecord//lib/active_record/inheritance.rb#115 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:115 def base_class; end # Returns whether the class is a base class. # See #base_class for more information. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/inheritance.rb#119 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:119 def base_class?; end # Returns +true+ if this does not need STI type condition. Returns # +false+ if STI type condition needs to be applied. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/inheritance.rb#82 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:82 def descends_from_active_record?; end - # source://activerecord//lib/active_record/inheritance.rb#226 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:226 def dup; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/inheritance.rb#92 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:92 def finder_needs_type_condition?; end # Determines if one of the attributes passed in is the inheritance column, # and if the inheritance column is attr accessible, it initializes an # instance of the given subclass instead of the base class. # - # source://activerecord//lib/active_record/inheritance.rb#56 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:56 def new(attributes = T.unsafe(nil), &block); end # Returns the class for the provided +name+. # # It is used to find the class correspondent to the value stored in the polymorphic type column. # - # source://activerecord//lib/active_record/inheritance.rb#218 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:218 def polymorphic_class_for(name); end # Returns the value to be stored in the polymorphic type column for Polymorphic Associations. # - # source://activerecord//lib/active_record/inheritance.rb#211 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:211 def polymorphic_name; end # Sets the application record class for Active Record @@ -23101,19 +21401,19 @@ module ActiveRecord::Inheritance::ClassMethods # will share a database connection with Active Record. It is the class # that connects to your primary database. # - # source://activerecord//lib/active_record/inheritance.rb#177 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:177 def primary_abstract_class; end # Returns the class for the provided +type_name+. # # It is used to find the class correspondent to the value stored in the inheritance column. # - # source://activerecord//lib/active_record/inheritance.rb#194 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:194 def sti_class_for(type_name); end # Returns the value to be stored in the inheritance column for STI. # - # source://activerecord//lib/active_record/inheritance.rb#187 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:187 def sti_name; end protected @@ -23121,10 +21421,10 @@ module ActiveRecord::Inheritance::ClassMethods # Returns the class type of the record using the current module as a prefix. So descendants of # MyApp::Business::Account would appear as MyApp::Business::AccountSubclass. # - # source://activerecord//lib/active_record/inheritance.rb#242 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:242 def compute_type(type_name); end - # source://activerecord//lib/active_record/inheritance.rb#270 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:270 def set_base_class; end private @@ -23133,263 +21433,217 @@ module ActiveRecord::Inheritance::ClassMethods # record instance. For single-table inheritance, we check the record # for a +type+ column and return the corresponding class. # - # source://activerecord//lib/active_record/inheritance.rb#299 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:299 def discriminate_class_for_record(record); end - # source://activerecord//lib/active_record/inheritance.rb#311 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:311 def find_sti_class(type_name); end - # source://activerecord//lib/active_record/inheritance.rb#287 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:287 def inherited(subclass); end - # source://activerecord//lib/active_record/inheritance.rb#234 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:234 def initialize_clone(other); end # Detect the subclass from the inheritance column of attrs. If the inheritance column value # is not self or a valid subclass, raises ActiveRecord::SubclassNotFound # - # source://activerecord//lib/active_record/inheritance.rb#331 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:331 def subclass_from_attributes(attrs); end - # source://activerecord//lib/active_record/inheritance.rb#322 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:322 def type_condition(table = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/inheritance.rb#307 + # pkg:gem/activerecord#lib/active_record/inheritance.rb:307 def using_single_table_inheritance?(record); end end -# source://activerecord//lib/active_record/insert_all.rb#6 +# pkg:gem/activerecord#lib/active_record/insert_all.rb:6 class ActiveRecord::InsertAll - # @return [InsertAll] a new instance of InsertAll - # - # source://activerecord//lib/active_record/insert_all.rb#18 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:18 def initialize(relation, connection, inserts, on_duplicate:, update_only: T.unsafe(nil), returning: T.unsafe(nil), unique_by: T.unsafe(nil), record_timestamps: T.unsafe(nil)); end - # Returns the value of attribute connection. - # - # source://activerecord//lib/active_record/insert_all.rb#7 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:7 def connection; end - # source://activerecord//lib/active_record/insert_all.rb#48 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:48 def execute; end - # Returns the value of attribute inserts. - # - # source://activerecord//lib/active_record/insert_all.rb#7 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:7 def inserts; end - # Returns the value of attribute keys. - # - # source://activerecord//lib/active_record/insert_all.rb#7 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:7 def keys; end # TODO: Consider renaming this method, as it only conditionally extends keys, not always # - # source://activerecord//lib/active_record/insert_all.rb#92 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:92 def keys_including_timestamps; end - # source://activerecord//lib/active_record/insert_all.rb#73 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:73 def map_key_with_value; end - # Returns the value of attribute model. - # - # source://activerecord//lib/active_record/insert_all.rb#7 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:7 def model; end - # Returns the value of attribute on_duplicate. - # - # source://activerecord//lib/active_record/insert_all.rb#8 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:8 def on_duplicate; end - # source://activerecord//lib/active_record/insert_all.rb#61 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:61 def primary_keys; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/insert_all.rb#87 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:87 def record_timestamps?; end - # Returns the value of attribute returning. - # - # source://activerecord//lib/active_record/insert_all.rb#8 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:8 def returning; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/insert_all.rb#65 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:65 def skip_duplicates?; end - # Returns the value of attribute unique_by. - # - # source://activerecord//lib/active_record/insert_all.rb#8 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:8 def unique_by; end - # source://activerecord//lib/active_record/insert_all.rb#57 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:57 def updatable_columns; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/insert_all.rb#69 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:69 def update_duplicates?; end - # Returns the value of attribute update_only. - # - # source://activerecord//lib/active_record/insert_all.rb#8 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:8 def update_only; end - # Returns the value of attribute update_sql. - # - # source://activerecord//lib/active_record/insert_all.rb#8 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:8 def update_sql; end private - # source://activerecord//lib/active_record/insert_all.rb#129 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:129 def configure_on_duplicate_update_logic; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/insert_all.rb#145 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:145 def custom_update_sql_provided?; end - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/insert_all.rb#212 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:212 def disallow_raw_sql!(value); end - # source://activerecord//lib/active_record/insert_all.rb#173 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:173 def ensure_valid_options_for_connection!; end - # source://activerecord//lib/active_record/insert_all.rb#149 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:149 def find_unique_index_for(unique_by); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/insert_all.rb#101 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:101 def has_attribute_aliases?(attributes); end - # source://activerecord//lib/active_record/insert_all.rb#197 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:197 def readonly_columns; end - # source://activerecord//lib/active_record/insert_all.rb#125 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:125 def resolve_attribute_alias(attribute); end - # source://activerecord//lib/active_record/insert_all.rb#114 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:114 def resolve_attribute_aliases; end - # source://activerecord//lib/active_record/insert_all.rb#105 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:105 def resolve_sti; end - # source://activerecord//lib/active_record/insert_all.rb#221 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:221 def timestamps_for_create; end - # source://activerecord//lib/active_record/insert_all.rb#192 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:192 def to_sql; end - # source://activerecord//lib/active_record/insert_all.rb#201 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:201 def unique_by_columns; end - # source://activerecord//lib/active_record/insert_all.rb#169 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:169 def unique_indexes; end - # source://activerecord//lib/active_record/insert_all.rb#206 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:206 def verify_attributes(attributes); end class << self - # source://activerecord//lib/active_record/insert_all.rb#11 - def execute(relation, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/insert_all.rb:11 + def execute(relation, *, **, &); end end end -# source://activerecord//lib/active_record/insert_all.rb#225 +# pkg:gem/activerecord#lib/active_record/insert_all.rb:225 class ActiveRecord::InsertAll::Builder - # @return [Builder] a new instance of Builder - # - # source://activerecord//lib/active_record/insert_all.rb#230 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:230 def initialize(insert_all); end - # source://activerecord//lib/active_record/insert_all.rb#265 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:265 def conflict_target; end - # source://activerecord//lib/active_record/insert_all.rb#234 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:234 def into; end - # source://activerecord//lib/active_record/insert_all.rb#228 - def keys(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/insert_all.rb:228 + def keys(*, **, &); end - # source://activerecord//lib/active_record/insert_all.rb#228 - def keys_including_timestamps(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/insert_all.rb:228 + def keys_including_timestamps(*, **, &); end - # Returns the value of attribute model. - # - # source://activerecord//lib/active_record/insert_all.rb#226 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:226 def model; end - # source://activerecord//lib/active_record/insert_all.rb#289 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:289 def raw_update_sql; end - # source://activerecord//lib/active_record/insert_all.rb#289 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:293 def raw_update_sql?; end - # source://activerecord//lib/active_record/insert_all.rb#228 - def record_timestamps?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/insert_all.rb:228 + def record_timestamps?(*, **, &); end - # source://activerecord//lib/active_record/insert_all.rb#249 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:249 def returning; end - # source://activerecord//lib/active_record/insert_all.rb#228 - def skip_duplicates?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/insert_all.rb:228 + def skip_duplicates?(*, **, &); end - # source://activerecord//lib/active_record/insert_all.rb#279 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:279 def touch_model_timestamps_unless(&block); end - # source://activerecord//lib/active_record/insert_all.rb#275 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:275 def updatable_columns; end - # source://activerecord//lib/active_record/insert_all.rb#228 - def update_duplicates?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/insert_all.rb:228 + def update_duplicates?(*, **, &); end - # source://activerecord//lib/active_record/insert_all.rb#238 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:238 def values_list; end private - # source://activerecord//lib/active_record/insert_all.rb#302 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:302 def columns_list; end - # Returns the value of attribute connection. - # - # source://activerecord//lib/active_record/insert_all.rb#296 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:296 def connection; end - # @raise [UnknownAttributeError] - # - # source://activerecord//lib/active_record/insert_all.rb#306 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:306 def extract_types_from_columns_on(table_name, keys:); end - # source://activerecord//lib/active_record/insert_all.rb#315 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:315 def format_columns(columns); end - # Returns the value of attribute insert_all. - # - # source://activerecord//lib/active_record/insert_all.rb#296 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:296 def insert_all; end - # source://activerecord//lib/active_record/insert_all.rb#323 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:323 def quote_column(column); end - # source://activerecord//lib/active_record/insert_all.rb#319 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:319 def quote_columns(columns); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/insert_all.rb#298 + # pkg:gem/activerecord#lib/active_record/insert_all.rb:298 def touch_timestamp_attribute?(column_name); end end -# source://activerecord//lib/active_record/integration.rb#6 +# pkg:gem/activerecord#lib/active_record/integration.rb:6 module ActiveRecord::Integration extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -23408,12 +21662,12 @@ module ActiveRecord::Integration # Product.cache_versioning = false # Product.find(5).cache_key # => "products/5-20071224150000" (updated_at available) # - # source://activerecord//lib/active_record/integration.rb#72 + # pkg:gem/activerecord#lib/active_record/integration.rb:72 def cache_key; end # Returns a cache key along with the version. # - # source://activerecord//lib/active_record/integration.rb#114 + # pkg:gem/activerecord#lib/active_record/integration.rb:114 def cache_key_with_version; end # Returns a cache version that can be used together with the cache key to form @@ -23423,7 +21677,7 @@ module ActiveRecord::Integration # Note, this method will return nil if ActiveRecord::Base.cache_versioning is set to # +false+. # - # source://activerecord//lib/active_record/integration.rb#97 + # pkg:gem/activerecord#lib/active_record/integration.rb:97 def cache_version; end # Returns a +String+, which Action Pack uses for constructing a URL to this @@ -23449,7 +21703,7 @@ module ActiveRecord::Integration # user = User.find_by(name: 'Phusion') # user_path(user) # => "/users/Phusion" # - # source://activerecord//lib/active_record/integration.rb#57 + # pkg:gem/activerecord#lib/active_record/integration.rb:57 def to_param; end private @@ -23464,9 +21718,7 @@ module ActiveRecord::Integration # or if the timezone is not set to UTC then # we cannot apply our transformations correctly. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/integration.rb#178 + # pkg:gem/activerecord#lib/active_record/integration.rb:178 def can_use_fast_cache_version?(timestamp); end # Converts a raw database string to `:usec` @@ -23482,7 +21734,7 @@ module ActiveRecord::Integration # https://github.com/postgres/postgres/commit/3e1beda2cde3495f41290e1ece5d544525810214 # to account for this we pad the output with zeros # - # source://activerecord//lib/active_record/integration.rb#200 + # pkg:gem/activerecord#lib/active_record/integration.rb:200 def raw_timestamp_to_cache_version(timestamp); end module GeneratedClassMethods @@ -23507,9 +21759,9 @@ module ActiveRecord::Integration end end -# source://activerecord//lib/active_record/integration.rb#122 +# pkg:gem/activerecord#lib/active_record/integration.rb:122 module ActiveRecord::Integration::ClassMethods - # source://activerecord//lib/active_record/integration.rb#163 + # pkg:gem/activerecord#lib/active_record/integration.rb:163 def collection_cache_key(collection = T.unsafe(nil), timestamp_column = T.unsafe(nil)); end # Defines your model's +to_param+ method to generate "pretty" URLs @@ -23537,7 +21789,7 @@ module ActiveRecord::Integration::ClassMethods # params[:id] # => "123-fancy-pants" # User.find(params[:id]).id # => 123 # - # source://activerecord//lib/active_record/integration.rb#147 + # pkg:gem/activerecord#lib/active_record/integration.rb:147 def to_param(method_name = T.unsafe(nil)); end end @@ -23547,128 +21799,108 @@ end # This is enabled by default. To disable this functionality set # `use_metadata_table` to false in your database configuration. # -# source://activerecord//lib/active_record/internal_metadata.rb#12 +# pkg:gem/activerecord#lib/active_record/internal_metadata.rb:12 class ActiveRecord::InternalMetadata - # @return [InternalMetadata] a new instance of InternalMetadata - # - # source://activerecord//lib/active_record/internal_metadata.rb#18 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:18 def initialize(pool); end - # source://activerecord//lib/active_record/internal_metadata.rb#47 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:47 def [](key); end - # source://activerecord//lib/active_record/internal_metadata.rb#39 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:39 def []=(key, value); end - # Returns the value of attribute arel_table. - # - # source://activerecord//lib/active_record/internal_metadata.rb#16 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:16 def arel_table; end - # source://activerecord//lib/active_record/internal_metadata.rb#65 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:65 def count; end # Creates an internal metadata table with columns +key+ and +value+ # - # source://activerecord//lib/active_record/internal_metadata.rb#85 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:85 def create_table; end - # source://activerecord//lib/active_record/internal_metadata.rb#74 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:74 def create_table_and_set_flags(environment, schema_sha1 = T.unsafe(nil)); end - # source://activerecord//lib/active_record/internal_metadata.rb#57 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:57 def delete_all_entries; end - # source://activerecord//lib/active_record/internal_metadata.rb#99 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:99 def drop_table; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/internal_metadata.rb#35 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:35 def enabled?; end - # source://activerecord//lib/active_record/internal_metadata.rb#23 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:23 def primary_key; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/internal_metadata.rb#107 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:107 def table_exists?; end - # source://activerecord//lib/active_record/internal_metadata.rb#31 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:31 def table_name; end - # source://activerecord//lib/active_record/internal_metadata.rb#27 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:27 def value_key; end private - # source://activerecord//lib/active_record/internal_metadata.rb#130 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:130 def create_entry(connection, key, value); end - # source://activerecord//lib/active_record/internal_metadata.rb#126 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:126 def current_time(connection); end - # source://activerecord//lib/active_record/internal_metadata.rb#154 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:154 def select_entry(connection, key); end - # source://activerecord//lib/active_record/internal_metadata.rb#142 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:142 def update_entry(connection, key, new_value); end - # source://activerecord//lib/active_record/internal_metadata.rb#112 + # pkg:gem/activerecord#lib/active_record/internal_metadata.rb:112 def update_or_create_entry(connection, key, value); end end -# source://activerecord//lib/active_record/internal_metadata.rb#13 +# pkg:gem/activerecord#lib/active_record/internal_metadata.rb:13 class ActiveRecord::InternalMetadata::NullInternalMetadata; end # Raised when a record cannot be inserted or updated because it references a non-existent record, # or when a record cannot be deleted because a parent record references it. # -# source://activerecord//lib/active_record/errors.rb#234 +# pkg:gem/activerecord#lib/active_record/errors.rb:234 class ActiveRecord::InvalidForeignKey < ::ActiveRecord::WrappedDatabaseException; end -# source://activerecord//lib/active_record/migration.rb#131 +# pkg:gem/activerecord#lib/active_record/migration.rb:131 class ActiveRecord::InvalidMigrationTimestampError < ::ActiveRecord::MigrationError - # @return [InvalidMigrationTimestampError] a new instance of InvalidMigrationTimestampError - # - # source://activerecord//lib/active_record/migration.rb#132 + # pkg:gem/activerecord#lib/active_record/migration.rb:132 def initialize(version = T.unsafe(nil), name = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#33 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:33 class ActiveRecord::InverseOfAssociationNotFoundError < ::ActiveRecord::ActiveRecordError include ::DidYouMean::Correctable - # @return [InverseOfAssociationNotFoundError] a new instance of InverseOfAssociationNotFoundError - # - # source://activerecord//lib/active_record/associations/errors.rb#36 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:36 def initialize(reflection = T.unsafe(nil), associated_class = T.unsafe(nil)); end - # Returns the value of attribute associated_class. - # - # source://activerecord//lib/active_record/associations/errors.rb#34 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:34 def associated_class; end - # source://activerecord//lib/active_record/associations/errors.rb#49 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:49 def corrections; end - # Returns the value of attribute reflection. - # - # source://activerecord//lib/active_record/associations/errors.rb#34 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:34 def reflection; end end -# source://activerecord//lib/active_record/associations/errors.rb#62 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:62 class ActiveRecord::InverseOfAssociationRecursiveError < ::ActiveRecord::ActiveRecordError - # @return [InverseOfAssociationRecursiveError] a new instance of InverseOfAssociationRecursiveError - # - # source://activerecord//lib/active_record/associations/errors.rb#64 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:64 def initialize(reflection = T.unsafe(nil)); end - # Returns the value of attribute reflection. - # - # source://activerecord//lib/active_record/associations/errors.rb#63 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:63 def reflection; end end @@ -23744,29 +21976,29 @@ end # end # end # -# source://activerecord//lib/active_record/migration.rb#88 +# pkg:gem/activerecord#lib/active_record/migration.rb:88 class ActiveRecord::IrreversibleMigration < ::ActiveRecord::MigrationError; end # IrreversibleOrderError is raised when a relation's order is too complex for # +reverse_order+ to automatically reverse. # -# source://activerecord//lib/active_record/errors.rb#557 +# pkg:gem/activerecord#lib/active_record/errors.rb:557 class ActiveRecord::IrreversibleOrderError < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/legacy_yaml_adapter.rb#4 +# pkg:gem/activerecord#lib/active_record/legacy_yaml_adapter.rb:4 module ActiveRecord::LegacyYamlAdapter class << self - # source://activerecord//lib/active_record/legacy_yaml_adapter.rb#5 + # pkg:gem/activerecord#lib/active_record/legacy_yaml_adapter.rb:5 def convert(coder); end end end # LockWaitTimeout will be raised when lock wait timeout exceeded. # -# source://activerecord//lib/active_record/errors.rb#565 +# pkg:gem/activerecord#lib/active_record/errors.rb:565 class ActiveRecord::LockWaitTimeout < ::ActiveRecord::StatementInvalid; end -# source://activerecord//lib/active_record.rb#148 +# pkg:gem/activerecord#lib/active_record.rb:148 module ActiveRecord::Locking extend ::ActiveSupport::Autoload end @@ -23775,22 +22007,22 @@ end # `nil` values to `lock_version`, and not result in `ActiveRecord::StaleObjectError` # during update record. # -# source://activerecord//lib/active_record/locking/optimistic.rb#206 +# pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:206 class ActiveRecord::Locking::LockingType - # source://activerecord//lib/active_record/locking/optimistic.rb#211 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:211 def deserialize(value); end - # source://activerecord//lib/active_record/locking/optimistic.rb#223 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:223 def encode_with(coder); end - # source://activerecord//lib/active_record/locking/optimistic.rb#219 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:219 def init_with(coder); end - # source://activerecord//lib/active_record/locking/optimistic.rb#215 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:215 def serialize(value); end class << self - # source://activerecord//lib/active_record/locking/optimistic.rb#207 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:207 def new(subtype); end end end @@ -23842,7 +22074,7 @@ end # self.locking_column = :lock_person # end # -# source://activerecord//lib/active_record/locking/optimistic.rb#52 +# pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:52 module ActiveRecord::Locking::Optimistic extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -23850,38 +22082,36 @@ module ActiveRecord::Locking::Optimistic mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::ActiveRecord::Locking::Optimistic::ClassMethods - # source://activerecord//lib/active_record/locking/optimistic.rb#63 - def increment!(*_arg0, **_arg1); end + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:63 + def increment!(*, **); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/locking/optimistic.rb#59 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:59 def locking_enabled?; end private - # source://activerecord//lib/active_record/locking/optimistic.rb#142 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:142 def _clear_locking_column; end - # source://activerecord//lib/active_record/locking/optimistic.rb#78 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:78 def _create_record(attribute_names = T.unsafe(nil)); end - # source://activerecord//lib/active_record/locking/optimistic.rb#134 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:134 def _lock_value_for_database(locking_column); end - # source://activerecord//lib/active_record/locking/optimistic.rb#147 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:147 def _query_constraints_hash; end - # source://activerecord//lib/active_record/locking/optimistic.rb#87 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:87 def _touch_row(attribute_names, time); end - # source://activerecord//lib/active_record/locking/optimistic.rb#92 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:92 def _update_row(attribute_names, attempted_action = T.unsafe(nil)); end - # source://activerecord//lib/active_record/locking/optimistic.rb#124 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:124 def destroy_row; end - # source://activerecord//lib/active_record/locking/optimistic.rb#72 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:72 def initialize_dup(other); end module GeneratedClassMethods @@ -23896,48 +22126,46 @@ module ActiveRecord::Locking::Optimistic end end -# source://activerecord//lib/active_record/locking/optimistic.rb#154 +# pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:154 module ActiveRecord::Locking::Optimistic::ClassMethods # The version column used for optimistic locking. Defaults to +lock_version+. # - # source://activerecord//lib/active_record/locking/optimistic.rb#171 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:171 def locking_column; end # Set the column to use for optimistic locking. Defaults to +lock_version+. # - # source://activerecord//lib/active_record/locking/optimistic.rb#165 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:165 def locking_column=(value); end # Returns true if the +lock_optimistically+ flag is set to true # (which it is, by default) and the table includes the # +locking_column+ column (defaults to +lock_version+). # - # @return [Boolean] - # - # source://activerecord//lib/active_record/locking/optimistic.rb#160 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:160 def locking_enabled?; end # Reset the column used for optimistic locking back to the +lock_version+ default. # - # source://activerecord//lib/active_record/locking/optimistic.rb#174 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:174 def reset_locking_column; end # Make sure the lock version column gets updated when counters are # updated. # - # source://activerecord//lib/active_record/locking/optimistic.rb#180 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:180 def update_counters(id, counters); end private - # source://activerecord//lib/active_record/locking/optimistic.rb#186 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:186 def hook_attribute_type(name, cast_type); end - # source://activerecord//lib/active_record/locking/optimistic.rb#194 + # pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:194 def inherited(base); end end -# source://activerecord//lib/active_record/locking/optimistic.rb#155 +# pkg:gem/activerecord#lib/active_record/locking/optimistic.rb:155 ActiveRecord::Locking::Optimistic::ClassMethods::DEFAULT_LOCKING_COLUMN = T.let(T.unsafe(nil), String) # = \Pessimistic \Locking @@ -24000,14 +22228,14 @@ ActiveRecord::Locking::Optimistic::ClassMethods::DEFAULT_LOCKING_COLUMN = T.let( # [PostgreSQL] # https://www.postgresql.org/docs/current/interactive/sql-select.html#SQL-FOR-UPDATE-SHARE # -# source://activerecord//lib/active_record/locking/pessimistic.rb#64 +# pkg:gem/activerecord#lib/active_record/locking/pessimistic.rb:64 module ActiveRecord::Locking::Pessimistic # Obtain a row lock on this record. Reloads the record to obtain the requested # lock. Pass an SQL locking clause to append the end of the SELECT statement # or pass true for "FOR UPDATE" (the default, an exclusive row lock). Returns # the locked record. # - # source://activerecord//lib/active_record/locking/pessimistic.rb#69 + # pkg:gem/activerecord#lib/active_record/locking/pessimistic.rb:69 def lock!(lock = T.unsafe(nil)); end # Wraps the passed block in a transaction, reloading the object with a @@ -24018,108 +22246,106 @@ module ActiveRecord::Locking::Pessimistic # and joinable: to the wrapping transaction (see # ActiveRecord::ConnectionAdapters::DatabaseStatements#transaction). # - # source://activerecord//lib/active_record/locking/pessimistic.rb#92 + # pkg:gem/activerecord#lib/active_record/locking/pessimistic.rb:92 def with_lock(*args); end end -# source://activerecord//lib/active_record/log_subscriber.rb#4 +# pkg:gem/activerecord#lib/active_record/log_subscriber.rb:4 class ActiveRecord::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://activerecord//lib/active_record/log_subscriber.rb#7 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:7 def backtrace_cleaner; end - # source://activerecord//lib/active_record/log_subscriber.rb#7 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:7 def backtrace_cleaner=(_arg0); end - # source://activerecord//lib/active_record/log_subscriber.rb#7 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:7 def backtrace_cleaner?; end - # source://activerecord//lib/active_record/log_subscriber.rb#18 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:18 def sql(event); end - # source://activerecord//lib/active_record/log_subscriber.rb#9 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:9 def strict_loading_violation(event); end private - # source://activerecord//lib/active_record/log_subscriber.rb#80 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:80 def colorize_payload_name(name, payload_name); end - # source://activerecord//lib/active_record/log_subscriber.rb#113 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:113 def debug(progname = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/log_subscriber.rb#137 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:137 def filter(name, value); end - # source://activerecord//lib/active_record/log_subscriber.rb#121 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:121 def log_query_source; end - # source://activerecord//lib/active_record/log_subscriber.rb#109 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:109 def logger; end - # source://activerecord//lib/active_record/log_subscriber.rb#129 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:129 def query_source_location; end - # source://activerecord//lib/active_record/log_subscriber.rb#65 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:65 def render_bind(attr, value); end - # source://activerecord//lib/active_record/log_subscriber.rb#88 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:88 def sql_color(sql); end - # source://activerecord//lib/active_record/log_subscriber.rb#61 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:61 def type_casted_binds(casted_binds); end class << self - # source://activerecord//lib/active_record/log_subscriber.rb#7 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:7 def backtrace_cleaner; end - # source://activerecord//lib/active_record/log_subscriber.rb#7 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:7 def backtrace_cleaner=(value); end - # source://activerecord//lib/active_record/log_subscriber.rb#7 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:7 def backtrace_cleaner?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:7 def __class_attr_backtrace_cleaner; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:7 def __class_attr_backtrace_cleaner=(new_value); end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:16 def __class_attr_log_levels; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/log_subscriber.rb:16 def __class_attr_log_levels=(new_value); end end end -# source://activerecord//lib/active_record/log_subscriber.rb#5 +# pkg:gem/activerecord#lib/active_record/log_subscriber.rb:5 ActiveRecord::LogSubscriber::IGNORE_PAYLOAD_NAMES = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/marshalling.rb#4 +# pkg:gem/activerecord#lib/active_record/marshalling.rb:4 module ActiveRecord::Marshalling class << self - # Returns the value of attribute format_version. - # - # source://activerecord//lib/active_record/marshalling.rb#8 + # pkg:gem/activerecord#lib/active_record/marshalling.rb:8 def format_version; end - # source://activerecord//lib/active_record/marshalling.rb#10 + # pkg:gem/activerecord#lib/active_record/marshalling.rb:10 def format_version=(version); end end end -# source://activerecord//lib/active_record/marshalling.rb#23 +# pkg:gem/activerecord#lib/active_record/marshalling.rb:23 module ActiveRecord::Marshalling::Methods - # source://activerecord//lib/active_record/marshalling.rb#24 + # pkg:gem/activerecord#lib/active_record/marshalling.rb:24 def _marshal_dump_7_1; end - # source://activerecord//lib/active_record/marshalling.rb#43 + # pkg:gem/activerecord#lib/active_record/marshalling.rb:43 def marshal_load(state); end end -# source://activerecord//lib/active_record.rb#166 +# pkg:gem/activerecord#lib/active_record.rb:166 module ActiveRecord::Middleware extend ::ActiveSupport::Autoload end @@ -24169,37 +22395,29 @@ end # to call require "active_support/core_ext/integer/time" to load # the core extension in order to use +2.seconds+ # -# source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#5 +# pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:5 class ActiveRecord::Middleware::DatabaseSelector - # @return [DatabaseSelector] a new instance of DatabaseSelector - # - # source://activerecord//lib/active_record/middleware/database_selector.rb#52 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector.rb:52 def initialize(app, resolver_klass = T.unsafe(nil), context_klass = T.unsafe(nil), options = T.unsafe(nil)); end # Middleware that determines which database connection to use in a multiple # database application. # - # source://activerecord//lib/active_record/middleware/database_selector.rb#63 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector.rb:63 def call(env); end - # Returns the value of attribute context_klass. - # - # source://activerecord//lib/active_record/middleware/database_selector.rb#59 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector.rb:59 def context_klass; end - # Returns the value of attribute options. - # - # source://activerecord//lib/active_record/middleware/database_selector.rb#59 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector.rb:59 def options; end - # Returns the value of attribute resolver_klass. - # - # source://activerecord//lib/active_record/middleware/database_selector.rb#59 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector.rb:59 def resolver_klass; end private - # source://activerecord//lib/active_record/middleware/database_selector.rb#72 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector.rb:72 def select_database(request, &blk); end end @@ -24214,73 +22432,59 @@ end # By default the Resolver class will send read traffic to the replica # if it's been 2 seconds since the last write. # -# source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#6 +# pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:6 class ActiveRecord::Middleware::DatabaseSelector::Resolver - # @return [Resolver] a new instance of Resolver - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#26 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:26 def initialize(context, options = T.unsafe(nil)); end - # Returns the value of attribute context. - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#33 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:33 def context; end - # Returns the value of attribute delay. - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#33 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:33 def delay; end - # Returns the value of attribute instrumenter. - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#33 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:33 def instrumenter; end - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#35 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:35 def read(&blk); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#51 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:51 def reading_request?(request); end - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#47 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:47 def update_context(response); end - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#43 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:43 def write(&blk); end private - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#56 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:56 def read_from_primary(&blk); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#78 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:78 def read_from_primary?; end - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#62 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:62 def read_from_replica(&blk); end - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#82 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:82 def send_to_replica_delay; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#86 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:86 def time_since_last_write_ok?; end - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#68 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:68 def write_to_primary; end class << self - # source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#22 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:22 def call(context, options = T.unsafe(nil)); end end end -# source://activerecord//lib/active_record/middleware/database_selector/resolver.rb#20 +# pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver.rb:20 ActiveRecord::Middleware::DatabaseSelector::Resolver::SEND_TO_REPLICA_DELAY = T.let(T.unsafe(nil), ActiveSupport::Duration) # The session class is used by the DatabaseSelector::Resolver to save @@ -24289,40 +22493,36 @@ ActiveRecord::Middleware::DatabaseSelector::Resolver::SEND_TO_REPLICA_DELAY = T. # The last_write is used to determine whether it's safe to read # from the replica or the request needs to be sent to the primary. # -# source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#12 +# pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:12 class ActiveRecord::Middleware::DatabaseSelector::Resolver::Session - # @return [Session] a new instance of Session - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#28 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:28 def initialize(session); end - # source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#34 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:34 def last_write_timestamp; end - # source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#42 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:42 def save(response); end - # Returns the value of attribute session. - # - # source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#32 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:32 def session; end - # source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#38 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:38 def update_last_write_timestamp; end class << self - # source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#13 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:13 def call(request); end # Converts time to a timestamp that represents milliseconds since # epoch. # - # source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#19 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:19 def convert_time_to_timestamp(time); end # Converts milliseconds since epoch timestamp into a time object. # - # source://activerecord//lib/active_record/middleware/database_selector/resolver/session.rb#24 + # pkg:gem/activerecord#lib/active_record/middleware/database_selector/resolver/session.rb:24 def convert_timestamp_to_time(timestamp); end end end @@ -24354,32 +22554,26 @@ end # tenant.shard # } # -# source://activerecord//lib/active_record/middleware/shard_selector.rb#31 +# pkg:gem/activerecord#lib/active_record/middleware/shard_selector.rb:31 class ActiveRecord::Middleware::ShardSelector - # @return [ShardSelector] a new instance of ShardSelector - # - # source://activerecord//lib/active_record/middleware/shard_selector.rb#32 + # pkg:gem/activerecord#lib/active_record/middleware/shard_selector.rb:32 def initialize(app, resolver, options = T.unsafe(nil)); end - # source://activerecord//lib/active_record/middleware/shard_selector.rb#40 + # pkg:gem/activerecord#lib/active_record/middleware/shard_selector.rb:40 def call(env); end - # Returns the value of attribute options. - # - # source://activerecord//lib/active_record/middleware/shard_selector.rb#38 + # pkg:gem/activerecord#lib/active_record/middleware/shard_selector.rb:38 def options; end - # Returns the value of attribute resolver. - # - # source://activerecord//lib/active_record/middleware/shard_selector.rb#38 + # pkg:gem/activerecord#lib/active_record/middleware/shard_selector.rb:38 def resolver; end private - # source://activerecord//lib/active_record/middleware/shard_selector.rb#51 + # pkg:gem/activerecord#lib/active_record/middleware/shard_selector.rb:51 def selected_shard(request); end - # source://activerecord//lib/active_record/middleware/shard_selector.rb#55 + # pkg:gem/activerecord#lib/active_record/middleware/shard_selector.rb:55 def set_shard(shard, &block); end end @@ -24717,67 +22911,59 @@ end # Remember that you can still open your own transactions, even if you # are in a Migration with self.disable_ddl_transaction!. # -# source://activerecord//lib/active_record/migration.rb#570 +# pkg:gem/activerecord#lib/active_record/migration.rb:570 class ActiveRecord::Migration - # @return [Migration] a new instance of Migration - # - # source://activerecord//lib/active_record/migration.rb#799 + # pkg:gem/activerecord#lib/active_record/migration.rb:799 def initialize(name = T.unsafe(nil), version = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#1004 + # pkg:gem/activerecord#lib/active_record/migration.rb:1004 def announce(message); end - # source://activerecord//lib/active_record/migration.rb#1035 + # pkg:gem/activerecord#lib/active_record/migration.rb:1035 def connection; end - # source://activerecord//lib/active_record/migration.rb#1039 + # pkg:gem/activerecord#lib/active_record/migration.rb:1039 def connection_pool; end - # source://activerecord//lib/active_record/migration.rb#1060 + # pkg:gem/activerecord#lib/active_record/migration.rb:1060 def copy(destination, sources, options = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#786 + # pkg:gem/activerecord#lib/active_record/migration.rb:786 def disable_ddl_transaction; end - # source://activerecord//lib/active_record/migration.rb#956 + # pkg:gem/activerecord#lib/active_record/migration.rb:956 def down; end - # source://activerecord//lib/active_record/migration.rb#984 + # pkg:gem/activerecord#lib/active_record/migration.rb:984 def exec_migration(conn, direction); end - # source://activerecord//lib/active_record/migration.rb#806 + # pkg:gem/activerecord#lib/active_record/migration.rb:806 def execution_strategy; end - # source://activerecord//lib/active_record/migration.rb#1043 - def method_missing(method, *arguments, **_arg2, &block); end + # pkg:gem/activerecord#lib/active_record/migration.rb:1043 + def method_missing(method, *arguments, **, &block); end # Execute this migration in the named direction # - # source://activerecord//lib/active_record/migration.rb#963 + # pkg:gem/activerecord#lib/active_record/migration.rb:963 def migrate(direction); end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/migration.rb#797 + # pkg:gem/activerecord#lib/active_record/migration.rb:797 def name; end - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activerecord//lib/active_record/migration.rb#797 + # pkg:gem/activerecord#lib/active_record/migration.rb:797 def name=(_arg0); end # Determines the version number of the next migration. # - # source://activerecord//lib/active_record/migration.rb#1127 + # pkg:gem/activerecord#lib/active_record/migration.rb:1127 def next_migration_number(number); end # Finds the correct table name given an Active Record object. # Uses the Active Record object's own table_name, or pre/suffix from the # options passed in. # - # source://activerecord//lib/active_record/migration.rb#1118 + # pkg:gem/activerecord#lib/active_record/migration.rb:1118 def proper_table_name(name, options = T.unsafe(nil)); end # Used to specify an operation that can be run in one direction or another. @@ -24807,7 +22993,7 @@ class ActiveRecord::Migration # end # end # - # source://activerecord//lib/active_record/migration.rb#908 + # pkg:gem/activerecord#lib/active_record/migration.rb:908 def reversible; end # Reverses the migration commands for the given block and @@ -24848,12 +23034,10 @@ class ActiveRecord::Migration # # This command can be nested. # - # source://activerecord//lib/active_record/migration.rb#851 + # pkg:gem/activerecord#lib/active_record/migration.rb:851 def revert(*migration_classes, &block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#868 + # pkg:gem/activerecord#lib/active_record/migration.rb:868 def reverting?; end # Runs the given migration classes. @@ -24862,33 +23046,33 @@ class ActiveRecord::Migration # - +:direction+ - Default is +:up+. # - +:revert+ - Default is +false+. # - # source://activerecord//lib/active_record/migration.rb#936 + # pkg:gem/activerecord#lib/active_record/migration.rb:936 def run(*migration_classes); end # Takes a message argument and outputs it as is. # A second boolean argument can be passed to specify whether to indent or not. # - # source://activerecord//lib/active_record/migration.rb#1012 + # pkg:gem/activerecord#lib/active_record/migration.rb:1012 def say(message, subitem = T.unsafe(nil)); end # Outputs text along with how long it took to run its block. # If the block returns an integer it assumes it is the number of rows affected. # - # source://activerecord//lib/active_record/migration.rb#1018 + # pkg:gem/activerecord#lib/active_record/migration.rb:1018 def say_with_time(message); end # Takes a block as an argument and suppresses any output generated by the block. # - # source://activerecord//lib/active_record/migration.rb#1028 + # pkg:gem/activerecord#lib/active_record/migration.rb:1028 def suppress_messages; end # Builds a hash for use in ActiveRecord::Migration#proper_table_name using # the Active Record object's table_name prefix and suffix # - # source://activerecord//lib/active_record/migration.rb#1137 + # pkg:gem/activerecord#lib/active_record/migration.rb:1137 def table_name_options(config = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#950 + # pkg:gem/activerecord#lib/active_record/migration.rb:950 def up; end # Used to specify an operation that is only run when migrating up @@ -24906,75 +23090,61 @@ class ActiveRecord::Migration # end # end # - # source://activerecord//lib/active_record/migration.rb#927 + # pkg:gem/activerecord#lib/active_record/migration.rb:927 def up_only(&block); end - # :singleton-method: verbose - # - # Specifies if migrations will write the actions they are taking to the console as they - # happen, along with benchmarks describing how long each step took. Defaults to - # true. - # - # source://activerecord//lib/active_record/migration.rb#796 + # pkg:gem/activerecord#lib/active_record/migration.rb:796 def verbose; end - # source://activerecord//lib/active_record/migration.rb#796 + # pkg:gem/activerecord#lib/active_record/migration.rb:796 def verbose=(val); end - # Returns the value of attribute version. - # - # source://activerecord//lib/active_record/migration.rb#797 + # pkg:gem/activerecord#lib/active_record/migration.rb:797 def version; end - # Sets the attribute version - # - # @param value the value to set the attribute version to. - # - # source://activerecord//lib/active_record/migration.rb#797 + # pkg:gem/activerecord#lib/active_record/migration.rb:797 def version=(_arg0); end - # source://activerecord//lib/active_record/migration.rb#1000 + # pkg:gem/activerecord#lib/active_record/migration.rb:1000 def write(text = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/migration.rb#1169 + # pkg:gem/activerecord#lib/active_record/migration.rb:1169 def command_recorder; end - # source://activerecord//lib/active_record/migration.rb#1145 + # pkg:gem/activerecord#lib/active_record/migration.rb:1145 def execute_block; end - # source://activerecord//lib/active_record/migration.rb#1153 + # pkg:gem/activerecord#lib/active_record/migration.rb:1153 def format_arguments(arguments); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1165 + # pkg:gem/activerecord#lib/active_record/migration.rb:1165 def internal_option?(option_name); end class << self - # source://activerecord//lib/active_record/migration.rb#628 + # pkg:gem/activerecord#lib/active_record/migration.rb:628 def [](version); end # Raises ActiveRecord::PendingMigrationError error if any migrations are pending # for all database configurations in an environment. # - # source://activerecord//lib/active_record/migration.rb#692 + # pkg:gem/activerecord#lib/active_record/migration.rb:692 def check_all_pending!; end - # source://activerecord//lib/active_record/migration.rb#738 + # pkg:gem/activerecord#lib/active_record/migration.rb:738 def check_pending_migrations; end - # source://activerecord//lib/active_record/migration.rb#632 + # pkg:gem/activerecord#lib/active_record/migration.rb:632 def current_version; end - # source://activerecord//lib/active_record/migration.rb#683 + # pkg:gem/activerecord#lib/active_record/migration.rb:683 def delegate; end - # source://activerecord//lib/active_record/migration.rb#683 + # pkg:gem/activerecord#lib/active_record/migration.rb:683 def delegate=(_arg0); end - # source://activerecord//lib/active_record/migration.rb#684 + # pkg:gem/activerecord#lib/active_record/migration.rb:684 def disable_ddl_transaction; end # Disable the transaction wrapping this migration. @@ -24982,58 +23152,54 @@ class ActiveRecord::Migration # # For more details read the {"Transactional Migrations" section above}[rdoc-ref:Migration]. # - # source://activerecord//lib/active_record/migration.rb#734 + # pkg:gem/activerecord#lib/active_record/migration.rb:734 def disable_ddl_transaction!; end - # source://activerecord//lib/active_record/migration.rb#684 + # pkg:gem/activerecord#lib/active_record/migration.rb:684 def disable_ddl_transaction=(_arg0); end - # source://activerecord//lib/active_record/migration.rb#616 + # pkg:gem/activerecord#lib/active_record/migration.rb:616 def inherited(subclass); end - # source://activerecord//lib/active_record/migration.rb#708 + # pkg:gem/activerecord#lib/active_record/migration.rb:708 def load_schema_if_pending!; end - # source://activerecord//lib/active_record/migration.rb#716 + # pkg:gem/activerecord#lib/active_record/migration.rb:716 def maintain_test_schema!; end - # source://activerecord//lib/active_record/migration.rb#722 - def method_missing(name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/migration.rb:722 + def method_missing(name, *, **, &); end - # source://activerecord//lib/active_record/migration.rb#726 + # pkg:gem/activerecord#lib/active_record/migration.rb:726 def migrate(direction); end - # source://activerecord//lib/active_record/migration.rb#686 + # pkg:gem/activerecord#lib/active_record/migration.rb:686 def nearest_delegate; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#638 + # pkg:gem/activerecord#lib/active_record/migration.rb:638 def valid_version_format?(version_string); end - # source://activerecord//lib/active_record/migration.rb#796 + # pkg:gem/activerecord#lib/active_record/migration.rb:796 def verbose; end - # source://activerecord//lib/active_record/migration.rb#796 + # pkg:gem/activerecord#lib/active_record/migration.rb:796 def verbose=(val); end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#747 + # pkg:gem/activerecord#lib/active_record/migration.rb:747 def any_schema_needs_update?; end - # source://activerecord//lib/active_record/migration.rb#753 + # pkg:gem/activerecord#lib/active_record/migration.rb:753 def db_configs_in_current_env; end - # source://activerecord//lib/active_record/migration.rb#771 + # pkg:gem/activerecord#lib/active_record/migration.rb:771 def env; end - # source://activerecord//lib/active_record/migration.rb#775 + # pkg:gem/activerecord#lib/active_record/migration.rb:775 def load_schema!; end - # source://activerecord//lib/active_record/migration.rb#757 + # pkg:gem/activerecord#lib/active_record/migration.rb:757 def pending_migrations; end end end @@ -25041,19 +23207,17 @@ end # This class is used to verify that all migrations have been run before # loading a web page if config.active_record.migration_error is set to +:page_load+. # -# source://activerecord//lib/active_record/migration.rb#647 +# pkg:gem/activerecord#lib/active_record/migration.rb:647 class ActiveRecord::Migration::CheckPending - # @return [CheckPending] a new instance of CheckPending - # - # source://activerecord//lib/active_record/migration.rb#648 + # pkg:gem/activerecord#lib/active_record/migration.rb:648 def initialize(app, file_watcher: T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#655 + # pkg:gem/activerecord#lib/active_record/migration.rb:655 def call(env); end private - # source://activerecord//lib/active_record/migration.rb#674 + # pkg:gem/activerecord#lib/active_record/migration.rb:674 def build_watcher(&block); end end @@ -25100,129 +23264,115 @@ end # * rename_index # * rename_table # -# source://activerecord//lib/active_record/migration/command_recorder.rb#47 +# pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:47 class ActiveRecord::Migration::CommandRecorder include ::ActiveRecord::Migration::JoinTable include ::ActiveRecord::Migration::CommandRecorder::StraightReversions - # @return [CommandRecorder] a new instance of CommandRecorder - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#67 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:67 def initialize(delegate = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_belongs_to(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:133 + def add_belongs_to(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_check_constraint(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_check_constraint(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_column(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_column(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_enum_value(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_enum_value(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_exclusion_constraint(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_exclusion_constraint(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_foreign_key(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_foreign_key(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_index(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_index(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_reference(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_reference(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_timestamps(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_timestamps(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def add_unique_constraint(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def add_unique_constraint(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def change_column(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def change_column(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def change_column_comment(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def change_column_comment(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def change_column_default(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def change_column_default(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def change_column_null(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def change_column_null(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#136 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:136 def change_table(table_name, **options); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def change_table_comment(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def change_table_comment(*args, **, &block); end - # Returns the value of attribute commands. - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#65 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:65 def commands; end - # Sets the attribute commands - # - # @param value the value to set the attribute commands to. - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#65 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:65 def commands=(_arg0); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def create_enum(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def create_enum(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def create_join_table(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def create_join_table(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def create_schema(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def create_schema(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def create_table(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def create_table(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def create_virtual_table(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def create_virtual_table(*args, **, &block); end - # Returns the value of attribute delegate. - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#65 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:65 def delegate; end - # Sets the attribute delegate - # - # @param value the value to set the attribute delegate to. - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#65 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:65 def delegate=(_arg0); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def disable_extension(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def disable_extension(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def drop_enum(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def drop_enum(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def drop_join_table(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def drop_join_table(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def drop_schema(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def drop_schema(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def drop_table(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def drop_table(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def drop_virtual_table(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def drop_virtual_table(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def enable_extension(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def enable_extension(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def execute(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def execute(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def execute_block(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def execute_block(*args, **, &block); end # Returns the inverse of the given command. For example: # @@ -25237,15 +23387,13 @@ class ActiveRecord::Migration::CommandRecorder # This method will raise an +IrreversibleMigration+ exception if it cannot # invert the +command+. # - # @raise [IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#114 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:114 def inverse_of(command, args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:269 def invert_add_belongs_to(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:270 def invert_remove_belongs_to(args, &block); end # Record +command+. +command+ should be a method name and arguments. @@ -25253,55 +23401,55 @@ class ActiveRecord::Migration::CommandRecorder # # recorder.record(:method_name, [:arg1, :arg2]) # - # source://activerecord//lib/active_record/migration/command_recorder.rb#94 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:94 def record(*command, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_belongs_to(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:134 + def remove_belongs_to(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_check_constraint(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_check_constraint(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_column(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_column(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_columns(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_columns(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_exclusion_constraint(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_exclusion_constraint(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_foreign_key(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_foreign_key(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_index(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_index(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_reference(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_reference(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_timestamps(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_timestamps(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def remove_unique_constraint(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def remove_unique_constraint(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def rename_column(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def rename_column(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def rename_enum(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def rename_enum(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def rename_enum_value(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def rename_enum_value(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def rename_index(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def rename_index(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def rename_table(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def rename_table(*args, **, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#148 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:148 def replay(migration); end # While executing the given block, the recorded will be in reverting mode. @@ -25312,521 +23460,493 @@ class ActiveRecord::Migration::CommandRecorder # recorder.revert{ recorder.record(:rename_table, [:old, :new]) } # # same effect as recorder.record(:rename_table, [:new, :old]) # - # source://activerecord//lib/active_record/migration/command_recorder.rb#80 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:80 def revert; end - # Returns the value of attribute reverting. - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#65 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:65 def reverting; end - # Sets the attribute reverting - # - # @param value the value to set the attribute reverting to. - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#65 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:65 def reverting=(_arg0); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#127 - def transaction(*args, **_arg1, &block); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:126 + def transaction(*args, **, &block); end private - # source://activerecord//lib/active_record/migration/command_recorder.rb#326 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:326 def invert_add_check_constraint(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#287 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:287 def invert_add_foreign_key(args); end - # @raise [ActiveRecord::IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#348 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:348 def invert_add_unique_constraint(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#306 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:306 def invert_change_column_comment(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#272 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:272 def invert_change_column_default(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#282 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:282 def invert_change_column_null(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#316 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:316 def invert_change_table_comment(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#197 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:197 def invert_create_table(args, &block); end - # @raise [ActiveRecord::IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#362 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:362 def invert_drop_enum(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#204 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:204 def invert_drop_table(args, &block); end - # @raise [ActiveRecord::IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#389 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:389 def invert_drop_virtual_table(args); end - # @raise [ActiveRecord::IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#334 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:334 def invert_remove_check_constraint(args); end - # @raise [ActiveRecord::IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#228 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:228 def invert_remove_column(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#233 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:233 def invert_remove_columns(args); end - # @raise [ActiveRecord::IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#343 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:343 def invert_remove_exclusion_constraint(args); end - # @raise [ActiveRecord::IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#292 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:292 def invert_remove_foreign_key(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#251 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:251 def invert_remove_index(args); end - # @raise [ActiveRecord::IrreversibleMigration] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#355 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:355 def invert_remove_unique_constraint(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#246 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:246 def invert_rename_column(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#368 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:368 def invert_rename_enum(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#378 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:378 def invert_rename_enum_value(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#241 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:241 def invert_rename_index(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#221 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:221 def invert_rename_table(args); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#186 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:186 def invert_transaction(args, &block); end # Forwards any missing method call to the \target. # - # source://activerecord//lib/active_record/migration/command_recorder.rb#400 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:400 + def method_missing(method, *, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration/command_recorder.rb#395 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:395 def respond_to_missing?(method, _); end end -# source://activerecord//lib/active_record/migration/command_recorder.rb#48 +# pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:48 ActiveRecord::Migration::CommandRecorder::ReversibleAndIrreversibleMethods = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/migration/command_recorder.rb#155 +# pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:155 module ActiveRecord::Migration::CommandRecorder::StraightReversions - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_add_check_constraint(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_add_column(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_add_exclusion_constraint(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_add_foreign_key(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_add_index(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_add_reference(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_add_timestamps(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_add_unique_constraint(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_create_enum(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_create_join_table(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_create_schema(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_create_table(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_create_virtual_table(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_disable_extension(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_drop_enum(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_drop_join_table(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_drop_schema(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_drop_table(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_drop_virtual_table(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_enable_extension(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_execute_block(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_remove_check_constraint(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_remove_column(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_remove_exclusion_constraint(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_remove_foreign_key(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_remove_index(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_remove_reference(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_remove_timestamps(args, &block); end - # source://activerecord//lib/active_record/migration/command_recorder.rb#176 + # pkg:gem/activerecord#lib/active_record/migration/command_recorder.rb:175 def invert_remove_unique_constraint(args, &block); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#5 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:5 module ActiveRecord::Migration::Compatibility class << self - # source://activerecord//lib/active_record/migration/compatibility.rb#6 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:6 def find(version); end end end -# source://activerecord//lib/active_record/migration/compatibility.rb#416 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:416 class ActiveRecord::Migration::Compatibility::V4_2 < ::ActiveRecord::Migration::Compatibility::V5_0 - # source://activerecord//lib/active_record/migration/compatibility.rb#434 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:438 def add_belongs_to(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#434 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:434 def add_reference(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#440 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:440 def add_timestamps(table_name, **options); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration/compatibility.rb#445 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:445 def index_exists?(table_name, column_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#456 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:456 def remove_index(table_name, column_name = T.unsafe(nil), **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#462 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:462 def compatible_table_definition(t); end - # source://activerecord//lib/active_record/migration/compatibility.rb#469 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:469 def index_name_for_remove(table_name, column_name, options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#417 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:417 module ActiveRecord::Migration::Compatibility::V4_2::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#418 - def belongs_to(*_arg0, **options); end + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:422 + def belongs_to(*, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#418 - def references(*_arg0, **options); end + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:418 + def references(*, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#424 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:424 def timestamps(**options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#430 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:430 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#347 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:347 class ActiveRecord::Migration::Compatibility::V5_0 < ::ActiveRecord::Migration::Compatibility::V5_1 - # source://activerecord//lib/active_record/migration/compatibility.rb#402 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:405 def add_belongs_to(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#392 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:392 def add_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#402 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:402 def add_reference(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#387 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:387 def create_join_table(table_1, table_2, column_options: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#364 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:364 def create_table(table_name, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#408 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:408 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#348 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:348 module ActiveRecord::Migration::Compatibility::V5_0::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#354 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:357 def belongs_to(*args, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#349 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:349 def primary_key(name, type = T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#354 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:354 def references(*args, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#360 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:360 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#326 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:326 class ActiveRecord::Migration::Compatibility::V5_1 < ::ActiveRecord::Migration::Compatibility::V5_2 - # source://activerecord//lib/active_record/migration/compatibility.rb#327 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:327 def change_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#338 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:338 def create_table(table_name, **options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#270 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:270 class ActiveRecord::Migration::Compatibility::V5_2 < ::ActiveRecord::Migration::Compatibility::V6_0 - # source://activerecord//lib/active_record/migration/compatibility.rb#304 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:304 def add_timestamps(table_name, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#317 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:317 def command_recorder; end - # source://activerecord//lib/active_record/migration/compatibility.rb#310 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:310 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#290 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:290 module ActiveRecord::Migration::Compatibility::V5_2::CommandRecorder - # source://activerecord//lib/active_record/migration/compatibility.rb#295 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:295 def invert_change_column_comment(args); end - # source://activerecord//lib/active_record/migration/compatibility.rb#299 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:299 def invert_change_table_comment(args); end - # source://activerecord//lib/active_record/migration/compatibility.rb#291 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:291 def invert_transaction(args, &block); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#271 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:271 module ActiveRecord::Migration::Compatibility::V5_2::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#277 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:277 def column(name, type, index: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#272 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:272 def timestamps(**options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#286 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:286 def raise_on_duplicate_column(name); end - # source://activerecord//lib/active_record/migration/compatibility.rb#283 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:283 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#227 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:227 class ActiveRecord::Migration::Compatibility::V6_0 < ::ActiveRecord::Migration::Compatibility::V6_1 - # source://activerecord//lib/active_record/migration/compatibility.rb#251 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:259 def add_belongs_to(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#251 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:251 def add_reference(table_name, ref_name, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#262 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:262 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#228 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:228 class ActiveRecord::Migration::Compatibility::V6_0::ReferenceDefinition < ::ActiveRecord::ConnectionAdapters::ReferenceDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#229 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:229 def index_options(table_name); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#234 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:234 module ActiveRecord::Migration::Compatibility::V6_0::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#235 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:239 def belongs_to(*args, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#241 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:241 def column(name, type, index: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#235 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:235 def references(*args, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#247 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:247 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#164 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:164 class ActiveRecord::Migration::Compatibility::V6_1 < ::ActiveRecord::Migration::Compatibility::V7_0 - # source://activerecord//lib/active_record/migration/compatibility.rb#179 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:179 def add_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#188 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:188 def change_column(table_name, column_name, type, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#219 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:219 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#165 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:165 class ActiveRecord::Migration::Compatibility::V6_1::PostgreSQLCompat class << self - # source://activerecord//lib/active_record/migration/compatibility.rb#166 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:166 def compatible_timestamp_type(type, connection); end end end -# source://activerecord//lib/active_record/migration/compatibility.rb#197 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:197 module ActiveRecord::Migration::Compatibility::V6_1::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#203 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:203 def change(name, type, index: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#208 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:208 def column(name, type, index: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#198 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:198 def new_column_definition(name, type, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#214 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:214 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#40 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:40 class ActiveRecord::Migration::Compatibility::V7_0 < ::ActiveRecord::Migration::Compatibility::V7_1 include ::ActiveRecord::Migration::Compatibility::V7_0::LegacyIndexName - # source://activerecord//lib/active_record/migration/compatibility.rb#110 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:114 def add_belongs_to(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#100 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:100 def add_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#148 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:148 def add_foreign_key(from_table, to_table, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#105 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:105 def add_index(table_name, column_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#110 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:110 def add_reference(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#129 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:129 def change_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#137 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:137 def change_column_null(table_name, column_name, null, default = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration/compatibility.rb#116 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:116 def create_table(table_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#141 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:141 def disable_extension(name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#123 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:123 def rename_table(table_name, new_name, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#156 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:156 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#41 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:41 module ActiveRecord::Migration::Compatibility::V7_0::LegacyIndexName private - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration/compatibility.rb#65 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:65 def expression_column_name?(column_name); end - # source://activerecord//lib/active_record/migration/compatibility.rb#57 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:57 def index_name_options(column_names); end - # source://activerecord//lib/active_record/migration/compatibility.rb#43 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:43 def legacy_index_name(table_name, options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#70 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:70 module ActiveRecord::Migration::Compatibility::V7_0::TableDefinition include ::ActiveRecord::Migration::Compatibility::V7_0::LegacyIndexName - # source://activerecord//lib/active_record/migration/compatibility.rb#78 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:78 def change(name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#73 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:73 def column(name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#83 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:83 def index(column_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#88 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:88 def references(*args, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#94 + # pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:94 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#37 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:37 class ActiveRecord::Migration::Compatibility::V7_1 < ::ActiveRecord::Migration::Compatibility::V7_2; end -# source://activerecord//lib/active_record/migration/compatibility.rb#34 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:34 class ActiveRecord::Migration::Compatibility::V7_2 < ::ActiveRecord::Migration::Current; end # This file exists to ensure that old migrations run the same way they did before a Rails upgrade. @@ -25846,45 +23966,43 @@ class ActiveRecord::Migration::Compatibility::V7_2 < ::ActiveRecord::Migration:: # class sets the value of `precision` to `nil` if it's not explicitly provided. This way, the default value will not apply # for migrations written for 5.2, but will for migrations written for 6.0. # -# source://activerecord//lib/active_record/migration/compatibility.rb#32 +# pkg:gem/activerecord#lib/active_record/migration/compatibility.rb:32 ActiveRecord::Migration::Compatibility::V8_0 = ActiveRecord::Migration::Current # This must be defined before the inherited hook, below # -# source://activerecord//lib/active_record/migration.rb#578 +# pkg:gem/activerecord#lib/active_record/migration.rb:578 class ActiveRecord::Migration::Current < ::ActiveRecord::Migration - # source://activerecord//lib/active_record/migration.rb#587 + # pkg:gem/activerecord#lib/active_record/migration.rb:587 def change_table(table_name, **options); end - # source://activerecord//lib/active_record/migration.rb#611 + # pkg:gem/activerecord#lib/active_record/migration.rb:611 def compatible_table_definition(t); end - # source://activerecord//lib/active_record/migration.rb#595 + # pkg:gem/activerecord#lib/active_record/migration.rb:595 def create_join_table(table_1, table_2, **options); end - # source://activerecord//lib/active_record/migration.rb#579 + # pkg:gem/activerecord#lib/active_record/migration.rb:579 def create_table(table_name, **options); end - # source://activerecord//lib/active_record/migration.rb#603 + # pkg:gem/activerecord#lib/active_record/migration.rb:603 def drop_table(*table_names, **options); end end # The default strategy for executing migrations. Delegates method calls # to the connection adapter. # -# source://activerecord//lib/active_record/migration/default_strategy.rb#7 +# pkg:gem/activerecord#lib/active_record/migration/default_strategy.rb:7 class ActiveRecord::Migration::DefaultStrategy < ::ActiveRecord::Migration::ExecutionStrategy private - # source://activerecord//lib/active_record/migration/default_strategy.rb#17 + # pkg:gem/activerecord#lib/active_record/migration/default_strategy.rb:17 def connection; end - # source://activerecord//lib/active_record/migration/default_strategy.rb#9 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activerecord#lib/active_record/migration/default_strategy.rb:9 + def method_missing(method, *, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration/default_strategy.rb#13 + # pkg:gem/activerecord#lib/active_record/migration/default_strategy.rb:13 def respond_to_missing?(method, include_private = T.unsafe(nil)); end end @@ -25894,59 +24012,59 @@ end # # The ExecutionStrategy receives the current +migration+ when initialized. # -# source://activerecord//lib/active_record/migration/execution_strategy.rb#10 +# pkg:gem/activerecord#lib/active_record/migration/execution_strategy.rb:10 class ActiveRecord::Migration::ExecutionStrategy - # @return [ExecutionStrategy] a new instance of ExecutionStrategy - # - # source://activerecord//lib/active_record/migration/execution_strategy.rb#11 + # pkg:gem/activerecord#lib/active_record/migration/execution_strategy.rb:11 def initialize(migration); end private - # Returns the value of attribute migration. - # - # source://activerecord//lib/active_record/migration/execution_strategy.rb#16 + # pkg:gem/activerecord#lib/active_record/migration/execution_strategy.rb:16 def migration; end end -# source://activerecord//lib/active_record/migration/join_table.rb#5 +# pkg:gem/activerecord#lib/active_record/migration/join_table.rb:5 module ActiveRecord::Migration::JoinTable private - # source://activerecord//lib/active_record/migration/join_table.rb#7 + # pkg:gem/activerecord#lib/active_record/migration/join_table.rb:7 def find_join_table_name(table_1, table_2, options = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration/join_table.rb#11 + # pkg:gem/activerecord#lib/active_record/migration/join_table.rb:11 def join_table_name(table_1, table_2); end end -# source://activerecord//lib/active_record/migration.rb#636 +# pkg:gem/activerecord#lib/active_record/migration.rb:636 ActiveRecord::Migration::MigrationFilenameRegexp = T.let(T.unsafe(nil), Regexp) -# source://activerecord//lib/active_record/migration.rb#872 +# pkg:gem/activerecord#lib/active_record/migration.rb:872 class ActiveRecord::Migration::ReversibleBlockHelper < ::Struct - # source://activerecord//lib/active_record/migration.rb#877 + # pkg:gem/activerecord#lib/active_record/migration.rb:877 def down; end - # Returns the value of attribute reverting - # - # @return [Object] the current value of reverting + # pkg:gem/activerecord#lib/active_record/migration.rb:872 def reverting; end - # Sets the attribute reverting - # - # @param value [Object] the value to set the attribute reverting to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/migration.rb:872 def reverting=(_); end - # source://activerecord//lib/active_record/migration.rb#873 + # pkg:gem/activerecord#lib/active_record/migration.rb:873 def up; end class << self + # pkg:gem/activerecord#lib/active_record/migration.rb:872 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/migration.rb:872 def inspect; end + + # pkg:gem/activerecord#lib/active_record/migration.rb:872 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/migration.rb:872 def members; end + + # pkg:gem/activerecord#lib/active_record/migration.rb:872 def new(*_arg0); end end end @@ -25961,36 +24079,30 @@ end # a +SchemaMigration+ object per database. From the Rake tasks, \Rails will # handle this for you. # -# source://activerecord//lib/active_record/migration.rb#1210 +# pkg:gem/activerecord#lib/active_record/migration.rb:1210 class ActiveRecord::MigrationContext - # @return [MigrationContext] a new instance of MigrationContext - # - # source://activerecord//lib/active_record/migration.rb#1213 + # pkg:gem/activerecord#lib/active_record/migration.rb:1213 def initialize(migrations_paths, schema_migration = T.unsafe(nil), internal_metadata = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#1339 + # pkg:gem/activerecord#lib/active_record/migration.rb:1339 def current_environment; end - # source://activerecord//lib/active_record/migration.rb#1289 + # pkg:gem/activerecord#lib/active_record/migration.rb:1289 def current_version; end - # source://activerecord//lib/active_record/migration.rb#1263 + # pkg:gem/activerecord#lib/active_record/migration.rb:1263 def down(target_version = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/migration.rb#1249 + # pkg:gem/activerecord#lib/active_record/migration.rb:1249 def forward(steps = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#1281 + # pkg:gem/activerecord#lib/active_record/migration.rb:1281 def get_all_versions; end - # Returns the value of attribute internal_metadata. - # - # source://activerecord//lib/active_record/migration.rb#1211 + # pkg:gem/activerecord#lib/active_record/migration.rb:1211 def internal_metadata; end - # @raise [NoEnvironmentInSchemaError] - # - # source://activerecord//lib/active_record/migration.rb#1347 + # pkg:gem/activerecord#lib/active_record/migration.rb:1347 def last_stored_environment; end # Runs the migrations in the +migrations_path+. @@ -26007,331 +24119,278 @@ class ActiveRecord::MigrationContext # If none of the conditions are met, +up+ will be run with # the +target_version+. # - # source://activerecord//lib/active_record/migration.rb#1232 + # pkg:gem/activerecord#lib/active_record/migration.rb:1232 def migrate(target_version = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/migration.rb#1302 + # pkg:gem/activerecord#lib/active_record/migration.rb:1302 def migrations; end - # Returns the value of attribute migrations_paths. - # - # source://activerecord//lib/active_record/migration.rb#1211 + # pkg:gem/activerecord#lib/active_record/migration.rb:1211 def migrations_paths; end - # source://activerecord//lib/active_record/migration.rb#1318 + # pkg:gem/activerecord#lib/active_record/migration.rb:1318 def migrations_status; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1294 + # pkg:gem/activerecord#lib/active_record/migration.rb:1294 def needs_migration?; end - # source://activerecord//lib/active_record/migration.rb#1277 + # pkg:gem/activerecord#lib/active_record/migration.rb:1277 def open; end - # source://activerecord//lib/active_record/migration.rb#1298 + # pkg:gem/activerecord#lib/active_record/migration.rb:1298 def pending_migration_versions; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1343 + # pkg:gem/activerecord#lib/active_record/migration.rb:1343 def protected_environment?; end - # source://activerecord//lib/active_record/migration.rb#1245 + # pkg:gem/activerecord#lib/active_record/migration.rb:1245 def rollback(steps = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#1273 + # pkg:gem/activerecord#lib/active_record/migration.rb:1273 def run(direction, target_version); end - # Returns the value of attribute schema_migration. - # - # source://activerecord//lib/active_record/migration.rb#1211 + # pkg:gem/activerecord#lib/active_record/migration.rb:1211 def schema_migration; end - # source://activerecord//lib/active_record/migration.rb#1253 + # pkg:gem/activerecord#lib/active_record/migration.rb:1253 def up(target_version = T.unsafe(nil), &block); end private - # source://activerecord//lib/active_record/migration.rb#1359 + # pkg:gem/activerecord#lib/active_record/migration.rb:1359 def connection; end - # source://activerecord//lib/active_record/migration.rb#1363 + # pkg:gem/activerecord#lib/active_record/migration.rb:1363 def connection_pool; end - # source://activerecord//lib/active_record/migration.rb#1367 + # pkg:gem/activerecord#lib/active_record/migration.rb:1367 def migration_files; end - # source://activerecord//lib/active_record/migration.rb#1384 + # pkg:gem/activerecord#lib/active_record/migration.rb:1384 def move(direction, steps); end - # source://activerecord//lib/active_record/migration.rb#1372 + # pkg:gem/activerecord#lib/active_record/migration.rb:1372 def parse_migration_filename(filename); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1380 + # pkg:gem/activerecord#lib/active_record/migration.rb:1380 def valid_migration_timestamp?(version); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1376 + # pkg:gem/activerecord#lib/active_record/migration.rb:1376 def validate_timestamp?; end end -# source://activerecord//lib/active_record/migration.rb#10 +# pkg:gem/activerecord#lib/active_record/migration.rb:10 class ActiveRecord::MigrationError < ::ActiveRecord::ActiveRecordError - # @return [MigrationError] a new instance of MigrationError - # - # source://activerecord//lib/active_record/migration.rb#11 + # pkg:gem/activerecord#lib/active_record/migration.rb:11 def initialize(message = T.unsafe(nil)); end end # MigrationProxy is used to defer loading of the actual migration classes # until they are needed # -# source://activerecord//lib/active_record/migration.rb#1176 +# pkg:gem/activerecord#lib/active_record/migration.rb:1176 class ActiveRecord::MigrationProxy < ::Struct - # @return [MigrationProxy] a new instance of MigrationProxy - # - # source://activerecord//lib/active_record/migration.rb#1177 + # pkg:gem/activerecord#lib/active_record/migration.rb:1177 def initialize(name, version, filename, scope); end - # source://activerecord//lib/active_record/migration.rb#1186 - def announce(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/migration.rb:1186 + def announce(*, **, &); end - # source://activerecord//lib/active_record/migration.rb#1182 + # pkg:gem/activerecord#lib/active_record/migration.rb:1182 def basename; end - # source://activerecord//lib/active_record/migration.rb#1186 - def disable_ddl_transaction(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/migration.rb:1186 + def disable_ddl_transaction(*, **, &); end - # Returns the value of attribute filename - # - # @return [Object] the current value of filename + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def filename; end - # Sets the attribute filename - # - # @param value [Object] the value to set the attribute filename to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def filename=(_); end - # source://activerecord//lib/active_record/migration.rb#1186 - def migrate(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/migration.rb:1186 + def migrate(*, **, &); end - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def name=(_); end - # Returns the value of attribute scope - # - # @return [Object] the current value of scope + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def scope; end - # Sets the attribute scope - # - # @param value [Object] the value to set the attribute scope to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def scope=(_); end - # Returns the value of attribute version - # - # @return [Object] the current value of version + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def version; end - # Sets the attribute version - # - # @param value [Object] the value to set the attribute version to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def version=(_); end - # source://activerecord//lib/active_record/migration.rb#1186 - def write(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/migration.rb:1186 + def write(*, **, &); end private - # source://activerecord//lib/active_record/migration.rb#1193 + # pkg:gem/activerecord#lib/active_record/migration.rb:1193 def load_migration; end - # source://activerecord//lib/active_record/migration.rb#1189 + # pkg:gem/activerecord#lib/active_record/migration.rb:1189 def migration; end class << self + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def inspect; end + + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def members; end + + # pkg:gem/activerecord#lib/active_record/migration.rb:1176 def new(*_arg0); end end end -# source://activerecord//lib/active_record/migration.rb#1404 +# pkg:gem/activerecord#lib/active_record/migration.rb:1404 class ActiveRecord::Migrator - # @return [Migrator] a new instance of Migrator - # - # source://activerecord//lib/active_record/migration.rb#1420 + # pkg:gem/activerecord#lib/active_record/migration.rb:1420 def initialize(direction, migrations, schema_migration, internal_metadata, target_version = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration.rb#1438 + # pkg:gem/activerecord#lib/active_record/migration.rb:1441 def current; end - # source://activerecord//lib/active_record/migration.rb#1438 + # pkg:gem/activerecord#lib/active_record/migration.rb:1438 def current_migration; end - # source://activerecord//lib/active_record/migration.rb#1434 + # pkg:gem/activerecord#lib/active_record/migration.rb:1434 def current_version; end - # source://activerecord//lib/active_record/migration.rb#1483 + # pkg:gem/activerecord#lib/active_record/migration.rb:1483 def load_migrated; end - # source://activerecord//lib/active_record/migration.rb#1451 + # pkg:gem/activerecord#lib/active_record/migration.rb:1451 def migrate; end - # source://activerecord//lib/active_record/migration.rb#1479 + # pkg:gem/activerecord#lib/active_record/migration.rb:1479 def migrated; end - # source://activerecord//lib/active_record/migration.rb#1470 + # pkg:gem/activerecord#lib/active_record/migration.rb:1470 def migrations; end - # source://activerecord//lib/active_record/migration.rb#1474 + # pkg:gem/activerecord#lib/active_record/migration.rb:1474 def pending_migrations; end - # source://activerecord//lib/active_record/migration.rb#1443 + # pkg:gem/activerecord#lib/active_record/migration.rb:1443 def run; end - # source://activerecord//lib/active_record/migration.rb#1459 + # pkg:gem/activerecord#lib/active_record/migration.rb:1459 def runnable; end private - # source://activerecord//lib/active_record/migration.rb#1488 + # pkg:gem/activerecord#lib/active_record/migration.rb:1488 def connection; end # Wrap the migration in a transaction only if supported by the adapter. # - # source://activerecord//lib/active_record/migration.rb#1584 + # pkg:gem/activerecord#lib/active_record/migration.rb:1584 def ddl_transaction(migration, &block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1579 + # pkg:gem/activerecord#lib/active_record/migration.rb:1579 def down?; end - # source://activerecord//lib/active_record/migration.rb#1527 + # pkg:gem/activerecord#lib/active_record/migration.rb:1527 def execute_migration_in_transaction(migration); end - # source://activerecord//lib/active_record/migration.rb#1549 + # pkg:gem/activerecord#lib/active_record/migration.rb:1549 def finish; end - # source://activerecord//lib/active_record/migration.rb#1616 + # pkg:gem/activerecord#lib/active_record/migration.rb:1616 def generate_migrator_advisory_lock_id; end # Return true if a valid version is not provided. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1523 + # pkg:gem/activerecord#lib/active_record/migration.rb:1523 def invalid_target?; end # Used for running multiple migrations up to or down to a certain value. # - # source://activerecord//lib/active_record/migration.rb#1502 + # pkg:gem/activerecord#lib/active_record/migration.rb:1502 def migrate_without_lock; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1518 + # pkg:gem/activerecord#lib/active_record/migration.rb:1518 def ran?(migration); end # Stores the current environment in the database. # - # source://activerecord//lib/active_record/migration.rb#1512 + # pkg:gem/activerecord#lib/active_record/migration.rb:1512 def record_environment; end - # source://activerecord//lib/active_record/migration.rb#1565 + # pkg:gem/activerecord#lib/active_record/migration.rb:1565 def record_version_state_after_migrating(version); end # Used for running a specific migration. # - # @raise [UnknownMigrationVersionError] - # - # source://activerecord//lib/active_record/migration.rb#1493 + # pkg:gem/activerecord#lib/active_record/migration.rb:1493 def run_without_lock; end - # source://activerecord//lib/active_record/migration.rb#1553 + # pkg:gem/activerecord#lib/active_record/migration.rb:1553 def start; end - # source://activerecord//lib/active_record/migration.rb#1545 + # pkg:gem/activerecord#lib/active_record/migration.rb:1545 def target; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1575 + # pkg:gem/activerecord#lib/active_record/migration.rb:1575 def up?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1596 + # pkg:gem/activerecord#lib/active_record/migration.rb:1596 def use_advisory_lock?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration.rb#1592 + # pkg:gem/activerecord#lib/active_record/migration.rb:1592 def use_transaction?(migration); end - # @raise [DuplicateMigrationNameError] - # - # source://activerecord//lib/active_record/migration.rb#1557 + # pkg:gem/activerecord#lib/active_record/migration.rb:1557 def validate(migrations); end - # source://activerecord//lib/active_record/migration.rb#1600 + # pkg:gem/activerecord#lib/active_record/migration.rb:1600 def with_advisory_lock; end class << self # For cases where a table doesn't exist like loading from schema cache # - # source://activerecord//lib/active_record/migration.rb#1409 + # pkg:gem/activerecord#lib/active_record/migration.rb:1409 def current_version; end - # Returns the value of attribute migrations_paths. - # - # source://activerecord//lib/active_record/migration.rb#1406 + # pkg:gem/activerecord#lib/active_record/migration.rb:1406 def migrations_paths; end - # Sets the attribute migrations_paths - # - # @param value the value to set the attribute migrations_paths to. - # - # source://activerecord//lib/active_record/migration.rb#1406 + # pkg:gem/activerecord#lib/active_record/migration.rb:1406 def migrations_paths=(_arg0); end end end -# source://activerecord//lib/active_record/migration.rb#1615 +# pkg:gem/activerecord#lib/active_record/migration.rb:1615 ActiveRecord::Migrator::MIGRATOR_SALT = T.let(T.unsafe(nil), Integer) # Raised when a foreign key constraint cannot be added because the column type does not match the referenced column type. # -# source://activerecord//lib/active_record/errors.rb#238 +# pkg:gem/activerecord#lib/active_record/errors.rb:238 class ActiveRecord::MismatchedForeignKey < ::ActiveRecord::StatementInvalid - # @return [MismatchedForeignKey] a new instance of MismatchedForeignKey - # - # source://activerecord//lib/active_record/errors.rb#239 + # pkg:gem/activerecord#lib/active_record/errors.rb:239 def initialize(message: T.unsafe(nil), sql: T.unsafe(nil), binds: T.unsafe(nil), table: T.unsafe(nil), foreign_key: T.unsafe(nil), target_table: T.unsafe(nil), primary_key: T.unsafe(nil), primary_key_column: T.unsafe(nil), query_parser: T.unsafe(nil), connection_pool: T.unsafe(nil)); end - # source://activerecord//lib/active_record/errors.rb#275 + # pkg:gem/activerecord#lib/active_record/errors.rb:275 def set_query(sql, binds); end end -# source://activerecord//lib/active_record/model_schema.rb#6 +# pkg:gem/activerecord#lib/active_record/model_schema.rb:6 module ActiveRecord::ModelSchema extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -26349,7 +24408,7 @@ module ActiveRecord::ModelSchema # music_artists, music_records => music_artists_records # music.artists, music.records => music.artists_records # - # source://activerecord//lib/active_record/model_schema.rb#196 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:196 def derive_join_table_name(first_table, second_table); end end @@ -26395,18 +24454,18 @@ module ActiveRecord::ModelSchema end end -# source://activerecord//lib/active_record/model_schema.rb#200 +# pkg:gem/activerecord#lib/active_record/model_schema.rb:200 module ActiveRecord::ModelSchema::ClassMethods - # source://activerecord//lib/active_record/model_schema.rb#436 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:436 def _returning_columns_for_insert(connection); end - # source://activerecord//lib/active_record/model_schema.rb#420 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:420 def attributes_builder; end # Returns a hash where the keys are column names and the values are # default values when instantiating the Active Record object for this table. # - # source://activerecord//lib/active_record/model_schema.rb#472 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:472 def column_defaults; end # Returns the column object for the named attribute. @@ -26423,36 +24482,36 @@ module ActiveRecord::ModelSchema::ClassMethods # person.column_for_attribute(:nothing) # # => #, ...> # - # source://activerecord//lib/active_record/model_schema.rb#463 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:463 def column_for_attribute(name); end # Returns an array of column names as strings. # - # source://activerecord//lib/active_record/model_schema.rb#478 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:478 def column_names; end - # source://activerecord//lib/active_record/model_schema.rb#432 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:432 def columns; end - # source://activerecord//lib/active_record/model_schema.rb#427 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:427 def columns_hash; end # Returns an array of column objects where the primary id, all columns ending in "_id" or "_count", # and columns used for single table inheritance have been removed. # - # source://activerecord//lib/active_record/model_schema.rb#489 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:489 def content_columns; end - # source://activerecord//lib/active_record/model_schema.rb#302 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:302 def full_table_name_prefix; end - # source://activerecord//lib/active_record/model_schema.rb#306 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:306 def full_table_name_suffix; end # The list of columns names the model should ignore. Ignored columns won't have attribute # accessors defined, and won't be referenced in SQL queries. # - # source://activerecord//lib/active_record/model_schema.rb#331 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:331 def ignored_columns; end # Sets the columns names the model should ignore. Ignored columns won't have attribute @@ -26487,46 +24546,44 @@ module ActiveRecord::ModelSchema::ClassMethods # user = Project.create!(name: "First Project") # user.category # => raises NoMethodError # - # source://activerecord//lib/active_record/model_schema.rb#366 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:366 def ignored_columns=(columns); end # Load the model's schema information either from the schema cache # or directly from the database. # - # source://activerecord//lib/active_record/model_schema.rb#534 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:534 def load_schema; end # Returns the next value that will be used as the primary key on # an insert statement. # - # source://activerecord//lib/active_record/model_schema.rb#411 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:411 def next_sequence_value; end # Determines if the primary key values should be selected from their # corresponding sequence before the insert statement. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/model_schema.rb#405 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:405 def prefetch_primary_key?; end # The array of names of environments where destructive actions should be prohibited. By default, # the value is ["production"]. # - # source://activerecord//lib/active_record/model_schema.rb#312 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:312 def protected_environments; end # Sets an array of names of environments where destructive actions should be prohibited. # - # source://activerecord//lib/active_record/model_schema.rb#321 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:321 def protected_environments=(environments); end # Returns a quoted version of the table name. # - # source://activerecord//lib/active_record/model_schema.rb#285 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:285 def quoted_table_name; end - # source://activerecord//lib/active_record/model_schema.rb#325 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:325 def real_inheritance_column=(value); end # Resets all the cached information about columns, which will cause them @@ -26556,18 +24613,18 @@ module ActiveRecord::ModelSchema::ClassMethods # end # end # - # source://activerecord//lib/active_record/model_schema.rb#523 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:523 def reset_column_information; end - # source://activerecord//lib/active_record/model_schema.rb#379 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:379 def reset_sequence_name; end # Computes the table name, (re)sets it internally, and returns it. # - # source://activerecord//lib/active_record/model_schema.rb#290 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:290 def reset_table_name; end - # source://activerecord//lib/active_record/model_schema.rb#371 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:371 def sequence_name; end # Sets the name of the sequence to use when generating ids to the given @@ -26585,17 +24642,15 @@ module ActiveRecord::ModelSchema::ClassMethods # self.sequence_name = "projectseq" # default would have been "project_seq" # end # - # source://activerecord//lib/active_record/model_schema.rb#398 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:398 def sequence_name=(value); end - # source://activerecord//lib/active_record/model_schema.rb#482 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:482 def symbol_column_to_string(name_symbol); end # Indicates whether the table associated with this class exists # - # @return [Boolean] - # - # source://activerecord//lib/active_record/model_schema.rb#416 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:416 def table_exists?; end # Guesses the table name (in forced lower-case) based on the name of the class in the @@ -26658,7 +24713,7 @@ module ActiveRecord::ModelSchema::ClassMethods # self.table_name = "mice" # end # - # source://activerecord//lib/active_record/model_schema.rb#260 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:260 def table_name; end # Sets the table name explicitly. Example: @@ -26667,44 +24722,42 @@ module ActiveRecord::ModelSchema::ClassMethods # self.table_name = "project" # end # - # source://activerecord//lib/active_record/model_schema.rb#270 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:270 def table_name=(value); end - # source://activerecord//lib/active_record/model_schema.rb#446 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:446 def yaml_encoder; end protected - # source://activerecord//lib/active_record/model_schema.rb#549 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:549 def initialize_load_schema_monitor; end - # source://activerecord//lib/active_record/model_schema.rb#553 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:553 def reload_schema_from_cache(recursive = T.unsafe(nil)); end private # Computes and returns a table name according to default conventions. # - # source://activerecord//lib/active_record/model_schema.rb#606 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:606 def compute_table_name; end - # source://activerecord//lib/active_record/model_schema.rb#574 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:574 def inherited(child_class); end - # source://activerecord//lib/active_record/model_schema.rb#587 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:587 def load_schema!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/model_schema.rb#583 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:583 def schema_loaded?; end - # source://activerecord//lib/active_record/model_schema.rb#622 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:622 def type_for_column(connection, column); end # Guesses the table name, but does not decorate it with prefix and suffix information. # - # source://activerecord//lib/active_record/model_schema.rb#600 + # pkg:gem/activerecord#lib/active_record/model_schema.rb:600 def undecorated_table_name(model_name); end end @@ -26713,20 +24766,16 @@ end # method. The exception has an +errors+ property that contains an array of AttributeAssignmentError # objects, each corresponding to the error while assigning to an attribute. # -# source://activerecord//lib/active_record/errors.rb#463 +# pkg:gem/activerecord#lib/active_record/errors.rb:463 class ActiveRecord::MultiparameterAssignmentErrors < ::ActiveRecord::ActiveRecordError - # @return [MultiparameterAssignmentErrors] a new instance of MultiparameterAssignmentErrors - # - # source://activerecord//lib/active_record/errors.rb#466 + # pkg:gem/activerecord#lib/active_record/errors.rb:466 def initialize(errors = T.unsafe(nil)); end - # Returns the value of attribute errors. - # - # source://activerecord//lib/active_record/errors.rb#464 + # pkg:gem/activerecord#lib/active_record/errors.rb:464 def errors; end end -# source://activerecord//lib/active_record/nested_attributes.rb#8 +# pkg:gem/activerecord#lib/active_record/nested_attributes.rb:8 module ActiveRecord::NestedAttributes extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -26740,14 +24789,12 @@ module ActiveRecord::NestedAttributes # # See ActionView::Helpers::FormHelper#fields_for for more info. # - # source://activerecord//lib/active_record/nested_attributes.rb#401 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:401 def _destroy; end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/nested_attributes.rb#614 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:614 def allow_destroy?(association_name); end # Assigns the given attributes to the collection association. @@ -26778,7 +24825,7 @@ module ActiveRecord::NestedAttributes # { id: '2', _destroy: true } # ]) # - # source://activerecord//lib/active_record/nested_attributes.rb#487 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:487 def assign_nested_attributes_for_collection_association(association_name, attributes_collection); end # Assigns the given attributes to the association. @@ -26795,13 +24842,13 @@ module ActiveRecord::NestedAttributes # update_only is true, and a :_destroy key set to a truthy value, # then the existing record will be marked for destruction. # - # source://activerecord//lib/active_record/nested_attributes.rb#423 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:423 def assign_nested_attributes_for_one_to_one_association(association_name, attributes); end # Updates a record with the +attributes+ or marks it for destruction if # +allow_destroy+ is +true+ and has_destroy_flag? returns +true+. # - # source://activerecord//lib/active_record/nested_attributes.rb#576 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:576 def assign_to_or_mark_for_destruction(record, attributes, allow_destroy); end # Determines if a record with the particular +attributes+ should be @@ -26810,7 +24857,7 @@ module ActiveRecord::NestedAttributes # # Returns false if there is a +destroy_flag+ on the attributes. # - # source://activerecord//lib/active_record/nested_attributes.rb#598 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:598 def call_reject_if(association_name, attributes); end # Takes in a limit and checks if the attributes_collection has too many @@ -26820,38 +24867,30 @@ module ActiveRecord::NestedAttributes # Raises TooManyRecords error if the attributes_collection is # larger than the limit. # - # source://activerecord//lib/active_record/nested_attributes.rb#556 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:556 def check_record_limit!(limit, attributes_collection); end - # source://activerecord//lib/active_record/nested_attributes.rb#624 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:624 def find_record_by_id(klass, records, id); end # Determines if a hash contains a truthy _destroy key. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/nested_attributes.rb#582 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:582 def has_destroy_flag?(hash); end - # @raise [RecordNotFound] - # - # source://activerecord//lib/active_record/nested_attributes.rb#618 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:618 def raise_nested_attributes_record_not_found!(association_name, record_id); end # Determines if a new record should be rejected by checking # has_destroy_flag? or if a :reject_if proc exists for this # association and evaluates to +true+. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/nested_attributes.rb#589 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:589 def reject_new_record?(association_name, attributes); end # Only take into account the destroy flag if :allow_destroy is true # - # @return [Boolean] - # - # source://activerecord//lib/active_record/nested_attributes.rb#610 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:610 def will_be_destroyed?(association_name, attributes); end module GeneratedClassMethods @@ -27150,7 +25189,7 @@ end # } # } # -# source://activerecord//lib/active_record/nested_attributes.rb#301 +# pkg:gem/activerecord#lib/active_record/nested_attributes.rb:301 module ActiveRecord::NestedAttributes::ClassMethods # Defines an attributes writer for the specified association(s). # @@ -27200,7 +25239,7 @@ module ActiveRecord::NestedAttributes::ClassMethods # # creates avatar_attributes= and posts_attributes= # accepts_nested_attributes_for :avatar, :posts, allow_destroy: true # - # source://activerecord//lib/active_record/nested_attributes.rb#351 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:351 def accepts_nested_attributes_for(*attr_names); end private @@ -27217,77 +25256,73 @@ module ActiveRecord::NestedAttributes::ClassMethods # the helper methods defined below. Makes it seem like the nested # associations are just regular associations. # - # source://activerecord//lib/active_record/nested_attributes.rb#386 + # pkg:gem/activerecord#lib/active_record/nested_attributes.rb:386 def generate_association_writer(association_name, type); end end -# source://activerecord//lib/active_record/nested_attributes.rb#302 +# pkg:gem/activerecord#lib/active_record/nested_attributes.rb:302 ActiveRecord::NestedAttributes::ClassMethods::REJECT_ALL_BLANK_PROC = T.let(T.unsafe(nil), Proc) -# source://activerecord//lib/active_record/nested_attributes.rb#9 +# pkg:gem/activerecord#lib/active_record/nested_attributes.rb:9 class ActiveRecord::NestedAttributes::TooManyRecords < ::ActiveRecord::ActiveRecordError; end # Attribute hash keys that should not be assigned as normal attributes. # These hash keys are nested attributes implementation details. # -# source://activerecord//lib/active_record/nested_attributes.rb#408 +# pkg:gem/activerecord#lib/active_record/nested_attributes.rb:408 ActiveRecord::NestedAttributes::UNASSIGNABLE_KEYS = T.let(T.unsafe(nil), Array) # Raised when a given database does not exist. # -# source://activerecord//lib/active_record/errors.rb#328 +# pkg:gem/activerecord#lib/active_record/errors.rb:328 class ActiveRecord::NoDatabaseError < ::ActiveRecord::StatementInvalid include ::ActiveSupport::ActionableError extend ::ActiveSupport::ActionableError::ClassMethods - # @return [NoDatabaseError] a new instance of NoDatabaseError - # - # source://activerecord//lib/active_record/errors.rb#335 + # pkg:gem/activerecord#lib/active_record/errors.rb:335 def initialize(message = T.unsafe(nil), connection_pool: T.unsafe(nil)); end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/errors.rb:329 def _actions; end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/errors.rb:329 def _actions=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/errors.rb:329 def _actions?; end class << self - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/errors.rb:329 def _actions; end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/errors.rb:329 def _actions=(value); end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/errors.rb:329 def _actions?; end - # source://activerecord//lib/active_record/errors.rb#340 + # pkg:gem/activerecord#lib/active_record/errors.rb:340 def db_error(db_name); end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/errors.rb:329 def __class_attr__actions; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/errors.rb:329 def __class_attr__actions=(new_value); end end end -# source://activerecord//lib/active_record/migration.rb#195 +# pkg:gem/activerecord#lib/active_record/migration.rb:195 class ActiveRecord::NoEnvironmentInSchemaError < ::ActiveRecord::MigrationError - # @return [NoEnvironmentInSchemaError] a new instance of NoEnvironmentInSchemaError - # - # source://activerecord//lib/active_record/migration.rb#196 + # pkg:gem/activerecord#lib/active_record/migration.rb:196 def initialize; end end # = Active Record No Touching # -# source://activerecord//lib/active_record/no_touching.rb#5 +# pkg:gem/activerecord#lib/active_record/no_touching.rb:5 module ActiveRecord::NoTouching extend ::ActiveSupport::Concern @@ -27300,34 +25335,30 @@ module ActiveRecord::NoTouching # Message.first.no_touching? # false # end # - # @return [Boolean] - # - # source://activerecord//lib/active_record/no_touching.rb#53 + # pkg:gem/activerecord#lib/active_record/no_touching.rb:53 def no_touching?; end - # source://activerecord//lib/active_record/no_touching.rb#61 - def touch(*_arg0, **_arg1); end + # pkg:gem/activerecord#lib/active_record/no_touching.rb:61 + def touch(*, **); end - # source://activerecord//lib/active_record/no_touching.rb#57 - def touch_later(*_arg0); end + # pkg:gem/activerecord#lib/active_record/no_touching.rb:57 + def touch_later(*); end class << self - # @return [Boolean] - # - # source://activerecord//lib/active_record/no_touching.rb#36 + # pkg:gem/activerecord#lib/active_record/no_touching.rb:36 def applied_to?(klass); end - # source://activerecord//lib/active_record/no_touching.rb#29 + # pkg:gem/activerecord#lib/active_record/no_touching.rb:29 def apply_to(klass); end private - # source://activerecord//lib/active_record/no_touching.rb#41 + # pkg:gem/activerecord#lib/active_record/no_touching.rb:41 def klasses; end end end -# source://activerecord//lib/active_record/no_touching.rb#8 +# pkg:gem/activerecord#lib/active_record/no_touching.rb:8 module ActiveRecord::NoTouching::ClassMethods # Lets you selectively disable calls to +touch+ for the # duration of a block. @@ -27343,11 +25374,11 @@ module ActiveRecord::NoTouching::ClassMethods # Message.first.touch # works, but does not touch the associated project # end # - # source://activerecord//lib/active_record/no_touching.rb#23 + # pkg:gem/activerecord#lib/active_record/no_touching.rb:23 def no_touching(&block); end end -# source://activerecord//lib/active_record/normalization.rb#4 +# pkg:gem/activerecord#lib/active_record/normalization.rb:4 module ActiveRecord::Normalization extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -27369,12 +25400,12 @@ module ActiveRecord::Normalization # legacy_user.email # => "cruise-control@example.com" # legacy_user.save # - # source://activerecord//lib/active_record/normalization.rb#26 + # pkg:gem/activerecord#lib/active_record/normalization.rb:26 def normalize_attribute(name); end private - # source://activerecord//lib/active_record/normalization.rb#112 + # pkg:gem/activerecord#lib/active_record/normalization.rb:112 def normalize_changed_in_place_attributes; end module GeneratedClassMethods @@ -27390,7 +25421,7 @@ module ActiveRecord::Normalization end end -# source://activerecord//lib/active_record/normalization.rb#31 +# pkg:gem/activerecord#lib/active_record/normalization.rb:31 module ActiveRecord::Normalization::ClassMethods # Normalizes a given +value+ using normalizations declared for +name+. # @@ -27403,7 +25434,7 @@ module ActiveRecord::Normalization::ClassMethods # User.normalize_value_for(:email, " CRUISE-CONTROL@EXAMPLE.COM\n") # # => "cruise-control@example.com" # - # source://activerecord//lib/active_record/normalization.rb#106 + # pkg:gem/activerecord#lib/active_record/normalization.rb:106 def normalize_value_for(name, value); end # Declares a normalization for one or more attributes. The normalization @@ -27463,137 +25494,124 @@ module ActiveRecord::Normalization::ClassMethods # # User.normalize_value_for(:phone, "+1 (555) 867-5309") # => "5558675309" # - # source://activerecord//lib/active_record/normalization.rb#88 + # pkg:gem/activerecord#lib/active_record/normalization.rb:88 def normalizes(*names, with:, apply_to_nil: T.unsafe(nil)); end end -# source://activerecord//lib/active_record/normalization.rb#118 +# pkg:gem/activerecord#lib/active_record/normalization.rb:118 class ActiveRecord::Normalization::NormalizedValueType include ::ActiveModel::Type::SerializeCastValue extend ::ActiveModel::Type::SerializeCastValue::ClassMethods - # @return [NormalizedValueType] a new instance of NormalizedValueType - # - # source://activerecord//lib/active_record/normalization.rb#124 + # pkg:gem/activerecord#lib/active_record/normalization.rb:124 def initialize(cast_type:, normalizer:, normalize_nil:); end - # source://activerecord//lib/active_record/normalization.rb#143 + # pkg:gem/activerecord#lib/active_record/normalization.rb:143 def ==(other); end - # source://activerecord//lib/active_record/normalization.rb#131 + # pkg:gem/activerecord#lib/active_record/normalization.rb:131 def cast(value); end - # Returns the value of attribute cast_type. - # - # source://activerecord//lib/active_record/normalization.rb#121 + # pkg:gem/activerecord#lib/active_record/normalization.rb:121 def cast_type; end - # source://activerecord//lib/active_record/normalization.rb#143 + # pkg:gem/activerecord#lib/active_record/normalization.rb:149 def eql?(other); end - # source://activerecord//lib/active_record/normalization.rb#151 + # pkg:gem/activerecord#lib/active_record/normalization.rb:151 def hash; end + # pkg:gem/activerecord#lib/active_record/normalization.rb:155 def inspect; end - # Returns the value of attribute normalize_nil. - # - # source://activerecord//lib/active_record/normalization.rb#121 + # pkg:gem/activerecord#lib/active_record/normalization.rb:121 def normalize_nil; end - # Returns the value of attribute normalize_nil. - # - # source://activerecord//lib/active_record/normalization.rb#121 + # pkg:gem/activerecord#lib/active_record/normalization.rb:122 def normalize_nil?; end - # Returns the value of attribute normalizer. - # - # source://activerecord//lib/active_record/normalization.rb#121 + # pkg:gem/activerecord#lib/active_record/normalization.rb:121 def normalizer; end - # source://activerecord//lib/active_record/normalization.rb#135 + # pkg:gem/activerecord#lib/active_record/normalization.rb:135 def serialize(value); end - # source://activerecord//lib/active_record/normalization.rb#139 + # pkg:gem/activerecord#lib/active_record/normalization.rb:139 def serialize_cast_value(value); end private - # source://activerecord//lib/active_record/normalization.rb#158 + # pkg:gem/activerecord#lib/active_record/normalization.rb:158 def normalize(value); end end # Raised when a record cannot be inserted or updated because it would violate a not null constraint. # -# source://activerecord//lib/active_record/errors.rb#293 +# pkg:gem/activerecord#lib/active_record/errors.rb:293 class ActiveRecord::NotNullViolation < ::ActiveRecord::StatementInvalid; end -# source://activerecord//lib/active_record/migration/pending_migration_connection.rb#4 +# pkg:gem/activerecord#lib/active_record/migration/pending_migration_connection.rb:4 class ActiveRecord::PendingMigrationConnection class << self - # source://activerecord//lib/active_record/migration/pending_migration_connection.rb#17 + # pkg:gem/activerecord#lib/active_record/migration/pending_migration_connection.rb:17 def current_preventing_writes; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/migration/pending_migration_connection.rb#13 + # pkg:gem/activerecord#lib/active_record/migration/pending_migration_connection.rb:13 def primary_class?; end - # source://activerecord//lib/active_record/migration/pending_migration_connection.rb#5 + # pkg:gem/activerecord#lib/active_record/migration/pending_migration_connection.rb:5 def with_temporary_pool(db_config, &block); end end end -# source://activerecord//lib/active_record/migration.rb#147 +# pkg:gem/activerecord#lib/active_record/migration.rb:147 class ActiveRecord::PendingMigrationError < ::ActiveRecord::MigrationError include ::ActiveSupport::ActionableError extend ::ActiveSupport::ActionableError::ClassMethods - # @return [PendingMigrationError] a new instance of PendingMigrationError - # - # source://activerecord//lib/active_record/migration.rb#158 + # pkg:gem/activerecord#lib/active_record/migration.rb:158 def initialize(message = T.unsafe(nil), pending_migrations: T.unsafe(nil)); end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/migration.rb:148 def _actions; end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/migration.rb:148 def _actions=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/migration.rb:148 def _actions?; end private - # source://activerecord//lib/active_record/migration.rb#181 + # pkg:gem/activerecord#lib/active_record/migration.rb:181 def connection_pool; end - # source://activerecord//lib/active_record/migration.rb#167 + # pkg:gem/activerecord#lib/active_record/migration.rb:167 def detailed_migration_message(pending_migrations); end class << self - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/migration.rb:148 def _actions; end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/migration.rb:148 def _actions=(value); end - # source://activesupport/8.0.5.1/lib/active_support/actionable_error.rb#17 + # pkg:gem/activerecord#lib/active_record/migration.rb:148 def _actions?; end private - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 + # pkg:gem/activerecord#lib/active_record/migration.rb:148 def __class_attr__actions; end - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 + # pkg:gem/activerecord#lib/active_record/migration.rb:148 def __class_attr__actions=(new_value); end end end # = Active Record \Persistence # -# source://activerecord//lib/active_record/persistence.rb#7 +# pkg:gem/activerecord#lib/active_record/persistence.rb:7 module ActiveRecord::Persistence extend ::ActiveSupport::Concern @@ -27614,7 +25632,7 @@ module ActiveRecord::Persistence # # If you want to change the STI column as well, use #becomes! instead. # - # source://activerecord//lib/active_record/persistence.rb#487 + # pkg:gem/activerecord#lib/active_record/persistence.rb:487 def becomes(klass); end # Wrapper around #becomes that also changes the instance's STI column value. @@ -27624,14 +25642,14 @@ module ActiveRecord::Persistence # Note: The old instance's STI column value will be changed too, as both objects # share the same set of attributes. # - # source://activerecord//lib/active_record/persistence.rb#508 + # pkg:gem/activerecord#lib/active_record/persistence.rb:508 def becomes!(klass); end # Initializes +attribute+ to zero if +nil+ and subtracts the value passed as +by+ (default is 1). # The decrement is performed directly on the underlying attribute, no setter is invoked. # Only makes sense for number-based attributes. Returns +self+. # - # source://activerecord//lib/active_record/persistence.rb#655 + # pkg:gem/activerecord#lib/active_record/persistence.rb:655 def decrement(attribute, by = T.unsafe(nil)); end # Wrapper around #decrement that writes the update to the database. @@ -27641,7 +25659,7 @@ module ActiveRecord::Persistence # +update_counters+, see that for more. # Returns +self+. # - # source://activerecord//lib/active_record/persistence.rb#665 + # pkg:gem/activerecord#lib/active_record/persistence.rb:665 def decrement!(attribute, by = T.unsafe(nil), touch: T.unsafe(nil)); end # Deletes the record in the database and freezes this instance to @@ -27657,7 +25675,7 @@ module ActiveRecord::Persistence # callbacks or any :dependent association # options, use #destroy. # - # source://activerecord//lib/active_record/persistence.rb#439 + # pkg:gem/activerecord#lib/active_record/persistence.rb:439 def delete; end # Deletes the record in the database and freezes this instance to reflect @@ -27668,7 +25686,7 @@ module ActiveRecord::Persistence # and #destroy returns +false+. # See ActiveRecord::Callbacks for further details. # - # source://activerecord//lib/active_record/persistence.rb#453 + # pkg:gem/activerecord#lib/active_record/persistence.rb:453 def destroy; end # Deletes the record in the database and freezes this instance to reflect @@ -27679,21 +25697,19 @@ module ActiveRecord::Persistence # and #destroy! raises ActiveRecord::RecordNotDestroyed. # See ActiveRecord::Callbacks for further details. # - # source://activerecord//lib/active_record/persistence.rb#469 + # pkg:gem/activerecord#lib/active_record/persistence.rb:469 def destroy!; end # Returns true if this object has been destroyed, otherwise returns false. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/persistence.rb#355 + # pkg:gem/activerecord#lib/active_record/persistence.rb:355 def destroyed?; end # Initializes +attribute+ to zero if +nil+ and adds the value passed as +by+ (default is 1). # The increment is performed directly on the underlying attribute, no setter is invoked. # Only makes sense for number-based attributes. Returns +self+. # - # source://activerecord//lib/active_record/persistence.rb#632 + # pkg:gem/activerecord#lib/active_record/persistence.rb:632 def increment(attribute, by = T.unsafe(nil)); end # Wrapper around #increment that writes the update to the database. @@ -27703,39 +25719,31 @@ module ActiveRecord::Persistence # +update_counters+, see that for more. # Returns +self+. # - # source://activerecord//lib/active_record/persistence.rb#644 + # pkg:gem/activerecord#lib/active_record/persistence.rb:644 def increment!(attribute, by = T.unsafe(nil), touch: T.unsafe(nil)); end # Returns true if this object hasn't been saved yet -- that is, a record # for the object doesn't exist in the database yet; otherwise, returns false. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/persistence.rb#338 + # pkg:gem/activerecord#lib/active_record/persistence.rb:338 def new_record?; end # Returns true if the record is persisted, i.e. it's not a new record and it was # not destroyed, otherwise returns false. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/persistence.rb#361 + # pkg:gem/activerecord#lib/active_record/persistence.rb:361 def persisted?; end # Returns true if this object was just created -- that is, prior to the last # update or delete, the object didn't exist in the database and new_record? would have # returned true. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/persistence.rb#345 + # pkg:gem/activerecord#lib/active_record/persistence.rb:345 def previously_new_record?; end # Returns true if this object was previously persisted but now it has been deleted. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/persistence.rb#350 + # pkg:gem/activerecord#lib/active_record/persistence.rb:350 def previously_persisted?; end # Reloads the record from the database. @@ -27786,7 +25794,7 @@ module ActiveRecord::Persistence # end # end # - # source://activerecord//lib/active_record/persistence.rb#742 + # pkg:gem/activerecord#lib/active_record/persistence.rb:742 def reload(options = T.unsafe(nil)); end # :call-seq: @@ -27814,7 +25822,7 @@ module ActiveRecord::Persistence # Attributes marked as readonly are silently ignored if the record is # being updated. # - # source://activerecord//lib/active_record/persistence.rb#390 + # pkg:gem/activerecord#lib/active_record/persistence.rb:390 def save(**options, &block); end # :call-seq: @@ -27844,7 +25852,7 @@ module ActiveRecord::Persistence # # Unless an error is raised, returns true. # - # source://activerecord//lib/active_record/persistence.rb#423 + # pkg:gem/activerecord#lib/active_record/persistence.rb:423 def save!(**options, &block); end # Assigns to +attribute+ the boolean opposite of attribute?. So @@ -27859,7 +25867,7 @@ module ActiveRecord::Persistence # user.toggle(:banned) # user.banned? # => true # - # source://activerecord//lib/active_record/persistence.rb#681 + # pkg:gem/activerecord#lib/active_record/persistence.rb:681 def toggle(attribute); end # Wrapper around #toggle that saves the record. This method differs from @@ -27867,7 +25875,7 @@ module ActiveRecord::Persistence # Saving is not subjected to validation checks. Returns +true+ if the # record could be saved. # - # source://activerecord//lib/active_record/persistence.rb#690 + # pkg:gem/activerecord#lib/active_record/persistence.rb:690 def toggle!(attribute); end # Saves the record with the updated_at/on attributes set to the current time @@ -27904,20 +25912,20 @@ module ActiveRecord::Persistence # ball = Ball.new # ball.touch(:updated_at) # => raises ActiveRecordError # - # source://activerecord//lib/active_record/persistence.rb#793 + # pkg:gem/activerecord#lib/active_record/persistence.rb:793 def touch(*names, time: T.unsafe(nil)); end # Updates the attributes of the model from the passed-in hash and saves the # record, all wrapped in a transaction. If the object is invalid, the saving # will fail and false will be returned. # - # source://activerecord//lib/active_record/persistence.rb#563 + # pkg:gem/activerecord#lib/active_record/persistence.rb:563 def update(attributes); end # Updates its receiver just like #update but calls #save! instead # of +save+, so an exception is raised if the record is invalid and saving will fail. # - # source://activerecord//lib/active_record/persistence.rb#574 + # pkg:gem/activerecord#lib/active_record/persistence.rb:574 def update!(attributes); end # Updates a single attribute and saves the record. @@ -27933,7 +25941,7 @@ module ActiveRecord::Persistence # # Also see #update_column. # - # source://activerecord//lib/active_record/persistence.rb#530 + # pkg:gem/activerecord#lib/active_record/persistence.rb:530 def update_attribute(name, value); end # Updates a single attribute and saves the record. @@ -27951,12 +25959,12 @@ module ActiveRecord::Persistence # and #update_attribute! raises ActiveRecord::RecordNotSaved. See # ActiveRecord::Callbacks for further details. # - # source://activerecord//lib/active_record/persistence.rb#552 + # pkg:gem/activerecord#lib/active_record/persistence.rb:552 def update_attribute!(name, value); end # Equivalent to update_columns(name => value). # - # source://activerecord//lib/active_record/persistence.rb#584 + # pkg:gem/activerecord#lib/active_record/persistence.rb:584 def update_column(name, value); end # Updates the attributes directly in the database issuing an UPDATE SQL @@ -27976,9 +25984,7 @@ module ActiveRecord::Persistence # This method raises an ActiveRecord::ActiveRecordError when called on new # objects, or when at least one of the attributes is marked as readonly. # - # @raise [ActiveRecordError] - # - # source://activerecord//lib/active_record/persistence.rb#604 + # pkg:gem/activerecord#lib/active_record/persistence.rb:604 def update_columns(attributes); end private @@ -27986,89 +25992,75 @@ module ActiveRecord::Persistence # Creates a record with values matching those of the instance attributes # and returns its id. # - # @yield [_self] - # @yieldparam _self [ActiveRecord::Persistence] the object that the method was called on - # - # source://activerecord//lib/active_record/persistence.rb#920 + # pkg:gem/activerecord#lib/active_record/persistence.rb:920 def _create_record(attribute_names = T.unsafe(nil)); end - # source://activerecord//lib/active_record/persistence.rb#870 + # pkg:gem/activerecord#lib/active_record/persistence.rb:870 def _delete_row; end - # source://activerecord//lib/active_record/persistence.rb#826 + # pkg:gem/activerecord#lib/active_record/persistence.rb:826 def _find_record(options); end - # source://activerecord//lib/active_record/persistence.rb#837 + # pkg:gem/activerecord#lib/active_record/persistence.rb:837 def _in_memory_query_constraints_hash; end - # source://activerecord//lib/active_record/persistence.rb#852 + # pkg:gem/activerecord#lib/active_record/persistence.rb:852 def _query_constraints_hash; end - # @raise [ReadOnlyRecord] - # - # source://activerecord//lib/active_record/persistence.rb#957 + # pkg:gem/activerecord#lib/active_record/persistence.rb:957 def _raise_readonly_record_error; end - # source://activerecord//lib/active_record/persistence.rb#949 + # pkg:gem/activerecord#lib/active_record/persistence.rb:949 def _raise_record_not_destroyed; end - # @raise [ActiveRecordError] - # - # source://activerecord//lib/active_record/persistence.rb#961 + # pkg:gem/activerecord#lib/active_record/persistence.rb:961 def _raise_record_not_touched_error; end - # source://activerecord//lib/active_record/persistence.rb#874 + # pkg:gem/activerecord#lib/active_record/persistence.rb:874 def _touch_row(attribute_names, time); end # Updates the associated record with values matching those of the instance attributes. # Returns the number of affected rows. # - # @yield [_self] - # @yieldparam _self [ActiveRecord::Persistence] the object that the method was called on - # - # source://activerecord//lib/active_record/persistence.rb#900 + # pkg:gem/activerecord#lib/active_record/persistence.rb:900 def _update_record(attribute_names = T.unsafe(nil)); end - # source://activerecord//lib/active_record/persistence.rb#884 + # pkg:gem/activerecord#lib/active_record/persistence.rb:884 def _update_row(attribute_names, attempted_action = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/persistence.rb#847 + # pkg:gem/activerecord#lib/active_record/persistence.rb:847 def apply_scoping?(options); end - # source://activerecord//lib/active_record/persistence.rb#891 - def create_or_update(**_arg0, &block); end + # pkg:gem/activerecord#lib/active_record/persistence.rb:891 + def create_or_update(**, &block); end # A hook to be overridden by association modules. # - # source://activerecord//lib/active_record/persistence.rb#863 + # pkg:gem/activerecord#lib/active_record/persistence.rb:863 def destroy_associations; end - # source://activerecord//lib/active_record/persistence.rb#866 + # pkg:gem/activerecord#lib/active_record/persistence.rb:866 def destroy_row; end - # source://activerecord//lib/active_record/persistence.rb#814 + # pkg:gem/activerecord#lib/active_record/persistence.rb:814 def init_internals; end - # source://activerecord//lib/active_record/persistence.rb#820 + # pkg:gem/activerecord#lib/active_record/persistence.rb:820 def strict_loaded_associations; end - # @raise [ActiveRecordError] - # - # source://activerecord//lib/active_record/persistence.rb#945 + # pkg:gem/activerecord#lib/active_record/persistence.rb:945 def verify_readonly_attribute(name); end end -# source://activerecord//lib/active_record/persistence.rb#10 +# pkg:gem/activerecord#lib/active_record/persistence.rb:10 module ActiveRecord::Persistence::ClassMethods - # source://activerecord//lib/active_record/persistence.rb#282 + # pkg:gem/activerecord#lib/active_record/persistence.rb:282 def _delete_record(constraints); end - # source://activerecord//lib/active_record/persistence.rb#238 + # pkg:gem/activerecord#lib/active_record/persistence.rb:238 def _insert_record(connection, values, returning); end - # source://activerecord//lib/active_record/persistence.rb#263 + # pkg:gem/activerecord#lib/active_record/persistence.rb:263 def _update_record(values, constraints); end # Builds an object (or multiple objects) and returns either the built object or a list of built @@ -28094,14 +26086,14 @@ module ActiveRecord::Persistence::ClassMethods # u.is_admin = false # end # - # source://activerecord//lib/active_record/persistence.rb#82 + # pkg:gem/activerecord#lib/active_record/persistence.rb:82 def build(attributes = T.unsafe(nil), &block); end # Returns an array of column names to be used in queries. The source of column # names is derived from +query_constraints_list+ or +primary_key+. This method # is for internal use when the primary key is to be treated as an array. # - # source://activerecord//lib/active_record/persistence.rb#234 + # pkg:gem/activerecord#lib/active_record/persistence.rb:234 def composite_query_constraints_list; end # Creates an object (or multiple objects) and saves it to the database, if validations pass. @@ -28127,7 +26119,7 @@ module ActiveRecord::Persistence::ClassMethods # u.is_admin = false # end # - # source://activerecord//lib/active_record/persistence.rb#33 + # pkg:gem/activerecord#lib/active_record/persistence.rb:33 def create(attributes = T.unsafe(nil), &block); end # Creates an object (or multiple objects) and saves it to the database, @@ -28138,12 +26130,10 @@ module ActiveRecord::Persistence::ClassMethods # These describe which attributes to be created on the object, or # multiple objects when given an Array of Hashes. # - # source://activerecord//lib/active_record/persistence.rb#50 + # pkg:gem/activerecord#lib/active_record/persistence.rb:50 def create!(attributes = T.unsafe(nil), &block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/persistence.rb#219 + # pkg:gem/activerecord#lib/active_record/persistence.rb:219 def has_query_constraints?; end # Given an attributes hash, +instantiate+ returns a new instance of @@ -28157,7 +26147,7 @@ module ActiveRecord::Persistence::ClassMethods # See ActiveRecord::Inheritance#discriminate_class_for_record to see # how this "single-table" inheritance mapping is implemented. # - # source://activerecord//lib/active_record/persistence.rb#100 + # pkg:gem/activerecord#lib/active_record/persistence.rb:100 def instantiate(attributes, column_types = T.unsafe(nil), &block); end # Accepts a list of attribute names to be used in the WHERE clause @@ -28191,12 +26181,10 @@ module ActiveRecord::Persistence::ClassMethods # developer.reload # # SELECT "developers".* FROM "developers" WHERE "developers"."company_id" = 1 AND "developers"."id" = 1 LIMIT 1 # - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/persistence.rb#212 + # pkg:gem/activerecord#lib/active_record/persistence.rb:212 def query_constraints(*columns_list); end - # source://activerecord//lib/active_record/persistence.rb#223 + # pkg:gem/activerecord#lib/active_record/persistence.rb:223 def query_constraints_list; end # Updates an object (or multiple objects) and saves it to the database, if validations pass. @@ -28227,13 +26215,13 @@ module ActiveRecord::Persistence::ClassMethods # it is preferred to use {update_all}[rdoc-ref:Relation#update_all] # for updating all records in a single query. # - # source://activerecord//lib/active_record/persistence.rb#132 + # pkg:gem/activerecord#lib/active_record/persistence.rb:132 def update(id = T.unsafe(nil), attributes); end # Updates the object (or multiple objects) just like #update but calls #update! instead # of +update+, so an exception is raised if the record is invalid and saving will fail. # - # source://activerecord//lib/active_record/persistence.rb#158 + # pkg:gem/activerecord#lib/active_record/persistence.rb:158 def update!(id = T.unsafe(nil), attributes); end private @@ -28242,7 +26230,7 @@ module ActiveRecord::Persistence::ClassMethods # to build `where` clause from default scopes. # Skips empty scopes. # - # source://activerecord//lib/active_record/persistence.rb#328 + # pkg:gem/activerecord#lib/active_record/persistence.rb:328 def build_default_constraint; end # Called by +instantiate+ to decide which class to use for a new @@ -28251,36 +26239,34 @@ module ActiveRecord::Persistence::ClassMethods # See +ActiveRecord::Inheritance#discriminate_class_for_record+ for # the single-table inheritance discriminator. # - # source://activerecord//lib/active_record/persistence.rb#321 + # pkg:gem/activerecord#lib/active_record/persistence.rb:321 def discriminate_class_for_record(record); end - # source://activerecord//lib/active_record/persistence.rb#301 + # pkg:gem/activerecord#lib/active_record/persistence.rb:301 def inherited(subclass); end # Given a class, an attributes hash, +instantiate_instance_of+ returns a # new instance of the class. Accepts only keys as strings. # - # source://activerecord//lib/active_record/persistence.rb#311 + # pkg:gem/activerecord#lib/active_record/persistence.rb:311 def instantiate_instance_of(klass, attributes, column_types = T.unsafe(nil), &block); end end -# source://activerecord//lib/active_record/relation/predicate_builder.rb#4 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:4 class ActiveRecord::PredicateBuilder - # @return [PredicateBuilder] a new instance of PredicateBuilder - # - # source://activerecord//lib/active_record/relation/predicate_builder.rb#12 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:12 def initialize(table); end - # source://activerecord//lib/active_record/relation/predicate_builder.rb#53 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:53 def [](attr_name, value, operator = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/predicate_builder.rb#57 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:57 def build(attribute, value, operator = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/predicate_builder.rb#67 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:67 def build_bind_attribute(column_name, value); end - # source://activerecord//lib/active_record/relation/predicate_builder.rb#23 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:23 def build_from_hash(attributes, &block); end # Define how a class is converted to Arel nodes when passed to +where+. @@ -28295,242 +26281,205 @@ class ActiveRecord::PredicateBuilder # end # ActiveRecord::PredicateBuilder.new("users").register_handler(MyCustomDateRange, handler) # - # source://activerecord//lib/active_record/relation/predicate_builder.rb#49 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:49 def register_handler(klass, handler); end - # source://activerecord//lib/active_record/relation/predicate_builder.rb#71 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:71 def resolve_arel_attribute(table_name, column_name, &block); end - # source://activerecord//lib/active_record/relation/predicate_builder.rb#75 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:75 def with(table); end protected - # source://activerecord//lib/active_record/relation/predicate_builder.rb#84 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:84 def expand_from_hash(attributes, &block); end - # Sets the attribute table - # - # @param value the value to set the attribute table to. - # - # source://activerecord//lib/active_record/relation/predicate_builder.rb#82 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:82 def table=(_arg0); end private - # source://activerecord//lib/active_record/relation/predicate_builder.rb#163 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:163 def convert_dot_notation_to_hash(attributes); end - # source://activerecord//lib/active_record/relation/predicate_builder.rb#153 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:153 def grouping_queries(queries); end - # source://activerecord//lib/active_record/relation/predicate_builder.rb#185 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:185 def handler_for(object); end - # Returns the value of attribute table. - # - # source://activerecord//lib/active_record/relation/predicate_builder.rb#151 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:151 def table; end class << self - # source://activerecord//lib/active_record/relation/predicate_builder.rb#28 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder.rb:28 def references(attributes); end end end -# source://activerecord//lib/active_record/relation/predicate_builder/array_handler.rb#7 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder/array_handler.rb:7 class ActiveRecord::PredicateBuilder::ArrayHandler - # @return [ArrayHandler] a new instance of ArrayHandler - # - # source://activerecord//lib/active_record/relation/predicate_builder/array_handler.rb#8 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/array_handler.rb:8 def initialize(predicate_builder); end - # source://activerecord//lib/active_record/relation/predicate_builder/array_handler.rb#12 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/array_handler.rb:12 def call(attribute, value); end private - # Returns the value of attribute predicate_builder. - # - # source://activerecord//lib/active_record/relation/predicate_builder/array_handler.rb#41 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/array_handler.rb:41 def predicate_builder; end end -# source://activerecord//lib/active_record/relation/predicate_builder/array_handler.rb#43 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder/array_handler.rb:43 module ActiveRecord::PredicateBuilder::ArrayHandler::NullPredicate class << self - # source://activerecord//lib/active_record/relation/predicate_builder/array_handler.rb#44 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/array_handler.rb:44 def or(other); end end end -# source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#5 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:5 class ActiveRecord::PredicateBuilder::AssociationQueryValue - # @return [AssociationQueryValue] a new instance of AssociationQueryValue - # - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#6 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:6 def initialize(associated_table, value); end - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#11 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:11 def queries; end private - # Returns the value of attribute associated_table. - # - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#23 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:23 def associated_table; end - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#59 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:59 def convert_to_id(value); end - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#25 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:25 def ids; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#55 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:55 def polymorphic_clause?; end - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#47 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:47 def polymorphic_name; end - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#39 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:39 def primary_key; end - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#43 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:43 def primary_type; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#51 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:51 def select_clause?; end - # Returns the value of attribute value. - # - # source://activerecord//lib/active_record/relation/predicate_builder/association_query_value.rb#23 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/association_query_value.rb:23 def value; end end -# source://activerecord//lib/active_record/relation/predicate_builder/basic_object_handler.rb#5 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder/basic_object_handler.rb:5 class ActiveRecord::PredicateBuilder::BasicObjectHandler - # @return [BasicObjectHandler] a new instance of BasicObjectHandler - # - # source://activerecord//lib/active_record/relation/predicate_builder/basic_object_handler.rb#6 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/basic_object_handler.rb:6 def initialize(predicate_builder); end - # source://activerecord//lib/active_record/relation/predicate_builder/basic_object_handler.rb#10 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/basic_object_handler.rb:10 def call(attribute, value); end private - # Returns the value of attribute predicate_builder. - # - # source://activerecord//lib/active_record/relation/predicate_builder/basic_object_handler.rb#16 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/basic_object_handler.rb:16 def predicate_builder; end end -# source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#5 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:5 class ActiveRecord::PredicateBuilder::PolymorphicArrayValue - # @return [PolymorphicArrayValue] a new instance of PolymorphicArrayValue - # - # source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#6 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:6 def initialize(associated_table, values); end - # source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#11 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:11 def queries; end private - # Returns the value of attribute associated_table. - # - # source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#23 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:23 def associated_table; end - # source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#44 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:44 def convert_to_id(value); end - # source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#36 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:36 def klass(value); end - # source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#32 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:32 def primary_key(value); end - # source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#25 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:25 def type_to_ids_mapping; end - # Returns the value of attribute values. - # - # source://activerecord//lib/active_record/relation/predicate_builder/polymorphic_array_value.rb#23 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/polymorphic_array_value.rb:23 def values; end end -# source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#5 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:5 class ActiveRecord::PredicateBuilder::RangeHandler - # @return [RangeHandler] a new instance of RangeHandler - # - # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#8 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:8 def initialize(predicate_builder); end - # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#12 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:12 def call(attribute, value); end private - # Returns the value of attribute predicate_builder. - # - # source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#19 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:19 def predicate_builder; end end -# source://activerecord//lib/active_record/relation/predicate_builder/range_handler.rb#6 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 class ActiveRecord::PredicateBuilder::RangeHandler::RangeWithBinds < ::Struct - # Returns the value of attribute begin - # - # @return [Object] the current value of begin + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def begin; end - # Sets the attribute begin - # - # @param value [Object] the value to set the attribute begin to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def begin=(_); end - # Returns the value of attribute end - # - # @return [Object] the current value of end + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def end; end - # Sets the attribute end - # - # @param value [Object] the value to set the attribute end to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def end=(_); end - # Returns the value of attribute exclude_end? - # - # @return [Object] the current value of exclude_end? + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def exclude_end?; end class << self + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def inspect; end + + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def members; end + + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/range_handler.rb:6 def new(*_arg0); end end end -# source://activerecord//lib/active_record/relation/predicate_builder/relation_handler.rb#5 +# pkg:gem/activerecord#lib/active_record/relation/predicate_builder/relation_handler.rb:5 class ActiveRecord::PredicateBuilder::RelationHandler - # source://activerecord//lib/active_record/relation/predicate_builder/relation_handler.rb#6 + # pkg:gem/activerecord#lib/active_record/relation/predicate_builder/relation_handler.rb:6 def call(attribute, value); end end # Raised when PostgreSQL returns 'cached plan must not change result type' and # we cannot retry gracefully (e.g. inside a transaction) # -# source://activerecord//lib/active_record/errors.rb#362 +# pkg:gem/activerecord#lib/active_record/errors.rb:362 class ActiveRecord::PreparedStatementCacheExpired < ::ActiveRecord::StatementInvalid; end # Raised when the number of placeholders in an SQL fragment passed to @@ -28541,33 +26490,32 @@ class ActiveRecord::PreparedStatementCacheExpired < ::ActiveRecord::StatementInv # # Location.where("lat = ? AND lng = ?", 53.7362) # -# source://activerecord//lib/active_record/errors.rb#324 +# pkg:gem/activerecord#lib/active_record/errors.rb:324 class ActiveRecord::PreparedStatementInvalid < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/promise.rb#4 +# pkg:gem/activerecord#lib/active_record/promise.rb:4 class ActiveRecord::Promise < ::BasicObject - # @return [Promise] a new instance of Promise - # - # source://activerecord//lib/active_record/promise.rb#7 + # pkg:gem/activerecord#lib/active_record/promise.rb:7 def initialize(future_result, block); end + # pkg:gem/activerecord#lib/active_record/promise.rb:41 def class; end - # source://activerecord//lib/active_record/promise.rb#44 + # pkg:gem/activerecord#lib/active_record/promise.rb:44 def inspect; end + # pkg:gem/activerecord#lib/active_record/promise.rb:41 def is_a?(_arg0); end # Returns whether the associated query is still being executed or not. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/promise.rb#13 + # pkg:gem/activerecord#lib/active_record/promise.rb:13 def pending?; end - # source://activerecord//lib/active_record/promise.rb#48 + # pkg:gem/activerecord#lib/active_record/promise.rb:48 def pretty_print(q); end + # pkg:gem/activerecord#lib/active_record/promise.rb:41 def respond_to?(*_arg0); end # Returns a new +ActiveRecord::Promise+ that will apply the passed block @@ -28576,83 +26524,75 @@ class ActiveRecord::Promise < ::BasicObject # Post.async_pick(:title).then { |title| title.upcase }.value # # => "POST TITLE" # - # source://activerecord//lib/active_record/promise.rb#36 + # pkg:gem/activerecord#lib/active_record/promise.rb:36 def then(&block); end # Returns the query result. # If the query wasn't completed yet, accessing +#value+ will block until the query completes. # If the query failed, +#value+ will raise the corresponding error. # - # source://activerecord//lib/active_record/promise.rb#20 + # pkg:gem/activerecord#lib/active_record/promise.rb:20 def value; end private - # source://activerecord//lib/active_record/promise.rb#53 + # pkg:gem/activerecord#lib/active_record/promise.rb:53 def status; end end -# source://activerecord//lib/active_record/promise.rb#63 +# pkg:gem/activerecord#lib/active_record/promise.rb:63 class ActiveRecord::Promise::Complete < ::ActiveRecord::Promise - # @return [Complete] a new instance of Complete - # - # source://activerecord//lib/active_record/promise.rb#66 + # pkg:gem/activerecord#lib/active_record/promise.rb:66 def initialize(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/promise.rb#74 + # pkg:gem/activerecord#lib/active_record/promise.rb:74 def pending?; end - # source://activerecord//lib/active_record/promise.rb#70 + # pkg:gem/activerecord#lib/active_record/promise.rb:70 def then; end - # Returns the value of attribute value. - # - # source://activerecord//lib/active_record/promise.rb#64 + # pkg:gem/activerecord#lib/active_record/promise.rb:64 def value; end private - # source://activerecord//lib/active_record/promise.rb#79 + # pkg:gem/activerecord#lib/active_record/promise.rb:79 def status; end end -# source://activerecord//lib/active_record/migration.rb#206 +# pkg:gem/activerecord#lib/active_record/migration.rb:206 class ActiveRecord::ProtectedEnvironmentError < ::ActiveRecord::ActiveRecordError - # @return [ProtectedEnvironmentError] a new instance of ProtectedEnvironmentError - # - # source://activerecord//lib/active_record/migration.rb#207 + # pkg:gem/activerecord#lib/active_record/migration.rb:207 def initialize(env = T.unsafe(nil)); end end # Superclass for errors that have been aborted (either by client or server). # -# source://activerecord//lib/active_record/errors.rb#561 +# pkg:gem/activerecord#lib/active_record/errors.rb:561 class ActiveRecord::QueryAborted < ::ActiveRecord::StatementInvalid; end # = Active Record Query Cache # -# source://activerecord//lib/active_record/query_cache.rb#5 +# pkg:gem/activerecord#lib/active_record/query_cache.rb:5 class ActiveRecord::QueryCache class << self - # source://activerecord//lib/active_record/query_cache.rb#44 + # pkg:gem/activerecord#lib/active_record/query_cache.rb:44 def complete(pools); end - # source://activerecord//lib/active_record/query_cache.rb#51 + # pkg:gem/activerecord#lib/active_record/query_cache.rb:51 def install_executor_hooks(executor = T.unsafe(nil)); end - # source://activerecord//lib/active_record/query_cache.rb#37 + # pkg:gem/activerecord#lib/active_record/query_cache.rb:37 def run; end end end -# source://activerecord//lib/active_record/query_cache.rb#6 +# pkg:gem/activerecord#lib/active_record/query_cache.rb:6 module ActiveRecord::QueryCache::ClassMethods # Enable the query cache within the block if Active Record is configured. # If it's not, it will execute the given block. # - # source://activerecord//lib/active_record/query_cache.rb#9 + # pkg:gem/activerecord#lib/active_record/query_cache.rb:9 def cache(&block); end # Disable the query cache within the block if Active Record is configured. @@ -28661,13 +26601,13 @@ module ActiveRecord::QueryCache::ClassMethods # Set dirties: false to prevent query caches on all connections from being cleared by write operations. # (By default, write operations dirty all connections' query caches in case they are replicas whose cache would now be outdated.) # - # source://activerecord//lib/active_record/query_cache.rb#28 + # pkg:gem/activerecord#lib/active_record/query_cache.rb:28 def uncached(dirties: T.unsafe(nil), &block); end end # QueryCanceled will be raised when canceling statement due to user request. # -# source://activerecord//lib/active_record/errors.rb#573 +# pkg:gem/activerecord#lib/active_record/errors.rb:573 class ActiveRecord::QueryCanceled < ::ActiveRecord::QueryAborted; end # = Active Record Query Logs @@ -28742,144 +26682,138 @@ class ActiveRecord::QueryCanceled < ::ActiveRecord::QueryAborted; end # # config.active_record.cache_query_log_tags = true # -# source://activerecord//lib/active_record/query_logs_formatter.rb#4 +# pkg:gem/activerecord#lib/active_record/query_logs_formatter.rb:4 module ActiveRecord::QueryLogs class << self - # source://activerecord//lib/active_record/query_logs.rb#119 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:119 def cache_query_log_tags; end - # source://activerecord//lib/active_record/query_logs.rb#119 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:119 def cache_query_log_tags=(_arg0); end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:115 def cached_comment; end - # source://activesupport/8.0.5.1/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:115 def cached_comment=(obj); end - # source://activerecord//lib/active_record/query_logs.rb#143 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:143 def call(sql, connection); end - # source://activerecord//lib/active_record/query_logs.rb#155 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:155 def clear_cache; end - # source://activerecord//lib/active_record/query_logs.rb#119 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:119 def prepend_comment; end - # source://activerecord//lib/active_record/query_logs.rb#119 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:119 def prepend_comment=(_arg0); end - # source://activerecord//lib/active_record/query_logs.rb#159 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:159 def query_source_location; end - # source://activerecord//lib/active_record/query_logs.rb#118 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:118 def taggings; end - # source://activerecord//lib/active_record/query_logs.rb#121 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:121 def taggings=(taggings); end - # source://activerecord//lib/active_record/query_logs.rb#118 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:118 def tags; end - # source://activerecord//lib/active_record/query_logs.rb#126 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:126 def tags=(tags); end - # source://activerecord//lib/active_record/query_logs.rb#118 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:118 def tags_formatter; end - # source://activerecord//lib/active_record/query_logs.rb#131 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:131 def tags_formatter=(format); end private - # source://activerecord//lib/active_record/query_logs.rb#184 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:184 def build_handler(name, handler = T.unsafe(nil)); end # Returns an SQL comment +String+ containing the query log tags. # Sets and returns a cached comment if cache_query_log_tags is +true+. # - # source://activerecord//lib/active_record/query_logs.rb#201 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:201 def comment(connection); end - # source://activerecord//lib/active_record/query_logs.rb#217 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:217 def escape_sql_comment(content); end - # source://activerecord//lib/active_record/query_logs.rb#170 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:170 def rebuild_handlers; end - # source://activerecord//lib/active_record/query_logs.rb#230 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:230 def tag_content(connection); end - # source://activerecord//lib/active_record/query_logs.rb#209 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:209 def uncached_comment(connection); end end end -# source://activerecord//lib/active_record/query_logs.rb#79 +# pkg:gem/activerecord#lib/active_record/query_logs.rb:79 class ActiveRecord::QueryLogs::GetKeyHandler - # @return [GetKeyHandler] a new instance of GetKeyHandler - # - # source://activerecord//lib/active_record/query_logs.rb#80 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:80 def initialize(name); end - # source://activerecord//lib/active_record/query_logs.rb#84 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:84 def call(context); end end -# source://activerecord//lib/active_record/query_logs.rb#89 +# pkg:gem/activerecord#lib/active_record/query_logs.rb:89 class ActiveRecord::QueryLogs::IdentityHandler - # @return [IdentityHandler] a new instance of IdentityHandler - # - # source://activerecord//lib/active_record/query_logs.rb#90 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:90 def initialize(value); end - # source://activerecord//lib/active_record/query_logs.rb#94 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:94 def call(_context); end end -# source://activerecord//lib/active_record/query_logs_formatter.rb#5 +# pkg:gem/activerecord#lib/active_record/query_logs_formatter.rb:5 module ActiveRecord::QueryLogs::LegacyFormatter class << self # Formats the key value pairs into a string. # - # source://activerecord//lib/active_record/query_logs_formatter.rb#8 + # pkg:gem/activerecord#lib/active_record/query_logs_formatter.rb:8 def format(key, value); end - # source://activerecord//lib/active_record/query_logs_formatter.rb#12 + # pkg:gem/activerecord#lib/active_record/query_logs_formatter.rb:12 def join(pairs); end end end -# source://activerecord//lib/active_record/query_logs_formatter.rb#18 +# pkg:gem/activerecord#lib/active_record/query_logs_formatter.rb:18 class ActiveRecord::QueryLogs::SQLCommenter class << self - # source://activerecord//lib/active_record/query_logs_formatter.rb#20 + # pkg:gem/activerecord#lib/active_record/query_logs_formatter.rb:20 def format(key, value); end - # source://activerecord//lib/active_record/query_logs_formatter.rb#24 + # pkg:gem/activerecord#lib/active_record/query_logs_formatter.rb:24 def join(pairs); end end end -# source://activerecord//lib/active_record/query_logs.rb#99 +# pkg:gem/activerecord#lib/active_record/query_logs.rb:99 class ActiveRecord::QueryLogs::ZeroArityHandler - # @return [ZeroArityHandler] a new instance of ZeroArityHandler - # - # source://activerecord//lib/active_record/query_logs.rb#100 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:100 def initialize(proc); end - # source://activerecord//lib/active_record/query_logs.rb#104 + # pkg:gem/activerecord#lib/active_record/query_logs.rb:104 def call(_context); end end -# source://activerecord//lib/active_record/relation/query_methods.rb#9 +# pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:9 module ActiveRecord::QueryMethods include ::ActiveModel::ForbiddenAttributesProtection - # source://activerecord//lib/active_record/relation/query_methods.rb#428 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:428 def _select!(*fields); end - # source://activerecord//lib/active_record/relation/query_methods.rb#260 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:260 def all; end # Returns a new relation, which is the logical intersection of this relation and the one passed @@ -28892,10 +26826,10 @@ module ActiveRecord::QueryMethods # Post.where(id: [1, 2]).and(Post.where(id: [2, 3])) # # SELECT `posts`.* FROM `posts` WHERE `posts`.`id` IN (1, 2) AND `posts`.`id` IN (2, 3) # - # source://activerecord//lib/active_record/relation/query_methods.rb#1135 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1135 def and(other); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1143 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1143 def and!(other); end # Adds an SQL comment to queries generated from this relation. For example: @@ -28910,26 +26844,26 @@ module ActiveRecord::QueryMethods # # Some escaping is performed, however untrusted user input should not be used. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1529 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1529 def annotate(*args); end # Like #annotate, but modifies relation in place. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1535 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1535 def annotate!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def annotate_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def annotate_values=(value); end # Returns the Arel object associated with the relation. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1594 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1594 def arel(aliases = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1598 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1598 def construct_join_dependency(associations, join_type); end # Sets attributes to be used when creating new records from a @@ -28946,16 +26880,16 @@ module ActiveRecord::QueryMethods # users = users.create_with(nil) # users.new.name # => 'Oscar' # - # source://activerecord//lib/active_record/relation/query_methods.rb#1346 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1346 def create_with(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1350 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1350 def create_with!(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def create_with_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def create_with_value=(value); end # Specifies whether the records should be unique or not. For example: @@ -28969,18 +26903,18 @@ module ActiveRecord::QueryMethods # User.select(:name).distinct.distinct(false) # # You can also remove the uniqueness # - # source://activerecord//lib/active_record/relation/query_methods.rb#1410 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1410 def distinct(value = T.unsafe(nil)); end # Like #distinct, but modifies relation in place. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1415 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1415 def distinct!(value = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def distinct_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def distinct_value=(value); end # Specify associations +args+ to be eager loaded using a LEFT OUTER JOIN. @@ -29010,16 +26944,16 @@ module ActiveRecord::QueryMethods # NOTE: Loading the associations in a join can result in many rows that # contain redundant data and it performs poorly at scale. # - # source://activerecord//lib/active_record/relation/query_methods.rb#290 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:290 def eager_load(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#295 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:295 def eager_load!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def eager_load_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def eager_load_values=(value); end # Excludes the specified record (or collection of records) from the resulting @@ -29049,10 +26983,10 @@ module ActiveRecord::QueryMethods # is passed in) are not instances of the same model that the relation is # scoping. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1574 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1574 def excluding(*records); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1587 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1587 def excluding!(records); end # Used to extend a scope with additional methods, either through @@ -29092,19 +27026,19 @@ module ActiveRecord::QueryMethods # end # end # - # source://activerecord//lib/active_record/relation/query_methods.rb#1456 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1456 def extending(*modules, &block); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1464 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1464 def extending!(*modules, &block); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def extending_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def extending_values=(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:185 def extensions; end # Extracts a named +association+ from the relation. The named association is first preloaded, @@ -29117,7 +27051,7 @@ module ActiveRecord::QueryMethods # # account.memberships.preload(:user).collect(&:user) # - # source://activerecord//lib/active_record/relation/query_methods.rb#341 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:341 def extract_associated(association); end # Specifies the table from which the records will be fetched. For example: @@ -29151,16 +27085,16 @@ module ActiveRecord::QueryMethods # # FROM colors c, JSONB_ARRAY_ELEMENTS(colored_things) AS colorvalues(colorvalue) # # WHERE (colorvalue->>'color' = 'red') # - # source://activerecord//lib/active_record/relation/query_methods.rb#1391 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1391 def from(value, subquery_name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1395 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1395 def from!(value, subquery_name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def from_clause; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def from_clause=(value); end # Allows to specify a group attribute: @@ -29184,16 +27118,16 @@ module ActiveRecord::QueryMethods # User.select([:id, :first_name]).group(:id, :first_name).first(3) # # => [#, #, #] # - # source://activerecord//lib/active_record/relation/query_methods.rb#573 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:573 def group(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#578 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:578 def group!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def group_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def group_values=(value); end # Allows to specify a HAVING clause. Note that you can't use HAVING @@ -29201,16 +27135,16 @@ module ActiveRecord::QueryMethods # # Order.having('SUM(price) > 30').group('user_id') # - # source://activerecord//lib/active_record/relation/query_methods.rb#1197 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1197 def having(opts, *rest); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1201 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1201 def having!(opts, *rest); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def having_clause; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def having_clause=(value); end # Applies an ORDER BY clause based on a given +column+, @@ -29261,7 +27195,7 @@ module ActiveRecord::QueryMethods # # ELSE 3 # # END ASC # - # source://activerecord//lib/active_record/relation/query_methods.rb#717 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:717 def in_order_of(column, values, filter: T.unsafe(nil)); end # Specify associations +args+ to be eager loaded to prevent N + 1 queries. @@ -29328,16 +27262,16 @@ module ActiveRecord::QueryMethods # and will only include posts named "example", even when a # matching user has other additional posts. # - # source://activerecord//lib/active_record/relation/query_methods.rb#250 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:250 def includes(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#255 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:255 def includes!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def includes_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def includes_values=(value); end # Allows you to invert an entire where clause instead of manually applying conditions. @@ -29369,10 +27303,10 @@ module ActiveRecord::QueryMethods # User.where(role: 'admin').inactive # # WHERE NOT (`role` = 'admin' AND `accepted` = 1 AND `locked` = 0) # - # source://activerecord//lib/active_record/relation/query_methods.rb#1101 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1101 def invert_where; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1105 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1105 def invert_where!; end # Performs JOINs on +args+. The given symbol(s) should match the name of @@ -29404,24 +27338,19 @@ module ActiveRecord::QueryMethods # User.joins("LEFT JOIN bookmarks ON bookmarks.bookmarkable_type = 'Post' AND bookmarks.user_id = users.id") # # SELECT "users".* FROM "users" LEFT JOIN bookmarks ON bookmarks.bookmarkable_type = 'Post' AND bookmarks.user_id = users.id # - # source://activerecord//lib/active_record/relation/query_methods.rb#868 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:868 def joins(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#873 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:873 def joins!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def joins_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def joins_values=(value); end - # Performs LEFT OUTER JOINs on +args+: - # - # User.left_outer_joins(:posts) - # # SELECT "users".* FROM "users" LEFT OUTER JOIN "posts" ON "posts"."user_id" = "users"."id" - # - # source://activerecord//lib/active_record/relation/query_methods.rb#883 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:887 def left_joins(*args); end # Performs LEFT OUTER JOINs on +args+: @@ -29429,16 +27358,16 @@ module ActiveRecord::QueryMethods # User.left_outer_joins(:posts) # # SELECT "users".* FROM "users" LEFT OUTER JOIN "posts" ON "posts"."user_id" = "users"."id" # - # source://activerecord//lib/active_record/relation/query_methods.rb#883 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:883 def left_outer_joins(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#889 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:889 def left_outer_joins!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def left_outer_joins_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def left_outer_joins_values=(value); end # Specifies a limit for the number of records to retrieve. @@ -29447,31 +27376,31 @@ module ActiveRecord::QueryMethods # # User.limit(10).limit(20) # generated SQL has 'LIMIT 20' # - # source://activerecord//lib/active_record/relation/query_methods.rb#1211 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1211 def limit(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1215 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1215 def limit!(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def limit_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def limit_value=(value); end # Specifies locking settings (default to +true+). For more information # on locking, please see ActiveRecord::Locking. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1238 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1238 def lock(locks = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1242 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1242 def lock!(locks = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def lock_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def lock_value=(value); end # Returns a chainable relation with zero records. @@ -29502,15 +27431,13 @@ module ActiveRecord::QueryMethods # end # end # - # source://activerecord//lib/active_record/relation/query_methods.rb#1281 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1281 def none; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1285 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1285 def none!; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/query_methods.rb#1293 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1293 def null_relation?; end # Specifies the number of rows to skip before returning rows. @@ -29521,16 +27448,16 @@ module ActiveRecord::QueryMethods # # User.offset(10).order("name ASC") # - # source://activerecord//lib/active_record/relation/query_methods.rb#1227 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1227 def offset(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1231 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1231 def offset!(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def offset_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def offset_value=(value); end # Specify optimizer hints to be used in the SELECT statement. @@ -29545,16 +27472,16 @@ module ActiveRecord::QueryMethods # Topic.optimizer_hints("SeqScan(topics)", "Parallel(topics 8)") # # SELECT /*+ SeqScan(topics) Parallel(topics 8) */ "topics".* FROM "topics" # - # source://activerecord//lib/active_record/relation/query_methods.rb#1485 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1485 def optimizer_hints(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1490 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1490 def optimizer_hints!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def optimizer_hints_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def optimizer_hints_values=(value); end # Returns a new relation, which is the logical union of this relation and the one passed as an @@ -29567,10 +27494,10 @@ module ActiveRecord::QueryMethods # Post.where("id = 1").or(Post.where("author_id = 3")) # # SELECT `posts`.* FROM `posts` WHERE ((id = 1) OR (author_id = 3)) # - # source://activerecord//lib/active_record/relation/query_methods.rb#1167 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1167 def or(other); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1179 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1179 def or!(other); end # Applies an ORDER BY clause to a query. @@ -29626,18 +27553,18 @@ module ActiveRecord::QueryMethods # User.order(Arel.sql("payload->>'kind'")) # # SELECT "users".* FROM "users" ORDER BY payload->>'kind' # - # source://activerecord//lib/active_record/relation/query_methods.rb#656 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:656 def order(*args); end # Same as #order but operates on relation in-place instead of copying. # - # source://activerecord//lib/active_record/relation/query_methods.rb#664 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:664 def order!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def order_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def order_values=(value); end # Specify associations +args+ to be eager loaded using separate queries. @@ -29663,16 +27590,16 @@ module ActiveRecord::QueryMethods # # SELECT "friends".* FROM "friends" WHERE "friends"."user_id" IN (1,2,3,4,5) # # SELECT ... # - # source://activerecord//lib/active_record/relation/query_methods.rb#322 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:322 def preload(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#327 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:327 def preload!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def preload_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def preload_values=(value); end # Mark a relation as readonly. Attempting to update a record will result in @@ -29688,16 +27615,16 @@ module ActiveRecord::QueryMethods # users.first.save # # => true # - # source://activerecord//lib/active_record/relation/query_methods.rb#1309 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1309 def readonly(value = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1313 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1313 def readonly!(value = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def readonly_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def readonly_value=(value); end # Use to indicate that the given +table_names+ are referenced by an SQL string, @@ -29711,16 +27638,16 @@ module ActiveRecord::QueryMethods # User.includes(:posts).where("posts.name = 'foo'").references(:posts) # # Query now knows the string references posts, so adds a JOIN # - # source://activerecord//lib/active_record/relation/query_methods.rb#355 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:355 def references(*table_names); end - # source://activerecord//lib/active_record/relation/query_methods.rb#360 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:360 def references!(*table_names); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def references_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def references_values=(value); end # Allows you to change a previously set group statement. @@ -29734,12 +27661,12 @@ module ActiveRecord::QueryMethods # This is short-hand for unscope(:group).group(fields). # Note that we're unscoping the entire group statement. # - # source://activerecord//lib/active_record/relation/query_methods.rb#593 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:593 def regroup(*args); end # Same as #regroup but operates on relation in-place instead of copying. # - # source://activerecord//lib/active_record/relation/query_methods.rb#599 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:599 def regroup!(*args); end # Replaces any existing order defined on the relation with the specified order. @@ -29752,18 +27679,18 @@ module ActiveRecord::QueryMethods # # generates a query with ORDER BY id ASC, name ASC. # - # source://activerecord//lib/active_record/relation/query_methods.rb#752 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:752 def reorder(*args); end # Same as #reorder but operates on relation in-place instead of copying. # - # source://activerecord//lib/active_record/relation/query_methods.rb#760 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:760 def reorder!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def reordering_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def reordering_value=(value); end # Allows you to change a previously set select statement. @@ -29777,28 +27704,28 @@ module ActiveRecord::QueryMethods # This is short-hand for unscope(:select).select(fields). # Note that we're unscoping the entire select statement. # - # source://activerecord//lib/active_record/relation/query_methods.rb#541 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:541 def reselect(*args); end # Same as #reselect but operates on relation in-place instead of copying. # - # source://activerecord//lib/active_record/relation/query_methods.rb#548 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:548 def reselect!(*args); end # Reverse the existing order clause on the relation. # # User.order('name ASC').reverse_order # generated SQL has 'ORDER BY name DESC' # - # source://activerecord//lib/active_record/relation/query_methods.rb#1498 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1498 def reverse_order; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1502 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1502 def reverse_order!; end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def reverse_order_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def reverse_order_value=(value); end # Allows you to change a previously set where condition for a given attribute, instead of appending to that condition. @@ -29815,7 +27742,7 @@ module ActiveRecord::QueryMethods # This is short-hand for unscope(where: conditions.keys).where(conditions). # Note that unlike reorder, we're only unscoping the named conditions -- not the entire where statement. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1061 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1061 def rewhere(conditions); end # Works in two unique ways. @@ -29867,25 +27794,25 @@ module ActiveRecord::QueryMethods # Model.select(:field).first.other_field # # => ActiveModel::MissingAttributeError: missing attribute 'other_field' for Model # - # source://activerecord//lib/active_record/relation/query_methods.rb#413 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:413 def select(*fields); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def select_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def select_values=(value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1513 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1513 def skip_preloading!; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1508 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1508 def skip_query_cache!(value = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def skip_query_cache_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def skip_query_cache_value=(value); end # Sets the returned relation to strict_loading mode. This will raise an error @@ -29895,16 +27822,16 @@ module ActiveRecord::QueryMethods # user.comments.to_a # # => ActiveRecord::StrictLoadingViolationError # - # source://activerecord//lib/active_record/relation/query_methods.rb#1324 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1324 def strict_loading(value = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1328 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1328 def strict_loading!(value = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def strict_loading_value; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def strict_loading_value=(value); end # Checks whether the given relation is structurally compatible with this relation, to determine @@ -29918,14 +27845,12 @@ module ActiveRecord::QueryMethods # Post.joins(:comments).structurally_compatible?(Post.where("id = 1")) # # => false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/query_methods.rb#1121 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1121 def structurally_compatible?(other); end # Deduplicate multiple values. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1541 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1541 def uniq!(name); end # Removes an unwanted relation that is already defined on a chain of relations. @@ -29961,16 +27886,16 @@ module ActiveRecord::QueryMethods # # has_many :comments, -> { unscope(where: :trashed) } # - # source://activerecord//lib/active_record/relation/query_methods.rb#806 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:806 def unscope(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#811 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:811 def unscope!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def unscope_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def unscope_values=(value); end # Returns a new relation, which is the result of filtering the current relation @@ -30113,16 +28038,16 @@ module ActiveRecord::QueryMethods # If the condition is any blank-ish object, then #where is a no-op and returns # the current relation. # - # source://activerecord//lib/active_record/relation/query_methods.rb#1033 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1033 def where(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1043 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1043 def where!(opts, *rest); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def where_clause; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def where_clause=(value); end # Add a Common Table Expression (CTE) that you can then reference within another SELECT statement. @@ -30186,14 +28111,12 @@ module ActiveRecord::QueryMethods # .with(posts_with_comments: Post.where("comments_count > ?", 0)) # .with(posts_with_tags: Post.where("tags_count > ?", 0)) # - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/relation/query_methods.rb#493 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:493 def with(*args); end # Like #with, but modifies relation in place. # - # source://activerecord//lib/active_record/relation/query_methods.rb#500 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:500 def with!(*args); end # Add a recursive Common Table Expression (CTE) that you can then reference within another SELECT statement. @@ -30209,132 +28132,103 @@ module ActiveRecord::QueryMethods # # See `#with` for more information. # - # source://activerecord//lib/active_record/relation/query_methods.rb#518 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:518 def with_recursive(*args); end # Like #with_recursive but modifies the relation in place. # - # source://activerecord//lib/active_record/relation/query_methods.rb#524 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:524 def with_recursive!(*args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def with_values; end - # source://activerecord//lib/active_record/relation/query_methods.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:173 def with_values=(value); end - # Excludes the specified record (or collection of records) from the resulting - # relation. For example: - # - # Post.excluding(post) - # # SELECT "posts".* FROM "posts" WHERE "posts"."id" != 1 - # - # Post.excluding(post_one, post_two) - # # SELECT "posts".* FROM "posts" WHERE "posts"."id" NOT IN (1, 2) - # - # Post.excluding(Post.drafts) - # # SELECT "posts".* FROM "posts" WHERE "posts"."id" NOT IN (3, 4, 5) - # - # This can also be called on associations. As with the above example, either - # a single record of collection thereof may be specified: - # - # post = Post.find(1) - # comment = Comment.find(2) - # post.comments.excluding(comment) - # # SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 AND "comments"."id" != 2 - # - # This is short-hand for .where.not(id: post.id) and .where.not(id: [post_one.id, post_two.id]). - # - # An ArgumentError will be raised if either no records are - # specified, or if any of the records in the collection (if a collection - # is passed in) are not instances of the same model that the relation is - # scoping. - # - # source://activerecord//lib/active_record/relation/query_methods.rb#1574 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1585 def without(*records); end protected - # source://activerecord//lib/active_record/relation/query_methods.rb#1662 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1662 def arel_columns(columns); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1656 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1656 def async!; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1613 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1654 def build_having_clause(opts, rest = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1605 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1605 def build_subquery(subquery_alias, select_value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1613 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1613 def build_where_clause(opts, rest = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/relation/query_methods.rb#1991 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1991 def arel_column(field); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2235 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2235 def arel_column_aliases_from_hash(fields); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1979 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1979 def arel_column_with_table(table_name, column_name); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1963 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1963 def arel_columns_from_hash(fields); end - # @raise [UnmodifiableRelation] - # - # source://activerecord//lib/active_record/relation/query_methods.rb#1746 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1746 def assert_modifiable!; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1678 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1678 def async; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1750 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1750 def build_arel(connection, aliases = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1702 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1702 def build_bound_sql_literal(statement, values); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2164 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2164 def build_case_for_value_position(column, values, filter: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1779 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1779 def build_cast_value(name, value); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1783 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1783 def build_from; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1825 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1825 def build_join_buckets; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1735 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1735 def build_join_dependencies; end - # source://activerecord//lib/active_record/relation/query_methods.rb#1881 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1881 def build_joins(join_sources, aliases = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1682 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1682 def build_named_bound_sql_literal(statement, values); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2056 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2056 def build_order(arel); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1903 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1903 def build_select(arel); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1913 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1913 def build_with(arel); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1929 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1929 def build_with_expression_from_value(value, nested = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1955 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1955 def build_with_join_node(name, kind = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1923 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1923 def build_with_value_from_hash(hash); end # Checks to make sure that the arguments are not blank. Note that if some @@ -30354,104 +28248,96 @@ module ActiveRecord::QueryMethods # ... # end # - # source://activerecord//lib/active_record/relation/query_methods.rb#2214 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2214 def check_if_method_has_arguments!(method_name, args, message = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2125 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2125 def column_references(order_args); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/query_methods.rb#2045 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2045 def does_not_support_reverse?(order); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1729 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1729 def each_join_dependencies(join_dependencies = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2150 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2150 def extract_table_name_from(string); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2078 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2078 def flattened_args(args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1722 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1722 def lookup_table_klass_from_join_dependencies(table_name); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2154 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2154 def order_column(field); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2082 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2082 def preprocess_order_args(order_args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2225 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2225 def process_select_args(fields); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2255 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2255 def process_with_args(args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2174 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2174 def resolve_arel_attributes(attrs); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2016 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2016 def reverse_sql_order(order_query); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2119 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2119 def sanitize_order_arguments(order_args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1810 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1810 def select_association_list(associations, stashed_joins = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1798 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:1798 def select_named_joins(join_names, stashed_joins = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2267 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2267 def structurally_incompatible_values_for(other); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/query_methods.rb#2010 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2010 def table_name_matches?(from); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2064 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2064 def validate_order_args(args); end end # A wrapper to distinguish CTE joins from other nodes. # -# source://activerecord//lib/active_record/relation/query_methods.rb#151 +# pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:151 class ActiveRecord::QueryMethods::CTEJoin - # @return [CTEJoin] a new instance of CTEJoin - # - # source://activerecord//lib/active_record/relation/query_methods.rb#154 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:154 def initialize(name); end - # source://activerecord//lib/active_record/relation/query_methods.rb#152 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:152 def name; end end -# source://activerecord//lib/active_record/relation/query_methods.rb#159 +# pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:159 ActiveRecord::QueryMethods::FROZEN_EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation/query_methods.rb#160 +# pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:160 ActiveRecord::QueryMethods::FROZEN_EMPTY_HASH = T.let(T.unsafe(nil), Hash) -# source://activerecord//lib/active_record/relation/query_methods.rb#2262 +# pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2262 ActiveRecord::QueryMethods::STRUCTURAL_VALUE_METHODS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation/query_methods.rb#2061 +# pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:2061 ActiveRecord::QueryMethods::VALID_DIRECTIONS = T.let(T.unsafe(nil), Set) -# source://activerecord//lib/active_record/relation/query_methods.rb#768 +# pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:768 ActiveRecord::QueryMethods::VALID_UNSCOPING_VALUES = T.let(T.unsafe(nil), Set) # +WhereChain+ objects act as placeholder for queries in which +where+ does not have any parameter. # In this case, +where+ can be chained to return a new relation. # -# source://activerecord//lib/active_record/relation/query_methods.rb#14 +# pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:14 class ActiveRecord::QueryMethods::WhereChain - # @return [WhereChain] a new instance of WhereChain - # - # source://activerecord//lib/active_record/relation/query_methods.rb#15 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:15 def initialize(scope); end # Returns a new relation with joins and where clause to identify @@ -30486,7 +28372,7 @@ class ActiveRecord::QueryMethods::WhereChain # # LEFT OUTER JOIN "comments" ON "comments"."post_id" = "posts"."id" # # WHERE "author"."id" IS NOT NULL # - # source://activerecord//lib/active_record/relation/query_methods.rb#88 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:88 def associated(*associations); end # Returns a new relation with left outer joins and where clause to identify @@ -30508,7 +28394,7 @@ class ActiveRecord::QueryMethods::WhereChain # # LEFT OUTER JOIN "comments" ON "comments"."post_id" = "posts"."id" # # WHERE "authors"."id" IS NULL AND "comments"."id" IS NULL # - # source://activerecord//lib/active_record/relation/query_methods.rb#124 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:124 def missing(*associations); end # Returns a new relation expressing WHERE + NOT condition according to @@ -30542,74 +28428,74 @@ class ActiveRecord::QueryMethods::WhereChain # # SELECT * FROM users WHERE NOT (nullable_country = 'UK') # # => [] # - # source://activerecord//lib/active_record/relation/query_methods.rb#49 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:49 def not(opts, *rest); end private - # source://activerecord//lib/active_record/relation/query_methods.rb#140 + # pkg:gem/activerecord#lib/active_record/relation/query_methods.rb:140 def scope_association_reflection(association); end end -# source://activerecord//lib/active_record/querying.rb#4 +# pkg:gem/activerecord#lib/active_record/querying.rb:4 module ActiveRecord::Querying - # source://activerecord//lib/active_record/querying.rb#71 + # pkg:gem/activerecord#lib/active_record/querying.rb:71 def _load_from_sql(result_set, &block); end - # source://activerecord//lib/active_record/querying.rb#67 + # pkg:gem/activerecord#lib/active_record/querying.rb:67 def _query_by_sql(connection, sql, binds = T.unsafe(nil), preparable: T.unsafe(nil), async: T.unsafe(nil), allow_retry: T.unsafe(nil)); end - # source://activerecord//lib/active_record/querying.rb#24 - def and(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def and(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def annotate(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def annotate(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def any?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def any?(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def async_average(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def async_average(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def async_count(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def async_count(*, **, &); end # Same as #count_by_sql but perform the query asynchronously and returns an ActiveRecord::Promise. # - # source://activerecord//lib/active_record/querying.rb#116 + # pkg:gem/activerecord#lib/active_record/querying.rb:116 def async_count_by_sql(sql); end # Same as #find_by_sql but perform the query asynchronously and returns an ActiveRecord::Promise. # - # source://activerecord//lib/active_record/querying.rb#59 + # pkg:gem/activerecord#lib/active_record/querying.rb:59 def async_find_by_sql(sql, binds = T.unsafe(nil), preparable: T.unsafe(nil), allow_retry: T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/querying.rb#24 - def async_ids(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def async_ids(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def async_maximum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def async_maximum(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def async_minimum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def async_minimum(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def async_pick(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def async_pick(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def async_pluck(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def async_pluck(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def async_sum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def async_sum(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def average(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def average(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def calculate(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def calculate(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def count(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def count(*, **, &); end # Returns the result of an SQL statement that should only include a COUNT(*) in the SELECT part. # The use of this method should be restricted to complicated SQL queries that can't be executed @@ -30624,71 +28510,71 @@ module ActiveRecord::Querying # # * +sql+ - An SQL statement which should return a count query from the database, see the example above. # - # source://activerecord//lib/active_record/querying.rb#109 + # pkg:gem/activerecord#lib/active_record/querying.rb:109 def count_by_sql(sql); end - # source://activerecord//lib/active_record/querying.rb#24 - def create_or_find_by(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def create_or_find_by(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def create_or_find_by!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def create_or_find_by!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def create_with(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def create_with(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def delete(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def delete(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def delete_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def delete_all(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def delete_by(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def delete_by(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def destroy(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def destroy(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def destroy_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def destroy_all(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def destroy_by(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def destroy_by(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def distinct(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def distinct(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def eager_load(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def eager_load(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def except(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def except(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def excluding(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def excluding(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def exists?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def exists?(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def extending(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def extending(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def extract_associated(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def extract_associated(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def fifth(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def fifth(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def fifth!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def fifth!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def find(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def find_by(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find_by(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def find_by!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find_by!(*, **, &); end # Executes a custom SQL query against your database and returns all the results. The results will # be returned as an array, with the requested columns encapsulated as attributes of the model you call @@ -30716,271 +28602,271 @@ module ActiveRecord::Querying # Note that building your own SQL query string from user input {may expose your application to # injection attacks}[https://guides.rubyonrails.org/security.html#sql-injection]. # - # source://activerecord//lib/active_record/querying.rb#51 + # pkg:gem/activerecord#lib/active_record/querying.rb:51 def find_by_sql(sql, binds = T.unsafe(nil), preparable: T.unsafe(nil), allow_retry: T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/querying.rb#24 - def find_each(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find_each(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def find_in_batches(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find_in_batches(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def find_or_create_by(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find_or_create_by(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def find_or_create_by!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find_or_create_by!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def find_or_initialize_by(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find_or_initialize_by(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def find_sole_by(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def find_sole_by(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def first(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def first(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def first!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def first!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def first_or_create(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def first_or_create(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def first_or_create!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def first_or_create!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def first_or_initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def first_or_initialize(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def forty_two(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def forty_two(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def forty_two!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def forty_two!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def fourth(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def fourth(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def fourth!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def fourth!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def from(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def from(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def group(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def group(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def having(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def having(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def ids(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def ids(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def in_batches(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def in_batches(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def in_order_of(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def in_order_of(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def includes(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def includes(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def insert(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def insert(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def insert!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def insert!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def insert_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def insert_all(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def insert_all!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def insert_all!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def invert_where(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def invert_where(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def joins(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def joins(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def last(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def last(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def last!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def last!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def left_joins(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def left_joins(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def left_outer_joins(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def left_outer_joins(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def limit(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def limit(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def lock(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def lock(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def many?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def many?(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def maximum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def maximum(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def merge(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def merge(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def minimum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def minimum(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def none(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def none(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def none?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def none?(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def offset(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def offset(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def one?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def one?(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def only(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def only(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def optimizer_hints(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def optimizer_hints(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def or(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def or(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def order(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def order(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def pick(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def pick(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def pluck(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def pluck(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def preload(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def preload(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def readonly(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def readonly(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def references(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def references(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def regroup(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def regroup(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def reorder(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def reorder(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def reselect(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def reselect(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def rewhere(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def rewhere(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def second(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def second(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def second!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def second!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def second_to_last(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def second_to_last(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def second_to_last!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def second_to_last!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def select(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def select(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def sole(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def sole(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def strict_loading(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def strict_loading(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def sum(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def sum(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def take(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def take(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def take!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def take!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def third(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def third(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def third!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def third!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def third_to_last(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def third_to_last(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def third_to_last!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def third_to_last!(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def touch_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def touch_all(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def unscope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def unscope(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def update_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def update_all(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def upsert(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def upsert(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def upsert_all(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def upsert_all(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def where(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def where(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def with(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def with(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def with_recursive(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def with_recursive(*, **, &); end - # source://activerecord//lib/active_record/querying.rb#24 - def without(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/querying.rb:24 + def without(*, **, &); end end -# source://activerecord//lib/active_record/querying.rb#5 +# pkg:gem/activerecord#lib/active_record/querying.rb:5 ActiveRecord::Querying::QUERYING_METHODS = T.let(T.unsafe(nil), Array) # = Active Record Railtie # -# source://activerecord//lib/active_record/railtie.rb#16 +# pkg:gem/activerecord#lib/active_record/railtie.rb:16 class ActiveRecord::Railtie < ::Rails::Railtie; end # Raised when values that executed are out of range. # -# source://activerecord//lib/active_record/errors.rb#301 +# pkg:gem/activerecord#lib/active_record/errors.rb:301 class ActiveRecord::RangeError < ::ActiveRecord::StatementInvalid; end # Raised when a write to the database is attempted on a read only connection. # -# source://activerecord//lib/active_record/errors.rb#132 +# pkg:gem/activerecord#lib/active_record/errors.rb:132 class ActiveRecord::ReadOnlyError < ::ActiveRecord::ActiveRecordError; end # Raised on attempt to update record that is instantiated as read only. # -# source://activerecord//lib/active_record/errors.rb#394 +# pkg:gem/activerecord#lib/active_record/errors.rb:394 class ActiveRecord::ReadOnlyRecord < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/readonly_attributes.rb#4 +# pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:4 class ActiveRecord::ReadonlyAttributeError < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/readonly_attributes.rb#7 +# pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:7 module ActiveRecord::ReadonlyAttributes extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -30997,7 +28883,7 @@ module ActiveRecord::ReadonlyAttributes module GeneratedInstanceMethods; end end -# source://activerecord//lib/active_record/readonly_attributes.rb#14 +# pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:14 module ActiveRecord::ReadonlyAttributes::ClassMethods # Attributes listed as readonly will be used to create a new record. # Assigning a new value to a readonly attribute on a persisted record raises an error. @@ -31015,26 +28901,24 @@ module ActiveRecord::ReadonlyAttributes::ClassMethods # post.title = "a different title" # raises ActiveRecord::ReadonlyAttributeError # post.update(title: "a different title") # raises ActiveRecord::ReadonlyAttributeError # - # source://activerecord//lib/active_record/readonly_attributes.rb#30 + # pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:30 def attr_readonly(*attributes); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/readonly_attributes.rb#43 + # pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:43 def readonly_attribute?(name); end # Returns an array of all the attributes that have been specified as readonly. # - # source://activerecord//lib/active_record/readonly_attributes.rb#39 + # pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:39 def readonly_attributes; end end -# source://activerecord//lib/active_record/readonly_attributes.rb#48 +# pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:48 module ActiveRecord::ReadonlyAttributes::HasReadonlyAttributes - # source://activerecord//lib/active_record/readonly_attributes.rb#57 + # pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:57 def _write_attribute(attr_name, value); end - # source://activerecord//lib/active_record/readonly_attributes.rb#49 + # pkg:gem/activerecord#lib/active_record/readonly_attributes.rb:49 def write_attribute(attr_name, value); end end @@ -31050,16 +28934,12 @@ end # puts invalid.record.errors # end # -# source://activerecord//lib/active_record/validations.rb#15 +# pkg:gem/activerecord#lib/active_record/validations.rb:15 class ActiveRecord::RecordInvalid < ::ActiveRecord::ActiveRecordError - # @return [RecordInvalid] a new instance of RecordInvalid - # - # source://activerecord//lib/active_record/validations.rb#18 + # pkg:gem/activerecord#lib/active_record/validations.rb:18 def initialize(record = T.unsafe(nil)); end - # Returns the value of attribute record. - # - # source://activerecord//lib/active_record/validations.rb#16 + # pkg:gem/activerecord#lib/active_record/validations.rb:16 def record; end end @@ -31076,41 +28956,29 @@ end # # User.first.destroy! # => raises an ActiveRecord::RecordNotDestroyed # -# source://activerecord//lib/active_record/errors.rb#182 +# pkg:gem/activerecord#lib/active_record/errors.rb:182 class ActiveRecord::RecordNotDestroyed < ::ActiveRecord::ActiveRecordError - # @return [RecordNotDestroyed] a new instance of RecordNotDestroyed - # - # source://activerecord//lib/active_record/errors.rb#185 + # pkg:gem/activerecord#lib/active_record/errors.rb:185 def initialize(message = T.unsafe(nil), record = T.unsafe(nil)); end - # Returns the value of attribute record. - # - # source://activerecord//lib/active_record/errors.rb#183 + # pkg:gem/activerecord#lib/active_record/errors.rb:183 def record; end end # Raised when Active Record cannot find a record by given id or set of ids. # -# source://activerecord//lib/active_record/errors.rb#136 +# pkg:gem/activerecord#lib/active_record/errors.rb:136 class ActiveRecord::RecordNotFound < ::ActiveRecord::ActiveRecordError - # @return [RecordNotFound] a new instance of RecordNotFound - # - # source://activerecord//lib/active_record/errors.rb#139 + # pkg:gem/activerecord#lib/active_record/errors.rb:139 def initialize(message = T.unsafe(nil), model = T.unsafe(nil), primary_key = T.unsafe(nil), id = T.unsafe(nil)); end - # Returns the value of attribute id. - # - # source://activerecord//lib/active_record/errors.rb#137 + # pkg:gem/activerecord#lib/active_record/errors.rb:137 def id; end - # Returns the value of attribute model. - # - # source://activerecord//lib/active_record/errors.rb#137 + # pkg:gem/activerecord#lib/active_record/errors.rb:137 def model; end - # Returns the value of attribute primary_key. - # - # source://activerecord//lib/active_record/errors.rb#137 + # pkg:gem/activerecord#lib/active_record/errors.rb:137 def primary_key; end end @@ -31128,27 +28996,23 @@ end # # Product.create! # => raises an ActiveRecord::RecordNotSaved # -# source://activerecord//lib/active_record/errors.rb#161 +# pkg:gem/activerecord#lib/active_record/errors.rb:161 class ActiveRecord::RecordNotSaved < ::ActiveRecord::ActiveRecordError - # @return [RecordNotSaved] a new instance of RecordNotSaved - # - # source://activerecord//lib/active_record/errors.rb#164 + # pkg:gem/activerecord#lib/active_record/errors.rb:164 def initialize(message = T.unsafe(nil), record = T.unsafe(nil)); end - # Returns the value of attribute record. - # - # source://activerecord//lib/active_record/errors.rb#162 + # pkg:gem/activerecord#lib/active_record/errors.rb:162 def record; end end # Raised when a record cannot be inserted or updated because it would violate a uniqueness constraint. # -# source://activerecord//lib/active_record/errors.rb#229 +# pkg:gem/activerecord#lib/active_record/errors.rb:229 class ActiveRecord::RecordNotUnique < ::ActiveRecord::WrappedDatabaseException; end # = Active Record Reflection # -# source://activerecord//lib/active_record/reflection.rb#7 +# pkg:gem/activerecord#lib/active_record/reflection.rb:7 module ActiveRecord::Reflection extend ::ActiveSupport::Concern extend ::ActiveStorage::Reflection::ReflectionExtension @@ -31158,18 +29022,18 @@ module ActiveRecord::Reflection mixes_in_class_methods ::ActiveRecord::Reflection::ClassMethods class << self - # source://activerecord//lib/active_record/reflection.rb#29 + # pkg:gem/activerecord#lib/active_record/reflection.rb:29 def add_aggregate_reflection(ar, name, reflection); end - # source://activerecord//lib/active_record/reflection.rb#23 + # pkg:gem/activerecord#lib/active_record/reflection.rb:23 def add_reflection(ar, name, reflection); end - # source://activerecord//lib/active_record/reflection.rb#18 + # pkg:gem/activerecord#lib/active_record/reflection.rb:18 def create(macro, name, scope, options, ar); end private - # source://activestorage/8.0.5.1/lib/active_storage/reflection.rb#37 + # pkg:gem/activerecord#lib/active_record/reflection.rb:34 def reflection_class_for(macro); end end @@ -31214,29 +29078,27 @@ end # PolymorphicReflection # RuntimeReflection # -# source://activerecord//lib/active_record/reflection.rb#163 +# pkg:gem/activerecord#lib/active_record/reflection.rb:163 class ActiveRecord::Reflection::AbstractReflection - # @return [AbstractReflection] a new instance of AbstractReflection - # - # source://activerecord//lib/active_record/reflection.rb#164 + # pkg:gem/activerecord#lib/active_record/reflection.rb:164 def initialize; end - # source://activerecord//lib/active_record/reflection.rb#328 + # pkg:gem/activerecord#lib/active_record/reflection.rb:328 def alias_candidate(name); end # Returns a new, unsaved instance of the associated class. +attributes+ will # be passed to the class's constructor. # - # source://activerecord//lib/active_record/reflection.rb#182 + # pkg:gem/activerecord#lib/active_record/reflection.rb:182 def build_association(attributes, &block); end - # source://activerecord//lib/active_record/reflection.rb#336 + # pkg:gem/activerecord#lib/active_record/reflection.rb:336 def build_scope(table, predicate_builder = T.unsafe(nil), klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#332 + # pkg:gem/activerecord#lib/active_record/reflection.rb:332 def chain; end - # source://activerecord//lib/active_record/reflection.rb#264 + # pkg:gem/activerecord#lib/active_record/reflection.rb:264 def check_validity_of_inverse!; end # Returns the class name for the macro. @@ -31244,26 +29106,22 @@ class ActiveRecord::Reflection::AbstractReflection # composed_of :balance, class_name: 'Money' returns 'Money' # has_many :clients returns 'Client' # - # source://activerecord//lib/active_record/reflection.rb#190 + # pkg:gem/activerecord#lib/active_record/reflection.rb:190 def class_name; end - # source://activerecord//lib/active_record/reflection.rb#240 + # pkg:gem/activerecord#lib/active_record/reflection.rb:240 def constraints; end - # source://activerecord//lib/active_record/reflection.rb#244 + # pkg:gem/activerecord#lib/active_record/reflection.rb:244 def counter_cache_column; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#324 + # pkg:gem/activerecord#lib/active_record/reflection.rb:324 def counter_must_be_updated_by_has_many?; end # Returns whether this association has a counter cache and its column values were backfilled # (and so it is used internally by methods like +size+/+any?+/etc). # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#315 + # pkg:gem/activerecord#lib/active_record/reflection.rb:315 def has_active_cached_counter?; end # Returns whether this association has a counter cache. @@ -31271,31 +29129,16 @@ class ActiveRecord::Reflection::AbstractReflection # The counter_cache option must be given on either the owner or inverse # association, and the column must be present on the owner. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#307 + # pkg:gem/activerecord#lib/active_record/reflection.rb:307 def has_cached_counter?; end - # source://activerecord//lib/active_record/reflection.rb#258 + # pkg:gem/activerecord#lib/active_record/reflection.rb:258 def inverse_of; end - # We need to avoid the following situation: - # - # * An associated record is deleted via record.destroy - # * Hence the callbacks run, and they find a belongs_to on the record with a - # :counter_cache options which points back at our owner. So they update the - # counter cache. - # * In which case, we must make sure to *not* update the counter cache, or else - # it will be decremented twice. - # - # Hence this method. - # - # source://activerecord//lib/active_record/reflection.rb#285 + # pkg:gem/activerecord#lib/active_record/reflection.rb:297 def inverse_updates_counter_cache?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#299 + # pkg:gem/activerecord#lib/active_record/reflection.rb:299 def inverse_updates_counter_in_memory?; end # We need to avoid the following situation: @@ -31309,225 +29152,193 @@ class ActiveRecord::Reflection::AbstractReflection # # Hence this method. # - # source://activerecord//lib/active_record/reflection.rb#285 + # pkg:gem/activerecord#lib/active_record/reflection.rb:285 def inverse_which_updates_counter_cache; end - # source://activerecord//lib/active_record/reflection.rb#200 + # pkg:gem/activerecord#lib/active_record/reflection.rb:200 def join_scope(table, foreign_table, foreign_klass); end - # source://activerecord//lib/active_record/reflection.rb#227 + # pkg:gem/activerecord#lib/active_record/reflection.rb:227 def join_scopes(table, predicate_builder = T.unsafe(nil), klass = T.unsafe(nil), record = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#235 + # pkg:gem/activerecord#lib/active_record/reflection.rb:235 def klass_join_scope(table, predicate_builder = T.unsafe(nil)); end # Returns a list of scopes that should be applied for this Reflection # object when querying the database. # - # source://activerecord//lib/active_record/reflection.rb#196 + # pkg:gem/activerecord#lib/active_record/reflection.rb:196 def scopes; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#340 + # pkg:gem/activerecord#lib/active_record/reflection.rb:340 def strict_loading?; end - # source://activerecord//lib/active_record/reflection.rb#344 + # pkg:gem/activerecord#lib/active_record/reflection.rb:344 def strict_loading_violation_message(owner); end - # source://activerecord//lib/active_record/reflection.rb#176 + # pkg:gem/activerecord#lib/active_record/reflection.rb:176 def table_name; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#172 + # pkg:gem/activerecord#lib/active_record/reflection.rb:172 def through_reflection?; end protected - # FIXME: this is a horrible name - # - # source://activerecord//lib/active_record/reflection.rb#351 + # pkg:gem/activerecord#lib/active_record/reflection.rb:351 def actual_source_reflection; end private - # source://activerecord//lib/active_record/reflection.rb#360 + # pkg:gem/activerecord#lib/active_record/reflection.rb:360 def ensure_option_not_given_as_class!(option_name); end - # source://activerecord//lib/active_record/reflection.rb#356 + # pkg:gem/activerecord#lib/active_record/reflection.rb:356 def primary_key(klass); end end # Holds all the metadata about an aggregation as it was specified in the # Active Record class. # -# source://activerecord//lib/active_record/reflection.rb#480 +# pkg:gem/activerecord#lib/active_record/reflection.rb:480 class ActiveRecord::Reflection::AggregateReflection < ::ActiveRecord::Reflection::MacroReflection - # source://activerecord//lib/active_record/reflection.rb#481 + # pkg:gem/activerecord#lib/active_record/reflection.rb:481 def mapping; end end # Holds all the metadata about an association as it was specified in the # Active Record class. # -# source://activerecord//lib/active_record/reflection.rb#489 +# pkg:gem/activerecord#lib/active_record/reflection.rb:489 class ActiveRecord::Reflection::AssociationReflection < ::ActiveRecord::Reflection::MacroReflection - # @return [AssociationReflection] a new instance of AssociationReflection + # Reflection # - # source://activerecord//lib/active_record/reflection.rb#517 + # pkg:gem/activerecord#lib/active_record/reflection.rb:517 def initialize(name, scope, options, active_record); end - # source://activerecord//lib/active_record/reflection.rb#587 + # pkg:gem/activerecord#lib/active_record/reflection.rb:587 def active_record_primary_key; end - # source://activerecord//lib/active_record/reflection.rb#733 + # pkg:gem/activerecord#lib/active_record/reflection.rb:733 def add_as_polymorphic_through(reflection, seed); end - # source://activerecord//lib/active_record/reflection.rb#729 + # pkg:gem/activerecord#lib/active_record/reflection.rb:729 def add_as_source(seed); end - # source://activerecord//lib/active_record/reflection.rb#737 + # pkg:gem/activerecord#lib/active_record/reflection.rb:737 def add_as_through(seed); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/reflection.rb#719 + # pkg:gem/activerecord#lib/active_record/reflection.rb:719 def association_class; end - # source://activerecord//lib/active_record/reflection.rb#579 + # pkg:gem/activerecord#lib/active_record/reflection.rb:579 def association_foreign_key; end - # source://activerecord//lib/active_record/reflection.rb#583 + # pkg:gem/activerecord#lib/active_record/reflection.rb:583 def association_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#540 + # pkg:gem/activerecord#lib/active_record/reflection.rb:540 def association_scope_cache(klass, owner, &block); end # Returns +true+ if +self+ is a +belongs_to+ reflection. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#714 + # pkg:gem/activerecord#lib/active_record/reflection.rb:714 def belongs_to?; end - # source://activerecord//lib/active_record/reflection.rb#630 + # pkg:gem/activerecord#lib/active_record/reflection.rb:630 def check_eager_loadable!; end - # source://activerecord//lib/active_record/reflection.rb#618 + # pkg:gem/activerecord#lib/active_record/reflection.rb:618 def check_validity!; end # This is for clearing cache on the reflection. Useful for tests that need to compare # SQL queries on associations. # - # source://activerecord//lib/active_record/reflection.rb#662 + # pkg:gem/activerecord#lib/active_record/reflection.rb:662 def clear_association_scope_cache; end # A chain of reflections from this one back to the owner. For more see the explanation in # ThroughReflection. # - # source://activerecord//lib/active_record/reflection.rb#656 + # pkg:gem/activerecord#lib/active_record/reflection.rb:656 def collect_join_chain; end # Returns whether or not this association reflection is for a collection # association. Returns +true+ if the +macro+ is either +has_many+ or # +has_and_belongs_to_many+, +false+ otherwise. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#696 + # pkg:gem/activerecord#lib/active_record/reflection.rb:696 def collection?; end - # source://activerecord//lib/active_record/reflection.rb#490 + # pkg:gem/activerecord#lib/active_record/reflection.rb:490 def compute_class(name); end - # source://activerecord//lib/active_record/reflection.rb#741 + # pkg:gem/activerecord#lib/active_record/reflection.rb:741 def extensions; end - # source://activerecord//lib/active_record/reflection.rb#554 + # pkg:gem/activerecord#lib/active_record/reflection.rb:554 def foreign_key(infer_from_inverse_of: T.unsafe(nil)); end - # Returns the value of attribute foreign_type. - # - # source://activerecord//lib/active_record/reflection.rb#514 + # pkg:gem/activerecord#lib/active_record/reflection.rb:514 def foreign_type; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#674 + # pkg:gem/activerecord#lib/active_record/reflection.rb:674 def has_inverse?; end # Returns +true+ if +self+ is a +has_one+ reflection. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#717 + # pkg:gem/activerecord#lib/active_record/reflection.rb:717 def has_one?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#670 + # pkg:gem/activerecord#lib/active_record/reflection.rb:670 def has_scope?; end - # source://activerecord//lib/active_record/reflection.rb#614 + # pkg:gem/activerecord#lib/active_record/reflection.rb:614 def join_foreign_key; end - # source://activerecord//lib/active_record/reflection.rb#642 + # pkg:gem/activerecord#lib/active_record/reflection.rb:642 def join_id_for(owner); end - # source://activerecord//lib/active_record/reflection.rb#606 + # pkg:gem/activerecord#lib/active_record/reflection.rb:606 def join_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#610 + # pkg:gem/activerecord#lib/active_record/reflection.rb:610 def join_primary_type; end - # source://activerecord//lib/active_record/reflection.rb#550 + # pkg:gem/activerecord#lib/active_record/reflection.rb:550 def join_table; end # Returns the macro type. # # has_many :clients returns :has_many # - # @raise [NotImplementedError] - # - # source://activerecord//lib/active_record/reflection.rb#691 + # pkg:gem/activerecord#lib/active_record/reflection.rb:691 def macro; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#666 + # pkg:gem/activerecord#lib/active_record/reflection.rb:666 def nested?; end - # Reflection - # - # source://activerecord//lib/active_record/reflection.rb#515 + # pkg:gem/activerecord#lib/active_record/reflection.rb:515 def parent_reflection; end - # Reflection - # - # source://activerecord//lib/active_record/reflection.rb#515 + # pkg:gem/activerecord#lib/active_record/reflection.rb:515 def parent_reflection=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#721 + # pkg:gem/activerecord#lib/active_record/reflection.rb:721 def polymorphic?; end - # source://activerecord//lib/active_record/reflection.rb#678 + # pkg:gem/activerecord#lib/active_record/reflection.rb:678 def polymorphic_inverse_of(associated_class); end - # source://activerecord//lib/active_record/reflection.rb#725 + # pkg:gem/activerecord#lib/active_record/reflection.rb:725 def polymorphic_name; end - # source://activerecord//lib/active_record/reflection.rb#650 + # pkg:gem/activerecord#lib/active_record/reflection.rb:650 def source_reflection; end - # source://activerecord//lib/active_record/reflection.rb#646 + # pkg:gem/activerecord#lib/active_record/reflection.rb:646 def through_reflection; end - # Returns the value of attribute type. - # - # source://activerecord//lib/active_record/reflection.rb#514 + # pkg:gem/activerecord#lib/active_record/reflection.rb:514 def type; end # Returns whether or not the association should be validated as part of @@ -31540,16 +29351,14 @@ class ActiveRecord::Reflection::AssociationReflection < ::ActiveRecord::Reflecti # * you use autosave; autosave: true # * the association is a +has_many+ association # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#709 + # pkg:gem/activerecord#lib/active_record/reflection.rb:709 def validate?; end private # returns either +nil+ or the inverse association name that it finds. # - # source://activerecord//lib/active_record/reflection.rb#758 + # pkg:gem/activerecord#lib/active_record/reflection.rb:758 def automatic_inverse_of; end # Checks to see if the reflection doesn't have any options that prevent @@ -31559,28 +29368,26 @@ class ActiveRecord::Reflection::AssociationReflection < ::ActiveRecord::Reflecti # Third, we must not have options such as :foreign_key # which prevent us from correctly guessing the inverse association. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#800 + # pkg:gem/activerecord#lib/active_record/reflection.rb:800 def can_find_inverse_of_automatically?(reflection, inverse_reflection = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#821 + # pkg:gem/activerecord#lib/active_record/reflection.rb:821 def derive_class_name; end - # source://activerecord//lib/active_record/reflection.rb#839 + # pkg:gem/activerecord#lib/active_record/reflection.rb:839 def derive_fk_query_constraints(foreign_key); end - # source://activerecord//lib/active_record/reflection.rb#827 + # pkg:gem/activerecord#lib/active_record/reflection.rb:827 def derive_foreign_key(infer_from_inverse_of: T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#879 + # pkg:gem/activerecord#lib/active_record/reflection.rb:879 def derive_join_table; end # Attempts to find the inverse association name automatically. # If it cannot find a suitable inverse association name, it returns # +nil+. # - # source://activerecord//lib/active_record/reflection.rb#749 + # pkg:gem/activerecord#lib/active_record/reflection.rb:749 def inverse_name; end # Scopes on the potential inverse reflection prevent automatic @@ -31590,9 +29397,7 @@ class ActiveRecord::Reflection::AssociationReflection < ::ActiveRecord::Reflecti # config.active_record.automatic_scope_inversing is set to # +true+ (the default for new applications). # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#813 + # pkg:gem/activerecord#lib/active_record/reflection.rb:813 def scope_allows_automatic_inverse_of?(reflection, inverse_reflection); end # Checks if the inverse reflection that is returned from the @@ -31600,45 +29405,39 @@ class ActiveRecord::Reflection::AssociationReflection < ::ActiveRecord::Reflecti # make sure that the reflection's active_record name matches up # with the current reflection's klass name. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#786 + # pkg:gem/activerecord#lib/active_record/reflection.rb:786 def valid_inverse_reflection?(reflection); end end -# source://activerecord//lib/active_record/reflection.rb#912 +# pkg:gem/activerecord#lib/active_record/reflection.rb:912 class ActiveRecord::Reflection::BelongsToReflection < ::ActiveRecord::Reflection::AssociationReflection - # source://activerecord//lib/active_record/reflection.rb#917 + # pkg:gem/activerecord#lib/active_record/reflection.rb:917 def association_class; end # klass option is necessary to support loading polymorphic associations # - # source://activerecord//lib/active_record/reflection.rb#926 + # pkg:gem/activerecord#lib/active_record/reflection.rb:926 def association_primary_key(klass = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#915 + # pkg:gem/activerecord#lib/active_record/reflection.rb:915 def belongs_to?; end - # source://activerecord//lib/active_record/reflection.rb#948 + # pkg:gem/activerecord#lib/active_record/reflection.rb:948 def join_foreign_key; end - # source://activerecord//lib/active_record/reflection.rb#952 + # pkg:gem/activerecord#lib/active_record/reflection.rb:952 def join_foreign_type; end - # source://activerecord//lib/active_record/reflection.rb#944 + # pkg:gem/activerecord#lib/active_record/reflection.rb:944 def join_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#913 + # pkg:gem/activerecord#lib/active_record/reflection.rb:913 def macro; end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#957 - def can_find_inverse_of_automatically?(*_arg0); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:957 + def can_find_inverse_of_automatically?(*); end end # = Active Record Reflection @@ -31652,27 +29451,27 @@ end # MacroReflection class has info for AggregateReflection and AssociationReflection # classes. # -# source://activerecord//lib/active_record/reflection.rb#60 +# pkg:gem/activerecord#lib/active_record/reflection.rb:60 module ActiveRecord::Reflection::ClassMethods - # source://activerecord//lib/active_record/reflection.rb#126 + # pkg:gem/activerecord#lib/active_record/reflection.rb:126 def _reflect_on_association(association); end - # source://activerecord//lib/active_record/reflection.rb#137 + # pkg:gem/activerecord#lib/active_record/reflection.rb:137 def clear_reflections_cache; end - # source://activerecord//lib/active_record/reflection.rb#82 + # pkg:gem/activerecord#lib/active_record/reflection.rb:82 def normalized_reflections; end # Returns the AggregateReflection object for the named +aggregation+ (use the symbol). # # Account.reflect_on_aggregation(:balance) # => the balance AggregateReflection # - # source://activerecord//lib/active_record/reflection.rb#70 + # pkg:gem/activerecord#lib/active_record/reflection.rb:70 def reflect_on_aggregation(aggregation); end # Returns an array of AggregateReflection objects for all the aggregations in the class. # - # source://activerecord//lib/active_record/reflection.rb#62 + # pkg:gem/activerecord#lib/active_record/reflection.rb:62 def reflect_on_all_aggregations; end # Returns an array of AssociationReflection objects for all the @@ -31685,12 +29484,12 @@ module ActiveRecord::Reflection::ClassMethods # Account.reflect_on_all_associations # returns an array of all associations # Account.reflect_on_all_associations(:has_many) # returns an array of all has_many associations # - # source://activerecord//lib/active_record/reflection.rb#111 + # pkg:gem/activerecord#lib/active_record/reflection.rb:111 def reflect_on_all_associations(macro = T.unsafe(nil)); end # Returns an array of AssociationReflection objects for all associations which have :autosave enabled. # - # source://activerecord//lib/active_record/reflection.rb#131 + # pkg:gem/activerecord#lib/active_record/reflection.rb:131 def reflect_on_all_autosave_associations; end # Returns the AssociationReflection object for the +association+ (use the symbol). @@ -31698,89 +29497,79 @@ module ActiveRecord::Reflection::ClassMethods # Account.reflect_on_association(:owner) # returns the owner AssociationReflection # Invoice.reflect_on_association(:line_items).macro # returns :has_many # - # source://activerecord//lib/active_record/reflection.rb#122 + # pkg:gem/activerecord#lib/active_record/reflection.rb:122 def reflect_on_association(association); end # Returns a Hash of name of the reflection as the key and an AssociationReflection as the value. # # Account.reflections # => {"balance" => AggregateReflection} # - # source://activerecord//lib/active_record/reflection.rb#78 + # pkg:gem/activerecord#lib/active_record/reflection.rb:78 def reflections; end private - # source://activerecord//lib/active_record/reflection.rb#142 + # pkg:gem/activerecord#lib/active_record/reflection.rb:142 def inherited(subclass); end end -# source://activerecord//lib/active_record/reflection.rb#962 +# pkg:gem/activerecord#lib/active_record/reflection.rb:962 class ActiveRecord::Reflection::HasAndBelongsToManyReflection < ::ActiveRecord::Reflection::AssociationReflection - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#965 + # pkg:gem/activerecord#lib/active_record/reflection.rb:965 def collection?; end - # source://activerecord//lib/active_record/reflection.rb#963 + # pkg:gem/activerecord#lib/active_record/reflection.rb:963 def macro; end end -# source://activerecord//lib/active_record/reflection.rb#884 +# pkg:gem/activerecord#lib/active_record/reflection.rb:884 class ActiveRecord::Reflection::HasManyReflection < ::ActiveRecord::Reflection::AssociationReflection - # source://activerecord//lib/active_record/reflection.rb#889 + # pkg:gem/activerecord#lib/active_record/reflection.rb:889 def association_class; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#887 + # pkg:gem/activerecord#lib/active_record/reflection.rb:887 def collection?; end - # source://activerecord//lib/active_record/reflection.rb#885 + # pkg:gem/activerecord#lib/active_record/reflection.rb:885 def macro; end end -# source://activerecord//lib/active_record/reflection.rb#898 +# pkg:gem/activerecord#lib/active_record/reflection.rb:898 class ActiveRecord::Reflection::HasOneReflection < ::ActiveRecord::Reflection::AssociationReflection - # source://activerecord//lib/active_record/reflection.rb#903 + # pkg:gem/activerecord#lib/active_record/reflection.rb:903 def association_class; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#901 + # pkg:gem/activerecord#lib/active_record/reflection.rb:901 def has_one?; end - # source://activerecord//lib/active_record/reflection.rb#899 + # pkg:gem/activerecord#lib/active_record/reflection.rb:899 def macro; end end # Base class for AggregateReflection and AssociationReflection. Objects of # AggregateReflection and AssociationReflection are returned by the Reflection::ClassMethods. # -# source://activerecord//lib/active_record/reflection.rb#369 +# pkg:gem/activerecord#lib/active_record/reflection.rb:369 class ActiveRecord::Reflection::MacroReflection < ::ActiveRecord::Reflection::AbstractReflection - # @return [MacroReflection] a new instance of MacroReflection - # - # source://activerecord//lib/active_record/reflection.rb#388 + # pkg:gem/activerecord#lib/active_record/reflection.rb:388 def initialize(name, scope, options, active_record); end # Returns +true+ if +self+ and +other_aggregation+ have the same +name+ attribute, +active_record+ attribute, # and +other_aggregation+ has an options hash assigned to it. # - # source://activerecord//lib/active_record/reflection.rb#440 + # pkg:gem/activerecord#lib/active_record/reflection.rb:440 def ==(other_aggregation); end - # source://activerecord//lib/active_record/reflection.rb#426 + # pkg:gem/activerecord#lib/active_record/reflection.rb:426 def _klass(class_name); end - # Returns the value of attribute active_record. - # - # source://activerecord//lib/active_record/reflection.rb#384 + # pkg:gem/activerecord#lib/active_record/reflection.rb:384 def active_record; end - # source://activerecord//lib/active_record/reflection.rb#399 + # pkg:gem/activerecord#lib/active_record/reflection.rb:399 def autosave=(autosave); end - # source://activerecord//lib/active_record/reflection.rb#434 + # pkg:gem/activerecord#lib/active_record/reflection.rb:434 def compute_class(name); end # Returns the class for the macro. @@ -31799,7 +29588,7 @@ class ActiveRecord::Reflection::MacroReflection < ::ActiveRecord::Reflection::Ab # a new association object. Use +build_association+ or +create_association+ # instead. This allows plugins to hook into association object creation. # - # source://activerecord//lib/active_record/reflection.rb#422 + # pkg:gem/activerecord#lib/active_record/reflection.rb:422 def klass; end # Returns the name of the macro. @@ -31807,7 +29596,7 @@ class ActiveRecord::Reflection::MacroReflection < ::ActiveRecord::Reflection::Ab # composed_of :balance, class_name: 'Money' returns :balance # has_many :clients returns :clients # - # source://activerecord//lib/active_record/reflection.rb#374 + # pkg:gem/activerecord#lib/active_record/reflection.rb:374 def name; end # Returns the hash of options used for the macro. @@ -31815,164 +29604,156 @@ class ActiveRecord::Reflection::MacroReflection < ::ActiveRecord::Reflection::Ab # composed_of :balance, class_name: 'Money' returns { class_name: "Money" } # has_many :clients returns {} # - # source://activerecord//lib/active_record/reflection.rb#382 + # pkg:gem/activerecord#lib/active_record/reflection.rb:382 def options; end - # source://activerecord//lib/active_record/reflection.rb#386 + # pkg:gem/activerecord#lib/active_record/reflection.rb:386 def plural_name; end - # Returns the value of attribute scope. - # - # source://activerecord//lib/active_record/reflection.rb#376 + # pkg:gem/activerecord#lib/active_record/reflection.rb:376 def scope; end - # source://activerecord//lib/active_record/reflection.rb#448 + # pkg:gem/activerecord#lib/active_record/reflection.rb:448 def scope_for(relation, owner = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/reflection.rb#453 + # pkg:gem/activerecord#lib/active_record/reflection.rb:453 def derive_class_name; end - # source://activerecord//lib/active_record/reflection.rb#457 + # pkg:gem/activerecord#lib/active_record/reflection.rb:457 def normalize_options(options); end end -# source://activerecord//lib/active_record/reflection.rb#1228 +# pkg:gem/activerecord#lib/active_record/reflection.rb:1228 class ActiveRecord::Reflection::PolymorphicReflection < ::ActiveRecord::Reflection::AbstractReflection - # @return [PolymorphicReflection] a new instance of PolymorphicReflection - # - # source://activerecord//lib/active_record/reflection.rb#1232 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1232 def initialize(reflection, previous_reflection); end - # source://activerecord//lib/active_record/reflection.rb#1246 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1246 def constraints; end - # source://activerecord//lib/active_record/reflection.rb#1229 - def join_foreign_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1229 + def join_foreign_key(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1229 - def join_primary_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1229 + def join_primary_key(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1238 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1238 def join_scopes(table, predicate_builder = T.unsafe(nil), klass = T.unsafe(nil), record = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1229 - def klass(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1229 + def klass(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1229 - def name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1229 + def name(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1229 - def plural_name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1229 + def plural_name(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1229 - def scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1229 + def scope(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1229 - def scope_for(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1229 + def scope_for(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1229 - def type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1229 + def type(*, **, &); end private - # source://activerecord//lib/active_record/reflection.rb#1251 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1251 def source_type_scope; end end -# source://activerecord//lib/active_record/reflection.rb#1258 +# pkg:gem/activerecord#lib/active_record/reflection.rb:1258 class ActiveRecord::Reflection::RuntimeReflection < ::ActiveRecord::Reflection::AbstractReflection - # @return [RuntimeReflection] a new instance of RuntimeReflection - # - # source://activerecord//lib/active_record/reflection.rb#1261 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1261 def initialize(reflection, association); end - # source://activerecord//lib/active_record/reflection.rb#1271 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1271 def aliased_table; end - # source://activerecord//lib/active_record/reflection.rb#1279 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1279 def all_includes; end - # source://activerecord//lib/active_record/reflection.rb#1259 - def constraints(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1259 + def constraints(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1259 - def join_foreign_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1259 + def join_foreign_key(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1275 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1275 def join_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1267 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1267 def klass; end - # source://activerecord//lib/active_record/reflection.rb#1259 - def scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1259 + def scope(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1259 - def type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1259 + def type(*, **, &); end end # Holds all the metadata about a :through association as it was specified # in the Active Record class. # -# source://activerecord//lib/active_record/reflection.rb#972 +# pkg:gem/activerecord#lib/active_record/reflection.rb:972 class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection::AbstractReflection - # @return [ThroughReflection] a new instance of ThroughReflection - # - # source://activerecord//lib/active_record/reflection.rb#976 + # pkg:gem/activerecord#lib/active_record/reflection.rb:976 def initialize(delegate_reflection); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def _klass(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def _klass(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def active_record(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def active_record(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#973 - def active_record_primary_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:973 + def active_record_primary_key(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1190 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1190 def add_as_polymorphic_through(reflection, seed); end - # source://activerecord//lib/active_record/reflection.rb#1186 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1186 def add_as_source(seed); end - # source://activerecord//lib/active_record/reflection.rb#1194 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1194 def add_as_through(seed); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def association_class(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def association_class(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#973 - def association_foreign_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:973 + def association_foreign_key(*, **, &); end # We want to use the klass from this reflection, rather than just delegate straight to # the source_reflection, because the source_reflection may be polymorphic. We still # need to respect the source_reflection's :primary_key option, though. # - # source://activerecord//lib/active_record/reflection.rb#1083 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1083 def association_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def association_scope_cache(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def association_scope_cache(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 def autosave=(arg); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def belongs_to?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def belongs_to?(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def check_eager_loadable!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def check_eager_loadable!(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1140 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1140 def check_validity!; end # This is for clearing cache on the reflection. Useful for tests that need to compare # SQL queries on associations. # - # source://activerecord//lib/active_record/reflection.rb#1055 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1055 def clear_association_scope_cache; end # Returns an array of reflections which are involved in this association. Each item in the @@ -31992,103 +29773,99 @@ class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection:: # # => [, # ] # - # source://activerecord//lib/active_record/reflection.rb#1049 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1049 def collect_join_chain; end - # source://activerecord//lib/active_record/reflection.rb#1225 - def collection?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def collection?(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def compute_class(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def compute_class(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1180 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1180 def constraints; end - # source://activerecord//lib/active_record/reflection.rb#1225 - def extensions(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def extensions(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#973 - def foreign_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:973 + def foreign_key(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#973 - def foreign_type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:973 + def foreign_type(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def has_inverse?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def has_inverse?(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def has_one?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def has_one?(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#1069 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1069 def has_scope?; end - # source://activerecord//lib/active_record/reflection.rb#973 - def join_foreign_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:973 + def join_foreign_key(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#973 - def join_id_for(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:973 + def join_id_for(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1093 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1093 def join_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def join_primary_type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def join_primary_type(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1065 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1065 def join_scopes(table, predicate_builder = T.unsafe(nil), klass = T.unsafe(nil), record = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def join_table(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def join_table(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#989 + # pkg:gem/activerecord#lib/active_record/reflection.rb:989 def klass; end - # source://activerecord//lib/active_record/reflection.rb#1225 - def macro(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def macro(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def name(*, **, &); end # A through association is nested if there would be more than one join table # - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#1076 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1076 def nested?; end - # source://activerecord//lib/active_record/reflection.rb#1225 - def options(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def options(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def parent_reflection(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def parent_reflection(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 def parent_reflection=(arg); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def plural_name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def plural_name(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def polymorphic?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def polymorphic?(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def polymorphic_inverse_of(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def polymorphic_inverse_of(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def polymorphic_name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def polymorphic_name(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def scope(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def scope_for(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def scope_for(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1061 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1061 def scopes; end - # source://activerecord//lib/active_record/reflection.rb#1132 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1132 def source_options; end # Returns the source of the through reflection. It checks both a singularized @@ -32108,10 +29885,10 @@ class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection:: # tags_reflection.source_reflection # # => # - # source://activerecord//lib/active_record/reflection.rb#1010 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1010 def source_reflection; end - # source://activerecord//lib/active_record/reflection.rb#1112 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1112 def source_reflection_name; end # Gets an array of possible :through source reflection names in both singular and plural form. @@ -32125,10 +29902,10 @@ class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection:: # tags_reflection.source_reflection_names # # => [:tag, :tags] # - # source://activerecord//lib/active_record/reflection.rb#1108 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1108 def source_reflection_names; end - # source://activerecord//lib/active_record/reflection.rb#1136 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1136 def through_options; end # Returns the AssociationReflection object specified in the :through option @@ -32143,47 +29920,41 @@ class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection:: # tags_reflection.through_reflection # # => # - # source://activerecord//lib/active_record/reflection.rb#1028 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1028 def through_reflection; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/reflection.rb#985 + # pkg:gem/activerecord#lib/active_record/reflection.rb:985 def through_reflection?; end - # source://activerecord//lib/active_record/reflection.rb#973 - def type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:973 + def type(*, **, &); end - # source://activerecord//lib/active_record/reflection.rb#1225 - def validate?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/reflection.rb:1225 + def validate?(*, **, &); end protected - # FIXME: this is a horrible name - # - # source://activerecord//lib/active_record/reflection.rb#1199 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1199 def actual_source_reflection; end private - # source://activerecord//lib/active_record/reflection.rb#1206 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1206 def collect_join_reflections(seed); end - # Returns the value of attribute delegate_reflection. - # - # source://activerecord//lib/active_record/reflection.rb#1204 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1204 def delegate_reflection; end - # source://activerecord//lib/active_record/reflection.rb#1217 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1217 def derive_class_name; end - # source://activerecord//lib/active_record/reflection.rb#1215 + # pkg:gem/activerecord#lib/active_record/reflection.rb:1215 def inverse_name; end end # = Active Record \Relation # -# source://activerecord//lib/active_record/relation.rb#5 +# pkg:gem/activerecord#lib/active_record/relation.rb:5 class ActiveRecord::Relation include ::Enumerable include ::ActiveRecord::Delegation @@ -32198,20 +29969,18 @@ class ActiveRecord::Relation include ::ActiveRecord::SignedId::RelationMethods extend ::ActiveRecord::Delegation::ClassMethods - # @return [Relation] a new instance of Relation - # - # source://activerecord//lib/active_record/relation.rb#77 + # pkg:gem/activerecord#lib/active_record/relation.rb:77 def initialize(model, table: T.unsafe(nil), predicate_builder: T.unsafe(nil), values: T.unsafe(nil)); end # Compares two relations for equality. # - # source://activerecord//lib/active_record/relation.rb#1263 + # pkg:gem/activerecord#lib/active_record/relation.rb:1263 def ==(other); end - # source://activerecord//lib/active_record/relation.rb#562 - def _exec_scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation.rb:562 + def _exec_scope(*, **, &); end - # source://activerecord//lib/active_record/relation.rb#1317 + # pkg:gem/activerecord#lib/active_record/relation.rb:1317 def alias_tracker(joins = T.unsafe(nil), aliases = T.unsafe(nil)); end # Returns true if there are any records. @@ -32221,37 +29990,18 @@ class ActiveRecord::Relation # # posts.any?(Post) # => true or false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#401 + # pkg:gem/activerecord#lib/active_record/relation.rb:401 def any?(*args); end - # @yield [attr, bind] - # - # source://activerecord//lib/active_record/relation.rb#102 + # pkg:gem/activerecord#lib/active_record/relation.rb:102 def bind_attribute(name, value); end # Returns true if relation is blank. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1284 + # pkg:gem/activerecord#lib/active_record/relation.rb:1284 def blank?; end - # Initializes new record from relation while maintaining the current - # scope. - # - # Expects arguments in the same format as {ActiveRecord::Base.new}[rdoc-ref:Core.new]. - # - # users = User.where(name: 'DHH') - # user = users.new # => # - # - # You can also pass a block to new with the new record as argument: - # - # user = users.new { |user| user.name = 'Oscar' } - # user.name # => Oscar - # - # source://activerecord//lib/active_record/relation.rb#125 + # pkg:gem/activerecord#lib/active_record/relation.rb:133 def build(attributes = T.unsafe(nil), &block); end # Returns a stable cache key that can be used to identify this query. @@ -32272,12 +30022,12 @@ class ActiveRecord::Relation # # Product.where("name like ?", "%Game%").cache_key(:last_reviewed_at) # - # source://activerecord//lib/active_record/relation.rb#448 + # pkg:gem/activerecord#lib/active_record/relation.rb:448 def cache_key(timestamp_column = T.unsafe(nil)); end # Returns a cache key along with the version. # - # source://activerecord//lib/active_record/relation.rb#529 + # pkg:gem/activerecord#lib/active_record/relation.rb:529 def cache_key_with_version; end # Returns a cache version that can be used together with the cache key to form @@ -32291,7 +30041,7 @@ class ActiveRecord::Relation # # SELECT COUNT(*), MAX("products"."updated_at") FROM "products" WHERE (name like '%Cosmic Encounter%') # - # source://activerecord//lib/active_record/relation.rb#475 + # pkg:gem/activerecord#lib/active_record/relation.rb:475 def cache_version(timestamp_column = T.unsafe(nil)); end # Tries to create a new record with the same scoped attributes @@ -32314,7 +30064,7 @@ class ActiveRecord::Relation # users.create(name: nil) # validation on name # # => # # - # source://activerecord//lib/active_record/relation.rb#154 + # pkg:gem/activerecord#lib/active_record/relation.rb:154 def create(attributes = T.unsafe(nil), &block); end # Similar to #create, but calls @@ -32324,7 +30074,7 @@ class ActiveRecord::Relation # Expects arguments in the same format as # {ActiveRecord::Base.create!}[rdoc-ref:Persistence::ClassMethods#create!]. # - # source://activerecord//lib/active_record/relation.rb#169 + # pkg:gem/activerecord#lib/active_record/relation.rb:169 def create!(attributes = T.unsafe(nil), &block); end # Attempts to create a record with the given attributes in a table that has a unique database constraint @@ -32359,14 +30109,14 @@ class ActiveRecord::Relation # and failed due to validation errors it won't be persisted, you get what #create returns in # such situation. # - # source://activerecord//lib/active_record/relation.rb#273 + # pkg:gem/activerecord#lib/active_record/relation.rb:273 def create_or_find_by(attributes, &block); end # Like #create_or_find_by, but calls # {create!}[rdoc-ref:Persistence::ClassMethods#create!] so an exception # is raised if the created record is invalid. # - # source://activerecord//lib/active_record/relation.rb#293 + # pkg:gem/activerecord#lib/active_record/relation.rb:293 def create_or_find_by!(attributes, &block); end # Deletes the row with a primary key matching the +id+ argument, using an @@ -32388,7 +30138,7 @@ class ActiveRecord::Relation # # Delete multiple rows # Todo.delete([2,3,4]) # - # source://activerecord//lib/active_record/relation.rb#1067 + # pkg:gem/activerecord#lib/active_record/relation.rb:1067 def delete(id_or_array); end # Deletes the records without instantiating the records @@ -32410,7 +30160,7 @@ class ActiveRecord::Relation # Post.distinct.delete_all # # => ActiveRecord::ActiveRecordError: delete_all doesn't support distinct # - # source://activerecord//lib/active_record/relation.rb#1021 + # pkg:gem/activerecord#lib/active_record/relation.rb:1021 def delete_all; end # Finds and deletes all records matching the specified conditions. @@ -32423,7 +30173,7 @@ class ActiveRecord::Relation # Person.delete_by(name: 'Spartacus', rating: 4) # Person.delete_by("published_at < ?", 2.weeks.ago) # - # source://activerecord//lib/active_record/relation.rb#1129 + # pkg:gem/activerecord#lib/active_record/relation.rb:1129 def delete_by(*args); end # Destroy an object (or multiple objects) that has the given id. The object is instantiated first, @@ -32446,7 +30196,7 @@ class ActiveRecord::Relation # todos = [1,2,3] # Todo.destroy(todos) # - # source://activerecord//lib/active_record/relation.rb#1093 + # pkg:gem/activerecord#lib/active_record/relation.rb:1093 def destroy(id); end # Destroys the records by instantiating each @@ -32466,7 +30216,7 @@ class ActiveRecord::Relation # # Person.where(age: 0..18).destroy_all # - # source://activerecord//lib/active_record/relation.rb#999 + # pkg:gem/activerecord#lib/active_record/relation.rb:999 def destroy_all; end # Finds and destroys all records matching the specified conditions. @@ -32479,31 +30229,25 @@ class ActiveRecord::Relation # Person.destroy_by(name: 'Spartacus', rating: 4) # Person.destroy_by("published_at < ?", 2.weeks.ago) # - # source://activerecord//lib/active_record/relation.rb#1116 + # pkg:gem/activerecord#lib/active_record/relation.rb:1116 def destroy_by(*args); end # Returns true if relation needs eager loading. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1248 + # pkg:gem/activerecord#lib/active_record/relation.rb:1248 def eager_loading?; end # Returns true if there are no records. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#372 + # pkg:gem/activerecord#lib/active_record/relation.rb:372 def empty?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1309 + # pkg:gem/activerecord#lib/active_record/relation.rb:1309 def empty_scope?; end # Serializes the relation objects Array. # - # source://activerecord//lib/active_record/relation.rb#358 + # pkg:gem/activerecord#lib/active_record/relation.rb:358 def encode_with(coder); end # Runs EXPLAIN on the query or queries triggered by this relation and @@ -32533,7 +30277,7 @@ class ActiveRecord::Relation # Please see further details in the # {Active Record Query Interface guide}[https://guides.rubyonrails.org/active_record_querying.html#running-explain]. # - # source://activerecord//lib/active_record/relation.rb#342 + # pkg:gem/activerecord#lib/active_record/relation.rb:342 def explain(*options); end # Finds the first record with the given attributes, or creates a record @@ -32578,34 +30322,32 @@ class ActiveRecord::Relation # doesn't have a relevant unique constraint it could be the case that # you end up with two or more similar records. # - # source://activerecord//lib/active_record/relation.rb#231 + # pkg:gem/activerecord#lib/active_record/relation.rb:231 def find_or_create_by(attributes, &block); end # Like #find_or_create_by, but calls # {create!}[rdoc-ref:Persistence::ClassMethods#create!] so an exception # is raised if the created record is invalid. # - # source://activerecord//lib/active_record/relation.rb#238 + # pkg:gem/activerecord#lib/active_record/relation.rb:238 def find_or_create_by!(attributes, &block); end # Like #find_or_create_by, but calls {new}[rdoc-ref:Core.new] # instead of {create}[rdoc-ref:Persistence::ClassMethods#create]. # - # source://activerecord//lib/active_record/relation.rb#312 + # pkg:gem/activerecord#lib/active_record/relation.rb:312 def find_or_initialize_by(attributes, &block); end - # source://activerecord//lib/active_record/relation.rb#178 + # pkg:gem/activerecord#lib/active_record/relation.rb:178 def first_or_create(attributes = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/relation.rb#182 + # pkg:gem/activerecord#lib/active_record/relation.rb:182 def first_or_create!(attributes = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/relation.rb#186 + # pkg:gem/activerecord#lib/active_record/relation.rb:186 def first_or_initialize(attributes = T.unsafe(nil), &block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1313 + # pkg:gem/activerecord#lib/active_record/relation.rb:1313 def has_limit_or_offset?; end # Inserts a single record into the database in a single SQL INSERT @@ -32615,7 +30357,7 @@ class ActiveRecord::Relation # # See #insert_all for documentation. # - # source://activerecord//lib/active_record/relation.rb#654 + # pkg:gem/activerecord#lib/active_record/relation.rb:654 def insert(attributes, returning: T.unsafe(nil), unique_by: T.unsafe(nil), record_timestamps: T.unsafe(nil)); end # Inserts a single record into the database in a single SQL INSERT @@ -32625,7 +30367,7 @@ class ActiveRecord::Relation # # See #insert_all! for more. # - # source://activerecord//lib/active_record/relation.rb#743 + # pkg:gem/activerecord#lib/active_record/relation.rb:743 def insert!(attributes, returning: T.unsafe(nil), record_timestamps: T.unsafe(nil)); end # Inserts multiple records into the database in a single SQL INSERT @@ -32704,7 +30446,7 @@ class ActiveRecord::Relation # { id: 2, title: "Eloquent Ruby" } # ]) # - # source://activerecord//lib/active_record/relation.rb#733 + # pkg:gem/activerecord#lib/active_record/relation.rb:733 def insert_all(attributes, returning: T.unsafe(nil), unique_by: T.unsafe(nil), record_timestamps: T.unsafe(nil)); end # Inserts multiple records into the database in a single SQL INSERT @@ -32761,10 +30503,10 @@ class ActiveRecord::Relation # { id: 1, title: "Eloquent Ruby", author: "Russ" } # ]) # - # source://activerecord//lib/active_record/relation.rb#800 + # pkg:gem/activerecord#lib/active_record/relation.rb:800 def insert_all!(attributes, returning: T.unsafe(nil), record_timestamps: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#1300 + # pkg:gem/activerecord#lib/active_record/relation.rb:1300 def inspect; end # Joins that are also marked for preloading. In which case we should just eager load them. @@ -32772,12 +30514,10 @@ class ActiveRecord::Relation # represent the same association, but that aren't matched by this. Also, we could have # nested hashes which partially match, e.g. { a: :b } & { a: [:b, :c] } # - # source://activerecord//lib/active_record/relation.rb#1258 + # pkg:gem/activerecord#lib/active_record/relation.rb:1258 def joined_includes_values; end - # Returns the value of attribute model. - # - # source://activerecord//lib/active_record/relation.rb#71 + # pkg:gem/activerecord#lib/active_record/relation.rb:73 def klass; end # Causes the records to be loaded from the database if they have not @@ -32787,7 +30527,7 @@ class ActiveRecord::Relation # # Post.where(published: true).load # => # # - # source://activerecord//lib/active_record/relation.rb#1189 + # pkg:gem/activerecord#lib/active_record/relation.rb:1189 def load(&block); end # Schedule the query to be performed from a background thread pool. @@ -32806,32 +30546,24 @@ class ActiveRecord::Relation # # ASYNC Post Load (0.0ms) (db time 2ms) SELECT "posts".* FROM "posts" LIMIT 100 # - # source://activerecord//lib/active_record/relation.rb#1148 + # pkg:gem/activerecord#lib/active_record/relation.rb:1148 def load_async; end - # Returns the value of attribute loaded. - # - # source://activerecord//lib/active_record/relation.rb#71 + # pkg:gem/activerecord#lib/active_record/relation.rb:71 def loaded; end - # Returns the value of attribute loaded. - # - # source://activerecord//lib/active_record/relation.rb#71 + # pkg:gem/activerecord#lib/active_record/relation.rb:74 def loaded?; end - # source://activerecord//lib/active_record/relation/query_methods.rb#174 + # pkg:gem/activerecord#lib/active_record/relation.rb:75 def locked?; end # Returns true if there is more than one record. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#423 + # pkg:gem/activerecord#lib/active_record/relation.rb:423 def many?; end - # Returns the value of attribute model. - # - # source://activerecord//lib/active_record/relation.rb#71 + # pkg:gem/activerecord#lib/active_record/relation.rb:71 def model; end # Initializes new record from relation while maintaining the current @@ -32847,7 +30579,7 @@ class ActiveRecord::Relation # user = users.new { |user| user.name = 'Oscar' } # user.name # => Oscar # - # source://activerecord//lib/active_record/relation.rb#125 + # pkg:gem/activerecord#lib/active_record/relation.rb:125 def new(attributes = T.unsafe(nil), &block); end # Returns true if there are no records. @@ -32857,9 +30589,7 @@ class ActiveRecord::Relation # # posts.none?(Comment) # => true or false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#388 + # pkg:gem/activerecord#lib/active_record/relation.rb:388 def none?(*args); end # Returns true if there is exactly one record. @@ -32869,47 +30599,39 @@ class ActiveRecord::Relation # # posts.one?(Post) # => true or false # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#414 + # pkg:gem/activerecord#lib/active_record/relation.rb:414 def one?(*args); end - # Returns the value of attribute predicate_builder. - # - # source://activerecord//lib/active_record/relation.rb#71 + # pkg:gem/activerecord#lib/active_record/relation.rb:71 def predicate_builder; end - # source://activerecord//lib/active_record/relation.rb#1331 + # pkg:gem/activerecord#lib/active_record/relation.rb:1331 def preload_associations(records); end - # source://activerecord//lib/active_record/relation.rb#1274 + # pkg:gem/activerecord#lib/active_record/relation.rb:1274 def pretty_print(pp); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1288 + # pkg:gem/activerecord#lib/active_record/relation.rb:1288 def readonly?; end - # source://activerecord//lib/active_record/relation.rb#352 + # pkg:gem/activerecord#lib/active_record/relation.rb:352 def records; end # Forces reloading of relation. # - # source://activerecord//lib/active_record/relation.rb#1199 + # pkg:gem/activerecord#lib/active_record/relation.rb:1199 def reload; end - # source://activerecord//lib/active_record/relation.rb#1204 + # pkg:gem/activerecord#lib/active_record/relation.rb:1204 def reset; end # Returns true if the relation was scheduled on the background # thread pool. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1179 + # pkg:gem/activerecord#lib/active_record/relation.rb:1179 def scheduled?; end - # source://activerecord//lib/active_record/relation.rb#1241 + # pkg:gem/activerecord#lib/active_record/relation.rb:1241 def scope_for_create; end # Scope all queries to the current scope. @@ -32927,42 +30649,32 @@ class ActiveRecord::Relation # Please check unscoped if you want to remove all previous scopes (including # the default_scope) during the execution of a block. # - # source://activerecord//lib/active_record/relation.rb#551 + # pkg:gem/activerecord#lib/active_record/relation.rb:551 def scoping(all_queries: T.unsafe(nil), &block); end # Returns size of the records. # - # source://activerecord//lib/active_record/relation.rb#363 + # pkg:gem/activerecord#lib/active_record/relation.rb:363 def size; end - # Returns the value of attribute skip_preloading_value. - # - # source://activerecord//lib/active_record/relation.rb#72 + # pkg:gem/activerecord#lib/active_record/relation.rb:72 def skip_preloading_value; end - # Sets the attribute skip_preloading_value - # - # @param value the value to set the attribute skip_preloading_value to. - # - # source://activerecord//lib/active_record/relation.rb#72 + # pkg:gem/activerecord#lib/active_record/relation.rb:72 def skip_preloading_value=(_arg0); end - # Returns the value of attribute table. - # - # source://activerecord//lib/active_record/relation.rb#71 + # pkg:gem/activerecord#lib/active_record/relation.rb:71 def table; end - # source://activerecord//lib/active_record/relation.rb#1167 + # pkg:gem/activerecord#lib/active_record/relation.rb:1167 def then(&block); end - # Converts relation objects to Array. - # - # source://activerecord//lib/active_record/relation.rb#347 + # pkg:gem/activerecord#lib/active_record/relation.rb:350 def to_a; end # Converts relation objects to Array. # - # source://activerecord//lib/active_record/relation.rb#347 + # pkg:gem/activerecord#lib/active_record/relation.rb:347 def to_ary; end # Returns sql statement for the relation. @@ -32970,7 +30682,7 @@ class ActiveRecord::Relation # User.where(name: 'Oscar').to_sql # # SELECT "users".* FROM "users" WHERE "users"."name" = 'Oscar' # - # source://activerecord//lib/active_record/relation.rb#1220 + # pkg:gem/activerecord#lib/active_record/relation.rb:1220 def to_sql; end # Touches all records in the current relation, setting the +updated_at+/+updated_on+ attributes to the current time or the time specified. @@ -32997,13 +30709,13 @@ class ActiveRecord::Relation # Person.where(name: 'David').touch_all # # => "UPDATE \"people\" SET \"updated_at\" = '2018-01-04 22:55:23.132670' WHERE \"people\".\"name\" = 'David'" # - # source://activerecord//lib/active_record/relation.rb#979 + # pkg:gem/activerecord#lib/active_record/relation.rb:979 def touch_all(*names, time: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#631 + # pkg:gem/activerecord#lib/active_record/relation.rb:631 def update(id = T.unsafe(nil), attributes); end - # source://activerecord//lib/active_record/relation.rb#639 + # pkg:gem/activerecord#lib/active_record/relation.rb:639 def update!(id = T.unsafe(nil), attributes); end # Updates all records in the current relation with details given. This method constructs a single SQL UPDATE @@ -33035,9 +30747,7 @@ class ActiveRecord::Relation # # Update all books with 'Rails' in their title # Book.where('title LIKE ?', '%Rails%').update_all(title: Arel.sql("title + ' - volume 1'")) # - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/relation.rb#598 + # pkg:gem/activerecord#lib/active_record/relation.rb:598 def update_all(updates); end # Updates the counters of the records in the current relation. @@ -33053,7 +30763,7 @@ class ActiveRecord::Relation # # For Posts by a given author increment the comment_count by 1. # Post.where(author_id: author.id).update_counters(comment_count: 1) # - # source://activerecord//lib/active_record/relation.rb#936 + # pkg:gem/activerecord#lib/active_record/relation.rb:936 def update_counters(counters); end # Updates or inserts (upserts) a single record into the database in a @@ -33063,7 +30773,7 @@ class ActiveRecord::Relation # # See #upsert_all for documentation. # - # source://activerecord//lib/active_record/relation.rb#810 + # pkg:gem/activerecord#lib/active_record/relation.rb:810 def upsert(attributes, **kwargs); end # Updates or inserts (upserts) multiple records into the database in a @@ -33173,13 +30883,13 @@ class ActiveRecord::Relation # # Book.find_by(isbn: "1").title # => "Eloquent Ruby" # - # source://activerecord//lib/active_record/relation.rb#920 + # pkg:gem/activerecord#lib/active_record/relation.rb:920 def upsert_all(attributes, on_duplicate: T.unsafe(nil), update_only: T.unsafe(nil), returning: T.unsafe(nil), unique_by: T.unsafe(nil), record_timestamps: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#1292 + # pkg:gem/activerecord#lib/active_record/relation.rb:1292 def values; end - # source://activerecord//lib/active_record/relation.rb#1296 + # pkg:gem/activerecord#lib/active_record/relation.rb:1296 def values_for_queries; end # Returns a hash of where conditions. @@ -33187,170 +30897,150 @@ class ActiveRecord::Relation # User.where(name: 'Oscar').where_values_hash # # => {name: "Oscar"} # - # source://activerecord//lib/active_record/relation.rb#1237 + # pkg:gem/activerecord#lib/active_record/relation.rb:1237 def where_values_hash(relation_table_name = T.unsafe(nil)); end protected - # source://activerecord//lib/active_record/relation.rb#1341 + # pkg:gem/activerecord#lib/active_record/relation.rb:1341 def load_records(records); end private - # source://activerecord//lib/active_record/relation.rb#1367 + # pkg:gem/activerecord#lib/active_record/relation.rb:1367 def _create(attributes, &block); end - # source://activerecord//lib/active_record/relation.rb#1371 + # pkg:gem/activerecord#lib/active_record/relation.rb:1371 def _create!(attributes, &block); end - # source://activerecord//lib/active_record/relation.rb#1406 + # pkg:gem/activerecord#lib/active_record/relation.rb:1406 def _increment_attribute(attribute, value = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#1363 + # pkg:gem/activerecord#lib/active_record/relation.rb:1363 def _new(attributes, &block); end - # source://activerecord//lib/active_record/relation.rb#1375 + # pkg:gem/activerecord#lib/active_record/relation.rb:1375 def _scoping(scope, registry, all_queries = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#1391 + # pkg:gem/activerecord#lib/active_record/relation.rb:1391 def _substitute_values(values); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1347 + # pkg:gem/activerecord#lib/active_record/relation.rb:1347 def already_in_scope?(registry); end - # source://activerecord//lib/active_record/relation.rb#453 + # pkg:gem/activerecord#lib/active_record/relation.rb:453 def compute_cache_key(timestamp_column = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#482 + # pkg:gem/activerecord#lib/active_record/relation.rb:482 def compute_cache_version(timestamp_column); end - # source://activerecord//lib/active_record/relation.rb#1355 + # pkg:gem/activerecord#lib/active_record/relation.rb:1355 def current_scope_restoring_block(&block); end - # source://activerecord//lib/active_record/relation.rb#1433 + # pkg:gem/activerecord#lib/active_record/relation.rb:1433 def exec_main_query(async: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#1413 + # pkg:gem/activerecord#lib/active_record/relation.rb:1413 def exec_queries(&block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1351 + # pkg:gem/activerecord#lib/active_record/relation.rb:1351 def global_scope?(registry); end - # source://activerecord//lib/active_record/relation.rb#97 + # pkg:gem/activerecord#lib/active_record/relation.rb:97 def initialize_copy(other); end - # source://activerecord//lib/active_record/relation.rb#1465 + # pkg:gem/activerecord#lib/active_record/relation.rb:1465 def instantiate_records(rows, &block); end - # source://activerecord//lib/active_record/relation.rb#1508 + # pkg:gem/activerecord#lib/active_record/relation.rb:1508 def limited_count; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1484 + # pkg:gem/activerecord#lib/active_record/relation.rb:1484 def references_eager_loaded_tables?; end - # source://activerecord//lib/active_record/relation.rb#1476 + # pkg:gem/activerecord#lib/active_record/relation.rb:1476 def skip_query_cache_if_necessary(&block); end - # source://activerecord//lib/active_record/relation.rb#1501 + # pkg:gem/activerecord#lib/active_record/relation.rb:1501 def tables_in_string(string); end end -# source://activerecord//lib/active_record/relation.rb#62 +# pkg:gem/activerecord#lib/active_record/relation.rb:62 ActiveRecord::Relation::CLAUSE_METHODS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation.rb#6 +# pkg:gem/activerecord#lib/active_record/relation.rb:6 class ActiveRecord::Relation::ExplainProxy - # @return [ExplainProxy] a new instance of ExplainProxy - # - # source://activerecord//lib/active_record/relation.rb#7 + # pkg:gem/activerecord#lib/active_record/relation.rb:7 def initialize(relation, options); end - # source://activerecord//lib/active_record/relation.rb#16 + # pkg:gem/activerecord#lib/active_record/relation.rb:16 def average(column_name); end - # source://activerecord//lib/active_record/relation.rb#20 + # pkg:gem/activerecord#lib/active_record/relation.rb:20 def count(column_name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#24 + # pkg:gem/activerecord#lib/active_record/relation.rb:24 def first(limit = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#12 + # pkg:gem/activerecord#lib/active_record/relation.rb:12 def inspect; end - # source://activerecord//lib/active_record/relation.rb#28 + # pkg:gem/activerecord#lib/active_record/relation.rb:28 def last(limit = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#32 + # pkg:gem/activerecord#lib/active_record/relation.rb:32 def maximum(column_name); end - # source://activerecord//lib/active_record/relation.rb#36 + # pkg:gem/activerecord#lib/active_record/relation.rb:36 def minimum(column_name); end - # source://activerecord//lib/active_record/relation.rb#40 + # pkg:gem/activerecord#lib/active_record/relation.rb:40 def pluck(*column_names); end - # source://activerecord//lib/active_record/relation.rb#44 + # pkg:gem/activerecord#lib/active_record/relation.rb:44 def sum(identity_or_column = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/relation.rb#49 + # pkg:gem/activerecord#lib/active_record/relation.rb:49 def exec_explain(&block); end end -# source://activerecord//lib/active_record/relation/from_clause.rb#5 +# pkg:gem/activerecord#lib/active_record/relation/from_clause.rb:5 class ActiveRecord::Relation::FromClause - # @return [FromClause] a new instance of FromClause - # - # source://activerecord//lib/active_record/relation/from_clause.rb#8 + # pkg:gem/activerecord#lib/active_record/relation/from_clause.rb:8 def initialize(value, name); end - # source://activerecord//lib/active_record/relation/from_clause.rb#21 + # pkg:gem/activerecord#lib/active_record/relation/from_clause.rb:21 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/from_clause.rb#17 + # pkg:gem/activerecord#lib/active_record/relation/from_clause.rb:17 def empty?; end - # source://activerecord//lib/active_record/relation/from_clause.rb#13 + # pkg:gem/activerecord#lib/active_record/relation/from_clause.rb:13 def merge(other); end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/relation/from_clause.rb#6 + # pkg:gem/activerecord#lib/active_record/relation/from_clause.rb:6 def name; end - # Returns the value of attribute value. - # - # source://activerecord//lib/active_record/relation/from_clause.rb#6 + # pkg:gem/activerecord#lib/active_record/relation/from_clause.rb:6 def value; end class << self - # source://activerecord//lib/active_record/relation/from_clause.rb#25 + # pkg:gem/activerecord#lib/active_record/relation/from_clause.rb:25 def empty; end end end -# source://activerecord//lib/active_record/relation/merger.rb#7 +# pkg:gem/activerecord#lib/active_record/relation/merger.rb:7 class ActiveRecord::Relation::HashMerger - # @return [HashMerger] a new instance of HashMerger - # - # source://activerecord//lib/active_record/relation/merger.rb#10 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:10 def initialize(relation, hash); end - # Returns the value of attribute hash. - # - # source://activerecord//lib/active_record/relation/merger.rb#8 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:8 def hash; end - # source://activerecord//lib/active_record/relation/merger.rb#17 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:17 def merge; end # Applying values to a relation has some side effects. E.g. @@ -33358,253 +31048,221 @@ class ActiveRecord::Relation::HashMerger # build a relation to merge in rather than directly merging # the values. # - # source://activerecord//lib/active_record/relation/merger.rb#25 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:25 def other; end - # Returns the value of attribute relation. - # - # source://activerecord//lib/active_record/relation/merger.rb#8 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:8 def relation; end end -# source://activerecord//lib/active_record/relation.rb#63 +# pkg:gem/activerecord#lib/active_record/relation.rb:63 ActiveRecord::Relation::INVALID_METHODS_FOR_DELETE_ALL = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation.rb#54 +# pkg:gem/activerecord#lib/active_record/relation.rb:54 ActiveRecord::Relation::MULTI_VALUE_METHODS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation/merger.rb#43 +# pkg:gem/activerecord#lib/active_record/relation/merger.rb:43 class ActiveRecord::Relation::Merger - # @return [Merger] a new instance of Merger - # - # source://activerecord//lib/active_record/relation/merger.rb#46 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:46 def initialize(relation, other); end - # source://activerecord//lib/active_record/relation/merger.rb#58 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:58 def merge; end - # Returns the value of attribute other. - # - # source://activerecord//lib/active_record/relation/merger.rb#44 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:44 def other; end - # Returns the value of attribute relation. - # - # source://activerecord//lib/active_record/relation/merger.rb#44 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:44 def relation; end - # Returns the value of attribute values. - # - # source://activerecord//lib/active_record/relation/merger.rb#44 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:44 def values; end private - # source://activerecord//lib/active_record/relation/merger.rb#176 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:176 def merge_clauses; end - # source://activerecord//lib/active_record/relation/merger.rb#117 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:117 def merge_joins; end - # source://activerecord//lib/active_record/relation/merger.rb#155 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:155 def merge_multi_values; end - # source://activerecord//lib/active_record/relation/merger.rb#136 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:136 def merge_outer_joins; end - # source://activerecord//lib/active_record/relation/merger.rb#96 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:96 def merge_preloads; end - # source://activerecord//lib/active_record/relation/merger.rb#84 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:84 def merge_select_values; end - # source://activerecord//lib/active_record/relation/merger.rb#168 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:168 def merge_single_values; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/merger.rb#186 + # pkg:gem/activerecord#lib/active_record/relation/merger.rb:186 def replace_from_clause?; end end -# source://activerecord//lib/active_record/relation/merger.rb#52 +# pkg:gem/activerecord#lib/active_record/relation/merger.rb:52 ActiveRecord::Relation::Merger::NORMAL_VALUES = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation/query_attribute.rb#7 +# pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:7 class ActiveRecord::Relation::QueryAttribute < ::ActiveModel::Attribute - # @return [QueryAttribute] a new instance of QueryAttribute - # - # source://activerecord//lib/active_record/relation/query_attribute.rb#8 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:8 + def initialize(*, **, &); end - # source://activerecord//lib/active_record/relation/query_attribute.rb#53 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:53 def ==(other); end - # source://activerecord//lib/active_record/relation/query_attribute.rb#53 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:56 def eql?(other); end - # source://activerecord//lib/active_record/relation/query_attribute.rb#58 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:58 def hash; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/query_attribute.rb#42 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:42 def infinite?; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/query_attribute.rb#35 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:35 def nil?; end - # source://activerecord//lib/active_record/relation/query_attribute.rb#22 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:22 def type_cast(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/query_attribute.rb#46 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:46 def unboundable?; end - # source://activerecord//lib/active_record/relation/query_attribute.rb#26 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:26 def value_for_database; end - # source://activerecord//lib/active_record/relation/query_attribute.rb#31 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:31 def with_cast_value(value); end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/query_attribute.rb#63 + # pkg:gem/activerecord#lib/active_record/relation/query_attribute.rb:63 def infinity?(value); end end -# source://activerecord//lib/active_record/relation.rb#59 +# pkg:gem/activerecord#lib/active_record/relation.rb:59 ActiveRecord::Relation::SINGLE_VALUE_METHODS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation.rb#1321 +# pkg:gem/activerecord#lib/active_record/relation.rb:1321 class ActiveRecord::Relation::StrictLoadingScope class << self - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation.rb#1322 + # pkg:gem/activerecord#lib/active_record/relation.rb:1322 def empty_scope?; end - # source://activerecord//lib/active_record/relation.rb#1326 + # pkg:gem/activerecord#lib/active_record/relation.rb:1326 def strict_loading_value; end end end -# source://activerecord//lib/active_record/relation.rb#65 +# pkg:gem/activerecord#lib/active_record/relation.rb:65 ActiveRecord::Relation::VALUE_METHODS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation/where_clause.rb#7 +# pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:7 class ActiveRecord::Relation::WhereClause - # @return [WhereClause] a new instance of WhereClause - # - # source://activerecord//lib/active_record/relation/where_clause.rb#10 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:10 def initialize(predicates); end - # source://activerecord//lib/active_record/relation/where_clause.rb#14 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:14 def +(other); end - # source://activerecord//lib/active_record/relation/where_clause.rb#18 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:18 def -(other); end - # source://activerecord//lib/active_record/relation/where_clause.rb#75 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:75 def ==(other); end - # source://activerecord//lib/active_record/relation/where_clause.rb#8 - def any?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:8 + def any?(*, **, &); end - # source://activerecord//lib/active_record/relation/where_clause.rb#70 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:70 def ast; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/where_clause.rb#99 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:99 def contradiction?; end - # source://activerecord//lib/active_record/relation/where_clause.rb#8 - def empty?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:8 + def empty?(*, **, &); end - # source://activerecord//lib/active_record/relation/where_clause.rb#75 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:79 def eql?(other); end - # source://activerecord//lib/active_record/relation/where_clause.rb#32 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:32 def except(*columns); end - # source://activerecord//lib/active_record/relation/where_clause.rb#110 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:110 def extract_attributes; end - # source://activerecord//lib/active_record/relation/where_clause.rb#81 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:81 def hash; end - # source://activerecord//lib/active_record/relation/where_clause.rb#85 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:85 def invert; end - # source://activerecord//lib/active_record/relation/where_clause.rb#26 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:26 def merge(other); end - # source://activerecord//lib/active_record/relation/where_clause.rb#36 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:36 def or(other); end - # source://activerecord//lib/active_record/relation/where_clause.rb#61 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:61 def to_h(table_name = T.unsafe(nil), equality_only: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/where_clause.rb#22 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:22 def |(other); end protected - # Returns the value of attribute predicates. - # - # source://activerecord//lib/active_record/relation/where_clause.rb#117 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:117 def predicates; end - # source://activerecord//lib/active_record/relation/where_clause.rb#119 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:119 def referenced_columns; end private - # source://activerecord//lib/active_record/relation/where_clause.rb#126 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:126 def each_attributes; end - # source://activerecord//lib/active_record/relation/where_clause.rb#149 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:149 def equalities(predicates, equality_only); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/relation/where_clause.rb#163 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:163 def equality_node?(node); end - # source://activerecord//lib/active_record/relation/where_clause.rb#178 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:178 def except_predicates(columns); end - # source://activerecord//lib/active_record/relation/where_clause.rb#136 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:136 def extract_attribute(node); end - # source://activerecord//lib/active_record/relation/where_clause.rb#215 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:215 def extract_node_value(node); end - # source://activerecord//lib/active_record/relation/where_clause.rb#167 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:167 def invert_predicate(node); end - # source://activerecord//lib/active_record/relation/where_clause.rb#204 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:204 def non_empty_predicates; end - # source://activerecord//lib/active_record/relation/where_clause.rb#193 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:193 def predicates_with_wrapped_sql_literals; end - # source://activerecord//lib/active_record/relation/where_clause.rb#208 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:208 def wrap_sql_literal(node); end class << self - # source://activerecord//lib/active_record/relation/where_clause.rb#95 + # pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:95 def empty; end end end -# source://activerecord//lib/active_record/relation/where_clause.rb#203 +# pkg:gem/activerecord#lib/active_record/relation/where_clause.rb:203 ActiveRecord::Relation::WhereClause::ARRAY_WITH_EMPTY_STRING = T.let(T.unsafe(nil), Array) # = Active Record \Result @@ -33639,35 +31297,29 @@ ActiveRecord::Relation::WhereClause::ARRAY_WITH_EMPTY_STRING = T.let(T.unsafe(ni # puts row['title'] + " " + row['body'] # end # -# source://activerecord//lib/active_record/result.rb#36 +# pkg:gem/activerecord#lib/active_record/result.rb:36 class ActiveRecord::Result include ::Enumerable - # @return [Result] a new instance of Result - # - # source://activerecord//lib/active_record/result.rb#102 + # pkg:gem/activerecord#lib/active_record/result.rb:102 def initialize(columns, rows, column_types = T.unsafe(nil)); end - # source://activerecord//lib/active_record/result.rb#148 + # pkg:gem/activerecord#lib/active_record/result.rb:148 def [](idx); end - # source://activerecord//lib/active_record/result.rb#161 + # pkg:gem/activerecord#lib/active_record/result.rb:161 def cancel; end - # source://activerecord//lib/active_record/result.rb#165 + # pkg:gem/activerecord#lib/active_record/result.rb:165 def cast_values(type_overrides = T.unsafe(nil)); end - # source://activerecord//lib/active_record/result.rb#203 + # pkg:gem/activerecord#lib/active_record/result.rb:203 def column_indexes; end - # Returns the value of attribute column_types. - # - # source://activerecord//lib/active_record/result.rb#92 + # pkg:gem/activerecord#lib/active_record/result.rb:92 def column_types; end - # Returns the value of attribute columns. - # - # source://activerecord//lib/active_record/result.rb#92 + # pkg:gem/activerecord#lib/active_record/result.rb:92 def columns; end # Calls the given block once for each element in row collection, passing @@ -33677,120 +31329,108 @@ class ActiveRecord::Result # # Returns an +Enumerator+ if no block is given. # - # source://activerecord//lib/active_record/result.rb#128 + # pkg:gem/activerecord#lib/active_record/result.rb:128 def each(&block); end # Returns true if there are no records, otherwise false. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/result.rb#137 + # pkg:gem/activerecord#lib/active_record/result.rb:137 def empty?; end - # source://activerecord//lib/active_record/result.rb#197 + # pkg:gem/activerecord#lib/active_record/result.rb:197 def freeze; end # Returns true if this result set includes the column named +name+ # - # @return [Boolean] - # - # source://activerecord//lib/active_record/result.rb#113 + # pkg:gem/activerecord#lib/active_record/result.rb:113 def includes_column?(name); end - # source://activerecord//lib/active_record/result.rb#216 + # pkg:gem/activerecord#lib/active_record/result.rb:216 def indexed_rows; end # Returns the last record from the rows collection. # - # source://activerecord//lib/active_record/result.rb#153 + # pkg:gem/activerecord#lib/active_record/result.rb:153 def last(n = T.unsafe(nil)); end # Returns the number of elements in the rows array. # - # source://activerecord//lib/active_record/result.rb#118 + # pkg:gem/activerecord#lib/active_record/result.rb:118 def length; end - # source://activerecord//lib/active_record/result.rb#157 + # pkg:gem/activerecord#lib/active_record/result.rb:157 def result; end - # Returns the value of attribute rows. - # - # source://activerecord//lib/active_record/result.rb#92 + # pkg:gem/activerecord#lib/active_record/result.rb:92 def rows; end - # Returns an array of hashes representing each row record. - # - # source://activerecord//lib/active_record/result.rb#142 + # pkg:gem/activerecord#lib/active_record/result.rb:146 def to_a; end # Returns an array of hashes representing each row record. # - # source://activerecord//lib/active_record/result.rb#142 + # pkg:gem/activerecord#lib/active_record/result.rb:142 def to_ary; end private - # source://activerecord//lib/active_record/result.rb#224 + # pkg:gem/activerecord#lib/active_record/result.rb:224 def column_type(name, index, type_overrides); end - # source://activerecord//lib/active_record/result.rb#232 + # pkg:gem/activerecord#lib/active_record/result.rb:232 def hash_rows; end - # source://activerecord//lib/active_record/result.rb#191 + # pkg:gem/activerecord#lib/active_record/result.rb:191 def initialize_copy(other); end class << self - # source://activerecord//lib/active_record/result.rb#94 + # pkg:gem/activerecord#lib/active_record/result.rb:94 def empty(async: T.unsafe(nil)); end end end -# source://activerecord//lib/active_record/result.rb#244 +# pkg:gem/activerecord#lib/active_record/result.rb:244 ActiveRecord::Result::EMPTY = T.let(T.unsafe(nil), ActiveRecord::Result) -# source://activerecord//lib/active_record/result.rb#247 +# pkg:gem/activerecord#lib/active_record/result.rb:247 ActiveRecord::Result::EMPTY_ASYNC = T.let(T.unsafe(nil), ActiveRecord::FutureResult::Complete) -# source://activerecord//lib/active_record/result.rb#241 +# pkg:gem/activerecord#lib/active_record/result.rb:241 ActiveRecord::Result::EMPTY_HASH = T.let(T.unsafe(nil), Hash) -# source://activerecord//lib/active_record/result.rb#39 +# pkg:gem/activerecord#lib/active_record/result.rb:39 class ActiveRecord::Result::IndexedRow - # @return [IndexedRow] a new instance of IndexedRow - # - # source://activerecord//lib/active_record/result.rb#40 + # pkg:gem/activerecord#lib/active_record/result.rb:40 def initialize(column_indexes, row); end - # source://activerecord//lib/active_record/result.rb#58 + # pkg:gem/activerecord#lib/active_record/result.rb:58 def ==(other); end - # source://activerecord//lib/active_record/result.rb#80 + # pkg:gem/activerecord#lib/active_record/result.rb:80 def [](column); end - # source://activerecord//lib/active_record/result.rb#50 + # pkg:gem/activerecord#lib/active_record/result.rb:50 def each_key(&block); end - # source://activerecord//lib/active_record/result.rb#70 + # pkg:gem/activerecord#lib/active_record/result.rb:70 def fetch(column); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/result.rb#66 + # pkg:gem/activerecord#lib/active_record/result.rb:66 def key?(column); end - # source://activerecord//lib/active_record/result.rb#54 + # pkg:gem/activerecord#lib/active_record/result.rb:54 def keys; end - # source://activerecord//lib/active_record/result.rb#45 + # pkg:gem/activerecord#lib/active_record/result.rb:48 def length; end - # source://activerecord//lib/active_record/result.rb#45 + # pkg:gem/activerecord#lib/active_record/result.rb:45 def size; end - # source://activerecord//lib/active_record/result.rb#86 + # pkg:gem/activerecord#lib/active_record/result.rb:86 def to_h; end - # source://activerecord//lib/active_record/result.rb#86 + # pkg:gem/activerecord#lib/active_record/result.rb:89 def to_hash; end end @@ -33823,7 +31463,7 @@ end # end # end # -# source://activerecord//lib/active_record/errors.rb#435 +# pkg:gem/activerecord#lib/active_record/errors.rb:435 class ActiveRecord::Rollback < ::ActiveRecord::ActiveRecordError; end # This is a thread locals registry for Active Record. For example: @@ -33832,118 +31472,80 @@ class ActiveRecord::Rollback < ::ActiveRecord::ActiveRecordError; end # # returns the connection handler local to the current unit of execution (either thread of fiber). # -# source://activerecord//lib/active_record/runtime_registry.rb#9 +# pkg:gem/activerecord#lib/active_record/runtime_registry.rb:9 module ActiveRecord::RuntimeRegistry extend ::ActiveRecord::RuntimeRegistry - # source://activerecord//lib/active_record/runtime_registry.rb#20 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:20 def async_sql_runtime; end - # source://activerecord//lib/active_record/runtime_registry.rb#24 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:24 def async_sql_runtime=(runtime); end - # source://activerecord//lib/active_record/runtime_registry.rb#36 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:36 def cached_queries_count; end - # source://activerecord//lib/active_record/runtime_registry.rb#40 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:40 def cached_queries_count=(count); end - # source://activerecord//lib/active_record/runtime_registry.rb#28 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:28 def queries_count; end - # source://activerecord//lib/active_record/runtime_registry.rb#32 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:32 def queries_count=(count); end - # source://activerecord//lib/active_record/runtime_registry.rb#44 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:44 def reset; end - # source://activerecord//lib/active_record/runtime_registry.rb#62 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:62 def reset_cached_queries_count; end - # source://activerecord//lib/active_record/runtime_registry.rb#56 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:56 def reset_queries_count; end - # source://activerecord//lib/active_record/runtime_registry.rb#50 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:50 def reset_runtimes; end - # source://activerecord//lib/active_record/runtime_registry.rb#12 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:12 def sql_runtime; end - # source://activerecord//lib/active_record/runtime_registry.rb#16 + # pkg:gem/activerecord#lib/active_record/runtime_registry.rb:16 def sql_runtime=(runtime); end end # Raised when a statement produces an SQL warning. # -# source://activerecord//lib/active_record/errors.rb#305 +# pkg:gem/activerecord#lib/active_record/errors.rb:305 class ActiveRecord::SQLWarning < ::ActiveRecord::AdapterError - # @return [SQLWarning] a new instance of SQLWarning - # - # source://activerecord//lib/active_record/errors.rb#309 + # pkg:gem/activerecord#lib/active_record/errors.rb:309 def initialize(message = T.unsafe(nil), code = T.unsafe(nil), level = T.unsafe(nil), sql = T.unsafe(nil), connection_pool = T.unsafe(nil)); end - # Returns the value of attribute code. - # - # source://activerecord//lib/active_record/errors.rb#306 + # pkg:gem/activerecord#lib/active_record/errors.rb:306 def code; end - # Returns the value of attribute level. - # - # source://activerecord//lib/active_record/errors.rb#306 + # pkg:gem/activerecord#lib/active_record/errors.rb:306 def level; end - # Returns the value of attribute sql. - # - # source://activerecord//lib/active_record/errors.rb#307 + # pkg:gem/activerecord#lib/active_record/errors.rb:307 def sql; end - # Sets the attribute sql - # - # @param value the value to set the attribute sql to. - # - # source://activerecord//lib/active_record/errors.rb#307 + # pkg:gem/activerecord#lib/active_record/errors.rb:307 def sql=(_arg0); end end -# source://activerecord//lib/active_record/sanitization.rb#4 +# pkg:gem/activerecord#lib/active_record/sanitization.rb:4 module ActiveRecord::Sanitization extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Sanitization::ClassMethods end -# source://activerecord//lib/active_record/sanitization.rb#7 +# pkg:gem/activerecord#lib/active_record/sanitization.rb:7 module ActiveRecord::Sanitization::ClassMethods - # source://activerecord//lib/active_record/sanitization.rb#183 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:183 def disallow_raw_sql!(args, permit: T.unsafe(nil)); end - # Accepts an array of SQL conditions and sanitizes them into a valid - # SQL fragment for a WHERE clause. - # - # sanitize_sql_for_conditions(["name=? and group_id=?", "foo'bar", 4]) - # # => "name='foo''bar' and group_id=4" - # - # sanitize_sql_for_conditions(["name=:name and group_id=:group_id", name: "foo'bar", group_id: 4]) - # # => "name='foo''bar' and group_id='4'" - # - # sanitize_sql_for_conditions(["name='%s' and group_id='%s'", "foo'bar", 4]) - # # => "name='foo''bar' and group_id='4'" - # - # This method will NOT sanitize an SQL string since it won't contain - # any conditions in it and will return the string as is. - # - # sanitize_sql_for_conditions("name='foo''bar' and group_id='4'") - # # => "name='foo''bar' and group_id='4'" - # - # Note that this sanitization method is not schema-aware, hence won't do any type casting - # and will directly use the database adapter's +quote+ method. - # For MySQL specifically this means that numeric parameters will be quoted as strings - # to prevent query manipulation attacks. - # - # sanitize_sql_for_conditions(["role = ?", 0]) - # # => "role = '0'" - # - # source://activerecord//lib/active_record/sanitization.rb#33 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:41 def sanitize_sql(condition); end # Accepts an array of conditions. The array has each value @@ -33971,7 +31573,7 @@ module ActiveRecord::Sanitization::ClassMethods # sanitize_sql_array(["role = ?", 0]) # # => "role = '0'" # - # source://activerecord//lib/active_record/sanitization.rb#164 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:164 def sanitize_sql_array(ary); end # Accepts an array or hash of SQL conditions and sanitizes them into @@ -34000,7 +31602,7 @@ module ActiveRecord::Sanitization::ClassMethods # sanitize_sql_for_assignment(["role = ?", 0]) # # => "role = '0'" # - # source://activerecord//lib/active_record/sanitization.rb#68 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:68 def sanitize_sql_for_assignment(assignments, default_table_name = T.unsafe(nil)); end # Accepts an array of SQL conditions and sanitizes them into a valid @@ -34029,7 +31631,7 @@ module ActiveRecord::Sanitization::ClassMethods # sanitize_sql_for_conditions(["role = ?", 0]) # # => "role = '0'" # - # source://activerecord//lib/active_record/sanitization.rb#33 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:33 def sanitize_sql_for_conditions(condition); end # Accepts an array, or string of SQL conditions and sanitizes @@ -34041,7 +31643,7 @@ module ActiveRecord::Sanitization::ClassMethods # sanitize_sql_for_order("id ASC") # # => "id ASC" # - # source://activerecord//lib/active_record/sanitization.rb#84 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:84 def sanitize_sql_for_order(condition); end # Sanitizes a hash of attribute/value pairs into SQL conditions for a SET clause. @@ -34049,7 +31651,7 @@ module ActiveRecord::Sanitization::ClassMethods # sanitize_sql_hash_for_assignment({ status: nil, group_id: 1 }, "posts") # # => "`posts`.`status` = NULL, `posts`.`group_id` = 1" # - # source://activerecord//lib/active_record/sanitization.rb#107 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:107 def sanitize_sql_hash_for_assignment(attrs, table); end # Sanitizes a +string+ so that it is safe to use within an SQL @@ -34068,24 +31670,24 @@ module ActiveRecord::Sanitization::ClassMethods # sanitize_sql_like("snake_cased_string", "!") # # => "snake!_cased!_string" # - # source://activerecord//lib/active_record/sanitization.rb#132 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:132 def sanitize_sql_like(string, escape_character = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/sanitization.rb#233 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:233 def quote_bound_value(connection, value); end - # source://activerecord//lib/active_record/sanitization.rb#247 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:247 def raise_if_bind_arity_mismatch(statement, expected, provided); end - # source://activerecord//lib/active_record/sanitization.rb#211 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:211 def replace_bind_variable(connection, value); end - # source://activerecord//lib/active_record/sanitization.rb#203 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:203 def replace_bind_variables(connection, statement, values); end - # source://activerecord//lib/active_record/sanitization.rb#219 + # pkg:gem/activerecord#lib/active_record/sanitization.rb:219 def replace_named_bind_variables(connection, statement, bind_vars); end end @@ -34118,28 +31720,28 @@ end # ActiveRecord::Schema is only supported by database adapters that also # support migrations, the two features being very similar. # -# source://activerecord//lib/active_record/schema.rb#32 +# pkg:gem/activerecord#lib/active_record/schema.rb:32 class ActiveRecord::Schema < ::ActiveRecord::Migration::Current include ::ActiveRecord::Schema::Definition extend ::ActiveRecord::Schema::Definition::ClassMethods class << self - # source://activerecord//lib/active_record/schema.rb#70 + # pkg:gem/activerecord#lib/active_record/schema.rb:70 def [](version); end end end -# source://activerecord//lib/active_record/schema.rb#33 +# pkg:gem/activerecord#lib/active_record/schema.rb:33 module ActiveRecord::Schema::Definition extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Schema::Definition::ClassMethods - # source://activerecord//lib/active_record/schema.rb#54 + # pkg:gem/activerecord#lib/active_record/schema.rb:54 def define(info, &block); end end -# source://activerecord//lib/active_record/schema.rb#36 +# pkg:gem/activerecord#lib/active_record/schema.rb:36 module ActiveRecord::Schema::Definition::ClassMethods # Eval the given block. All methods available to the current connection # adapter are available within the block, so you can easily use the @@ -34154,7 +31756,7 @@ module ActiveRecord::Schema::Definition::ClassMethods # ... # end # - # source://activerecord//lib/active_record/schema.rb#49 + # pkg:gem/activerecord#lib/active_record/schema.rb:49 def define(info = T.unsafe(nil), &block); end end @@ -34163,196 +31765,167 @@ end # This class is used to dump the database schema for some connection to some # output format (i.e., ActiveRecord::Schema). # -# source://activerecord//lib/active_record/schema_dumper.rb#10 +# pkg:gem/activerecord#lib/active_record/schema_dumper.rb:10 class ActiveRecord::SchemaDumper - # @return [SchemaDumper] a new instance of SchemaDumper - # - # source://activerecord//lib/active_record/schema_dumper.rb#74 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:74 def initialize(connection, options = T.unsafe(nil)); end - # :singleton-method: - # Specify a custom regular expression matching check constraints which name - # should not be dumped to db/schema.rb. - # - # source://activerecord//lib/active_record/schema_dumper.rb#29 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:29 def chk_ignore_pattern; end - # source://activerecord//lib/active_record/schema_dumper.rb#29 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:29 def chk_ignore_pattern=(val); end - # source://activerecord//lib/active_record/schema_dumper.rb#60 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:60 def dump(stream); end - # :singleton-method: - # Specify a custom regular expression matching exclusion constraints which name - # should not be dumped to db/schema.rb. - # - # source://activerecord//lib/active_record/schema_dumper.rb#35 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:35 def excl_ignore_pattern; end - # source://activerecord//lib/active_record/schema_dumper.rb#35 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:35 def excl_ignore_pattern=(val); end - # :singleton-method: - # Specify a custom regular expression matching foreign keys which name - # should not be dumped to db/schema.rb. - # - # source://activerecord//lib/active_record/schema_dumper.rb#23 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:23 def fk_ignore_pattern; end - # source://activerecord//lib/active_record/schema_dumper.rb#23 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:23 def fk_ignore_pattern=(val); end - # :singleton-method: - # A list of tables which should not be dumped to the schema. - # Acceptable values are strings and regexps. - # - # source://activerecord//lib/active_record/schema_dumper.rb#17 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:17 def ignore_tables; end - # source://activerecord//lib/active_record/schema_dumper.rb#17 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:17 def ignore_tables=(val); end - # :singleton-method: - # Specify a custom regular expression matching unique constraints which name - # should not be dumped to db/schema.rb. - # - # source://activerecord//lib/active_record/schema_dumper.rb#41 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:41 def unique_ignore_pattern; end - # source://activerecord//lib/active_record/schema_dumper.rb#41 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:41 def unique_ignore_pattern=(val); end private - # source://activerecord//lib/active_record/schema_dumper.rb#283 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:283 def check_constraints_in_create(table, stream); end - # source://activerecord//lib/active_record/schema_dumper.rb#309 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:309 def check_parts(check); end - # source://activerecord//lib/active_record/schema_dumper.rb#92 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:92 def define_params; end # extensions are only supported by PostgreSQL # - # source://activerecord//lib/active_record/schema_dumper.rb#119 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:119 def extensions(stream); end - # source://activerecord//lib/active_record/schema_dumper.rb#316 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:316 def foreign_keys(table, stream); end - # source://activerecord//lib/active_record/schema_dumper.rb#348 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:348 def format_colspec(colspec); end - # source://activerecord//lib/active_record/schema_dumper.rb#358 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:358 def format_index_parts(options); end - # source://activerecord//lib/active_record/schema_dumper.rb#354 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:354 def format_options(options); end # turns 20170404131909 into "2017_04_04_131909" # - # source://activerecord//lib/active_record/schema_dumper.rb#86 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:86 def formatted_version; end - # source://activerecord//lib/active_record/schema_dumper.rb#96 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:96 def header(stream); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/schema_dumper.rb#376 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:376 def ignored?(table_name); end - # source://activerecord//lib/active_record/schema_dumper.rb#265 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:265 def index_parts(index); end # Keep it for indexing materialized views # - # source://activerecord//lib/active_record/schema_dumper.rb#232 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:232 def indexes(table, stream); end - # source://activerecord//lib/active_record/schema_dumper.rb#244 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:244 def indexes_in_create(table, stream); end - # source://activerecord//lib/active_record/schema_dumper.rb#366 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:366 def remove_prefix_and_suffix(table); end # schemas are only supported by PostgreSQL # - # source://activerecord//lib/active_record/schema_dumper.rb#127 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:127 def schemas(stream); end - # source://activerecord//lib/active_record/schema_dumper.rb#158 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:158 def table(table, stream); end - # Returns the value of attribute table_name. - # - # source://activerecord//lib/active_record/schema_dumper.rb#72 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:72 def table_name; end - # Sets the attribute table_name - # - # @param value the value to set the attribute table_name to. - # - # source://activerecord//lib/active_record/schema_dumper.rb#72 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:72 def table_name=(_arg0); end - # source://activerecord//lib/active_record/schema_dumper.rb#134 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:134 def tables(stream); end - # source://activerecord//lib/active_record/schema_dumper.rb#114 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:114 def trailer(stream); end # (enum) types are only supported by PostgreSQL # - # source://activerecord//lib/active_record/schema_dumper.rb#123 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:123 def types(stream); end # virtual tables are only supported by SQLite # - # source://activerecord//lib/active_record/schema_dumper.rb#131 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:131 def virtual_tables(stream); end class << self - # source://activerecord//lib/active_record/schema_dumper.rb#29 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:29 def chk_ignore_pattern; end - # source://activerecord//lib/active_record/schema_dumper.rb#29 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:29 def chk_ignore_pattern=(val); end - # source://activerecord//lib/active_record/schema_dumper.rb#44 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:44 def dump(pool = T.unsafe(nil), stream = T.unsafe(nil), config = T.unsafe(nil)); end - # source://activerecord//lib/active_record/schema_dumper.rb#35 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:35 def excl_ignore_pattern; end - # source://activerecord//lib/active_record/schema_dumper.rb#35 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:35 def excl_ignore_pattern=(val); end - # source://activerecord//lib/active_record/schema_dumper.rb#23 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:23 def fk_ignore_pattern; end - # source://activerecord//lib/active_record/schema_dumper.rb#23 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:23 def fk_ignore_pattern=(val); end - # source://activerecord//lib/active_record/schema_dumper.rb#17 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:17 def ignore_tables; end - # source://activerecord//lib/active_record/schema_dumper.rb#17 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:17 def ignore_tables=(val); end - # source://activerecord//lib/active_record/schema_dumper.rb#41 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:41 def unique_ignore_pattern; end - # source://activerecord//lib/active_record/schema_dumper.rb#41 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:41 def unique_ignore_pattern=(val); end private - # source://activerecord//lib/active_record/schema_dumper.rb#52 + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:52 def generate_options(config); end + # pkg:gem/activerecord#lib/active_record/schema_dumper.rb:11 def new(*_arg0); end end end @@ -34362,66 +31935,60 @@ end # number is inserted in to the schema migrations table so it doesn't need # to be executed the next time. # -# source://activerecord//lib/active_record/schema_migration.rb#8 +# pkg:gem/activerecord#lib/active_record/schema_migration.rb:8 class ActiveRecord::SchemaMigration - # @return [SchemaMigration] a new instance of SchemaMigration - # - # source://activerecord//lib/active_record/schema_migration.rb#14 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:14 def initialize(pool); end - # Returns the value of attribute arel_table. - # - # source://activerecord//lib/active_record/schema_migration.rb#12 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:12 def arel_table; end - # source://activerecord//lib/active_record/schema_migration.rb#91 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:91 def count; end - # source://activerecord//lib/active_record/schema_migration.rb#53 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:53 def create_table; end - # source://activerecord//lib/active_record/schema_migration.rb#19 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:19 def create_version(version); end - # source://activerecord//lib/active_record/schema_migration.rb#36 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:36 def delete_all_versions; end - # source://activerecord//lib/active_record/schema_migration.rb#27 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:27 def delete_version(version); end - # source://activerecord//lib/active_record/schema_migration.rb#63 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:63 def drop_table; end - # source://activerecord//lib/active_record/schema_migration.rb#87 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:87 def integer_versions; end - # source://activerecord//lib/active_record/schema_migration.rb#69 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:69 def normalize_migration_number(number); end - # source://activerecord//lib/active_record/schema_migration.rb#73 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:73 def normalized_versions; end - # source://activerecord//lib/active_record/schema_migration.rb#45 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:45 def primary_key; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/schema_migration.rb#100 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:100 def table_exists?; end - # source://activerecord//lib/active_record/schema_migration.rb#49 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:49 def table_name; end - # source://activerecord//lib/active_record/schema_migration.rb#77 + # pkg:gem/activerecord#lib/active_record/schema_migration.rb:77 def versions; end end -# source://activerecord//lib/active_record/schema_migration.rb#9 +# pkg:gem/activerecord#lib/active_record/schema_migration.rb:9 class ActiveRecord::SchemaMigration::NullSchemaMigration; end # = Active Record \Named \Scopes # -# source://activerecord//lib/active_record/scoping.rb#6 +# pkg:gem/activerecord#lib/active_record/scoping.rb:6 module ActiveRecord::Scoping extend ::ActiveSupport::Concern extend ::ActiveSupport::Autoload @@ -34434,10 +32001,10 @@ module ActiveRecord::Scoping mixes_in_class_methods ::ActiveRecord::Scoping::Default::ClassMethods mixes_in_class_methods ::ActiveRecord::Scoping::Named::ClassMethods - # source://activerecord//lib/active_record/scoping.rb#54 + # pkg:gem/activerecord#lib/active_record/scoping.rb:54 def initialize_internals_callback; end - # source://activerecord//lib/active_record/scoping.rb#47 + # pkg:gem/activerecord#lib/active_record/scoping.rb:47 def populate_with_current_scope_attributes; end module GeneratedClassMethods @@ -34453,38 +32020,36 @@ module ActiveRecord::Scoping end end -# source://activerecord//lib/active_record/scoping.rb#14 +# pkg:gem/activerecord#lib/active_record/scoping.rb:14 module ActiveRecord::Scoping::ClassMethods - # source://activerecord//lib/active_record/scoping.rb#26 + # pkg:gem/activerecord#lib/active_record/scoping.rb:26 def current_scope(skip_inherited_scope = T.unsafe(nil)); end - # source://activerecord//lib/active_record/scoping.rb#30 + # pkg:gem/activerecord#lib/active_record/scoping.rb:30 def current_scope=(scope); end - # source://activerecord//lib/active_record/scoping.rb#34 + # pkg:gem/activerecord#lib/active_record/scoping.rb:34 def global_current_scope(skip_inherited_scope = T.unsafe(nil)); end - # source://activerecord//lib/active_record/scoping.rb#38 + # pkg:gem/activerecord#lib/active_record/scoping.rb:38 def global_current_scope=(scope); end # Collects attributes from scopes that should be applied when creating # an AR instance for the particular class this is called on. # - # source://activerecord//lib/active_record/scoping.rb#17 + # pkg:gem/activerecord#lib/active_record/scoping.rb:17 def scope_attributes; end # Are there attributes associated with this scope? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/scoping.rb#22 + # pkg:gem/activerecord#lib/active_record/scoping.rb:22 def scope_attributes?; end - # source://activerecord//lib/active_record/scoping.rb#42 + # pkg:gem/activerecord#lib/active_record/scoping.rb:42 def scope_registry; end end -# source://activerecord//lib/active_record/scoping/default.rb#14 +# pkg:gem/activerecord#lib/active_record/scoping/default.rb:14 module ActiveRecord::Scoping::Default extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -34505,22 +32070,18 @@ module ActiveRecord::Scoping::Default end end -# source://activerecord//lib/active_record/scoping/default.rb#23 +# pkg:gem/activerecord#lib/active_record/scoping/default.rb:23 module ActiveRecord::Scoping::Default::ClassMethods # Checks if the model has any default scopes. If all_queries # is set to true, the method will check if there are any # default_scopes for the model where +all_queries+ is true. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/scoping/default.rb#62 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:62 def default_scopes?(all_queries: T.unsafe(nil)); end # Are there attributes associated with this scope? # - # @return [Boolean] - # - # source://activerecord//lib/active_record/scoping/default.rb#55 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:55 def scope_attributes?; end # Returns a scope for the model without the previously set scopes. @@ -34550,12 +32111,12 @@ module ActiveRecord::Scoping::Default::ClassMethods # Post.limit(10) # Fires "SELECT * FROM posts LIMIT 10" # } # - # source://activerecord//lib/active_record/scoping/default.rb#50 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:50 def unscoped(&block); end private - # source://activerecord//lib/active_record/scoping/default.rb#145 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:145 def build_default_scope(relation = T.unsafe(nil), all_queries: T.unsafe(nil)); end # Use this macro in your model to set a default scope for all operations on @@ -34617,14 +32178,14 @@ module ActiveRecord::Scoping::Default::ClassMethods # end # end # - # source://activerecord//lib/active_record/scoping/default.rb#129 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:129 def default_scope(scope = T.unsafe(nil), all_queries: T.unsafe(nil), &block); end # The ignore_default_scope flag is used to prevent an infinite recursion # situation where a default scope references a scope which has a default # scope which references a scope... # - # source://activerecord//lib/active_record/scoping/default.rb#192 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:192 def evaluate_default_scope; end # If all_queries is nil, only execute on select and insert queries. @@ -34633,46 +32194,36 @@ module ActiveRecord::Scoping::Default::ClassMethods # all_queries set, then execute on all queries; select, insert, update, # delete, and reload. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/scoping/default.rb#177 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:177 def execute_scope?(all_queries, default_scope_obj); end - # source://activerecord//lib/active_record/scoping/default.rb#185 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:185 def ignore_default_scope=(ignore); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/scoping/default.rb#181 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:181 def ignore_default_scope?; end end -# source://activerecord//lib/active_record/scoping/default.rb#5 +# pkg:gem/activerecord#lib/active_record/scoping/default.rb:5 class ActiveRecord::Scoping::DefaultScope - # @return [DefaultScope] a new instance of DefaultScope - # - # source://activerecord//lib/active_record/scoping/default.rb#8 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:8 def initialize(scope, all_queries = T.unsafe(nil)); end - # Returns the value of attribute all_queries. - # - # source://activerecord//lib/active_record/scoping/default.rb#6 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:6 def all_queries; end - # Returns the value of attribute scope. - # - # source://activerecord//lib/active_record/scoping/default.rb#6 + # pkg:gem/activerecord#lib/active_record/scoping/default.rb:6 def scope; end end -# source://activerecord//lib/active_record/scoping/named.rb#6 +# pkg:gem/activerecord#lib/active_record/scoping/named.rb:6 module ActiveRecord::Scoping::Named extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Scoping::Named::ClassMethods end -# source://activerecord//lib/active_record/scoping/named.rb#9 +# pkg:gem/activerecord#lib/active_record/scoping/named.rb:9 module ActiveRecord::Scoping::Named::ClassMethods # Returns an ActiveRecord::Relation scope object. # @@ -34687,15 +32238,15 @@ module ActiveRecord::Scoping::Named::ClassMethods # You can define a scope that applies to all finders using # {default_scope}[rdoc-ref:Scoping::Default::ClassMethods#default_scope]. # - # source://activerecord//lib/active_record/scoping/named.rb#22 + # pkg:gem/activerecord#lib/active_record/scoping/named.rb:22 def all(all_queries: T.unsafe(nil)); end - # source://activerecord//lib/active_record/scoping/named.rb#49 + # pkg:gem/activerecord#lib/active_record/scoping/named.rb:49 def default_extensions; end # Returns a scope for the model with default scopes. # - # source://activerecord//lib/active_record/scoping/named.rb#45 + # pkg:gem/activerecord#lib/active_record/scoping/named.rb:45 def default_scoped(scope = T.unsafe(nil), all_queries: T.unsafe(nil)); end # Adds a class method for retrieving and querying objects. @@ -34796,15 +32347,15 @@ module ActiveRecord::Scoping::Named::ClassMethods # Article.published.featured.latest_article # Article.featured.titles # - # source://activerecord//lib/active_record/scoping/named.rb#154 + # pkg:gem/activerecord#lib/active_record/scoping/named.rb:154 def scope(name, body, &block); end - # source://activerecord//lib/active_record/scoping/named.rb#36 + # pkg:gem/activerecord#lib/active_record/scoping/named.rb:36 def scope_for_association(scope = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/scoping/named.rb#192 + # pkg:gem/activerecord#lib/active_record/scoping/named.rb:192 def singleton_method_added(name); end end @@ -34826,68 +32377,66 @@ end # # You will obtain whatever was defined in +some_new_scope+. # -# source://activerecord//lib/active_record/scoping.rb#76 +# pkg:gem/activerecord#lib/active_record/scoping.rb:76 class ActiveRecord::Scoping::ScopeRegistry - # @return [ScopeRegistry] a new instance of ScopeRegistry - # - # source://activerecord//lib/active_record/scoping.rb#86 + # pkg:gem/activerecord#lib/active_record/scoping.rb:86 def initialize; end - # source://activerecord//lib/active_record/scoping.rb#92 + # pkg:gem/activerecord#lib/active_record/scoping.rb:92 def current_scope(model, skip_inherited_scope = T.unsafe(nil)); end - # source://activerecord//lib/active_record/scoping.rb#108 + # pkg:gem/activerecord#lib/active_record/scoping.rb:108 def global_current_scope(model, skip_inherited_scope = T.unsafe(nil)); end - # source://activerecord//lib/active_record/scoping.rb#100 + # pkg:gem/activerecord#lib/active_record/scoping.rb:100 def ignore_default_scope(model, skip_inherited_scope = T.unsafe(nil)); end - # source://activerecord//lib/active_record/scoping.rb#96 + # pkg:gem/activerecord#lib/active_record/scoping.rb:96 def set_current_scope(model, value); end - # source://activerecord//lib/active_record/scoping.rb#112 + # pkg:gem/activerecord#lib/active_record/scoping.rb:112 def set_global_current_scope(model, value); end - # source://activerecord//lib/active_record/scoping.rb#104 + # pkg:gem/activerecord#lib/active_record/scoping.rb:104 def set_ignore_default_scope(model, value); end private # Sets the +value+ for a given +scope_type+ and +model+. # - # source://activerecord//lib/active_record/scoping.rb#131 + # pkg:gem/activerecord#lib/active_record/scoping.rb:131 def set_value_for(scope_type, model, value); end # Obtains the value for a given +scope_type+ and +model+. # - # source://activerecord//lib/active_record/scoping.rb#118 + # pkg:gem/activerecord#lib/active_record/scoping.rb:118 def value_for(scope_type, model, skip_inherited_scope = T.unsafe(nil)); end class << self - # source://activerecord//lib/active_record/scoping.rb#78 - def current_scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/scoping.rb:78 + def current_scope(*, **, &); end - # source://activerecord//lib/active_record/scoping.rb#78 - def global_current_scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/scoping.rb:78 + def global_current_scope(*, **, &); end - # source://activerecord//lib/active_record/scoping.rb#78 - def ignore_default_scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/scoping.rb:78 + def ignore_default_scope(*, **, &); end - # source://activerecord//lib/active_record/scoping.rb#81 + # pkg:gem/activerecord#lib/active_record/scoping.rb:81 def instance; end - # source://activerecord//lib/active_record/scoping.rb#78 - def set_current_scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/scoping.rb:78 + def set_current_scope(*, **, &); end - # source://activerecord//lib/active_record/scoping.rb#78 - def set_global_current_scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/scoping.rb:78 + def set_global_current_scope(*, **, &); end - # source://activerecord//lib/active_record/scoping.rb#78 - def set_ignore_default_scope(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/scoping.rb:78 + def set_ignore_default_scope(*, **, &); end end end -# source://activerecord//lib/active_record/secure_password.rb#4 +# pkg:gem/activerecord#lib/active_record/secure_password.rb:4 module ActiveRecord::SecurePassword extend ::ActiveSupport::Concern include ::ActiveModel::SecurePassword @@ -34896,7 +32445,7 @@ module ActiveRecord::SecurePassword mixes_in_class_methods ::ActiveRecord::SecurePassword::ClassMethods end -# source://activerecord//lib/active_record/secure_password.rb#9 +# pkg:gem/activerecord#lib/active_record/secure_password.rb:9 module ActiveRecord::SecurePassword::ClassMethods # Given a set of attributes, finds a record using the non-password # attributes, and then authenticates that record using the password @@ -34930,22 +32479,20 @@ module ActiveRecord::SecurePassword::ClassMethods # User.authenticate_by(email: "jdoe@example.com") # => ArgumentError # User.authenticate_by(password: "abc123") # => ArgumentError # - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/secure_password.rb#41 + # pkg:gem/activerecord#lib/active_record/secure_password.rb:41 def authenticate_by(attributes); end end -# source://activerecord//lib/active_record/secure_token.rb#4 +# pkg:gem/activerecord#lib/active_record/secure_token.rb:4 module ActiveRecord::SecureToken extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::SecureToken::ClassMethods end -# source://activerecord//lib/active_record/secure_token.rb#11 +# pkg:gem/activerecord#lib/active_record/secure_token.rb:11 module ActiveRecord::SecureToken::ClassMethods - # source://activerecord//lib/active_record/secure_token.rb#61 + # pkg:gem/activerecord#lib/active_record/secure_token.rb:61 def generate_unique_secure_token(length: T.unsafe(nil)); end # Example using #has_secure_token @@ -34983,19 +32530,19 @@ module ActiveRecord::SecureToken::ClassMethods # config.active_record.generate_secure_token_on, which defaults to +:initialize+ # starting in \Rails 7.1. # - # source://activerecord//lib/active_record/secure_token.rb#46 + # pkg:gem/activerecord#lib/active_record/secure_token.rb:46 def has_secure_token(attribute = T.unsafe(nil), length: T.unsafe(nil), on: T.unsafe(nil)); end end -# source://activerecord//lib/active_record/secure_token.rb#7 +# pkg:gem/activerecord#lib/active_record/secure_token.rb:7 ActiveRecord::SecureToken::MINIMUM_TOKEN_LENGTH = T.let(T.unsafe(nil), Integer) -# source://activerecord//lib/active_record/secure_token.rb#5 +# pkg:gem/activerecord#lib/active_record/secure_token.rb:5 class ActiveRecord::SecureToken::MinimumLengthError < ::StandardError; end # = Active Record \Serialization # -# source://activerecord//lib/active_record/serialization.rb#5 +# pkg:gem/activerecord#lib/active_record/serialization.rb:5 module ActiveRecord::Serialization extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -35004,12 +32551,12 @@ module ActiveRecord::Serialization mixes_in_class_methods GeneratedClassMethods mixes_in_class_methods ::ActiveModel::Naming - # source://activerecord//lib/active_record/serialization.rb#13 + # pkg:gem/activerecord#lib/active_record/serialization.rb:13 def serializable_hash(options = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/serialization.rb#25 + # pkg:gem/activerecord#lib/active_record/serialization.rb:25 def attribute_names_for_serialization; end module GeneratedClassMethods @@ -35030,17 +32577,17 @@ end # This is a subclass of TransactionRollbackError, please make sure to check # its documentation to be aware of its caveats. # -# source://activerecord//lib/active_record/errors.rb#544 +# pkg:gem/activerecord#lib/active_record/errors.rb:544 class ActiveRecord::SerializationFailure < ::ActiveRecord::TransactionRollbackError; end # Raised when unserialized object's type mismatches one specified for serializable field. # -# source://activerecord//lib/active_record/errors.rb#37 +# pkg:gem/activerecord#lib/active_record/errors.rb:37 class ActiveRecord::SerializationTypeMismatch < ::ActiveRecord::ActiveRecordError; end # = Active Record Signed Id # -# source://activerecord//lib/active_record/signed_id.rb#5 +# pkg:gem/activerecord#lib/active_record/signed_id.rb:5 module ActiveRecord::SignedId extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -35072,9 +32619,7 @@ module ActiveRecord::SignedId # And you then change your +find_signed+ calls to require this new purpose. Any old signed ids that were not # created with the purpose will no longer find the record. # - # @raise [ArgumentError] - # - # source://activerecord//lib/active_record/signed_id.rb#132 + # pkg:gem/activerecord#lib/active_record/signed_id.rb:132 def signed_id(expires_in: T.unsafe(nil), expires_at: T.unsafe(nil), purpose: T.unsafe(nil)); end module GeneratedClassMethods @@ -35089,9 +32634,9 @@ module ActiveRecord::SignedId end end -# source://activerecord//lib/active_record/signed_id.rb#26 +# pkg:gem/activerecord#lib/active_record/signed_id.rb:26 module ActiveRecord::SignedId::ClassMethods - # source://activerecord//lib/active_record/signed_id.rb#103 + # pkg:gem/activerecord#lib/active_record/signed_id.rb:103 def combine_signed_id_purposes(purpose); end # Lets you find a record based on a signed id that's safe to put into the world without risk of tampering. @@ -35120,9 +32665,7 @@ module ActiveRecord::SignedId::ClassMethods # travel_back # User.find_signed signed_id, purpose: :password_reset # => User.first # - # @raise [UnknownPrimaryKey] - # - # source://activerecord//lib/active_record/signed_id.rb#52 + # pkg:gem/activerecord#lib/active_record/signed_id.rb:52 def find_signed(signed_id, purpose: T.unsafe(nil)); end # Works like find_signed, but will raise an ActiveSupport::MessageVerifier::InvalidSignature @@ -35138,7 +32681,7 @@ module ActiveRecord::SignedId::ClassMethods # User.first.destroy # User.find_signed! signed_id # => ActiveRecord::RecordNotFound # - # source://activerecord//lib/active_record/signed_id.rb#72 + # pkg:gem/activerecord#lib/active_record/signed_id.rb:72 def find_signed!(signed_id, purpose: T.unsafe(nil)); end # The verifier instance that all signed ids are generated and verified from. By default, it'll be initialized @@ -35146,49 +32689,45 @@ module ActiveRecord::SignedId::ClassMethods # {Rails.application.key_generator}[rdoc-ref:Rails::Application#key_generator]. # By default, it's SHA256 for the digest and JSON for the serialization. # - # source://activerecord//lib/active_record/signed_id.rb#82 + # pkg:gem/activerecord#lib/active_record/signed_id.rb:82 def signed_id_verifier; end # Allows you to pass in a custom verifier used for the signed ids. This also allows you to use different # verifiers for different classes. This is also helpful if you need to rotate keys, as you can prepare # your custom verifier for that in advance. See ActiveSupport::MessageVerifier for details. # - # source://activerecord//lib/active_record/signed_id.rb#98 + # pkg:gem/activerecord#lib/active_record/signed_id.rb:98 def signed_id_verifier=(verifier); end end -# source://activerecord//lib/active_record/signed_id.rb#16 +# pkg:gem/activerecord#lib/active_record/signed_id.rb:16 module ActiveRecord::SignedId::RelationMethods - # source://activerecord//lib/active_record/signed_id.rb#17 - def find_signed(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/signed_id.rb:17 + def find_signed(*, **, &); end - # source://activerecord//lib/active_record/signed_id.rb#21 - def find_signed!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/signed_id.rb:21 + def find_signed!(*, **, &); end end # Raised when Active Record finds multiple records but only expected one. # -# source://activerecord//lib/active_record/errors.rb#192 +# pkg:gem/activerecord#lib/active_record/errors.rb:192 class ActiveRecord::SoleRecordExceeded < ::ActiveRecord::ActiveRecordError - # @return [SoleRecordExceeded] a new instance of SoleRecordExceeded - # - # source://activerecord//lib/active_record/errors.rb#195 + # pkg:gem/activerecord#lib/active_record/errors.rb:195 def initialize(record = T.unsafe(nil)); end - # Returns the value of attribute record. - # - # source://activerecord//lib/active_record/errors.rb#193 + # pkg:gem/activerecord#lib/active_record/errors.rb:193 def record; end end -# source://activerecord//lib/active_record/relation/spawn_methods.rb#8 +# pkg:gem/activerecord#lib/active_record/relation/spawn_methods.rb:8 module ActiveRecord::SpawnMethods # Removes the condition(s) specified in +skips+ from the query. # # Post.order('id asc').except(:order) # removes the order condition # Post.where('id > 10').order('id asc').except(:where) # removes the where condition but keeps the order # - # source://activerecord//lib/active_record/relation/spawn_methods.rb#59 + # pkg:gem/activerecord#lib/active_record/relation/spawn_methods.rb:59 def except(*skips); end # Merges in the conditions from other, if other is an ActiveRecord::Relation. @@ -35212,10 +32751,10 @@ module ActiveRecord::SpawnMethods # For conditions that exist in both relations, those from other will take precedence. # To find the intersection of two relations, use QueryMethods#and. # - # source://activerecord//lib/active_record/relation/spawn_methods.rb#33 + # pkg:gem/activerecord#lib/active_record/relation/spawn_methods.rb:33 def merge(other, *rest); end - # source://activerecord//lib/active_record/relation/spawn_methods.rb#43 + # pkg:gem/activerecord#lib/active_record/relation/spawn_methods.rb:43 def merge!(other, *rest); end # Keeps only the condition(s) specified in +onlies+ in the query, removing all others. @@ -35223,15 +32762,15 @@ module ActiveRecord::SpawnMethods # Post.order('id asc').only(:where) # keeps only the where condition, removes the order # Post.order('id asc').only(:where, :order) # keeps only the where and order conditions # - # source://activerecord//lib/active_record/relation/spawn_methods.rb#67 + # pkg:gem/activerecord#lib/active_record/relation/spawn_methods.rb:67 def only(*onlies); end - # source://activerecord//lib/active_record/relation/spawn_methods.rb#9 + # pkg:gem/activerecord#lib/active_record/relation/spawn_methods.rb:9 def spawn; end private - # source://activerecord//lib/active_record/relation/spawn_methods.rb#72 + # pkg:gem/activerecord#lib/active_record/relation/spawn_methods.rb:72 def relation_with(values); end end @@ -35242,21 +32781,15 @@ end # Read more about optimistic locking in ActiveRecord::Locking module # documentation. # -# source://activerecord//lib/active_record/errors.rb#371 +# pkg:gem/activerecord#lib/active_record/errors.rb:371 class ActiveRecord::StaleObjectError < ::ActiveRecord::ActiveRecordError - # @return [StaleObjectError] a new instance of StaleObjectError - # - # source://activerecord//lib/active_record/errors.rb#374 + # pkg:gem/activerecord#lib/active_record/errors.rb:374 def initialize(record = T.unsafe(nil), attempted_action = T.unsafe(nil)); end - # Returns the value of attribute attempted_action. - # - # source://activerecord//lib/active_record/errors.rb#372 + # pkg:gem/activerecord#lib/active_record/errors.rb:372 def attempted_action; end - # Returns the value of attribute record. - # - # source://activerecord//lib/active_record/errors.rb#372 + # pkg:gem/activerecord#lib/active_record/errors.rb:372 def record; end end @@ -35287,150 +32820,120 @@ end # # cache.execute(["my book"], ClothingItem.lease_connection) # -# source://activerecord//lib/active_record/statement_cache.rb#30 +# pkg:gem/activerecord#lib/active_record/statement_cache.rb:30 class ActiveRecord::StatementCache - # @return [StatementCache] a new instance of StatementCache - # - # source://activerecord//lib/active_record/statement_cache.rb#139 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:139 def initialize(query_builder, bind_map, model); end - # source://activerecord//lib/active_record/statement_cache.rb#145 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:145 def execute(params, connection, allow_retry: T.unsafe(nil), async: T.unsafe(nil), &block); end class << self - # source://activerecord//lib/active_record/statement_cache.rb#132 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:132 def create(connection, callable = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/statement_cache.rb#101 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:101 def partial_query(values); end - # source://activerecord//lib/active_record/statement_cache.rb#105 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:105 def partial_query_collector; end - # source://activerecord//lib/active_record/statement_cache.rb#97 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:97 def query(sql); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/statement_cache.rb#158 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:158 def unsupported_value?(value); end end end -# source://activerecord//lib/active_record/statement_cache.rb#113 +# pkg:gem/activerecord#lib/active_record/statement_cache.rb:113 class ActiveRecord::StatementCache::BindMap - # @return [BindMap] a new instance of BindMap - # - # source://activerecord//lib/active_record/statement_cache.rb#114 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:114 def initialize(bound_attributes); end - # source://activerecord//lib/active_record/statement_cache.rb#125 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:125 def bind(values); end end -# source://activerecord//lib/active_record/statement_cache.rb#109 +# pkg:gem/activerecord#lib/active_record/statement_cache.rb:109 class ActiveRecord::StatementCache::Params - # source://activerecord//lib/active_record/statement_cache.rb#110 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:110 def bind; end end -# source://activerecord//lib/active_record/statement_cache.rb#43 +# pkg:gem/activerecord#lib/active_record/statement_cache.rb:43 class ActiveRecord::StatementCache::PartialQuery < ::ActiveRecord::StatementCache::Query - # @return [PartialQuery] a new instance of PartialQuery - # - # source://activerecord//lib/active_record/statement_cache.rb#44 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:44 def initialize(values); end - # source://activerecord//lib/active_record/statement_cache.rb#51 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:51 def sql_for(binds, connection); end end -# source://activerecord//lib/active_record/statement_cache.rb#64 +# pkg:gem/activerecord#lib/active_record/statement_cache.rb:64 class ActiveRecord::StatementCache::PartialQueryCollector - # @return [PartialQueryCollector] a new instance of PartialQueryCollector - # - # source://activerecord//lib/active_record/statement_cache.rb#67 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:67 def initialize; end - # source://activerecord//lib/active_record/statement_cache.rb#72 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:72 def <<(str); end - # source://activerecord//lib/active_record/statement_cache.rb#77 - def add_bind(obj, &_arg1); end + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:77 + def add_bind(obj, &); end - # source://activerecord//lib/active_record/statement_cache.rb#83 - def add_binds(binds, proc_for_binds = T.unsafe(nil), &_arg2); end + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:83 + def add_binds(binds, proc_for_binds = T.unsafe(nil), &); end - # Returns the value of attribute preparable. - # - # source://activerecord//lib/active_record/statement_cache.rb#65 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:65 def preparable; end - # Sets the attribute preparable - # - # @param value the value to set the attribute preparable to. - # - # source://activerecord//lib/active_record/statement_cache.rb#65 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:65 def preparable=(_arg0); end - # Returns the value of attribute retryable. - # - # source://activerecord//lib/active_record/statement_cache.rb#65 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:65 def retryable; end - # Sets the attribute retryable - # - # @param value the value to set the attribute retryable to. - # - # source://activerecord//lib/active_record/statement_cache.rb#65 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:65 def retryable=(_arg0); end - # source://activerecord//lib/active_record/statement_cache.rb#92 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:92 def value; end end -# source://activerecord//lib/active_record/statement_cache.rb#33 +# pkg:gem/activerecord#lib/active_record/statement_cache.rb:33 class ActiveRecord::StatementCache::Query - # @return [Query] a new instance of Query - # - # source://activerecord//lib/active_record/statement_cache.rb#34 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:34 def initialize(sql); end - # source://activerecord//lib/active_record/statement_cache.rb#38 + # pkg:gem/activerecord#lib/active_record/statement_cache.rb:38 def sql_for(binds, connection); end end -# source://activerecord//lib/active_record/statement_cache.rb#31 +# pkg:gem/activerecord#lib/active_record/statement_cache.rb:31 class ActiveRecord::StatementCache::Substitute; end # Superclass for all database execution errors. # # Wraps the underlying database error as +cause+. # -# source://activerecord//lib/active_record/errors.rb#204 +# pkg:gem/activerecord#lib/active_record/errors.rb:204 class ActiveRecord::StatementInvalid < ::ActiveRecord::AdapterError - # @return [StatementInvalid] a new instance of StatementInvalid - # - # source://activerecord//lib/active_record/errors.rb#205 + # pkg:gem/activerecord#lib/active_record/errors.rb:205 def initialize(message = T.unsafe(nil), sql: T.unsafe(nil), binds: T.unsafe(nil), connection_pool: T.unsafe(nil)); end - # Returns the value of attribute binds. - # - # source://activerecord//lib/active_record/errors.rb#211 + # pkg:gem/activerecord#lib/active_record/errors.rb:211 def binds; end - # source://activerecord//lib/active_record/errors.rb#213 + # pkg:gem/activerecord#lib/active_record/errors.rb:213 def set_query(sql, binds); end - # Returns the value of attribute sql. - # - # source://activerecord//lib/active_record/errors.rb#211 + # pkg:gem/activerecord#lib/active_record/errors.rb:211 def sql; end end # StatementTimeout will be raised when statement timeout exceeded. # -# source://activerecord//lib/active_record/errors.rb#569 +# pkg:gem/activerecord#lib/active_record/errors.rb:569 class ActiveRecord::StatementTimeout < ::ActiveRecord::QueryAborted; end # = Active Record \Store @@ -35524,7 +33027,7 @@ class ActiveRecord::StatementTimeout < ::ActiveRecord::QueryAborted; end # end # end # -# source://activerecord//lib/active_record/store.rb#96 +# pkg:gem/activerecord#lib/active_record/store.rb:96 module ActiveRecord::Store extend ::ActiveSupport::Concern @@ -35532,84 +33035,82 @@ module ActiveRecord::Store private - # source://activerecord//lib/active_record/store.rb#209 + # pkg:gem/activerecord#lib/active_record/store.rb:209 def read_store_attribute(store_attribute, key); end - # source://activerecord//lib/active_record/store.rb#219 + # pkg:gem/activerecord#lib/active_record/store.rb:219 def store_accessor_for(store_attribute); end - # source://activerecord//lib/active_record/store.rb#214 + # pkg:gem/activerecord#lib/active_record/store.rb:214 def write_store_attribute(store_attribute, key, value); end end -# source://activerecord//lib/active_record/store.rb#105 +# pkg:gem/activerecord#lib/active_record/store.rb:105 module ActiveRecord::Store::ClassMethods - # source://activerecord//lib/active_record/store.rb#191 + # pkg:gem/activerecord#lib/active_record/store.rb:191 def _store_accessors_module; end - # source://activerecord//lib/active_record/store.rb#106 + # pkg:gem/activerecord#lib/active_record/store.rb:106 def store(store_attribute, options = T.unsafe(nil)); end - # source://activerecord//lib/active_record/store.rb#112 + # pkg:gem/activerecord#lib/active_record/store.rb:112 def store_accessor(store_attribute, *keys, prefix: T.unsafe(nil), suffix: T.unsafe(nil)); end - # source://activerecord//lib/active_record/store.rb#199 + # pkg:gem/activerecord#lib/active_record/store.rb:199 def stored_attributes; end end -# source://activerecord//lib/active_record/store.rb#227 +# pkg:gem/activerecord#lib/active_record/store.rb:227 class ActiveRecord::Store::HashAccessor class << self - # source://activerecord//lib/active_record/store.rb#238 + # pkg:gem/activerecord#lib/active_record/store.rb:238 def prepare(object, attribute); end - # source://activerecord//lib/active_record/store.rb#228 + # pkg:gem/activerecord#lib/active_record/store.rb:228 def read(object, attribute, key); end - # source://activerecord//lib/active_record/store.rb#233 + # pkg:gem/activerecord#lib/active_record/store.rb:233 def write(object, attribute, key, value); end end end -# source://activerecord//lib/active_record/store.rb#264 +# pkg:gem/activerecord#lib/active_record/store.rb:264 class ActiveRecord::Store::IndifferentCoder - # @return [IndifferentCoder] a new instance of IndifferentCoder - # - # source://activerecord//lib/active_record/store.rb#265 + # pkg:gem/activerecord#lib/active_record/store.rb:265 def initialize(attr_name, coder_or_class_name); end - # source://activerecord//lib/active_record/store.rb#274 + # pkg:gem/activerecord#lib/active_record/store.rb:274 def dump(obj); end - # source://activerecord//lib/active_record/store.rb#278 + # pkg:gem/activerecord#lib/active_record/store.rb:278 def load(yaml); end private - # source://activerecord//lib/active_record/store.rb#294 + # pkg:gem/activerecord#lib/active_record/store.rb:294 def as_regular_hash(obj); end class << self - # source://activerecord//lib/active_record/store.rb#282 + # pkg:gem/activerecord#lib/active_record/store.rb:282 def as_indifferent_hash(obj); end end end -# source://activerecord//lib/active_record/store.rb#253 +# pkg:gem/activerecord#lib/active_record/store.rb:253 class ActiveRecord::Store::IndifferentHashAccessor < ::ActiveRecord::Store::HashAccessor class << self - # source://activerecord//lib/active_record/store.rb#254 + # pkg:gem/activerecord#lib/active_record/store.rb:254 def prepare(object, store_attribute); end end end -# source://activerecord//lib/active_record/store.rb#243 +# pkg:gem/activerecord#lib/active_record/store.rb:243 class ActiveRecord::Store::StringKeyedHashAccessor < ::ActiveRecord::Store::HashAccessor class << self - # source://activerecord//lib/active_record/store.rb#244 + # pkg:gem/activerecord#lib/active_record/store.rb:244 def read(object, attribute, key); end - # source://activerecord//lib/active_record/store.rb#248 + # pkg:gem/activerecord#lib/active_record/store.rb:248 def write(object, attribute, key, value); end end end @@ -35622,7 +33123,7 @@ end # guide covers solutions, such as using # {ActiveRecord::Base.includes}[rdoc-ref:QueryMethods#includes]. # -# source://activerecord//lib/active_record/errors.rb#404 +# pkg:gem/activerecord#lib/active_record/errors.rb:404 class ActiveRecord::StrictLoadingViolationError < ::ActiveRecord::ActiveRecordError; end # Raised when the single-table inheritance mechanism fails to locate the subclass @@ -35630,7 +33131,7 @@ class ActiveRecord::StrictLoadingViolationError < ::ActiveRecord::ActiveRecordEr # {ActiveRecord::Base.inheritance_column}[rdoc-ref:ModelSchema.inheritance_column] # points to). # -# source://activerecord//lib/active_record/errors.rb#18 +# pkg:gem/activerecord#lib/active_record/errors.rb:18 class ActiveRecord::SubclassNotFound < ::ActiveRecord::ActiveRecordError; end # = Active Record \Suppressor @@ -35662,119 +33163,103 @@ class ActiveRecord::SubclassNotFound < ::ActiveRecord::ActiveRecordError; end # end # end # -# source://activerecord//lib/active_record/suppressor.rb#32 +# pkg:gem/activerecord#lib/active_record/suppressor.rb:32 module ActiveRecord::Suppressor extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Suppressor::ClassMethods - # source://activerecord//lib/active_record/suppressor.rb#51 - def save(**_arg0); end + # pkg:gem/activerecord#lib/active_record/suppressor.rb:51 + def save(**); end - # source://activerecord//lib/active_record/suppressor.rb#55 - def save!(**_arg0); end + # pkg:gem/activerecord#lib/active_record/suppressor.rb:55 + def save!(**); end class << self - # source://activerecord//lib/active_record/suppressor.rb#36 + # pkg:gem/activerecord#lib/active_record/suppressor.rb:36 def registry; end end end -# source://activerecord//lib/active_record/suppressor.rb#41 +# pkg:gem/activerecord#lib/active_record/suppressor.rb:41 module ActiveRecord::Suppressor::ClassMethods - # source://activerecord//lib/active_record/suppressor.rb#42 + # pkg:gem/activerecord#lib/active_record/suppressor.rb:42 def suppress(&block); end end -# source://activerecord//lib/active_record/table_metadata.rb#4 +# pkg:gem/activerecord#lib/active_record/table_metadata.rb:4 class ActiveRecord::TableMetadata - # @return [TableMetadata] a new instance of TableMetadata - # - # source://activerecord//lib/active_record/table_metadata.rb#7 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:7 def initialize(klass, arel_table, reflection = T.unsafe(nil)); end - # source://activerecord//lib/active_record/table_metadata.rb#65 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:68 def aggregated_with?(aggregation_name); end - # Returns the value of attribute arel_table. - # - # source://activerecord//lib/active_record/table_metadata.rb#78 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:78 def arel_table; end - # source://activerecord//lib/active_record/table_metadata.rb#29 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:29 def associated_table(table_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/table_metadata.rb#25 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:25 def associated_with?(table_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/table_metadata.rb#21 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:21 def has_column?(column_name); end - # source://activerecord//lib/active_record/table_metadata.rb#5 - def join_foreign_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:5 + def join_foreign_key(*, **, &); end - # source://activerecord//lib/active_record/table_metadata.rb#5 - def join_foreign_type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:5 + def join_foreign_type(*, **, &); end - # source://activerecord//lib/active_record/table_metadata.rb#5 - def join_primary_key(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:5 + def join_primary_key(*, **, &); end - # source://activerecord//lib/active_record/table_metadata.rb#5 - def join_primary_type(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:5 + def join_primary_type(*, **, &); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/table_metadata.rb#53 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:53 def polymorphic_association?; end - # source://activerecord//lib/active_record/table_metadata.rb#57 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:57 def polymorphic_name_association; end - # source://activerecord//lib/active_record/table_metadata.rb#70 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:70 def predicate_builder; end - # source://activerecord//lib/active_record/table_metadata.rb#13 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:13 def primary_key; end - # source://activerecord//lib/active_record/table_metadata.rb#65 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:65 def reflect_on_aggregation(aggregation_name); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/table_metadata.rb#61 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:61 def through_association?; end - # source://activerecord//lib/active_record/table_metadata.rb#17 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:17 def type(column_name); end private - # Returns the value of attribute klass. - # - # source://activerecord//lib/active_record/table_metadata.rb#81 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:81 def klass; end - # Returns the value of attribute reflection. - # - # source://activerecord//lib/active_record/table_metadata.rb#81 + # pkg:gem/activerecord#lib/active_record/table_metadata.rb:81 def reflection; end end # Raised when a model makes a query but it has not specified an associated table. # -# source://activerecord//lib/active_record/errors.rb#46 +# pkg:gem/activerecord#lib/active_record/errors.rb:46 class ActiveRecord::TableNotSpecified < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record.rb#173 +# pkg:gem/activerecord#lib/active_record.rb:173 module ActiveRecord::Tasks extend ::ActiveSupport::Autoload end -# source://activerecord//lib/active_record/tasks/database_tasks.rb#7 +# pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:7 class ActiveRecord::Tasks::DatabaseNotSupported < ::StandardError; end # = Active Record \DatabaseTasks @@ -35809,84 +33294,74 @@ class ActiveRecord::Tasks::DatabaseNotSupported < ::StandardError; end # # DatabaseTasks.create_current('production') # -# source://activerecord//lib/active_record/tasks/database_tasks.rb#40 +# pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:40 module ActiveRecord::Tasks::DatabaseTasks extend ::ActiveRecord::Tasks::DatabaseTasks - # source://activerecord//lib/active_record/tasks/database_tasks.rb#476 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:476 def cache_dump_filename(db_config, schema_cache_path: T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#332 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:332 def charset(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#327 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:327 def charset_current(env_name = T.unsafe(nil), db_name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#65 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:65 def check_protected_environments!(environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#490 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:490 def check_schema_file(filename); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#317 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:317 def check_target_version; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#516 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:516 def clear_schema_cache(filename); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#342 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:342 def collation(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#337 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:337 def collation_current(env_name = T.unsafe(nil), db_name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#115 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:115 def create(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#127 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:127 def create_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#170 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:170 def create_current(environment = T.unsafe(nil), name = T.unsafe(nil)); end - # Returns the value of attribute database_configuration. - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#61 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:61 def database_configuration; end - # Sets the attribute database_configuration - # - # @param value the value to set the attribute database_configuration to. - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#61 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:61 def database_configuration=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#285 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:285 def db_configs_with_versions(environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#83 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:83 def db_dir; end - # Sets the attribute db_dir - # - # @param value the value to set the attribute db_dir to. - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#60 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:60 def db_dir=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#210 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:210 def drop(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#222 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:222 def drop_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#226 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:226 def drop_current(environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#432 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:432 def dump_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#439 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:439 def dump_schema(db_config, format = T.unsafe(nil)); end # Dumps the schema cache in YAML format for the connection into the file @@ -35894,448 +33369,392 @@ module ActiveRecord::Tasks::DatabaseTasks # ==== Examples # ActiveRecord::Tasks::DatabaseTasks.dump_schema_cache(ActiveRecord::Base.lease_connection, "tmp/schema_dump.yaml") # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#512 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:512 def dump_schema_cache(conn_or_pool, filename); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#103 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:103 def env; end - # Sets the attribute env - # - # @param value the value to set the attribute env to. - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#60 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:60 def env=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#91 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:91 def fixtures_path; end - # Sets the attribute fixtures_path - # - # @param value the value to set the attribute fixtures_path to. - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#60 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:60 def fixtures_path=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#141 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:141 def for_each(databases); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#376 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:376 def load_schema(db_config, format = T.unsafe(nil), file = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#482 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:482 def load_schema_current(format = T.unsafe(nil), file = T.unsafe(nil), environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#498 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:498 def load_seed; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#262 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:262 def migrate(version = T.unsafe(nil), skip_initialize: T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#243 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:243 def migrate_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#302 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:302 def migrate_status; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#537 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:537 def migration_class; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#541 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:541 def migration_connection; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#545 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:545 def migration_connection_pool; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#87 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:87 def migrations_paths; end - # Sets the attribute migrations_paths - # - # @param value the value to set the attribute migrations_paths to. - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#60 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:60 def migrations_paths=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#107 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:107 def name; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#176 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:176 def prepare_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#347 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:347 def purge(configuration); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#352 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:352 def purge_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#356 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:356 def purge_current(environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#156 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:156 def raise_for_multi_db(environment = T.unsafe(nil), command:); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#414 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:414 def reconstruct_from_schema(db_config, file = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#73 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:73 def register_task(pattern, task); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#99 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:99 def root; end - # Sets the attribute root - # - # @param value the value to set the attribute root to. - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#60 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:60 def root=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#463 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:463 def schema_dump_path(db_config, format = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#398 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:398 def schema_up_to_date?(configuration, _ = T.unsafe(nil), file = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#111 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:111 def seed_loader; end - # Sets the attribute seed_loader - # - # @param value the value to set the attribute seed_loader to. - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#60 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:60 def seed_loader=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#135 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:135 def setup_initial_database_yaml; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#362 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:362 def structure_dump(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#369 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:369 def structure_load(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#323 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:323 def target_version; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#237 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:237 def truncate_all(environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#531 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:531 def with_temporary_connection(db_config, clobber: T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#520 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:520 def with_temporary_pool_for_each(env: T.unsafe(nil), name: T.unsafe(nil), clobber: T.unsafe(nil), &block); end private - # source://activerecord//lib/active_record/tasks/database_tasks.rb#643 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:643 def check_current_protected_environment!(db_config); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#582 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:582 def class_for_adapter(adapter); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#559 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:559 def configs_for(**options); end # Create a new instance for the specified db configuration object # For classes that have been converted to use db_config objects, pass a # `DatabaseConfig`, otherwise pass a `Hash` # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#574 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:574 def database_adapter_for(db_config, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#590 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:590 def each_current_configuration(environment, name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#600 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:600 def each_current_environment(environment, &block); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#606 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:606 def each_local_configuration; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#660 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:660 def initialize_database(db_config); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#618 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:618 def local_database?(db_config); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#563 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:563 def resolve_configuration(configuration); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#623 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:623 def schema_sha1(file); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#627 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:627 def structure_dump_flags_for(adapter); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#635 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:635 def structure_load_flags_for(adapter); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#230 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:230 def truncate_tables(db_config); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#567 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:567 def verbose?; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#550 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:550 def with_temporary_pool(db_config, clobber: T.unsafe(nil)); end class << self - # source://activerecord//lib/active_record/tasks/database_tasks.rb#50 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:50 def structure_dump_flags; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#50 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:50 def structure_dump_flags=(val); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#56 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:56 def structure_load_flags; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#56 + # pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:56 def structure_load_flags=(val); end end end -# source://activerecord//lib/active_record/tasks/database_tasks.rb#63 +# pkg:gem/activerecord#lib/active_record/tasks/database_tasks.rb:63 ActiveRecord::Tasks::DatabaseTasks::LOCAL_HOSTS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#5 +# pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:5 class ActiveRecord::Tasks::MySQLDatabaseTasks - # @return [MySQLDatabaseTasks] a new instance of MySQLDatabaseTasks - # - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#10 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:10 def initialize(db_config); end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#32 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:32 def charset; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#36 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:36 def collation; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#15 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:15 def create; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#21 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:21 def drop; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#26 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:26 def purge; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#40 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:40 def structure_dump(filename, extra_flags); end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#59 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:59 def structure_load(filename, extra_flags); end private - # Returns the value of attribute configuration_hash. - # - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#69 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:69 def configuration_hash; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#79 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:79 def configuration_hash_without_database; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#71 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:71 def connection; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#83 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:83 def creation_options; end - # Returns the value of attribute db_config. - # - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#69 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:69 def db_config; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#75 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:75 def establish_connection(config = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#90 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:90 def prepare_command_options; end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#109 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:109 def run_cmd(cmd, args, action); end - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#113 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:113 def run_cmd_error(cmd, args, action); end class << self - # @return [Boolean] - # - # source://activerecord//lib/active_record/tasks/mysql_database_tasks.rb#6 + # pkg:gem/activerecord#lib/active_record/tasks/mysql_database_tasks.rb:6 def using_database_configurations?; end end end -# source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#7 +# pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:7 class ActiveRecord::Tasks::PostgreSQLDatabaseTasks - # @return [PostgreSQLDatabaseTasks] a new instance of PostgreSQLDatabaseTasks - # - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#16 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:16 def initialize(db_config); end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#32 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:32 def charset; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#36 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:36 def collation; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#21 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:21 def create(connection_already_established = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#27 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:27 def drop; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#40 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:40 def purge; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#46 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:46 def structure_dump(filename, extra_flags); end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#80 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:80 def structure_load(filename, extra_flags); end private - # Returns the value of attribute configuration_hash. - # - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#89 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:89 def configuration_hash; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#91 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:91 def connection; end - # Returns the value of attribute db_config. - # - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#89 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:89 def db_config; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#99 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:99 def encoding; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#95 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:95 def establish_connection(config = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#107 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:107 def psql_env; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#103 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:103 def public_schema_config; end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#131 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:131 def remove_sql_header_comments(filename); end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#120 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:120 def run_cmd(cmd, args, action); end - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#124 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:124 def run_cmd_error(cmd, args, action); end class << self - # @return [Boolean] - # - # source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#12 + # pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:12 def using_database_configurations?; end end end -# source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#8 +# pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:8 ActiveRecord::Tasks::PostgreSQLDatabaseTasks::DEFAULT_ENCODING = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#9 +# pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:9 ActiveRecord::Tasks::PostgreSQLDatabaseTasks::ON_ERROR_STOP_1 = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/tasks/postgresql_database_tasks.rb#10 +# pkg:gem/activerecord#lib/active_record/tasks/postgresql_database_tasks.rb:10 ActiveRecord::Tasks::PostgreSQLDatabaseTasks::SQL_COMMENT_BEGIN = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#5 +# pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:5 class ActiveRecord::Tasks::SQLiteDatabaseTasks - # @return [SQLiteDatabaseTasks] a new instance of SQLiteDatabaseTasks - # - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#10 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:10 def initialize(db_config, root = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#40 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:40 def charset; end - # @raise [DatabaseAlreadyExists] - # - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#15 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:15 def create; end - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#22 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:22 def drop; end - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#31 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:31 def purge; end - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#44 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:44 def structure_dump(filename, extra_flags); end - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#60 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:60 def structure_load(filename, extra_flags); end private - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#68 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:68 def connection; end - # Returns the value of attribute db_config. - # - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#66 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:66 def db_config; end - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#72 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:72 def establish_connection(config = T.unsafe(nil)); end - # Returns the value of attribute root. - # - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#66 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:66 def root; end - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#77 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:77 def run_cmd(cmd, args, out); end - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#81 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:81 def run_cmd_error(cmd, args); end class << self - # @return [Boolean] - # - # source://activerecord//lib/active_record/tasks/sqlite_database_tasks.rb#6 + # pkg:gem/activerecord#lib/active_record/tasks/sqlite_database_tasks.rb:6 def using_database_configurations?; end end end -# source://activerecord//lib/active_record/test_databases.rb#6 +# pkg:gem/activerecord#lib/active_record/test_databases.rb:6 module ActiveRecord::TestDatabases class << self - # source://activerecord//lib/active_record/test_databases.rb#11 + # pkg:gem/activerecord#lib/active_record/test_databases.rb:11 def create_and_load_schema(i, env_name:); end end end -# source://activerecord//lib/active_record/associations/errors.rb#177 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:177 class ActiveRecord::ThroughCantAssociateThroughHasOneOrManyReflection < ::ActiveRecord::ActiveRecordError - # @return [ThroughCantAssociateThroughHasOneOrManyReflection] a new instance of ThroughCantAssociateThroughHasOneOrManyReflection - # - # source://activerecord//lib/active_record/associations/errors.rb#178 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:178 def initialize(owner = T.unsafe(nil), reflection = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/associations/errors.rb#224 +# pkg:gem/activerecord#lib/active_record/associations/errors.rb:224 class ActiveRecord::ThroughNestedAssociationsAreReadonly < ::ActiveRecord::ActiveRecordError - # @return [ThroughNestedAssociationsAreReadonly] a new instance of ThroughNestedAssociationsAreReadonly - # - # source://activerecord//lib/active_record/associations/errors.rb#225 + # pkg:gem/activerecord#lib/active_record/associations/errors.rb:225 def initialize(owner = T.unsafe(nil), reflection = T.unsafe(nil)); end end @@ -36379,7 +33798,7 @@ end # self.skip_time_zone_conversion_for_attributes = [:written_on] # end # -# source://activerecord//lib/active_record/timestamp.rb#43 +# pkg:gem/activerecord#lib/active_record/timestamp.rb:43 module ActiveRecord::Timestamp extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -36389,47 +33808,45 @@ module ActiveRecord::Timestamp private - # source://activerecord//lib/active_record/timestamp.rb#107 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:107 def _create_record; end - # source://activerecord//lib/active_record/timestamp.rb#119 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:119 def _update_record; end - # source://activerecord//lib/active_record/timestamp.rb#155 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:155 def all_timestamp_attributes_in_model; end # Clear attributes and changed_attributes # - # source://activerecord//lib/active_record/timestamp.rb#170 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:170 def clear_timestamp_attributes; end - # source://activerecord//lib/active_record/timestamp.rb#125 - def create_or_update(touch: T.unsafe(nil), **_arg1); end + # pkg:gem/activerecord#lib/active_record/timestamp.rb:125 + def create_or_update(touch: T.unsafe(nil), **); end - # source://activerecord//lib/active_record/timestamp.rb#159 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:159 def current_time_from_proper_timezone; end - # source://activerecord//lib/active_record/timestamp.rb#102 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:102 def init_internals; end - # source://activerecord//lib/active_record/timestamp.rb#50 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:50 def initialize_dup(other); end - # source://activerecord//lib/active_record/timestamp.rb#163 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:163 def max_updated_column_timestamp; end - # source://activerecord//lib/active_record/timestamp.rb#130 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:130 def record_update_timestamps; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/timestamp.rb#143 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:143 def should_record_timestamps?; end - # source://activerecord//lib/active_record/timestamp.rb#147 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:147 def timestamp_attributes_for_create_in_model; end - # source://activerecord//lib/active_record/timestamp.rb#151 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:151 def timestamp_attributes_for_update_in_model; end module GeneratedClassMethods @@ -36445,38 +33862,38 @@ module ActiveRecord::Timestamp end end -# source://activerecord//lib/active_record/timestamp.rb#55 +# pkg:gem/activerecord#lib/active_record/timestamp.rb:55 module ActiveRecord::Timestamp::ClassMethods - # source://activerecord//lib/active_record/timestamp.rb#74 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:74 def all_timestamp_attributes_in_model; end - # source://activerecord//lib/active_record/timestamp.rb#79 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:79 def current_time_from_proper_timezone; end - # source://activerecord//lib/active_record/timestamp.rb#64 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:64 def timestamp_attributes_for_create_in_model; end - # source://activerecord//lib/active_record/timestamp.rb#69 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:69 def timestamp_attributes_for_update_in_model; end - # source://activerecord//lib/active_record/timestamp.rb#56 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:56 def touch_attributes_with_time(*names, time: T.unsafe(nil)); end protected - # source://activerecord//lib/active_record/timestamp.rb#84 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:84 def reload_schema_from_cache(recursive = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/timestamp.rb#92 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:92 def timestamp_attributes_for_create; end - # source://activerecord//lib/active_record/timestamp.rb#96 + # pkg:gem/activerecord#lib/active_record/timestamp.rb:96 def timestamp_attributes_for_update; end end -# source://activerecord//lib/active_record/token_for.rb#6 +# pkg:gem/activerecord#lib/active_record/token_for.rb:6 module ActiveRecord::TokenFor extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -36489,7 +33906,7 @@ module ActiveRecord::TokenFor # Use ClassMethods#generates_token_for to define a token purpose and # behavior. # - # source://activerecord//lib/active_record/token_for.rb#119 + # pkg:gem/activerecord#lib/active_record/token_for.rb:119 def generate_token_for(purpose); end module GeneratedClassMethods @@ -36502,12 +33919,12 @@ module ActiveRecord::TokenFor module GeneratedInstanceMethods; end end -# source://activerecord//lib/active_record/token_for.rb#56 +# pkg:gem/activerecord#lib/active_record/token_for.rb:56 module ActiveRecord::TokenFor::ClassMethods - # source://activerecord//lib/active_record/token_for.rb#106 + # pkg:gem/activerecord#lib/active_record/token_for.rb:106 def find_by_token_for(purpose, token); end - # source://activerecord//lib/active_record/token_for.rb#110 + # pkg:gem/activerecord#lib/active_record/token_for.rb:110 def find_by_token_for!(purpose, token); end # Defines the behavior of tokens generated for a specific +purpose+. @@ -36556,18 +33973,16 @@ module ActiveRecord::TokenFor::ClassMethods # user.update!(password: "new password") # User.find_by_token_for(:password_reset, token) # => nil # - # source://activerecord//lib/active_record/token_for.rb#102 + # pkg:gem/activerecord#lib/active_record/token_for.rb:102 def generates_token_for(purpose, expires_in: T.unsafe(nil), &block); end end -# source://activerecord//lib/active_record/token_for.rb#38 +# pkg:gem/activerecord#lib/active_record/token_for.rb:38 module ActiveRecord::TokenFor::RelationMethods # Finds a record using a given +token+ for a predefined +purpose+. Returns # +nil+ if the token is invalid or the record was not found. # - # @raise [UnknownPrimaryKey] - # - # source://activerecord//lib/active_record/token_for.rb#41 + # pkg:gem/activerecord#lib/active_record/token_for.rb:41 def find_by_token_for(purpose, token); end # Finds a record using a given +token+ for a predefined +purpose+. Raises @@ -36575,107 +33990,94 @@ module ActiveRecord::TokenFor::RelationMethods # (e.g. expired, bad format, etc). Raises ActiveRecord::RecordNotFound if # the token is valid but the record was not found. # - # source://activerecord//lib/active_record/token_for.rb#50 + # pkg:gem/activerecord#lib/active_record/token_for.rb:50 def find_by_token_for!(purpose, token); end end -# source://activerecord//lib/active_record/token_for.rb#14 +# pkg:gem/activerecord#lib/active_record/token_for.rb:14 class ActiveRecord::TokenFor::TokenDefinition < ::Struct - # Returns the value of attribute block - # - # @return [Object] the current value of block + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def block; end - # Sets the attribute block - # - # @param value [Object] the value to set the attribute block to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def block=(_); end - # Returns the value of attribute defining_class - # - # @return [Object] the current value of defining_class + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def defining_class; end - # Sets the attribute defining_class - # - # @param value [Object] the value to set the attribute defining_class to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def defining_class=(_); end - # Returns the value of attribute expires_in - # - # @return [Object] the current value of expires_in + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def expires_in; end - # Sets the attribute expires_in - # - # @param value [Object] the value to set the attribute expires_in to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def expires_in=(_); end - # source://activerecord//lib/active_record/token_for.rb#15 + # pkg:gem/activerecord#lib/active_record/token_for.rb:15 def full_purpose; end - # source://activerecord//lib/active_record/token_for.rb#27 + # pkg:gem/activerecord#lib/active_record/token_for.rb:27 def generate_token(model); end - # source://activerecord//lib/active_record/token_for.rb#19 + # pkg:gem/activerecord#lib/active_record/token_for.rb:19 def message_verifier; end - # source://activerecord//lib/active_record/token_for.rb#23 + # pkg:gem/activerecord#lib/active_record/token_for.rb:23 def payload_for(model); end - # Returns the value of attribute purpose - # - # @return [Object] the current value of purpose + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def purpose; end - # Sets the attribute purpose - # - # @param value [Object] the value to set the attribute purpose to. - # @return [Object] the newly set value + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def purpose=(_); end - # source://activerecord//lib/active_record/token_for.rb#31 + # pkg:gem/activerecord#lib/active_record/token_for.rb:31 def resolve_token(token); end class << self + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def [](*_arg0); end + + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def inspect; end + + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def keyword_init?; end + + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def members; end + + # pkg:gem/activerecord#lib/active_record/token_for.rb:14 def new(*_arg0); end end end # = Active Record Touch Later # -# source://activerecord//lib/active_record/touch_later.rb#5 +# pkg:gem/activerecord#lib/active_record/touch_later.rb:5 module ActiveRecord::TouchLater - # source://activerecord//lib/active_record/touch_later.rb#6 + # pkg:gem/activerecord#lib/active_record/touch_later.rb:6 def before_committed!; end - # source://activerecord//lib/active_record/touch_later.rb#38 + # pkg:gem/activerecord#lib/active_record/touch_later.rb:38 def touch(*names, time: T.unsafe(nil)); end - # source://activerecord//lib/active_record/touch_later.rb#11 + # pkg:gem/activerecord#lib/active_record/touch_later.rb:11 def touch_later(*names); end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/touch_later.rb#66 + # pkg:gem/activerecord#lib/active_record/touch_later.rb:66 def has_defer_touch_attrs?; end - # source://activerecord//lib/active_record/touch_later.rb#49 + # pkg:gem/activerecord#lib/active_record/touch_later.rb:49 def init_internals; end - # source://activerecord//lib/active_record/touch_later.rb#54 + # pkg:gem/activerecord#lib/active_record/touch_later.rb:54 def surreptitiously_touch(attr_names); end - # source://activerecord//lib/active_record/touch_later.rb#61 + # pkg:gem/activerecord#lib/active_record/touch_later.rb:61 def touch_deferred_attributes; end end @@ -36742,11 +34144,9 @@ end # won't be rolled back as it was already committed. Relying solely on these to synchronize state between multiple # systems may lead to consistency issues. # -# source://activerecord//lib/active_record/transaction.rb#68 +# pkg:gem/activerecord#lib/active_record/transaction.rb:68 class ActiveRecord::Transaction - # @return [Transaction] a new instance of Transaction - # - # source://activerecord//lib/active_record/transaction.rb#69 + # pkg:gem/activerecord#lib/active_record/transaction.rb:69 def initialize(internal_transaction); end # Registers a block to be called after the transaction is fully committed. @@ -36761,7 +34161,7 @@ class ActiveRecord::Transaction # # If the callback raises an error, the transaction remains committed. # - # source://activerecord//lib/active_record/transaction.rb#85 + # pkg:gem/activerecord#lib/active_record/transaction.rb:85 def after_commit(&block); end # Registers a block to be called after the transaction is rolled back. @@ -36779,37 +34179,29 @@ class ActiveRecord::Transaction # If the transaction is already finalized, attempting to register a callback # will raise ActiveRecord::ActiveRecordError. # - # source://activerecord//lib/active_record/transaction.rb#107 + # pkg:gem/activerecord#lib/active_record/transaction.rb:107 def after_rollback(&block); end - # Returns true if the transaction doesn't exist or is finalized. - # - # @return [Boolean] - # - # source://activerecord//lib/active_record/transaction.rb#117 + # pkg:gem/activerecord#lib/active_record/transaction.rb:121 def blank?; end # Returns true if the transaction doesn't exist or is finalized. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/transaction.rb#117 + # pkg:gem/activerecord#lib/active_record/transaction.rb:117 def closed?; end # Returns true if the transaction exists and isn't finalized yet. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/transaction.rb#112 + # pkg:gem/activerecord#lib/active_record/transaction.rb:112 def open?; end # Returns a UUID for this transaction or +nil+ if no transaction is open. # - # source://activerecord//lib/active_record/transaction.rb#124 + # pkg:gem/activerecord#lib/active_record/transaction.rb:124 def uuid; end end -# source://activerecord//lib/active_record/transaction.rb#130 +# pkg:gem/activerecord#lib/active_record/transaction.rb:130 ActiveRecord::Transaction::NULL_TRANSACTION = T.let(T.unsafe(nil), ActiveRecord::Transaction) # TransactionIsolationError will be raised under the following conditions: @@ -36820,7 +34212,7 @@ ActiveRecord::Transaction::NULL_TRANSACTION = T.let(T.unsafe(nil), ActiveRecord: # # The mysql2, trilogy, and postgresql adapters support setting the transaction isolation level. # -# source://activerecord//lib/active_record/errors.rb#508 +# pkg:gem/activerecord#lib/active_record/errors.rb:508 class ActiveRecord::TransactionIsolationError < ::ActiveRecord::ActiveRecordError; end # TransactionRollbackError will be raised when a transaction is rolled @@ -36844,30 +34236,30 @@ class ActiveRecord::TransactionIsolationError < ::ActiveRecord::ActiveRecordErro # * https://www.postgresql.org/docs/current/static/transaction-iso.html # * https://dev.mysql.com/doc/mysql-errors/en/server-error-reference.html#error_er_lock_deadlock # -# source://activerecord//lib/active_record/errors.rb#531 +# pkg:gem/activerecord#lib/active_record/errors.rb:531 class ActiveRecord::TransactionRollbackError < ::ActiveRecord::StatementInvalid; end # See ActiveRecord::Transactions::ClassMethods for documentation. # -# source://activerecord//lib/active_record/transactions.rb#5 +# pkg:gem/activerecord#lib/active_record/transactions.rb:5 module ActiveRecord::Transactions extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Transactions::ClassMethods - # source://activerecord//lib/active_record/transactions.rb#16 + # pkg:gem/activerecord#lib/active_record/transactions.rb:16 def _last_transaction_return_status; end - # source://activerecord//lib/active_record/transactions.rb#16 + # pkg:gem/activerecord#lib/active_record/transactions.rb:16 def _last_transaction_return_status=(_arg0); end - # source://activerecord//lib/active_record/transactions.rb#16 + # pkg:gem/activerecord#lib/active_record/transactions.rb:16 def _new_record_before_last_commit; end - # source://activerecord//lib/active_record/transactions.rb#16 + # pkg:gem/activerecord#lib/active_record/transactions.rb:16 def _new_record_before_last_commit=(_arg0); end - # source://activerecord//lib/active_record/transactions.rb#372 + # pkg:gem/activerecord#lib/active_record/transactions.rb:372 def before_committed!; end # Call the #after_commit callbacks. @@ -36875,35 +34267,33 @@ module ActiveRecord::Transactions # Ensure that it is not called if the object was never persisted (failed create), # but call it after the commit of a destroyed object. # - # source://activerecord//lib/active_record/transactions.rb#380 + # pkg:gem/activerecord#lib/active_record/transactions.rb:380 def committed!(should_run_callbacks: T.unsafe(nil)); end - # source://activerecord//lib/active_record/transactions.rb#356 + # pkg:gem/activerecord#lib/active_record/transactions.rb:356 def destroy; end # Call the #after_rollback callbacks. The +force_restore_state+ argument indicates if the record # state should be rolled back to the beginning or just to the last savepoint. # - # source://activerecord//lib/active_record/transactions.rb#392 + # pkg:gem/activerecord#lib/active_record/transactions.rb:392 def rolledback!(force_restore_state: T.unsafe(nil), should_run_callbacks: T.unsafe(nil)); end - # source://activerecord//lib/active_record/transactions.rb#360 - def save(**_arg0); end + # pkg:gem/activerecord#lib/active_record/transactions.rb:360 + def save(**); end - # source://activerecord//lib/active_record/transactions.rb#364 - def save!(**_arg0); end + # pkg:gem/activerecord#lib/active_record/transactions.rb:364 + def save!(**); end - # source://activerecord//lib/active_record/transactions.rb#368 - def touch(*_arg0, **_arg1); end + # pkg:gem/activerecord#lib/active_record/transactions.rb:368 + def touch(*, **); end # See ActiveRecord::Transactions::ClassMethods for detailed documentation. # - # source://activerecord//lib/active_record/transactions.rb#352 + # pkg:gem/activerecord#lib/active_record/transactions.rb:352 def transaction(**options, &block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/transactions.rb#425 + # pkg:gem/activerecord#lib/active_record/transactions.rb:425 def trigger_transactional_callbacks?; end # Executes a block within a transaction and captures its return value as a @@ -36913,64 +34303,54 @@ module ActiveRecord::Transactions # This method is available within the context of an ActiveRecord::Base # instance. # - # source://activerecord//lib/active_record/transactions.rb#408 + # pkg:gem/activerecord#lib/active_record/transactions.rb:408 def with_transaction_returning_status; end private - # Returns the value of attribute _committed_already_called. - # - # source://activerecord//lib/active_record/transactions.rb#431 + # pkg:gem/activerecord#lib/active_record/transactions.rb:431 def _committed_already_called; end - # Returns the value of attribute _trigger_destroy_callback. - # - # source://activerecord//lib/active_record/transactions.rb#431 + # pkg:gem/activerecord#lib/active_record/transactions.rb:431 def _trigger_destroy_callback; end - # Returns the value of attribute _trigger_update_callback. - # - # source://activerecord//lib/active_record/transactions.rb#431 + # pkg:gem/activerecord#lib/active_record/transactions.rb:431 def _trigger_update_callback; end # Add the record to the current transaction so that the #after_rollback and #after_commit # callbacks can be called. # - # source://activerecord//lib/active_record/transactions.rb#514 + # pkg:gem/activerecord#lib/active_record/transactions.rb:514 def add_to_transaction(ensure_finalize = T.unsafe(nil)); end # Clear the new record state and id of a record. # - # source://activerecord//lib/active_record/transactions.rb#462 + # pkg:gem/activerecord#lib/active_record/transactions.rb:462 def clear_transaction_record_state; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/transactions.rb#520 + # pkg:gem/activerecord#lib/active_record/transactions.rb:520 def has_transactional_callbacks?; end - # source://activerecord//lib/active_record/transactions.rb#433 + # pkg:gem/activerecord#lib/active_record/transactions.rb:433 def init_internals; end # Save the new record state and id of a record so it can be restored later if a transaction fails. # - # source://activerecord//lib/active_record/transactions.rb#442 + # pkg:gem/activerecord#lib/active_record/transactions.rb:442 def remember_transaction_record_state; end # Restore the new record state and id of a record that was previously saved by a call to save_record_state. # - # source://activerecord//lib/active_record/transactions.rb#469 + # pkg:gem/activerecord#lib/active_record/transactions.rb:469 def restore_transaction_record_state(force_restore_state = T.unsafe(nil)); end # Determine if a transaction included an action for :create, :update, or :destroy. Used in filtering callbacks. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/transactions.rb#499 + # pkg:gem/activerecord#lib/active_record/transactions.rb:499 def transaction_include_any_action?(actions); end end -# source://activerecord//lib/active_record/transactions.rb#8 +# pkg:gem/activerecord#lib/active_record/transactions.rb:8 ActiveRecord::Transactions::ACTIONS = T.let(T.unsafe(nil), Array) # = Active Record \Transactions @@ -37185,7 +34565,7 @@ ActiveRecord::Transactions::ACTIONS = T.let(T.unsafe(nil), Array) # # Note that "TRUNCATE" is also a MySQL DDL statement! # -# source://activerecord//lib/active_record/transactions.rb#229 +# pkg:gem/activerecord#lib/active_record/transactions.rb:229 module ActiveRecord::Transactions::ClassMethods # This callback is called after a record has been created, updated, or destroyed. # @@ -37199,37 +34579,37 @@ module ActiveRecord::Transactions::ClassMethods # after_commit :do_foo_bar, on: [:create, :update] # after_commit :do_bar_baz, on: [:update, :destroy] # - # source://activerecord//lib/active_record/transactions.rb#265 + # pkg:gem/activerecord#lib/active_record/transactions.rb:265 def after_commit(*args, &block); end # Shortcut for after_commit :hook, on: :create. # - # source://activerecord//lib/active_record/transactions.rb#277 + # pkg:gem/activerecord#lib/active_record/transactions.rb:277 def after_create_commit(*args, &block); end # Shortcut for after_commit :hook, on: :destroy. # - # source://activerecord//lib/active_record/transactions.rb#289 + # pkg:gem/activerecord#lib/active_record/transactions.rb:289 def after_destroy_commit(*args, &block); end # This callback is called after a create, update, or destroy are rolled back. # # Please check the documentation of #after_commit for options. # - # source://activerecord//lib/active_record/transactions.rb#297 + # pkg:gem/activerecord#lib/active_record/transactions.rb:297 def after_rollback(*args, &block); end # Shortcut for after_commit :hook, on: [ :create, :update ]. # - # source://activerecord//lib/active_record/transactions.rb#271 + # pkg:gem/activerecord#lib/active_record/transactions.rb:271 def after_save_commit(*args, &block); end # Shortcut for after_commit :hook, on: :update. # - # source://activerecord//lib/active_record/transactions.rb#283 + # pkg:gem/activerecord#lib/active_record/transactions.rb:283 def after_update_commit(*args, &block); end - # source://activerecord//lib/active_record/transactions.rb#248 + # pkg:gem/activerecord#lib/active_record/transactions.rb:248 def before_commit(*args, &block); end # Returns a representation of the current transaction state, @@ -37240,60 +34620,60 @@ module ActiveRecord::Transactions::ClassMethods # # See the ActiveRecord::Transaction documentation for detailed behavior. # - # source://activerecord//lib/active_record/transactions.rb#244 + # pkg:gem/activerecord#lib/active_record/transactions.rb:244 def current_transaction; end # Similar to ActiveSupport::Callbacks::ClassMethods#set_callback, but with # support for options available on #after_commit and #after_rollback callbacks. # - # source://activerecord//lib/active_record/transactions.rb#304 + # pkg:gem/activerecord#lib/active_record/transactions.rb:304 def set_callback(name, *filter_list, &block); end # See the ConnectionAdapters::DatabaseStatements#transaction API docs. # - # source://activerecord//lib/active_record/transactions.rb#231 + # pkg:gem/activerecord#lib/active_record/transactions.rb:231 def transaction(**options, &block); end private - # source://activerecord//lib/active_record/transactions.rb#344 + # pkg:gem/activerecord#lib/active_record/transactions.rb:344 def assert_valid_transaction_action(actions); end - # source://activerecord//lib/active_record/transactions.rb#322 + # pkg:gem/activerecord#lib/active_record/transactions.rb:322 def prepend_option; end - # source://activerecord//lib/active_record/transactions.rb#330 + # pkg:gem/activerecord#lib/active_record/transactions.rb:330 def set_options_for_callbacks!(args, enforced_options = T.unsafe(nil)); end end -# source://activerecord//lib/active_record/translation.rb#4 +# pkg:gem/activerecord#lib/active_record/translation.rb:4 module ActiveRecord::Translation # Set the i18n scope to override ActiveModel. # - # source://activerecord//lib/active_record/translation.rb#18 + # pkg:gem/activerecord#lib/active_record/translation.rb:18 def i18n_scope; end # Set the lookup ancestors for ActiveModel. # - # source://activerecord//lib/active_record/translation.rb#6 + # pkg:gem/activerecord#lib/active_record/translation.rb:6 def lookup_ancestors; end end # :stopdoc: # -# source://activerecord//lib/active_record/type/internal/timezone.rb#4 +# pkg:gem/activerecord#lib/active_record/type/internal/timezone.rb:4 module ActiveRecord::Type class << self - # source://activerecord//lib/active_record/type.rb#49 + # pkg:gem/activerecord#lib/active_record/type.rb:49 def adapter_name_from(model); end - # source://activerecord//lib/active_record/type.rb#27 - def add_modifier(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activerecord#lib/active_record/type.rb:27 + def add_modifier(*, **, &); end - # source://activerecord//lib/active_record/type.rb#45 + # pkg:gem/activerecord#lib/active_record/type.rb:45 def default_value; end - # source://activerecord//lib/active_record/type.rb#41 + # pkg:gem/activerecord#lib/active_record/type.rb:41 def lookup(*args, adapter: T.unsafe(nil), **kwargs); end # Add a new type to the registry, allowing it to be referenced as a @@ -37305,455 +34685,387 @@ module ActiveRecord::Type # cause your type to be used instead of the native type. override: # false will cause the native type to be used over yours if one exists. # - # source://activerecord//lib/active_record/type.rb#37 + # pkg:gem/activerecord#lib/active_record/type.rb:37 def register(type_name, klass = T.unsafe(nil), **options, &block); end - # source://activerecord//lib/active_record/type.rb#26 + # pkg:gem/activerecord#lib/active_record/type.rb:26 def registry; end - # source://activerecord//lib/active_record/type.rb#26 + # pkg:gem/activerecord#lib/active_record/type.rb:26 def registry=(_arg0); end private - # source://activerecord//lib/active_record/type.rb#54 + # pkg:gem/activerecord#lib/active_record/type.rb:54 def current_adapter_name; end end end -# source://activerecord//lib/active_record/type/adapter_specific_registry.rb#6 +# pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:6 class ActiveRecord::Type::AdapterSpecificRegistry - # @return [AdapterSpecificRegistry] a new instance of AdapterSpecificRegistry - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#7 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:7 def initialize; end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#15 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:15 def add_modifier(options, klass, **args); end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#27 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:27 def lookup(symbol, *args, **kwargs); end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#19 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:19 def register(type_name, klass = T.unsafe(nil), **options, &block); end private - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#40 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:40 def find_registration(symbol, *args, **kwargs); end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#11 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:11 def initialize_copy(other); end - # Returns the value of attribute registrations. - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#38 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:38 def registrations; end end -# source://activerecord//lib/active_record/type.rb#59 +# pkg:gem/activerecord#lib/active_record/type.rb:59 ActiveRecord::Type::BigInteger = ActiveModel::Type::BigInteger -# source://activerecord//lib/active_record/type.rb#60 +# pkg:gem/activerecord#lib/active_record/type.rb:60 ActiveRecord::Type::Binary = ActiveModel::Type::Binary -# source://activerecord//lib/active_record/type.rb#61 +# pkg:gem/activerecord#lib/active_record/type.rb:61 ActiveRecord::Type::Boolean = ActiveModel::Type::Boolean -# source://activerecord//lib/active_record/type/date.rb#5 +# pkg:gem/activerecord#lib/active_record/type/date.rb:5 class ActiveRecord::Type::Date < ::ActiveModel::Type::Date include ::ActiveRecord::Type::Internal::Timezone end -# source://activerecord//lib/active_record/type/date_time.rb#5 +# pkg:gem/activerecord#lib/active_record/type/date_time.rb:5 class ActiveRecord::Type::DateTime < ::ActiveModel::Type::DateTime include ::ActiveRecord::Type::Internal::Timezone end -# source://activerecord//lib/active_record/type.rb#62 +# pkg:gem/activerecord#lib/active_record/type.rb:62 ActiveRecord::Type::Decimal = ActiveModel::Type::Decimal -# source://activerecord//lib/active_record/type/decimal_without_scale.rb#5 +# pkg:gem/activerecord#lib/active_record/type/decimal_without_scale.rb:5 class ActiveRecord::Type::DecimalWithoutScale < ::ActiveModel::Type::BigInteger - # source://activerecord//lib/active_record/type/decimal_without_scale.rb#6 + # pkg:gem/activerecord#lib/active_record/type/decimal_without_scale.rb:6 def type; end - # source://activerecord//lib/active_record/type/decimal_without_scale.rb#10 + # pkg:gem/activerecord#lib/active_record/type/decimal_without_scale.rb:10 def type_cast_for_schema(value); end end -# source://activerecord//lib/active_record/type/adapter_specific_registry.rb#110 +# pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:110 class ActiveRecord::Type::DecorationRegistration < ::ActiveRecord::Type::Registration - # @return [DecorationRegistration] a new instance of DecorationRegistration - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#111 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:111 def initialize(options, klass, adapter: T.unsafe(nil)); end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#117 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:117 def call(registry, *args, **kwargs); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#122 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:122 def matches?(*args, **kwargs); end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#126 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:126 def priority; end private - # Returns the value of attribute klass. - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#131 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:131 def klass; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#133 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:133 def matches_options?(**kwargs); end - # Returns the value of attribute options. - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#131 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:131 def options; end end -# source://activerecord//lib/active_record/type.rb#63 +# pkg:gem/activerecord#lib/active_record/type.rb:63 ActiveRecord::Type::Float = ActiveModel::Type::Float -# source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#5 +# pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:5 class ActiveRecord::Type::HashLookupTypeMap - # @return [HashLookupTypeMap] a new instance of HashLookupTypeMap - # - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#6 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:6 def initialize(parent = T.unsafe(nil)); end - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#39 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:39 def alias_type(type, alias_type); end - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#34 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:34 def clear; end - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#17 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:17 def fetch(lookup_key, *args, &block); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#43 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:43 def key?(key); end - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#47 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:47 def keys; end - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#13 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:13 def lookup(lookup_key, *args); end - # @raise [::ArgumentError] - # - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#23 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:23 def register_type(key, value = T.unsafe(nil), &block); end private - # source://activerecord//lib/active_record/type/hash_lookup_type_map.rb#52 + # pkg:gem/activerecord#lib/active_record/type/hash_lookup_type_map.rb:52 def perform_fetch(type, *args, &block); end end -# source://activerecord//lib/active_record/type.rb#65 +# pkg:gem/activerecord#lib/active_record/type.rb:65 ActiveRecord::Type::ImmutableString = ActiveModel::Type::ImmutableString -# source://activerecord//lib/active_record/type.rb#64 +# pkg:gem/activerecord#lib/active_record/type.rb:64 ActiveRecord::Type::Integer = ActiveModel::Type::Integer -# source://activerecord//lib/active_record/type/internal/timezone.rb#5 +# pkg:gem/activerecord#lib/active_record/type/internal/timezone.rb:5 module ActiveRecord::Type::Internal; end -# source://activerecord//lib/active_record/type/internal/timezone.rb#6 +# pkg:gem/activerecord#lib/active_record/type/internal/timezone.rb:6 module ActiveRecord::Type::Internal::Timezone - # source://activerecord//lib/active_record/type/internal/timezone.rb#7 + # pkg:gem/activerecord#lib/active_record/type/internal/timezone.rb:7 def initialize(timezone: T.unsafe(nil), **kwargs); end - # source://activerecord//lib/active_record/type/internal/timezone.rb#16 + # pkg:gem/activerecord#lib/active_record/type/internal/timezone.rb:16 def default_timezone; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/internal/timezone.rb#12 + # pkg:gem/activerecord#lib/active_record/type/internal/timezone.rb:12 def is_utc?; end end -# source://activerecord//lib/active_record/type/json.rb#5 +# pkg:gem/activerecord#lib/active_record/type/json.rb:5 class ActiveRecord::Type::Json < ::ActiveModel::Type::Value include ::ActiveModel::Type::Helpers::Mutable - # source://activerecord//lib/active_record/type/json.rb#25 + # pkg:gem/activerecord#lib/active_record/type/json.rb:25 def accessor; end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/json.rb#21 + # pkg:gem/activerecord#lib/active_record/type/json.rb:21 def changed_in_place?(raw_old_value, new_value); end - # source://activerecord//lib/active_record/type/json.rb#12 + # pkg:gem/activerecord#lib/active_record/type/json.rb:12 def deserialize(value); end - # source://activerecord//lib/active_record/type/json.rb#17 + # pkg:gem/activerecord#lib/active_record/type/json.rb:17 def serialize(value); end - # source://activerecord//lib/active_record/type/json.rb#8 + # pkg:gem/activerecord#lib/active_record/type/json.rb:8 def type; end end -# source://activerecord//lib/active_record/type/adapter_specific_registry.rb#47 +# pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:47 class ActiveRecord::Type::Registration - # @return [Registration] a new instance of Registration - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#48 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:48 def initialize(name, block, adapter: T.unsafe(nil), override: T.unsafe(nil)); end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#63 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:63 def <=>(other); end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#55 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:55 def call(_registry, *args, adapter: T.unsafe(nil), **kwargs); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#59 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:59 def matches?(type_name, *args, **kwargs); end protected - # Returns the value of attribute adapter. - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#73 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:73 def adapter; end - # Returns the value of attribute block. - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#73 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:73 def block; end - # Returns the value of attribute name. - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#73 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:73 def name; end - # Returns the value of attribute override. - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#73 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:73 def override; end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#75 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:75 def priority; end - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#86 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:86 def priority_except_adapter; end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#95 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:95 def conflicts_with?(other); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#104 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:104 def has_adapter_conflict?(other); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#91 - def matches_adapter?(adapter: T.unsafe(nil), **_arg1); end + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:91 + def matches_adapter?(adapter: T.unsafe(nil), **); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/adapter_specific_registry.rb#100 + # pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:100 def same_priority_except_adapter?(other); end end -# source://activerecord//lib/active_record/type/serialized.rb#5 +# pkg:gem/activerecord#lib/active_record/type/serialized.rb:5 class ActiveRecord::Type::Serialized include ::ActiveModel::Type::Helpers::Mutable - # @return [Serialized] a new instance of Serialized - # - # source://activerecord//lib/active_record/type/serialized.rb#12 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:12 def initialize(subtype, coder); end - # source://activerecord//lib/active_record/type/serialized.rb#42 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:42 def accessor; end - # source://activerecord//lib/active_record/type/serialized.rb#46 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:46 def assert_valid_value(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/serialized.rb#35 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:35 def changed_in_place?(raw_old_value, value); end - # Returns the value of attribute coder. - # - # source://activerecord//lib/active_record/type/serialized.rb#10 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:10 def coder; end - # source://activerecord//lib/active_record/type/serialized.rb#18 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:18 def deserialize(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/serialized.rb#52 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:52 def force_equality?(value); end + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:33 def inspect; end - # source://activerecord//lib/active_record/type/serialized.rb#26 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:26 def serialize(value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/serialized.rb#56 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:56 def serialized?; end - # Returns the value of attribute subtype. - # - # source://activerecord//lib/active_record/type/serialized.rb#10 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:10 def subtype; end private - # @return [Boolean] - # - # source://activerecord//lib/active_record/type/serialized.rb#66 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:66 def default_value?(value); end - # source://activerecord//lib/active_record/type/serialized.rb#70 + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:70 def encoded(value); end + # pkg:gem/activerecord#lib/active_record/type/serialized.rb:64 def instance_variables_to_inspect; end end -# source://activerecord//lib/active_record/type.rb#66 +# pkg:gem/activerecord#lib/active_record/type.rb:66 ActiveRecord::Type::String = ActiveModel::Type::String -# source://activerecord//lib/active_record/type/text.rb#5 +# pkg:gem/activerecord#lib/active_record/type/text.rb:5 class ActiveRecord::Type::Text < ::ActiveModel::Type::String - # source://activerecord//lib/active_record/type/text.rb#6 + # pkg:gem/activerecord#lib/active_record/type/text.rb:6 def type; end end -# source://activerecord//lib/active_record/type/time.rb#5 +# pkg:gem/activerecord#lib/active_record/type/time.rb:5 class ActiveRecord::Type::Time < ::ActiveModel::Type::Time include ::ActiveRecord::Type::Internal::Timezone - # source://activerecord//lib/active_record/type/time.rb#11 + # pkg:gem/activerecord#lib/active_record/type/time.rb:11 def serialize(value); end - # source://activerecord//lib/active_record/type/time.rb#20 + # pkg:gem/activerecord#lib/active_record/type/time.rb:20 def serialize_cast_value(value); end private - # source://activerecord//lib/active_record/type/time.rb#25 + # pkg:gem/activerecord#lib/active_record/type/time.rb:25 def cast_value(value); end end -# source://activerecord//lib/active_record/type/time.rb#8 +# pkg:gem/activerecord#lib/active_record/type/time.rb:8 class ActiveRecord::Type::Time::Value; end -# source://activerecord//lib/active_record/type/type_map.rb#7 +# pkg:gem/activerecord#lib/active_record/type/type_map.rb:7 class ActiveRecord::Type::TypeMap - # @return [TypeMap] a new instance of TypeMap - # - # source://activerecord//lib/active_record/type/type_map.rb#8 + # pkg:gem/activerecord#lib/active_record/type/type_map.rb:8 def initialize(parent = T.unsafe(nil)); end - # source://activerecord//lib/active_record/type/type_map.rb#35 + # pkg:gem/activerecord#lib/active_record/type/type_map.rb:35 def alias_type(key, target_key); end - # source://activerecord//lib/active_record/type/type_map.rb#18 + # pkg:gem/activerecord#lib/active_record/type/type_map.rb:18 def fetch(lookup_key, &block); end - # source://activerecord//lib/active_record/type/type_map.rb#14 + # pkg:gem/activerecord#lib/active_record/type/type_map.rb:14 def lookup(lookup_key); end - # @raise [::ArgumentError] - # - # source://activerecord//lib/active_record/type/type_map.rb#24 + # pkg:gem/activerecord#lib/active_record/type/type_map.rb:24 def register_type(key, value = T.unsafe(nil), &block); end protected - # source://activerecord//lib/active_record/type/type_map.rb#43 + # pkg:gem/activerecord#lib/active_record/type/type_map.rb:43 def perform_fetch(lookup_key, &block); end end -# source://activerecord//lib/active_record/type/unsigned_integer.rb#5 +# pkg:gem/activerecord#lib/active_record/type/unsigned_integer.rb:5 class ActiveRecord::Type::UnsignedInteger < ::ActiveModel::Type::Integer private - # source://activerecord//lib/active_record/type/unsigned_integer.rb#7 + # pkg:gem/activerecord#lib/active_record/type/unsigned_integer.rb:7 def max_value; end - # source://activerecord//lib/active_record/type/unsigned_integer.rb#11 + # pkg:gem/activerecord#lib/active_record/type/unsigned_integer.rb:11 def min_value; end end -# source://activerecord//lib/active_record/type.rb#67 +# pkg:gem/activerecord#lib/active_record/type.rb:67 ActiveRecord::Type::Value = ActiveModel::Type::Value -# source://activerecord//lib/active_record/type_caster/map.rb#4 +# pkg:gem/activerecord#lib/active_record/type_caster/map.rb:4 module ActiveRecord::TypeCaster; end -# source://activerecord//lib/active_record/type_caster/connection.rb#5 +# pkg:gem/activerecord#lib/active_record/type_caster/connection.rb:5 class ActiveRecord::TypeCaster::Connection - # @return [Connection] a new instance of Connection - # - # source://activerecord//lib/active_record/type_caster/connection.rb#6 + # pkg:gem/activerecord#lib/active_record/type_caster/connection.rb:6 def initialize(klass, table_name); end - # source://activerecord//lib/active_record/type_caster/connection.rb#11 + # pkg:gem/activerecord#lib/active_record/type_caster/connection.rb:11 def type_cast_for_database(attr_name, value); end - # source://activerecord//lib/active_record/type_caster/connection.rb#16 + # pkg:gem/activerecord#lib/active_record/type_caster/connection.rb:16 def type_for_attribute(attr_name); end private - # Returns the value of attribute table_name. - # - # source://activerecord//lib/active_record/type_caster/connection.rb#30 + # pkg:gem/activerecord#lib/active_record/type_caster/connection.rb:30 def table_name; end end -# source://activerecord//lib/active_record/type_caster/map.rb#5 +# pkg:gem/activerecord#lib/active_record/type_caster/map.rb:5 class ActiveRecord::TypeCaster::Map - # @return [Map] a new instance of Map - # - # source://activerecord//lib/active_record/type_caster/map.rb#6 + # pkg:gem/activerecord#lib/active_record/type_caster/map.rb:6 def initialize(klass); end - # source://activerecord//lib/active_record/type_caster/map.rb#10 + # pkg:gem/activerecord#lib/active_record/type_caster/map.rb:10 def type_cast_for_database(attr_name, value); end - # source://activerecord//lib/active_record/type_caster/map.rb#15 + # pkg:gem/activerecord#lib/active_record/type_caster/map.rb:15 def type_for_attribute(name); end private - # Returns the value of attribute klass. - # - # source://activerecord//lib/active_record/type_caster/map.rb#20 + # pkg:gem/activerecord#lib/active_record/type_caster/map.rb:20 def klass; end end -# source://activerecord//lib/active_record/type/adapter_specific_registry.rb#141 +# pkg:gem/activerecord#lib/active_record/type/adapter_specific_registry.rb:141 class ActiveRecord::TypeConflictError < ::StandardError; end # Raised when unknown attributes are supplied via mass assignment. # -# source://activerecord//lib/active_record/errors.rb#444 +# pkg:gem/activerecord#lib/active_record/errors.rb:444 ActiveRecord::UnknownAttributeError = ActiveModel::UnknownAttributeError # UnknownAttributeReference is raised when an unknown and potentially unsafe @@ -37777,29 +35089,23 @@ ActiveRecord::UnknownAttributeError = ActiveModel::UnknownAttributeError # Again, such a workaround should *not* be used when passing user-provided # values, such as request parameters or model attributes to query methods. # -# source://activerecord//lib/active_record/errors.rb#605 +# pkg:gem/activerecord#lib/active_record/errors.rb:605 class ActiveRecord::UnknownAttributeReference < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/migration.rb#111 +# pkg:gem/activerecord#lib/active_record/migration.rb:111 class ActiveRecord::UnknownMigrationVersionError < ::ActiveRecord::MigrationError - # @return [UnknownMigrationVersionError] a new instance of UnknownMigrationVersionError - # - # source://activerecord//lib/active_record/migration.rb#112 + # pkg:gem/activerecord#lib/active_record/migration.rb:112 def initialize(version = T.unsafe(nil)); end end # Raised when a primary key is needed, but not specified in the schema or model. # -# source://activerecord//lib/active_record/errors.rb#472 +# pkg:gem/activerecord#lib/active_record/errors.rb:472 class ActiveRecord::UnknownPrimaryKey < ::ActiveRecord::ActiveRecordError - # @return [UnknownPrimaryKey] a new instance of UnknownPrimaryKey - # - # source://activerecord//lib/active_record/errors.rb#475 + # pkg:gem/activerecord#lib/active_record/errors.rb:475 def initialize(model = T.unsafe(nil), description = T.unsafe(nil)); end - # Returns the value of attribute model. - # - # source://activerecord//lib/active_record/errors.rb#473 + # pkg:gem/activerecord#lib/active_record/errors.rb:473 def model; end end @@ -37815,25 +35121,25 @@ end # relation.where!(title: 'TODO') # => ActiveRecord::UnmodifiableRelation # relation.limit!(5) # => ActiveRecord::UnmodifiableRelation # -# source://activerecord//lib/active_record/errors.rb#498 +# pkg:gem/activerecord#lib/active_record/errors.rb:498 class ActiveRecord::UnmodifiableRelation < ::ActiveRecord::ActiveRecordError; end -# source://activerecord//lib/active_record/gem_version.rb#9 +# pkg:gem/activerecord#lib/active_record/gem_version.rb:9 module ActiveRecord::VERSION; end -# source://activerecord//lib/active_record/gem_version.rb#10 +# pkg:gem/activerecord#lib/active_record/gem_version.rb:10 ActiveRecord::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://activerecord//lib/active_record/gem_version.rb#11 +# pkg:gem/activerecord#lib/active_record/gem_version.rb:11 ActiveRecord::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://activerecord//lib/active_record/gem_version.rb#13 +# pkg:gem/activerecord#lib/active_record/gem_version.rb:13 ActiveRecord::VERSION::PRE = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/gem_version.rb#15 +# pkg:gem/activerecord#lib/active_record/gem_version.rb:15 ActiveRecord::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://activerecord//lib/active_record/gem_version.rb#12 +# pkg:gem/activerecord#lib/active_record/gem_version.rb:12 ActiveRecord::VERSION::TINY = T.let(T.unsafe(nil), Integer) # = Active Record \Validations @@ -37846,15 +35152,13 @@ ActiveRecord::VERSION::TINY = T.let(T.unsafe(nil), Integer) # :create or :update depending on whether the model is a # {new_record?}[rdoc-ref:Persistence#new_record?]. # -# source://activerecord//lib/active_record/validations.rb#40 +# pkg:gem/activerecord#lib/active_record/validations.rb:40 module ActiveRecord::Validations extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveRecord::Validations::ClassMethods - # @return [Boolean] - # - # source://activerecord//lib/active_record/validations.rb#77 + # pkg:gem/activerecord#lib/active_record/validations.rb:77 def custom_validation_context?; end # The validation process on save can be skipped by passing validate: false. @@ -37862,13 +35166,13 @@ module ActiveRecord::Validations # The regular {ActiveRecord::Base#save}[rdoc-ref:Persistence#save] method is replaced # with this when the validations module is mixed in, which it is by default. # - # source://activerecord//lib/active_record/validations.rb#47 + # pkg:gem/activerecord#lib/active_record/validations.rb:47 def save(**options); end # Attempts to save the record just like {ActiveRecord::Base#save}[rdoc-ref:Base#save] but # will raise an ActiveRecord::RecordInvalid exception instead of returning +false+ if the record is not valid. # - # source://activerecord//lib/active_record/validations.rb#53 + # pkg:gem/activerecord#lib/active_record/validations.rb:53 def save!(**options); end # Runs all the validations within the specified context. Returns +true+ if @@ -37884,66 +35188,45 @@ module ActiveRecord::Validations # \Validations with no :on option will run no matter the context. \Validations with # some :on option will only run in the specified context. # - # @return [Boolean] - # - # source://activerecord//lib/active_record/validations.rb#69 + # pkg:gem/activerecord#lib/active_record/validations.rb:69 def valid?(context = T.unsafe(nil)); end - # Runs all the validations within the specified context. Returns +true+ if - # no errors are found, +false+ otherwise. - # - # Aliased as #validate. - # - # If the argument is +false+ (default is +nil+), the context is set to :create if - # {new_record?}[rdoc-ref:Persistence#new_record?] is +true+, and to :update if it is not. - # If the argument is an array of contexts, post.valid?([:create, :update]), the validations are - # run within multiple contexts. - # - # \Validations with no :on option will run no matter the context. \Validations with - # some :on option will only run in the specified context. - # - # @return [Boolean] - # - # source://activerecord//lib/active_record/validations.rb#69 + # pkg:gem/activerecord#lib/active_record/validations.rb:75 def validate(context = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/validations.rb#82 + # pkg:gem/activerecord#lib/active_record/validations.rb:82 def default_validation_context; end - # source://activerecord//lib/active_record/validations.rb#90 + # pkg:gem/activerecord#lib/active_record/validations.rb:90 def perform_validations(options = T.unsafe(nil)); end - # @raise [RecordInvalid] - # - # source://activerecord//lib/active_record/validations.rb#86 + # pkg:gem/activerecord#lib/active_record/validations.rb:86 def raise_validation_error; end end -# source://activerecord//lib/active_record/validations/absence.rb#5 +# pkg:gem/activerecord#lib/active_record/validations/absence.rb:5 class ActiveRecord::Validations::AbsenceValidator < ::ActiveModel::Validations::AbsenceValidator - # source://activerecord//lib/active_record/validations/absence.rb#6 + # pkg:gem/activerecord#lib/active_record/validations/absence.rb:6 def validate_each(record, attribute, association_or_value); end end -# source://activerecord//lib/active_record/validations/associated.rb#5 +# pkg:gem/activerecord#lib/active_record/validations/associated.rb:5 class ActiveRecord::Validations::AssociatedValidator < ::ActiveModel::EachValidator - # source://activerecord//lib/active_record/validations/associated.rb#6 + # pkg:gem/activerecord#lib/active_record/validations/associated.rb:6 def validate_each(record, attribute, value); end private - # source://activerecord//lib/active_record/validations/associated.rb#19 + # pkg:gem/activerecord#lib/active_record/validations/associated.rb:19 def record_validation_context_for_association(record); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/validations/associated.rb#15 + # pkg:gem/activerecord#lib/active_record/validations/associated.rb:15 def valid_object?(record, context); end end -# source://activerecord//lib/active_record/validations/associated.rb#24 +# pkg:gem/activerecord#lib/active_record/validations/associated.rb:24 module ActiveRecord::Validations::ClassMethods # Validates that the specified attributes are not present (as defined by # Object#present?). If the attribute is an association, the associated object @@ -37951,7 +35234,7 @@ module ActiveRecord::Validations::ClassMethods # # See ActiveModel::Validations::HelperMethods.validates_absence_of for more information. # - # source://activerecord//lib/active_record/validations/absence.rb#20 + # pkg:gem/activerecord#lib/active_record/validations/absence.rb:20 def validates_absence_of(*attr_names); end # Validates whether the associated object or objects are all valid. @@ -37990,7 +35273,7 @@ module ActiveRecord::Validations::ClassMethods # method, proc, or string should return or evaluate to a +true+ or +false+ # value. # - # source://activerecord//lib/active_record/validations/associated.rb#60 + # pkg:gem/activerecord#lib/active_record/validations/associated.rb:60 def validates_associated(*attr_names); end # Validates that the specified attributes match the length restrictions supplied. @@ -37998,7 +35281,7 @@ module ActiveRecord::Validations::ClassMethods # # See ActiveModel::Validations::HelperMethods.validates_length_of for more information. # - # source://activerecord//lib/active_record/validations/length.rb#19 + # pkg:gem/activerecord#lib/active_record/validations/length.rb:19 def validates_length_of(*attr_names); end # Validates whether the value of the specified attribute is numeric by @@ -38010,7 +35293,7 @@ module ActiveRecord::Validations::ClassMethods # # See ActiveModel::Validations::HelperMethods.validates_numericality_of for more information. # - # source://activerecord//lib/active_record/validations/numericality.rb#31 + # pkg:gem/activerecord#lib/active_record/validations/numericality.rb:31 def validates_numericality_of(*attr_names); end # Validates that the specified attributes are not blank (as defined by @@ -38039,15 +35322,10 @@ module ActiveRecord::Validations::ClassMethods # it is both present and valid, you also need to use # {validates_associated}[rdoc-ref:Validations::ClassMethods#validates_associated]. # - # source://activerecord//lib/active_record/validations/presence.rb#40 + # pkg:gem/activerecord#lib/active_record/validations/presence.rb:40 def validates_presence_of(*attr_names); end - # Validates that the specified attributes match the length restrictions supplied. - # If the attribute is an association, records that are marked for destruction are not counted. - # - # See ActiveModel::Validations::HelperMethods.validates_length_of for more information. - # - # source://activerecord//lib/active_record/validations/length.rb#19 + # pkg:gem/activerecord#lib/active_record/validations/length.rb:23 def validates_size_of(*attr_names); end # Validates whether the value of the specified attributes are unique @@ -38187,98 +35465,90 @@ module ActiveRecord::Validations::ClassMethods # * ActiveRecord::ConnectionAdapters::SQLite3Adapter. # * ActiveRecord::ConnectionAdapters::PostgreSQLAdapter. # - # source://activerecord//lib/active_record/validations/uniqueness.rb#291 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:291 def validates_uniqueness_of(*attr_names); end end -# source://activerecord//lib/active_record/validations/length.rb#5 +# pkg:gem/activerecord#lib/active_record/validations/length.rb:5 class ActiveRecord::Validations::LengthValidator < ::ActiveModel::Validations::LengthValidator - # source://activerecord//lib/active_record/validations/length.rb#6 + # pkg:gem/activerecord#lib/active_record/validations/length.rb:6 def validate_each(record, attribute, association_or_value); end end -# source://activerecord//lib/active_record/validations/numericality.rb#5 +# pkg:gem/activerecord#lib/active_record/validations/numericality.rb:5 class ActiveRecord::Validations::NumericalityValidator < ::ActiveModel::Validations::NumericalityValidator - # source://activerecord//lib/active_record/validations/numericality.rb#6 + # pkg:gem/activerecord#lib/active_record/validations/numericality.rb:6 def validate_each(record, attribute, value, precision: T.unsafe(nil), scale: T.unsafe(nil)); end private - # source://activerecord//lib/active_record/validations/numericality.rb#13 + # pkg:gem/activerecord#lib/active_record/validations/numericality.rb:13 def column_precision_for(record, attribute); end - # source://activerecord//lib/active_record/validations/numericality.rb#17 + # pkg:gem/activerecord#lib/active_record/validations/numericality.rb:17 def column_scale_for(record, attribute); end end -# source://activerecord//lib/active_record/validations/presence.rb#5 +# pkg:gem/activerecord#lib/active_record/validations/presence.rb:5 class ActiveRecord::Validations::PresenceValidator < ::ActiveModel::Validations::PresenceValidator - # source://activerecord//lib/active_record/validations/presence.rb#6 + # pkg:gem/activerecord#lib/active_record/validations/presence.rb:6 def validate_each(record, attribute, association_or_value); end end -# source://activerecord//lib/active_record/validations/uniqueness.rb#5 +# pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:5 class ActiveRecord::Validations::UniquenessValidator < ::ActiveModel::EachValidator - # @return [UniquenessValidator] a new instance of UniquenessValidator - # - # source://activerecord//lib/active_record/validations/uniqueness.rb#6 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:6 def initialize(options); end - # source://activerecord//lib/active_record/validations/uniqueness.rb#20 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:20 def validate_each(record, attribute, value); end private - # source://activerecord//lib/active_record/validations/uniqueness.rb#112 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:112 def build_relation(klass, attribute, value); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/validations/uniqueness.rb#83 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:83 def covered_by_unique_index?(klass, record, attribute, scope); end # The check for an existing value should be run from a class that # isn't abstract. This means working down from the current class # (self), to the first non-abstract class. # - # source://activerecord//lib/active_record/validations/uniqueness.rb#58 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:58 def find_finder_class_for(record); end - # source://activerecord//lib/active_record/validations/uniqueness.rb#147 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:147 def map_enum_attribute(klass, attribute, value); end - # source://activerecord//lib/active_record/validations/uniqueness.rb#98 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:98 def resolve_attributes(record, attributes); end - # source://activerecord//lib/active_record/validations/uniqueness.rb#134 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:134 def scope_relation(record, relation); end - # @return [Boolean] - # - # source://activerecord//lib/active_record/validations/uniqueness.rb#70 + # pkg:gem/activerecord#lib/active_record/validations/uniqueness.rb:70 def validation_needed?(klass, record, attribute); end end # Raised when a record cannot be inserted or updated because a value too long for a column type. # -# source://activerecord//lib/active_record/errors.rb#297 +# pkg:gem/activerecord#lib/active_record/errors.rb:297 class ActiveRecord::ValueTooLong < ::ActiveRecord::StatementInvalid; end # Defunct wrapper class kept for compatibility. # StatementInvalid wraps the original exception now. # -# source://activerecord//lib/active_record/errors.rb#225 +# pkg:gem/activerecord#lib/active_record/errors.rb:225 class ActiveRecord::WrappedDatabaseException < ::ActiveRecord::StatementInvalid; end -# source://activerecord//lib/arel/errors.rb#3 +# pkg:gem/activerecord#lib/arel/errors.rb:3 module Arel class << self - # @return [Boolean] - # - # source://activerecord//lib/arel.rb#64 + # pkg:gem/activerecord#lib/arel.rb:64 def arel_node?(value); end - # source://activerecord//lib/arel.rb#68 + # pkg:gem/activerecord#lib/arel.rb:68 def fetch_attribute(value, &block); end # Wrap a known-safe SQL string for passing to query methods, e.g. @@ -38303,30 +35573,30 @@ module Arel # Use this option only if the SQL is idempotent, as it could be executed # more than once. # - # source://activerecord//lib/arel.rb#52 + # pkg:gem/activerecord#lib/arel.rb:52 def sql(sql_string, *positional_binds, retryable: T.unsafe(nil), **named_binds); end - # source://activerecord//lib/arel.rb#60 + # pkg:gem/activerecord#lib/arel.rb:60 def star; end end end -# source://activerecord//lib/arel/alias_predication.rb#4 +# pkg:gem/activerecord#lib/arel/alias_predication.rb:4 module Arel::AliasPredication - # source://activerecord//lib/arel/alias_predication.rb#5 + # pkg:gem/activerecord#lib/arel/alias_predication.rb:5 def as(other); end end -# source://activerecord//lib/arel/errors.rb#4 +# pkg:gem/activerecord#lib/arel/errors.rb:4 class Arel::ArelError < ::StandardError; end -# source://activerecord//lib/arel/attributes/attribute.rb#32 +# pkg:gem/activerecord#lib/arel/attributes/attribute.rb:32 Arel::Attribute = Arel::Attributes::Attribute -# source://activerecord//lib/arel/attributes/attribute.rb#4 +# pkg:gem/activerecord#lib/arel/attributes/attribute.rb:4 module Arel::Attributes; end -# source://activerecord//lib/arel/attributes/attribute.rb#5 +# pkg:gem/activerecord#lib/arel/attributes/attribute.rb:5 class Arel::Attributes::Attribute < ::Struct include ::Arel::Expressions include ::Arel::Predications @@ -38334,1650 +35604,1236 @@ class Arel::Attributes::Attribute < ::Struct include ::Arel::OrderPredications include ::Arel::Math - # @return [Boolean] - # - # source://activerecord//lib/arel/attributes/attribute.rb#26 + # pkg:gem/activerecord#lib/arel/attributes/attribute.rb:26 def able_to_type_cast?; end # Create a node for lowering this attribute # - # source://activerecord//lib/arel/attributes/attribute.rb#18 + # pkg:gem/activerecord#lib/arel/attributes/attribute.rb:18 def lower; end - # source://activerecord//lib/arel/attributes/attribute.rb#22 + # pkg:gem/activerecord#lib/arel/attributes/attribute.rb:22 def type_cast_for_database(value); end - # source://activerecord//lib/arel/attributes/attribute.rb#12 + # pkg:gem/activerecord#lib/arel/attributes/attribute.rb:12 def type_caster; end end -# source://activerecord//lib/arel/errors.rb#10 +# pkg:gem/activerecord#lib/arel/errors.rb:10 class Arel::BindError < ::Arel::ArelError - # @return [BindError] a new instance of BindError - # - # source://activerecord//lib/arel/errors.rb#11 + # pkg:gem/activerecord#lib/arel/errors.rb:11 def initialize(message, sql = T.unsafe(nil)); end end -# source://activerecord//lib/arel/collectors/plain_string.rb#4 +# pkg:gem/activerecord#lib/arel/collectors/plain_string.rb:4 module Arel::Collectors; end -# source://activerecord//lib/arel/collectors/bind.rb#5 +# pkg:gem/activerecord#lib/arel/collectors/bind.rb:5 class Arel::Collectors::Bind - # @return [Bind] a new instance of Bind - # - # source://activerecord//lib/arel/collectors/bind.rb#8 + # pkg:gem/activerecord#lib/arel/collectors/bind.rb:8 def initialize; end - # source://activerecord//lib/arel/collectors/bind.rb#12 + # pkg:gem/activerecord#lib/arel/collectors/bind.rb:12 def <<(str); end - # source://activerecord//lib/arel/collectors/bind.rb#16 - def add_bind(bind, &_arg1); end + # pkg:gem/activerecord#lib/arel/collectors/bind.rb:16 + def add_bind(bind, &); end - # source://activerecord//lib/arel/collectors/bind.rb#21 - def add_binds(binds, proc_for_binds = T.unsafe(nil), &_arg2); end + # pkg:gem/activerecord#lib/arel/collectors/bind.rb:21 + def add_binds(binds, proc_for_binds = T.unsafe(nil), &); end - # Returns the value of attribute retryable. - # - # source://activerecord//lib/arel/collectors/bind.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/bind.rb:6 def retryable; end - # Sets the attribute retryable - # - # @param value the value to set the attribute retryable to. - # - # source://activerecord//lib/arel/collectors/bind.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/bind.rb:6 def retryable=(_arg0); end - # source://activerecord//lib/arel/collectors/bind.rb#26 + # pkg:gem/activerecord#lib/arel/collectors/bind.rb:26 def value; end end -# source://activerecord//lib/arel/collectors/composite.rb#5 +# pkg:gem/activerecord#lib/arel/collectors/composite.rb:5 class Arel::Collectors::Composite - # @return [Composite] a new instance of Composite - # - # source://activerecord//lib/arel/collectors/composite.rb#9 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:9 def initialize(left, right); end - # source://activerecord//lib/arel/collectors/composite.rb#20 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:20 def <<(str); end - # source://activerecord//lib/arel/collectors/composite.rb#26 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:26 def add_bind(bind, &block); end - # source://activerecord//lib/arel/collectors/composite.rb#32 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:32 def add_binds(binds, proc_for_binds = T.unsafe(nil), &block); end - # Returns the value of attribute preparable. - # - # source://activerecord//lib/arel/collectors/composite.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:6 def preparable; end - # Sets the attribute preparable - # - # @param value the value to set the attribute preparable to. - # - # source://activerecord//lib/arel/collectors/composite.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:6 def preparable=(_arg0); end - # Returns the value of attribute retryable. - # - # source://activerecord//lib/arel/collectors/composite.rb#7 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:7 def retryable; end - # source://activerecord//lib/arel/collectors/composite.rb#14 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:14 def retryable=(retryable); end - # source://activerecord//lib/arel/collectors/composite.rb#38 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:38 def value; end private - # Returns the value of attribute left. - # - # source://activerecord//lib/arel/collectors/composite.rb#43 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:43 def left; end - # Returns the value of attribute right. - # - # source://activerecord//lib/arel/collectors/composite.rb#43 + # pkg:gem/activerecord#lib/arel/collectors/composite.rb:43 def right; end end -# source://activerecord//lib/arel/collectors/plain_string.rb#5 +# pkg:gem/activerecord#lib/arel/collectors/plain_string.rb:5 class Arel::Collectors::PlainString - # @return [PlainString] a new instance of PlainString - # - # source://activerecord//lib/arel/collectors/plain_string.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/plain_string.rb:6 def initialize; end - # source://activerecord//lib/arel/collectors/plain_string.rb#14 + # pkg:gem/activerecord#lib/arel/collectors/plain_string.rb:14 def <<(str); end - # source://activerecord//lib/arel/collectors/plain_string.rb#10 + # pkg:gem/activerecord#lib/arel/collectors/plain_string.rb:10 def value; end end -# source://activerecord//lib/arel/collectors/sql_string.rb#7 +# pkg:gem/activerecord#lib/arel/collectors/sql_string.rb:7 class Arel::Collectors::SQLString < ::Arel::Collectors::PlainString - # @return [SQLString] a new instance of SQLString - # - # source://activerecord//lib/arel/collectors/sql_string.rb#10 - def initialize(*_arg0); end + # pkg:gem/activerecord#lib/arel/collectors/sql_string.rb:10 + def initialize(*); end - # source://activerecord//lib/arel/collectors/sql_string.rb#15 - def add_bind(bind, &_arg1); end + # pkg:gem/activerecord#lib/arel/collectors/sql_string.rb:15 + def add_bind(bind, &); end - # source://activerecord//lib/arel/collectors/sql_string.rb#21 + # pkg:gem/activerecord#lib/arel/collectors/sql_string.rb:21 def add_binds(binds, proc_for_binds = T.unsafe(nil), &block); end - # Returns the value of attribute preparable. - # - # source://activerecord//lib/arel/collectors/sql_string.rb#8 + # pkg:gem/activerecord#lib/arel/collectors/sql_string.rb:8 def preparable; end - # Sets the attribute preparable - # - # @param value the value to set the attribute preparable to. - # - # source://activerecord//lib/arel/collectors/sql_string.rb#8 + # pkg:gem/activerecord#lib/arel/collectors/sql_string.rb:8 def preparable=(_arg0); end - # Returns the value of attribute retryable. - # - # source://activerecord//lib/arel/collectors/sql_string.rb#8 + # pkg:gem/activerecord#lib/arel/collectors/sql_string.rb:8 def retryable; end - # Sets the attribute retryable - # - # @param value the value to set the attribute retryable to. - # - # source://activerecord//lib/arel/collectors/sql_string.rb#8 + # pkg:gem/activerecord#lib/arel/collectors/sql_string.rb:8 def retryable=(_arg0); end end -# source://activerecord//lib/arel/collectors/substitute_binds.rb#5 +# pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:5 class Arel::Collectors::SubstituteBinds - # @return [SubstituteBinds] a new instance of SubstituteBinds - # - # source://activerecord//lib/arel/collectors/substitute_binds.rb#8 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:8 def initialize(quoter, delegate_collector); end - # source://activerecord//lib/arel/collectors/substitute_binds.rb#13 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:13 def <<(str); end - # source://activerecord//lib/arel/collectors/substitute_binds.rb#18 - def add_bind(bind, &_arg1); end + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:18 + def add_bind(bind, &); end - # source://activerecord//lib/arel/collectors/substitute_binds.rb#23 - def add_binds(binds, proc_for_binds = T.unsafe(nil), &_arg2); end + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:23 + def add_binds(binds, proc_for_binds = T.unsafe(nil), &); end - # Returns the value of attribute preparable. - # - # source://activerecord//lib/arel/collectors/substitute_binds.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:6 def preparable; end - # Sets the attribute preparable - # - # @param value the value to set the attribute preparable to. - # - # source://activerecord//lib/arel/collectors/substitute_binds.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:6 def preparable=(_arg0); end - # Returns the value of attribute retryable. - # - # source://activerecord//lib/arel/collectors/substitute_binds.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:6 def retryable; end - # Sets the attribute retryable - # - # @param value the value to set the attribute retryable to. - # - # source://activerecord//lib/arel/collectors/substitute_binds.rb#6 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:6 def retryable=(_arg0); end - # source://activerecord//lib/arel/collectors/substitute_binds.rb#27 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:27 def value; end private - # Returns the value of attribute delegate. - # - # source://activerecord//lib/arel/collectors/substitute_binds.rb#32 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:32 def delegate; end - # Returns the value of attribute quoter. - # - # source://activerecord//lib/arel/collectors/substitute_binds.rb#32 + # pkg:gem/activerecord#lib/arel/collectors/substitute_binds.rb:32 def quoter; end end # FIXME hopefully we can remove this # -# source://activerecord//lib/arel/crud.rb#6 +# pkg:gem/activerecord#lib/arel/crud.rb:6 module Arel::Crud - # source://activerecord//lib/arel/crud.rb#37 + # pkg:gem/activerecord#lib/arel/crud.rb:37 def compile_delete(key = T.unsafe(nil), having_clause = T.unsafe(nil), group_values_columns = T.unsafe(nil)); end - # source://activerecord//lib/arel/crud.rb#7 + # pkg:gem/activerecord#lib/arel/crud.rb:7 def compile_insert(values); end - # source://activerecord//lib/arel/crud.rb#17 + # pkg:gem/activerecord#lib/arel/crud.rb:17 def compile_update(values, key = T.unsafe(nil), having_clause = T.unsafe(nil), group_values_columns = T.unsafe(nil)); end - # source://activerecord//lib/arel/crud.rb#13 + # pkg:gem/activerecord#lib/arel/crud.rb:13 def create_insert; end end -# source://activerecord//lib/arel/delete_manager.rb#4 +# pkg:gem/activerecord#lib/arel/delete_manager.rb:4 class Arel::DeleteManager < ::Arel::TreeManager include ::Arel::TreeManager::StatementMethods - # @return [DeleteManager] a new instance of DeleteManager - # - # source://activerecord//lib/arel/delete_manager.rb#7 + # pkg:gem/activerecord#lib/arel/delete_manager.rb:7 def initialize(table = T.unsafe(nil)); end - # source://activerecord//lib/arel/delete_manager.rb#32 + # pkg:gem/activerecord#lib/arel/delete_manager.rb:32 def comment(value); end - # source://activerecord//lib/arel/delete_manager.rb#11 + # pkg:gem/activerecord#lib/arel/delete_manager.rb:11 def from(relation); end - # source://activerecord//lib/arel/delete_manager.rb#16 + # pkg:gem/activerecord#lib/arel/delete_manager.rb:16 def group(columns); end - # source://activerecord//lib/arel/delete_manager.rb#27 + # pkg:gem/activerecord#lib/arel/delete_manager.rb:27 def having(expr); end end -# source://activerecord//lib/arel/errors.rb#7 +# pkg:gem/activerecord#lib/arel/errors.rb:7 class Arel::EmptyJoinError < ::Arel::ArelError; end -# source://activerecord//lib/arel/expressions.rb#4 +# pkg:gem/activerecord#lib/arel/expressions.rb:4 module Arel::Expressions - # source://activerecord//lib/arel/expressions.rb#21 + # pkg:gem/activerecord#lib/arel/expressions.rb:21 def average; end - # source://activerecord//lib/arel/expressions.rb#5 + # pkg:gem/activerecord#lib/arel/expressions.rb:5 def count(distinct = T.unsafe(nil)); end - # source://activerecord//lib/arel/expressions.rb#25 + # pkg:gem/activerecord#lib/arel/expressions.rb:25 def extract(field); end - # source://activerecord//lib/arel/expressions.rb#13 + # pkg:gem/activerecord#lib/arel/expressions.rb:13 def maximum; end - # source://activerecord//lib/arel/expressions.rb#17 + # pkg:gem/activerecord#lib/arel/expressions.rb:17 def minimum; end - # source://activerecord//lib/arel/expressions.rb#9 + # pkg:gem/activerecord#lib/arel/expressions.rb:9 def sum; end end # Methods for creating various nodes # -# source://activerecord//lib/arel/factory_methods.rb#6 +# pkg:gem/activerecord#lib/arel/factory_methods.rb:6 module Arel::FactoryMethods - # source://activerecord//lib/arel/factory_methods.rb#49 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:49 def cast(name, type); end - # source://activerecord//lib/arel/factory_methods.rb#45 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:45 def coalesce(*exprs); end - # source://activerecord//lib/arel/factory_methods.rb#27 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:27 def create_and(clauses); end - # source://activerecord//lib/arel/factory_methods.rb#11 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:11 def create_false; end - # source://activerecord//lib/arel/factory_methods.rb#19 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:19 def create_join(to, constraint = T.unsafe(nil), klass = T.unsafe(nil)); end - # source://activerecord//lib/arel/factory_methods.rb#31 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:31 def create_on(expr); end - # source://activerecord//lib/arel/factory_methods.rb#23 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:23 def create_string_join(to); end - # source://activerecord//lib/arel/factory_methods.rb#15 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:15 def create_table_alias(relation, name); end - # source://activerecord//lib/arel/factory_methods.rb#7 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:7 def create_true; end - # source://activerecord//lib/arel/factory_methods.rb#35 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:35 def grouping(expr); end # Create a LOWER() function # - # source://activerecord//lib/arel/factory_methods.rb#41 + # pkg:gem/activerecord#lib/arel/factory_methods.rb:41 def lower(column); end end -# source://activerecord//lib/arel/filter_predications.rb#4 +# pkg:gem/activerecord#lib/arel/filter_predications.rb:4 module Arel::FilterPredications - # source://activerecord//lib/arel/filter_predications.rb#5 + # pkg:gem/activerecord#lib/arel/filter_predications.rb:5 def filter(expr); end end -# source://activerecord//lib/arel/insert_manager.rb#4 +# pkg:gem/activerecord#lib/arel/insert_manager.rb:4 class Arel::InsertManager < ::Arel::TreeManager - # @return [InsertManager] a new instance of InsertManager - # - # source://activerecord//lib/arel/insert_manager.rb#5 + # pkg:gem/activerecord#lib/arel/insert_manager.rb:5 def initialize(table = T.unsafe(nil)); end - # source://activerecord//lib/arel/insert_manager.rb#14 + # pkg:gem/activerecord#lib/arel/insert_manager.rb:14 def columns; end - # source://activerecord//lib/arel/insert_manager.rb#40 + # pkg:gem/activerecord#lib/arel/insert_manager.rb:40 def create_values(values); end - # source://activerecord//lib/arel/insert_manager.rb#44 + # pkg:gem/activerecord#lib/arel/insert_manager.rb:44 def create_values_list(rows); end - # source://activerecord//lib/arel/insert_manager.rb#21 + # pkg:gem/activerecord#lib/arel/insert_manager.rb:21 def insert(fields); end - # source://activerecord//lib/arel/insert_manager.rb#9 + # pkg:gem/activerecord#lib/arel/insert_manager.rb:9 def into(table); end - # source://activerecord//lib/arel/insert_manager.rb#17 + # pkg:gem/activerecord#lib/arel/insert_manager.rb:17 def select(select); end - # source://activerecord//lib/arel/insert_manager.rb#15 + # pkg:gem/activerecord#lib/arel/insert_manager.rb:15 def values=(val); end end -# source://activerecord//lib/arel/math.rb#4 +# pkg:gem/activerecord#lib/arel/math.rb:4 module Arel::Math - # source://activerecord//lib/arel/math.rb#21 + # pkg:gem/activerecord#lib/arel/math.rb:21 def &(other); end - # source://activerecord//lib/arel/math.rb#5 + # pkg:gem/activerecord#lib/arel/math.rb:5 def *(other); end - # source://activerecord//lib/arel/math.rb#9 + # pkg:gem/activerecord#lib/arel/math.rb:9 def +(other); end - # source://activerecord//lib/arel/math.rb#13 + # pkg:gem/activerecord#lib/arel/math.rb:13 def -(other); end - # source://activerecord//lib/arel/math.rb#17 + # pkg:gem/activerecord#lib/arel/math.rb:17 def /(other); end - # source://activerecord//lib/arel/math.rb#33 + # pkg:gem/activerecord#lib/arel/math.rb:33 def <<(other); end - # source://activerecord//lib/arel/math.rb#37 + # pkg:gem/activerecord#lib/arel/math.rb:37 def >>(other); end - # source://activerecord//lib/arel/math.rb#29 + # pkg:gem/activerecord#lib/arel/math.rb:29 def ^(other); end - # source://activerecord//lib/arel/math.rb#25 + # pkg:gem/activerecord#lib/arel/math.rb:25 def |(other); end - # source://activerecord//lib/arel/math.rb#41 + # pkg:gem/activerecord#lib/arel/math.rb:41 def ~; end end -# source://activerecord//lib/arel/nodes/node.rb#4 +# pkg:gem/activerecord#lib/arel/nodes/node.rb:4 module Arel::Nodes class << self - # source://activerecord//lib/arel/nodes/casted.rb#48 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:48 def build_quoted(other, attribute = T.unsafe(nil)); end end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#32 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:32 class Arel::Nodes::Addition < ::Arel::Nodes::InfixOperation - # @return [Addition] a new instance of Addition - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#33 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:33 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/nary.rb#36 +# pkg:gem/activerecord#lib/arel/nodes/nary.rb:36 class Arel::Nodes::And < ::Arel::Nodes::Nary; end -# source://activerecord//lib/arel/nodes/binary.rb#42 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:42 class Arel::Nodes::As < ::Arel::Nodes::Binary - # source://activerecord//lib/arel/nodes/binary.rb#43 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:43 def to_cte; end end -# source://activerecord//lib/arel/nodes/ascending.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/ascending.rb:5 class Arel::Nodes::Ascending < ::Arel::Nodes::Ordering - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/ascending.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/ascending.rb:14 def ascending?; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/ascending.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/ascending.rb:18 def descending?; end - # source://activerecord//lib/arel/nodes/ascending.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/ascending.rb:10 def direction; end - # source://activerecord//lib/arel/nodes/ascending.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/ascending.rb:6 def reverse; end end -# source://activerecord//lib/arel/nodes/binary.rb#122 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:122 class Arel::Nodes::Assignment < ::Arel::Nodes::Binary; end -# source://activerecord//lib/arel/nodes/function.rb#42 +# pkg:gem/activerecord#lib/arel/nodes/function.rb:42 class Arel::Nodes::Avg < ::Arel::Nodes::Function; end -# source://activerecord//lib/arel/nodes/binary.rb#48 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:48 class Arel::Nodes::Between < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::Bin < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/binary.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:5 class Arel::Nodes::Binary < ::Arel::Nodes::NodeExpression - # @return [Binary] a new instance of Binary - # - # source://activerecord//lib/arel/nodes/binary.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:8 def initialize(left, right); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/binary.rb#24 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:29 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/binary.rb#24 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:24 def eql?(other); end - # source://activerecord//lib/arel/nodes/binary.rb#20 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:20 def hash; end - # Returns the value of attribute left. - # - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:6 def left; end - # Sets the attribute left - # - # @param value the value to set the attribute left to. - # - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:6 def left=(_arg0); end - # Returns the value of attribute right. - # - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:6 def right; end - # Sets the attribute right - # - # @param value the value to set the attribute right to. - # - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:6 def right=(_arg0); end private - # source://activerecord//lib/arel/nodes/binary.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:14 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/bind_param.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:5 class Arel::Nodes::BindParam < ::Arel::Nodes::Node - # @return [BindParam] a new instance of BindParam - # - # source://activerecord//lib/arel/nodes/bind_param.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:8 def initialize(value); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/bind_param.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:21 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/bind_param.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:17 def eql?(other); end - # source://activerecord//lib/arel/nodes/bind_param.rb#13 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:13 def hash; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/bind_param.rb#35 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:35 def infinite?; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/bind_param.rb#23 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:23 def nil?; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/bind_param.rb#39 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:39 def unboundable?; end - # Returns the value of attribute value. - # - # source://activerecord//lib/arel/nodes/bind_param.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:6 def value; end - # source://activerecord//lib/arel/nodes/bind_param.rb#27 + # pkg:gem/activerecord#lib/arel/nodes/bind_param.rb:27 def value_before_type_cast; end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#62 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:62 class Arel::Nodes::BitwiseAnd < ::Arel::Nodes::InfixOperation - # @return [BitwiseAnd] a new instance of BitwiseAnd - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#63 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:63 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/unary_operation.rb#14 +# pkg:gem/activerecord#lib/arel/nodes/unary_operation.rb:14 class Arel::Nodes::BitwiseNot < ::Arel::Nodes::UnaryOperation - # @return [BitwiseNot] a new instance of BitwiseNot - # - # source://activerecord//lib/arel/nodes/unary_operation.rb#15 + # pkg:gem/activerecord#lib/arel/nodes/unary_operation.rb:15 def initialize(operand); end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#68 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:68 class Arel::Nodes::BitwiseOr < ::Arel::Nodes::InfixOperation - # @return [BitwiseOr] a new instance of BitwiseOr - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#69 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:69 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#80 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:80 class Arel::Nodes::BitwiseShiftLeft < ::Arel::Nodes::InfixOperation - # @return [BitwiseShiftLeft] a new instance of BitwiseShiftLeft - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#81 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:81 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#86 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:86 class Arel::Nodes::BitwiseShiftRight < ::Arel::Nodes::InfixOperation - # @return [BitwiseShiftRight] a new instance of BitwiseShiftRight - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#87 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:87 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#74 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:74 class Arel::Nodes::BitwiseXor < ::Arel::Nodes::InfixOperation - # @return [BitwiseXor] a new instance of BitwiseXor - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#75 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:75 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/bound_sql_literal.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:5 class Arel::Nodes::BoundSqlLiteral < ::Arel::Nodes::NodeExpression - # @return [BoundSqlLiteral] a new instance of BoundSqlLiteral - # - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:8 def initialize(sql_with_placeholders, positional_binds, named_binds); end - # @raise [ArgumentError] - # - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#54 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:54 def +(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#46 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:52 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#46 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:46 def eql?(other); end - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#42 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:42 def hash; end - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#60 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:60 def inspect; end - # Returns the value of attribute named_binds. - # - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:6 def named_binds; end - # Returns the value of attribute positional_binds. - # - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:6 def positional_binds; end - # Returns the value of attribute sql_with_placeholders. - # - # source://activerecord//lib/arel/nodes/bound_sql_literal.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/bound_sql_literal.rb:6 def sql_with_placeholders; end end -# source://activerecord//lib/arel/nodes/case.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/case.rb:5 class Arel::Nodes::Case < ::Arel::Nodes::NodeExpression - # @return [Case] a new instance of Case - # - # source://activerecord//lib/arel/nodes/case.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:8 def initialize(expression = T.unsafe(nil), default = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/case.rb#40 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:46 def ==(other); end - # Returns the value of attribute case. - # - # source://activerecord//lib/arel/nodes/case.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:6 def case; end - # Sets the attribute case - # - # @param value the value to set the attribute case to. - # - # source://activerecord//lib/arel/nodes/case.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:6 def case=(_arg0); end - # Returns the value of attribute conditions. - # - # source://activerecord//lib/arel/nodes/case.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:6 def conditions; end - # Sets the attribute conditions - # - # @param value the value to set the attribute conditions to. - # - # source://activerecord//lib/arel/nodes/case.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:6 def conditions=(_arg0); end - # Returns the value of attribute default. - # - # source://activerecord//lib/arel/nodes/case.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:6 def default; end - # Sets the attribute default - # - # @param value the value to set the attribute default to. - # - # source://activerecord//lib/arel/nodes/case.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:6 def default=(_arg0); end - # source://activerecord//lib/arel/nodes/case.rb#24 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:24 def else(expression); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/case.rb#40 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:40 def eql?(other); end - # source://activerecord//lib/arel/nodes/case.rb#36 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:36 def hash; end - # source://activerecord//lib/arel/nodes/case.rb#19 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:19 def then(expression); end - # source://activerecord//lib/arel/nodes/case.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:14 def when(condition, expression = T.unsafe(nil)); end private - # source://activerecord//lib/arel/nodes/case.rb#29 + # pkg:gem/activerecord#lib/arel/nodes/case.rb:29 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/casted.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/casted.rb:5 class Arel::Nodes::Casted < ::Arel::Nodes::NodeExpression - # @return [Casted] a new instance of Casted - # - # source://activerecord//lib/arel/nodes/casted.rb#9 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:9 def initialize(value, attribute); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/casted.rb#29 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:34 def ==(other); end - # Returns the value of attribute attribute. - # - # source://activerecord//lib/arel/nodes/casted.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:6 def attribute; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/casted.rb#29 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:29 def eql?(other); end - # source://activerecord//lib/arel/nodes/casted.rb#25 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:25 def hash; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/casted.rb#15 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:15 def nil?; end - # Returns the value of attribute value. - # - # source://activerecord//lib/arel/nodes/casted.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:6 def value; end - # Returns the value of attribute value. - # - # source://activerecord//lib/arel/nodes/casted.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:7 def value_before_type_cast; end - # source://activerecord//lib/arel/nodes/casted.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:17 def value_for_database; end end -# source://activerecord//lib/arel/nodes/comment.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/comment.rb:5 class Arel::Nodes::Comment < ::Arel::Nodes::Node - # @return [Comment] a new instance of Comment - # - # source://activerecord//lib/arel/nodes/comment.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/comment.rb:8 def initialize(values); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/comment.rb#22 + # pkg:gem/activerecord#lib/arel/nodes/comment.rb:26 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/comment.rb#22 + # pkg:gem/activerecord#lib/arel/nodes/comment.rb:22 def eql?(other); end - # source://activerecord//lib/arel/nodes/comment.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/comment.rb:18 def hash; end - # Returns the value of attribute values. - # - # source://activerecord//lib/arel/nodes/comment.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/comment.rb:6 def values; end private - # source://activerecord//lib/arel/nodes/comment.rb#13 + # pkg:gem/activerecord#lib/arel/nodes/comment.rb:13 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#44 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:44 class Arel::Nodes::Concat < ::Arel::Nodes::InfixOperation - # @return [Concat] a new instance of Concat - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#45 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:45 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#50 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:50 class Arel::Nodes::Contains < ::Arel::Nodes::InfixOperation - # @return [Contains] a new instance of Contains - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#51 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:51 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/count.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/count.rb:5 class Arel::Nodes::Count < ::Arel::Nodes::Function - # @return [Count] a new instance of Count - # - # source://activerecord//lib/arel/nodes/count.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/count.rb:6 def initialize(expr, distinct = T.unsafe(nil), aliaz = T.unsafe(nil)); end end -# source://activerecord//lib/arel/nodes/cte.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/cte.rb:5 class Arel::Nodes::Cte < ::Arel::Nodes::Binary - # @return [Cte] a new instance of Cte - # - # source://activerecord//lib/arel/nodes/cte.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:10 def initialize(name, relation, materialized: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/cte.rb#19 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:25 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/cte.rb#19 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:19 def eql?(other); end - # source://activerecord//lib/arel/nodes/cte.rb#15 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:15 def hash; end - # Returns the value of attribute materialized. - # - # source://activerecord//lib/arel/nodes/cte.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:8 def materialized; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:6 def name; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:7 def relation; end - # source://activerecord//lib/arel/nodes/cte.rb#27 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:27 def to_cte; end - # source://activerecord//lib/arel/nodes/cte.rb#31 + # pkg:gem/activerecord#lib/arel/nodes/cte.rb:31 def to_table; end end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::Cube < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/window.rb#103 +# pkg:gem/activerecord#lib/arel/nodes/window.rb:103 class Arel::Nodes::CurrentRow < ::Arel::Nodes::Node - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/window.rb#108 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:111 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/window.rb#108 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:108 def eql?(other); end - # source://activerecord//lib/arel/nodes/window.rb#104 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:104 def hash; end end -# source://activerecord//lib/arel/nodes/delete_statement.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:5 class Arel::Nodes::DeleteStatement < ::Arel::Nodes::Node - # @return [DeleteStatement] a new instance of DeleteStatement - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:8 def initialize(relation = T.unsafe(nil), wheres = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#31 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:43 def ==(other); end - # Returns the value of attribute comment. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def comment; end - # Sets the attribute comment - # - # @param value the value to set the attribute comment to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def comment=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#31 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:31 def eql?(other); end - # Returns the value of attribute groups. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def groups; end - # Sets the attribute groups - # - # @param value the value to set the attribute groups to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def groups=(_arg0); end - # source://activerecord//lib/arel/nodes/delete_statement.rb#27 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:27 def hash; end - # Returns the value of attribute havings. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def havings; end - # Sets the attribute havings - # - # @param value the value to set the attribute havings to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def havings=(_arg0); end - # Returns the value of attribute key. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def key; end - # Sets the attribute key - # - # @param value the value to set the attribute key to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def key=(_arg0); end - # Returns the value of attribute limit. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def limit; end - # Sets the attribute limit - # - # @param value the value to set the attribute limit to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def limit=(_arg0); end - # Returns the value of attribute offset. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def offset; end - # Sets the attribute offset - # - # @param value the value to set the attribute offset to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def offset=(_arg0); end - # Returns the value of attribute orders. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def orders; end - # Sets the attribute orders - # - # @param value the value to set the attribute orders to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def orders=(_arg0); end - # Returns the value of attribute relation. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def relation; end - # Sets the attribute relation - # - # @param value the value to set the attribute relation to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def relation=(_arg0); end - # Returns the value of attribute wheres. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def wheres; end - # Sets the attribute wheres - # - # @param value the value to set the attribute wheres to. - # - # source://activerecord//lib/arel/nodes/delete_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:6 def wheres=(_arg0); end private - # source://activerecord//lib/arel/nodes/delete_statement.rb#21 + # pkg:gem/activerecord#lib/arel/nodes/delete_statement.rb:21 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/descending.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/descending.rb:5 class Arel::Nodes::Descending < ::Arel::Nodes::Ordering - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/descending.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/descending.rb:14 def ascending?; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/descending.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/descending.rb:18 def descending?; end - # source://activerecord//lib/arel/nodes/descending.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/descending.rb:10 def direction; end - # source://activerecord//lib/arel/nodes/descending.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/descending.rb:6 def reverse; end end -# source://activerecord//lib/arel/nodes/terminal.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/terminal.rb:5 class Arel::Nodes::Distinct < ::Arel::Nodes::NodeExpression - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/terminal.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/terminal.rb:13 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/terminal.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/terminal.rb:10 def eql?(other); end - # source://activerecord//lib/arel/nodes/terminal.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/terminal.rb:6 def hash; end end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::DistinctOn < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/infix_operation.rb#26 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:26 class Arel::Nodes::Division < ::Arel::Nodes::InfixOperation - # @return [Division] a new instance of Division - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#27 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:27 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/matches.rb#16 +# pkg:gem/activerecord#lib/arel/nodes/matches.rb:16 class Arel::Nodes::DoesNotMatch < ::Arel::Nodes::Matches; end -# source://activerecord//lib/arel/nodes/case.rb#52 +# pkg:gem/activerecord#lib/arel/nodes/case.rb:52 class Arel::Nodes::Else < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/equality.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/equality.rb:5 class Arel::Nodes::Equality < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/equality.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/equality.rb:8 def equality?; end - # source://activerecord//lib/arel/nodes/equality.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/equality.rb:10 def invert; end end -# source://activerecord//lib/arel/nodes/binary.rb#122 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:122 class Arel::Nodes::Except < ::Arel::Nodes::Binary; end -# source://activerecord//lib/arel/nodes/function.rb#42 +# pkg:gem/activerecord#lib/arel/nodes/function.rb:42 class Arel::Nodes::Exists < ::Arel::Nodes::Function; end -# source://activerecord//lib/arel/nodes/extract.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/extract.rb:5 class Arel::Nodes::Extract < ::Arel::Nodes::Unary - # @return [Extract] a new instance of Extract - # - # source://activerecord//lib/arel/nodes/extract.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/extract.rb:8 def initialize(expr, field); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/extract.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/extract.rb:21 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/extract.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/extract.rb:17 def eql?(other); end - # Returns the value of attribute field. - # - # source://activerecord//lib/arel/nodes/extract.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/extract.rb:6 def field; end - # Sets the attribute field - # - # @param value the value to set the attribute field to. - # - # source://activerecord//lib/arel/nodes/extract.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/extract.rb:6 def field=(_arg0); end - # source://activerecord//lib/arel/nodes/extract.rb#13 + # pkg:gem/activerecord#lib/arel/nodes/extract.rb:13 def hash; end end -# source://activerecord//lib/arel/nodes/false.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/false.rb:5 class Arel::Nodes::False < ::Arel::Nodes::NodeExpression - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/false.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/false.rb:13 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/false.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/false.rb:10 def eql?(other); end - # source://activerecord//lib/arel/nodes/false.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/false.rb:6 def hash; end end -# source://activerecord//lib/arel/nodes/binary.rb#32 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:32 module Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#33 - def fetch_attribute(&_arg0); end + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:33 + def fetch_attribute(&); end end -# source://activerecord//lib/arel/nodes/filter.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/filter.rb:5 class Arel::Nodes::Filter < ::Arel::Nodes::Binary include ::Arel::WindowPredications end -# source://activerecord//lib/arel/nodes/window.rb#120 +# pkg:gem/activerecord#lib/arel/nodes/window.rb:120 class Arel::Nodes::Following < ::Arel::Nodes::Unary - # @return [Following] a new instance of Following - # - # source://activerecord//lib/arel/nodes/window.rb#121 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:121 def initialize(expr = T.unsafe(nil)); end end -# source://activerecord//lib/arel/nodes/fragments.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/fragments.rb:5 class Arel::Nodes::Fragments < ::Arel::Nodes::Node - # @return [Fragments] a new instance of Fragments - # - # source://activerecord//lib/arel/nodes/fragments.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/fragments.rb:8 def initialize(values = T.unsafe(nil)); end - # @raise [ArgumentError] - # - # source://activerecord//lib/arel/nodes/fragments.rb#22 + # pkg:gem/activerecord#lib/arel/nodes/fragments.rb:22 def +(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/fragments.rb#28 + # pkg:gem/activerecord#lib/arel/nodes/fragments.rb:32 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/fragments.rb#28 + # pkg:gem/activerecord#lib/arel/nodes/fragments.rb:28 def eql?(other); end - # source://activerecord//lib/arel/nodes/fragments.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/fragments.rb:18 def hash; end - # Returns the value of attribute values. - # - # source://activerecord//lib/arel/nodes/fragments.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/fragments.rb:6 def values; end private - # source://activerecord//lib/arel/nodes/fragments.rb#13 + # pkg:gem/activerecord#lib/arel/nodes/fragments.rb:13 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/full_outer_join.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/full_outer_join.rb:5 class Arel::Nodes::FullOuterJoin < ::Arel::Nodes::Join; end -# source://activerecord//lib/arel/nodes/function.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/function.rb:5 class Arel::Nodes::Function < ::Arel::Nodes::NodeExpression include ::Arel::WindowPredications include ::Arel::FilterPredications - # @return [Function] a new instance of Function - # - # source://activerecord//lib/arel/nodes/function.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:10 def initialize(expr, aliaz = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/function.rb#26 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:32 def ==(other); end - # Returns the value of attribute alias. - # - # source://activerecord//lib/arel/nodes/function.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:8 def alias; end - # Sets the attribute alias - # - # @param value the value to set the attribute alias to. - # - # source://activerecord//lib/arel/nodes/function.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:8 def alias=(_arg0); end - # source://activerecord//lib/arel/nodes/function.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:17 def as(aliaz); end - # Returns the value of attribute distinct. - # - # source://activerecord//lib/arel/nodes/function.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:8 def distinct; end - # Sets the attribute distinct - # - # @param value the value to set the attribute distinct to. - # - # source://activerecord//lib/arel/nodes/function.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:8 def distinct=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/function.rb#26 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:26 def eql?(other); end - # Returns the value of attribute expressions. - # - # source://activerecord//lib/arel/nodes/function.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:8 def expressions; end - # Sets the attribute expressions - # - # @param value the value to set the attribute expressions to. - # - # source://activerecord//lib/arel/nodes/function.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:8 def expressions=(_arg0); end - # source://activerecord//lib/arel/nodes/function.rb#22 + # pkg:gem/activerecord#lib/arel/nodes/function.rb:22 def hash; end end -# source://activerecord//lib/arel/nodes/binary.rb#50 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:50 class Arel::Nodes::GreaterThan < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#53 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:53 def invert; end end -# source://activerecord//lib/arel/nodes/binary.rb#58 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:58 class Arel::Nodes::GreaterThanOrEqual < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#61 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:61 def invert; end end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::Group < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/grouping.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/grouping.rb:5 class Arel::Nodes::Grouping < ::Arel::Nodes::Unary - # source://activerecord//lib/arel/nodes/grouping.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/grouping.rb:6 def fetch_attribute(&block); end end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::GroupingElement < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::GroupingSet < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/homogeneous_in.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:5 class Arel::Nodes::HomogeneousIn < ::Arel::Nodes::Node - # @return [HomogeneousIn] a new instance of HomogeneousIn - # - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:8 def initialize(values, attribute, type); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:21 def ==(other); end - # Returns the value of attribute attribute. - # - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:6 def attribute; end - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#39 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:39 def casted_values; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:18 def eql?(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#23 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:23 def equality?; end - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#54 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:54 def fetch_attribute(&block); end - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:14 def hash; end - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#27 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:27 def invert; end - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#31 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:31 def left; end - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#50 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:50 def proc_for_binds; end - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#35 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:35 def right; end - # Returns the value of attribute type. - # - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:6 def type; end - # Returns the value of attribute values. - # - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:6 def values; end protected - # source://activerecord//lib/arel/nodes/homogeneous_in.rb#63 + # pkg:gem/activerecord#lib/arel/nodes/homogeneous_in.rb:63 def ivars; end end -# source://activerecord//lib/arel/nodes/in.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/in.rb:5 class Arel::Nodes::In < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/in.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/in.rb:8 def equality?; end - # source://activerecord//lib/arel/nodes/in.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/in.rb:10 def invert; end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:5 class Arel::Nodes::InfixOperation < ::Arel::Nodes::Binary - # @return [InfixOperation] a new instance of InfixOperation - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:14 def initialize(operator, left, right); end - # Returns the value of attribute operator. - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#12 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:12 def operator; end end -# source://activerecord//lib/arel/nodes/inner_join.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/inner_join.rb:5 class Arel::Nodes::InnerJoin < ::Arel::Nodes::Join; end -# source://activerecord//lib/arel/nodes/insert_statement.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:5 class Arel::Nodes::InsertStatement < ::Arel::Nodes::Node - # @return [InsertStatement] a new instance of InsertStatement - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:8 def initialize(relation = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#27 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:34 def ==(other); end - # Returns the value of attribute columns. - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:6 def columns; end - # Sets the attribute columns - # - # @param value the value to set the attribute columns to. - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:6 def columns=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#27 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:27 def eql?(other); end - # source://activerecord//lib/arel/nodes/insert_statement.rb#23 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:23 def hash; end - # Returns the value of attribute relation. - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:6 def relation; end - # Sets the attribute relation - # - # @param value the value to set the attribute relation to. - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:6 def relation=(_arg0); end - # Returns the value of attribute select. - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:6 def select; end - # Sets the attribute select - # - # @param value the value to set the attribute select to. - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:6 def select=(_arg0); end - # Returns the value of attribute values. - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:6 def values; end - # Sets the attribute values - # - # @param value the value to set the attribute values to. - # - # source://activerecord//lib/arel/nodes/insert_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:6 def values=(_arg0); end private - # source://activerecord//lib/arel/nodes/insert_statement.rb#16 + # pkg:gem/activerecord#lib/arel/nodes/insert_statement.rb:16 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/binary.rb#122 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:122 class Arel::Nodes::Intersect < ::Arel::Nodes::Binary; end -# source://activerecord//lib/arel/nodes/binary.rb#82 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:82 class Arel::Nodes::IsDistinctFrom < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#85 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:85 def invert; end end -# source://activerecord//lib/arel/nodes/binary.rb#90 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:90 class Arel::Nodes::IsNotDistinctFrom < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#93 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:93 def invert; end end -# source://activerecord//lib/arel/nodes/binary.rb#122 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:122 class Arel::Nodes::Join < ::Arel::Nodes::Binary; end # Class that represents a join source # # https://www.sqlite.org/syntaxdiagrams.html#join-source # -# source://activerecord//lib/arel/nodes/join_source.rb#10 +# pkg:gem/activerecord#lib/arel/nodes/join_source.rb:10 class Arel::Nodes::JoinSource < ::Arel::Nodes::Binary - # @return [JoinSource] a new instance of JoinSource - # - # source://activerecord//lib/arel/nodes/join_source.rb#11 + # pkg:gem/activerecord#lib/arel/nodes/join_source.rb:11 def initialize(single_source, joinop = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/join_source.rb#15 + # pkg:gem/activerecord#lib/arel/nodes/join_source.rb:15 def empty?; end end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::Lateral < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/leading_join.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/leading_join.rb:5 class Arel::Nodes::LeadingJoin < ::Arel::Nodes::InnerJoin; end -# source://activerecord//lib/arel/nodes/binary.rb#66 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:66 class Arel::Nodes::LessThan < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#69 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:69 def invert; end end -# source://activerecord//lib/arel/nodes/binary.rb#74 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:74 class Arel::Nodes::LessThanOrEqual < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#77 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:77 def invert; end end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::Limit < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::Lock < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/matches.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/matches.rb:5 class Arel::Nodes::Matches < ::Arel::Nodes::Binary - # @return [Matches] a new instance of Matches - # - # source://activerecord//lib/arel/nodes/matches.rb#9 + # pkg:gem/activerecord#lib/arel/nodes/matches.rb:9 def initialize(left, right, escape = T.unsafe(nil), case_sensitive = T.unsafe(nil)); end - # Returns the value of attribute case_sensitive. - # - # source://activerecord//lib/arel/nodes/matches.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/matches.rb:7 def case_sensitive; end - # Sets the attribute case_sensitive - # - # @param value the value to set the attribute case_sensitive to. - # - # source://activerecord//lib/arel/nodes/matches.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/matches.rb:7 def case_sensitive=(_arg0); end - # Returns the value of attribute escape. - # - # source://activerecord//lib/arel/nodes/matches.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/matches.rb:6 def escape; end end -# source://activerecord//lib/arel/nodes/function.rb#42 +# pkg:gem/activerecord#lib/arel/nodes/function.rb:42 class Arel::Nodes::Max < ::Arel::Nodes::Function; end -# source://activerecord//lib/arel/nodes/function.rb#42 +# pkg:gem/activerecord#lib/arel/nodes/function.rb:42 class Arel::Nodes::Min < ::Arel::Nodes::Function; end -# source://activerecord//lib/arel/nodes/infix_operation.rb#20 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:20 class Arel::Nodes::Multiplication < ::Arel::Nodes::InfixOperation - # @return [Multiplication] a new instance of Multiplication - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#21 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:21 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/named_function.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/named_function.rb:5 class Arel::Nodes::NamedFunction < ::Arel::Nodes::Function - # @return [NamedFunction] a new instance of NamedFunction - # - # source://activerecord//lib/arel/nodes/named_function.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/named_function.rb:8 def initialize(name, expr, aliaz = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/named_function.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/named_function.rb:20 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/named_function.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/named_function.rb:17 def eql?(other); end - # source://activerecord//lib/arel/nodes/named_function.rb#13 + # pkg:gem/activerecord#lib/arel/nodes/named_function.rb:13 def hash; end - # Returns the value of attribute name. - # - # source://activerecord//lib/arel/nodes/named_function.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/named_function.rb:6 def name; end - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activerecord//lib/arel/nodes/named_function.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/named_function.rb:6 def name=(_arg0); end end -# source://activerecord//lib/arel/nodes/window.rb#68 +# pkg:gem/activerecord#lib/arel/nodes/window.rb:68 class Arel::Nodes::NamedWindow < ::Arel::Nodes::Window - # @return [NamedWindow] a new instance of NamedWindow - # - # source://activerecord//lib/arel/nodes/window.rb#71 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:71 def initialize(name); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/window.rb#85 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:88 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/window.rb#85 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:85 def eql?(other); end - # source://activerecord//lib/arel/nodes/window.rb#81 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:81 def hash; end - # Returns the value of attribute name. - # - # source://activerecord//lib/arel/nodes/window.rb#69 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:69 def name; end - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activerecord//lib/arel/nodes/window.rb#69 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:69 def name=(_arg0); end private - # source://activerecord//lib/arel/nodes/window.rb#76 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:76 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/nary.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/nary.rb:5 class Arel::Nodes::Nary < ::Arel::Nodes::NodeExpression - # @return [Nary] a new instance of Nary - # - # source://activerecord//lib/arel/nodes/nary.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/nary.rb:8 def initialize(children); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/nary.rb#29 + # pkg:gem/activerecord#lib/arel/nodes/nary.rb:33 def ==(other); end - # Returns the value of attribute children. - # - # source://activerecord//lib/arel/nodes/nary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/nary.rb:6 def children; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/nary.rb#29 + # pkg:gem/activerecord#lib/arel/nodes/nary.rb:29 def eql?(other); end - # source://activerecord//lib/arel/nodes/nary.rb#21 + # pkg:gem/activerecord#lib/arel/nodes/nary.rb:21 def fetch_attribute(&block); end - # source://activerecord//lib/arel/nodes/nary.rb#25 + # pkg:gem/activerecord#lib/arel/nodes/nary.rb:25 def hash; end - # source://activerecord//lib/arel/nodes/nary.rb#13 + # pkg:gem/activerecord#lib/arel/nodes/nary.rb:13 def left; end - # source://activerecord//lib/arel/nodes/nary.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/nary.rb:17 def right; end end @@ -40093,36 +36949,34 @@ end # # # SELECT * FROM "users" WHERE LOWER("users"."name") = 'dhh' AND "users"."age" > '35' # -# source://activerecord//lib/arel/nodes/node.rb#116 +# pkg:gem/activerecord#lib/arel/nodes/node.rb:116 class Arel::Nodes::Node include ::Arel::FactoryMethods # Factory method to create an Nodes::And node. # - # source://activerecord//lib/arel/nodes/node.rb#135 + # pkg:gem/activerecord#lib/arel/nodes/node.rb:135 def and(right); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/node.rb#158 + # pkg:gem/activerecord#lib/arel/nodes/node.rb:158 def equality?; end - # source://activerecord//lib/arel/nodes/node.rb#155 - def fetch_attribute(&_arg0); end + # pkg:gem/activerecord#lib/arel/nodes/node.rb:155 + def fetch_attribute(&); end - # source://activerecord//lib/arel/nodes/node.rb#139 + # pkg:gem/activerecord#lib/arel/nodes/node.rb:139 def invert; end # Factory method to create a Nodes::Not node that has the recipient of # the caller as a child. # - # source://activerecord//lib/arel/nodes/node.rb#122 + # pkg:gem/activerecord#lib/arel/nodes/node.rb:122 def not; end # Factory method to create a Nodes::Grouping node that has an Nodes::Or # node as a child. # - # source://activerecord//lib/arel/nodes/node.rb#129 + # pkg:gem/activerecord#lib/arel/nodes/node.rb:129 def or(right); end # FIXME: this method should go away. I don't like people calling @@ -40131,11 +36985,11 @@ class Arel::Nodes::Node # # Maybe we should just use `Table.engine`? :'( # - # source://activerecord//lib/arel/nodes/node.rb#148 + # pkg:gem/activerecord#lib/arel/nodes/node.rb:148 def to_sql(engine = T.unsafe(nil)); end end -# source://activerecord//lib/arel/nodes/node_expression.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/node_expression.rb:5 class Arel::Nodes::NodeExpression < ::Arel::Nodes::Node include ::Arel::Expressions include ::Arel::Predications @@ -40144,1577 +36998,1269 @@ class Arel::Nodes::NodeExpression < ::Arel::Nodes::Node include ::Arel::Math end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::Not < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/binary.rb#98 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:98 class Arel::Nodes::NotEqual < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#101 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:101 def invert; end end -# source://activerecord//lib/arel/nodes/binary.rb#106 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:106 class Arel::Nodes::NotIn < ::Arel::Nodes::Binary include ::Arel::Nodes::FetchAttribute - # source://activerecord//lib/arel/nodes/binary.rb#109 + # pkg:gem/activerecord#lib/arel/nodes/binary.rb:109 def invert; end end -# source://activerecord//lib/arel/nodes/regexp.rb#14 +# pkg:gem/activerecord#lib/arel/nodes/regexp.rb:14 class Arel::Nodes::NotRegexp < ::Arel::Nodes::Regexp; end -# source://activerecord//lib/arel/nodes/ordering.rb#15 +# pkg:gem/activerecord#lib/arel/nodes/ordering.rb:15 class Arel::Nodes::NullsFirst < ::Arel::Nodes::Ordering - # source://activerecord//lib/arel/nodes/ordering.rb#16 + # pkg:gem/activerecord#lib/arel/nodes/ordering.rb:16 def reverse; end end -# source://activerecord//lib/arel/nodes/ordering.rb#21 +# pkg:gem/activerecord#lib/arel/nodes/ordering.rb:21 class Arel::Nodes::NullsLast < ::Arel::Nodes::Ordering - # source://activerecord//lib/arel/nodes/ordering.rb#22 + # pkg:gem/activerecord#lib/arel/nodes/ordering.rb:22 def reverse; end end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::Offset < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::On < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::OptimizerHints < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/nary.rb#37 +# pkg:gem/activerecord#lib/arel/nodes/nary.rb:37 class Arel::Nodes::Or < ::Arel::Nodes::Nary; end -# source://activerecord//lib/arel/nodes/ordering.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/ordering.rb:5 class Arel::Nodes::Ordering < ::Arel::Nodes::Unary - # source://activerecord//lib/arel/nodes/ordering.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/ordering.rb:6 def nulls_first; end - # source://activerecord//lib/arel/nodes/ordering.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/ordering.rb:10 def nulls_last; end end -# source://activerecord//lib/arel/nodes/outer_join.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/outer_join.rb:5 class Arel::Nodes::OuterJoin < ::Arel::Nodes::Join; end -# source://activerecord//lib/arel/nodes/over.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/over.rb:5 class Arel::Nodes::Over < ::Arel::Nodes::Binary - # @return [Over] a new instance of Over - # - # source://activerecord//lib/arel/nodes/over.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/over.rb:8 def initialize(left, right = T.unsafe(nil)); end - # source://activerecord//lib/arel/nodes/over.rb#12 + # pkg:gem/activerecord#lib/arel/nodes/over.rb:12 def operator; end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#56 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:56 class Arel::Nodes::Overlaps < ::Arel::Nodes::InfixOperation - # @return [Overlaps] a new instance of Overlaps - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#57 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:57 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/window.rb#114 +# pkg:gem/activerecord#lib/arel/nodes/window.rb:114 class Arel::Nodes::Preceding < ::Arel::Nodes::Unary - # @return [Preceding] a new instance of Preceding - # - # source://activerecord//lib/arel/nodes/window.rb#115 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:115 def initialize(expr = T.unsafe(nil)); end end -# source://activerecord//lib/arel/nodes/casted.rb#37 +# pkg:gem/activerecord#lib/arel/nodes/casted.rb:37 class Arel::Nodes::Quoted < ::Arel::Nodes::Unary - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/casted.rb#43 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:43 def infinite?; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/casted.rb#41 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:41 def nil?; end - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:39 def value_before_type_cast; end - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/casted.rb:38 def value_for_database; end end -# source://activerecord//lib/arel/nodes/window.rb#97 +# pkg:gem/activerecord#lib/arel/nodes/window.rb:97 class Arel::Nodes::Range < ::Arel::Nodes::Unary - # @return [Range] a new instance of Range - # - # source://activerecord//lib/arel/nodes/window.rb#98 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:98 def initialize(expr = T.unsafe(nil)); end end -# source://activerecord//lib/arel/nodes/regexp.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/regexp.rb:5 class Arel::Nodes::Regexp < ::Arel::Nodes::Binary - # @return [Regexp] a new instance of Regexp - # - # source://activerecord//lib/arel/nodes/regexp.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/regexp.rb:8 def initialize(left, right, case_sensitive = T.unsafe(nil)); end - # Returns the value of attribute case_sensitive. - # - # source://activerecord//lib/arel/nodes/regexp.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/regexp.rb:6 def case_sensitive; end - # Sets the attribute case_sensitive - # - # @param value the value to set the attribute case_sensitive to. - # - # source://activerecord//lib/arel/nodes/regexp.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/regexp.rb:6 def case_sensitive=(_arg0); end end -# source://activerecord//lib/arel/nodes/right_outer_join.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/right_outer_join.rb:5 class Arel::Nodes::RightOuterJoin < ::Arel::Nodes::Join; end -# source://activerecord//lib/arel/nodes/unary.rb#41 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:41 class Arel::Nodes::RollUp < ::Arel::Nodes::Unary; end -# source://activerecord//lib/arel/nodes/window.rb#91 +# pkg:gem/activerecord#lib/arel/nodes/window.rb:91 class Arel::Nodes::Rows < ::Arel::Nodes::Unary - # @return [Rows] a new instance of Rows - # - # source://activerecord//lib/arel/nodes/window.rb#92 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:92 def initialize(expr = T.unsafe(nil)); end end -# source://activerecord//lib/arel/nodes/select_core.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/select_core.rb:5 class Arel::Nodes::SelectCore < ::Arel::Nodes::Node - # @return [SelectCore] a new instance of SelectCore - # - # source://activerecord//lib/arel/nodes/select_core.rb#9 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:9 def initialize(relation = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/select_core.rb#52 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:64 def ==(other); end - # Returns the value of attribute comment. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def comment; end - # Sets the attribute comment - # - # @param value the value to set the attribute comment to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def comment=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/select_core.rb#52 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:52 def eql?(other); end - # source://activerecord//lib/arel/nodes/select_core.rb#24 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:24 def from; end - # source://activerecord//lib/arel/nodes/select_core.rb#28 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:28 def from=(value); end - # source://activerecord//lib/arel/nodes/select_core.rb#24 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:33 def froms; end - # source://activerecord//lib/arel/nodes/select_core.rb#28 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:32 def froms=(value); end - # Returns the value of attribute groups. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def groups; end - # Sets the attribute groups - # - # @param value the value to set the attribute groups to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def groups=(_arg0); end - # source://activerecord//lib/arel/nodes/select_core.rb#45 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:45 def hash; end - # Returns the value of attribute havings. - # - # source://activerecord//lib/arel/nodes/select_core.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:7 def havings; end - # Sets the attribute havings - # - # @param value the value to set the attribute havings to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:7 def havings=(_arg0); end - # Returns the value of attribute optimizer_hints. - # - # source://activerecord//lib/arel/nodes/select_core.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:7 def optimizer_hints; end - # Sets the attribute optimizer_hints - # - # @param value the value to set the attribute optimizer_hints to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:7 def optimizer_hints=(_arg0); end - # Returns the value of attribute projections. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def projections; end - # Sets the attribute projections - # - # @param value the value to set the attribute projections to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def projections=(_arg0); end - # Returns the value of attribute set_quantifier. - # - # source://activerecord//lib/arel/nodes/select_core.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:7 def set_quantifier; end - # Sets the attribute set_quantifier - # - # @param value the value to set the attribute set_quantifier to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:7 def set_quantifier=(_arg0); end - # Returns the value of attribute source. - # - # source://activerecord//lib/arel/nodes/select_core.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:7 def source; end - # Sets the attribute source - # - # @param value the value to set the attribute source to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:7 def source=(_arg0); end - # Returns the value of attribute wheres. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def wheres; end - # Sets the attribute wheres - # - # @param value the value to set the attribute wheres to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def wheres=(_arg0); end - # Returns the value of attribute windows. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def windows; end - # Sets the attribute windows - # - # @param value the value to set the attribute windows to. - # - # source://activerecord//lib/arel/nodes/select_core.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:6 def windows=(_arg0); end private - # source://activerecord//lib/arel/nodes/select_core.rb#35 + # pkg:gem/activerecord#lib/arel/nodes/select_core.rb:35 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/select_statement.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:5 class Arel::Nodes::SelectStatement < ::Arel::Nodes::NodeExpression - # @return [SelectStatement] a new instance of SelectStatement - # - # source://activerecord//lib/arel/nodes/select_statement.rb#9 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:9 def initialize(relation = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/select_statement.rb#29 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:38 def ==(other); end - # Returns the value of attribute cores. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:6 def cores; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/select_statement.rb#29 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:29 def eql?(other); end - # source://activerecord//lib/arel/nodes/select_statement.rb#25 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:25 def hash; end - # Returns the value of attribute limit. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def limit; end - # Sets the attribute limit - # - # @param value the value to set the attribute limit to. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def limit=(_arg0); end - # Returns the value of attribute lock. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def lock; end - # Sets the attribute lock - # - # @param value the value to set the attribute lock to. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def lock=(_arg0); end - # Returns the value of attribute offset. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def offset; end - # Sets the attribute offset - # - # @param value the value to set the attribute offset to. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def offset=(_arg0); end - # Returns the value of attribute orders. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def orders; end - # Sets the attribute orders - # - # @param value the value to set the attribute orders to. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def orders=(_arg0); end - # Returns the value of attribute with. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def with; end - # Sets the attribute with - # - # @param value the value to set the attribute with to. - # - # source://activerecord//lib/arel/nodes/select_statement.rb#7 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:7 def with=(_arg0); end private - # source://activerecord//lib/arel/nodes/select_statement.rb#19 + # pkg:gem/activerecord#lib/arel/nodes/select_statement.rb:19 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/sql_literal.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/sql_literal.rb:5 class Arel::Nodes::SqlLiteral < ::String include ::Arel::Expressions include ::Arel::Predications include ::Arel::AliasPredication include ::Arel::OrderPredications - # @return [SqlLiteral] a new instance of SqlLiteral - # - # source://activerecord//lib/arel/nodes/sql_literal.rb#13 + # pkg:gem/activerecord#lib/arel/nodes/sql_literal.rb:13 def initialize(string, retryable: T.unsafe(nil)); end - # @raise [ArgumentError] - # - # source://activerecord//lib/arel/nodes/sql_literal.rb#25 + # pkg:gem/activerecord#lib/arel/nodes/sql_literal.rb:25 def +(other); end - # source://activerecord//lib/arel/nodes/sql_literal.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/sql_literal.rb:18 def encode_with(coder); end - # source://activerecord//lib/arel/nodes/sql_literal.rb#22 - def fetch_attribute(&_arg0); end + # pkg:gem/activerecord#lib/arel/nodes/sql_literal.rb:22 + def fetch_attribute(&); end - # Returns the value of attribute retryable. - # - # source://activerecord//lib/arel/nodes/sql_literal.rb#11 + # pkg:gem/activerecord#lib/arel/nodes/sql_literal.rb:11 def retryable; end end -# source://activerecord//lib/arel/nodes/string_join.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/string_join.rb:5 class Arel::Nodes::StringJoin < ::Arel::Nodes::Join - # @return [StringJoin] a new instance of StringJoin - # - # source://activerecord//lib/arel/nodes/string_join.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/string_join.rb:6 def initialize(left, right = T.unsafe(nil)); end end -# source://activerecord//lib/arel/nodes/infix_operation.rb#38 +# pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:38 class Arel::Nodes::Subtraction < ::Arel::Nodes::InfixOperation - # @return [Subtraction] a new instance of Subtraction - # - # source://activerecord//lib/arel/nodes/infix_operation.rb#39 + # pkg:gem/activerecord#lib/arel/nodes/infix_operation.rb:39 def initialize(left, right); end end -# source://activerecord//lib/arel/nodes/function.rb#42 +# pkg:gem/activerecord#lib/arel/nodes/function.rb:42 class Arel::Nodes::Sum < ::Arel::Nodes::Function; end -# source://activerecord//lib/arel/nodes/table_alias.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:5 class Arel::Nodes::TableAlias < ::Arel::Nodes::Binary - # source://activerecord//lib/arel/nodes/table_alias.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:10 def [](name); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/table_alias.rb#26 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:26 def able_to_type_cast?; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:6 def name; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:7 def relation; end - # source://activerecord//lib/arel/nodes/binary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:8 def table_alias; end - # source://activerecord//lib/arel/nodes/table_alias.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:14 def table_name; end - # source://activerecord//lib/arel/nodes/table_alias.rb#30 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:30 def to_cte; end - # source://activerecord//lib/arel/nodes/table_alias.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:18 def type_cast_for_database(attr_name, value); end - # source://activerecord//lib/arel/nodes/table_alias.rb#22 + # pkg:gem/activerecord#lib/arel/nodes/table_alias.rb:22 def type_for_attribute(name); end end -# source://activerecord//lib/arel/nodes/true.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/true.rb:5 class Arel::Nodes::True < ::Arel::Nodes::NodeExpression - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/true.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/true.rb:13 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/true.rb#10 + # pkg:gem/activerecord#lib/arel/nodes/true.rb:10 def eql?(other); end - # source://activerecord//lib/arel/nodes/true.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/true.rb:6 def hash; end end -# source://activerecord//lib/arel/nodes/unary.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/unary.rb:5 class Arel::Nodes::Unary < ::Arel::Nodes::NodeExpression - # @return [Unary] a new instance of Unary - # - # source://activerecord//lib/arel/nodes/unary.rb#9 + # pkg:gem/activerecord#lib/arel/nodes/unary.rb:9 def initialize(expr); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/unary.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/unary.rb:22 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/unary.rb#18 + # pkg:gem/activerecord#lib/arel/nodes/unary.rb:18 def eql?(other); end - # Returns the value of attribute expr. - # - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/unary.rb:6 def expr; end - # Sets the attribute expr - # - # @param value the value to set the attribute expr to. - # - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/unary.rb:6 def expr=(_arg0); end - # source://activerecord//lib/arel/nodes/unary.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/unary.rb:14 def hash; end - # Returns the value of attribute expr. - # - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/unary.rb:7 def value; end end -# source://activerecord//lib/arel/nodes/unary_operation.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/unary_operation.rb:5 class Arel::Nodes::UnaryOperation < ::Arel::Nodes::Unary - # @return [UnaryOperation] a new instance of UnaryOperation - # - # source://activerecord//lib/arel/nodes/unary_operation.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/unary_operation.rb:8 def initialize(operator, operand); end - # Returns the value of attribute operator. - # - # source://activerecord//lib/arel/nodes/unary_operation.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/unary_operation.rb:6 def operator; end end -# source://activerecord//lib/arel/nodes/binary.rb#122 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:122 class Arel::Nodes::Union < ::Arel::Nodes::Binary; end -# source://activerecord//lib/arel/nodes/binary.rb#122 +# pkg:gem/activerecord#lib/arel/nodes/binary.rb:122 class Arel::Nodes::UnionAll < ::Arel::Nodes::Binary; end -# source://activerecord//lib/arel/nodes/unqualified_column.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/unqualified_column.rb:5 class Arel::Nodes::UnqualifiedColumn < ::Arel::Nodes::Unary - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/unqualified_column.rb:6 def attribute; end - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/unqualified_column.rb:7 def attribute=(_arg0); end - # source://activerecord//lib/arel/nodes/unqualified_column.rb#13 + # pkg:gem/activerecord#lib/arel/nodes/unqualified_column.rb:13 def column; end - # source://activerecord//lib/arel/nodes/unqualified_column.rb#17 + # pkg:gem/activerecord#lib/arel/nodes/unqualified_column.rb:17 def name; end - # source://activerecord//lib/arel/nodes/unqualified_column.rb#9 + # pkg:gem/activerecord#lib/arel/nodes/unqualified_column.rb:9 def relation; end end -# source://activerecord//lib/arel/nodes/update_statement.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:5 class Arel::Nodes::UpdateStatement < ::Arel::Nodes::Node - # @return [UpdateStatement] a new instance of UpdateStatement - # - # source://activerecord//lib/arel/nodes/update_statement.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:8 def initialize(relation = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/update_statement.rb#32 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:45 def ==(other); end - # Returns the value of attribute comment. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def comment; end - # Sets the attribute comment - # - # @param value the value to set the attribute comment to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def comment=(_arg0); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/update_statement.rb#32 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:32 def eql?(other); end - # Returns the value of attribute groups. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def groups; end - # Sets the attribute groups - # - # @param value the value to set the attribute groups to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def groups=(_arg0); end - # source://activerecord//lib/arel/nodes/update_statement.rb#28 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:28 def hash; end - # Returns the value of attribute havings. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def havings; end - # Sets the attribute havings - # - # @param value the value to set the attribute havings to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def havings=(_arg0); end - # Returns the value of attribute key. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def key; end - # Sets the attribute key - # - # @param value the value to set the attribute key to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def key=(_arg0); end - # Returns the value of attribute limit. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def limit; end - # Sets the attribute limit - # - # @param value the value to set the attribute limit to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def limit=(_arg0); end - # Returns the value of attribute offset. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def offset; end - # Sets the attribute offset - # - # @param value the value to set the attribute offset to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def offset=(_arg0); end - # Returns the value of attribute orders. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def orders; end - # Sets the attribute orders - # - # @param value the value to set the attribute orders to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def orders=(_arg0); end - # Returns the value of attribute relation. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def relation; end - # Sets the attribute relation - # - # @param value the value to set the attribute relation to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def relation=(_arg0); end - # Returns the value of attribute values. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def values; end - # Sets the attribute values - # - # @param value the value to set the attribute values to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def values=(_arg0); end - # Returns the value of attribute wheres. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def wheres; end - # Sets the attribute wheres - # - # @param value the value to set the attribute wheres to. - # - # source://activerecord//lib/arel/nodes/update_statement.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:6 def wheres=(_arg0); end private - # source://activerecord//lib/arel/nodes/update_statement.rb#22 + # pkg:gem/activerecord#lib/arel/nodes/update_statement.rb:22 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/values_list.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/values_list.rb:5 class Arel::Nodes::ValuesList < ::Arel::Nodes::Unary - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/values_list.rb:6 def rows; end end -# source://activerecord//lib/arel/nodes/case.rb#49 +# pkg:gem/activerecord#lib/arel/nodes/case.rb:49 class Arel::Nodes::When < ::Arel::Nodes::Binary; end -# source://activerecord//lib/arel/nodes/window.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/window.rb:5 class Arel::Nodes::Window < ::Arel::Nodes::Node - # @return [Window] a new instance of Window - # - # source://activerecord//lib/arel/nodes/window.rb#8 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:8 def initialize; end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/window.rb#59 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:65 def ==(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/nodes/window.rb#59 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:59 def eql?(other); end - # source://activerecord//lib/arel/nodes/window.rb#30 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:30 def frame(expr); end - # Returns the value of attribute framing. - # - # source://activerecord//lib/arel/nodes/window.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:6 def framing; end - # Sets the attribute framing - # - # @param value the value to set the attribute framing to. - # - # source://activerecord//lib/arel/nodes/window.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:6 def framing=(_arg0); end - # source://activerecord//lib/arel/nodes/window.rb#55 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:55 def hash; end - # source://activerecord//lib/arel/nodes/window.rb#14 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:14 def order(*expr); end - # Returns the value of attribute orders. - # - # source://activerecord//lib/arel/nodes/window.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:6 def orders; end - # Sets the attribute orders - # - # @param value the value to set the attribute orders to. - # - # source://activerecord//lib/arel/nodes/window.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:6 def orders=(_arg0); end - # source://activerecord//lib/arel/nodes/window.rb#22 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:22 def partition(*expr); end - # Returns the value of attribute partitions. - # - # source://activerecord//lib/arel/nodes/window.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:6 def partitions; end - # Sets the attribute partitions - # - # @param value the value to set the attribute partitions to. - # - # source://activerecord//lib/arel/nodes/window.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:6 def partitions=(_arg0); end - # source://activerecord//lib/arel/nodes/window.rb#42 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:42 def range(expr = T.unsafe(nil)); end - # source://activerecord//lib/arel/nodes/window.rb#34 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:34 def rows(expr = T.unsafe(nil)); end private - # source://activerecord//lib/arel/nodes/window.rb#50 + # pkg:gem/activerecord#lib/arel/nodes/window.rb:50 def initialize_copy(other); end end -# source://activerecord//lib/arel/nodes/with.rb#5 +# pkg:gem/activerecord#lib/arel/nodes/with.rb:5 class Arel::Nodes::With < ::Arel::Nodes::Unary - # source://activerecord//lib/arel/nodes/unary.rb#6 + # pkg:gem/activerecord#lib/arel/nodes/with.rb:6 def children; end end -# source://activerecord//lib/arel/nodes/with.rb#9 +# pkg:gem/activerecord#lib/arel/nodes/with.rb:9 class Arel::Nodes::WithRecursive < ::Arel::Nodes::With; end -# source://activerecord//lib/arel/order_predications.rb#4 +# pkg:gem/activerecord#lib/arel/order_predications.rb:4 module Arel::OrderPredications - # source://activerecord//lib/arel/order_predications.rb#5 + # pkg:gem/activerecord#lib/arel/order_predications.rb:5 def asc; end - # source://activerecord//lib/arel/order_predications.rb#9 + # pkg:gem/activerecord#lib/arel/order_predications.rb:9 def desc; end end -# source://activerecord//lib/arel/predications.rb#4 +# pkg:gem/activerecord#lib/arel/predications.rb:4 module Arel::Predications - # source://activerecord//lib/arel/predications.rb#37 + # pkg:gem/activerecord#lib/arel/predications.rb:37 def between(other); end - # source://activerecord//lib/arel/predications.rb#215 + # pkg:gem/activerecord#lib/arel/predications.rb:215 def concat(other); end - # source://activerecord//lib/arel/predications.rb#219 + # pkg:gem/activerecord#lib/arel/predications.rb:219 def contains(other); end - # source://activerecord//lib/arel/predications.rb#147 + # pkg:gem/activerecord#lib/arel/predications.rb:147 def does_not_match(other, escape = T.unsafe(nil), case_sensitive = T.unsafe(nil)); end - # source://activerecord//lib/arel/predications.rb#159 + # pkg:gem/activerecord#lib/arel/predications.rb:159 def does_not_match_all(others, escape = T.unsafe(nil)); end - # source://activerecord//lib/arel/predications.rb#155 + # pkg:gem/activerecord#lib/arel/predications.rb:155 def does_not_match_any(others, escape = T.unsafe(nil)); end - # source://activerecord//lib/arel/predications.rb#151 + # pkg:gem/activerecord#lib/arel/predications.rb:151 def does_not_match_regexp(other, case_sensitive = T.unsafe(nil)); end - # source://activerecord//lib/arel/predications.rb#17 + # pkg:gem/activerecord#lib/arel/predications.rb:17 def eq(other); end - # source://activerecord//lib/arel/predications.rb#33 + # pkg:gem/activerecord#lib/arel/predications.rb:33 def eq_all(others); end - # source://activerecord//lib/arel/predications.rb#29 + # pkg:gem/activerecord#lib/arel/predications.rb:29 def eq_any(others); end - # source://activerecord//lib/arel/predications.rb#175 + # pkg:gem/activerecord#lib/arel/predications.rb:175 def gt(right); end - # source://activerecord//lib/arel/predications.rb#183 + # pkg:gem/activerecord#lib/arel/predications.rb:183 def gt_all(others); end - # source://activerecord//lib/arel/predications.rb#179 + # pkg:gem/activerecord#lib/arel/predications.rb:179 def gt_any(others); end - # source://activerecord//lib/arel/predications.rb#163 + # pkg:gem/activerecord#lib/arel/predications.rb:163 def gteq(right); end - # source://activerecord//lib/arel/predications.rb#171 + # pkg:gem/activerecord#lib/arel/predications.rb:171 def gteq_all(others); end - # source://activerecord//lib/arel/predications.rb#167 + # pkg:gem/activerecord#lib/arel/predications.rb:167 def gteq_any(others); end - # source://activerecord//lib/arel/predications.rb#65 + # pkg:gem/activerecord#lib/arel/predications.rb:65 def in(other); end - # source://activerecord//lib/arel/predications.rb#80 + # pkg:gem/activerecord#lib/arel/predications.rb:80 def in_all(others); end - # source://activerecord//lib/arel/predications.rb#76 + # pkg:gem/activerecord#lib/arel/predications.rb:76 def in_any(others); end - # source://activerecord//lib/arel/predications.rb#25 + # pkg:gem/activerecord#lib/arel/predications.rb:25 def is_distinct_from(other); end - # source://activerecord//lib/arel/predications.rb#21 + # pkg:gem/activerecord#lib/arel/predications.rb:21 def is_not_distinct_from(other); end - # source://activerecord//lib/arel/predications.rb#187 + # pkg:gem/activerecord#lib/arel/predications.rb:187 def lt(right); end - # source://activerecord//lib/arel/predications.rb#195 + # pkg:gem/activerecord#lib/arel/predications.rb:195 def lt_all(others); end - # source://activerecord//lib/arel/predications.rb#191 + # pkg:gem/activerecord#lib/arel/predications.rb:191 def lt_any(others); end - # source://activerecord//lib/arel/predications.rb#199 + # pkg:gem/activerecord#lib/arel/predications.rb:199 def lteq(right); end - # source://activerecord//lib/arel/predications.rb#207 + # pkg:gem/activerecord#lib/arel/predications.rb:207 def lteq_all(others); end - # source://activerecord//lib/arel/predications.rb#203 + # pkg:gem/activerecord#lib/arel/predications.rb:203 def lteq_any(others); end - # source://activerecord//lib/arel/predications.rb#131 + # pkg:gem/activerecord#lib/arel/predications.rb:131 def matches(other, escape = T.unsafe(nil), case_sensitive = T.unsafe(nil)); end - # source://activerecord//lib/arel/predications.rb#143 + # pkg:gem/activerecord#lib/arel/predications.rb:143 def matches_all(others, escape = T.unsafe(nil), case_sensitive = T.unsafe(nil)); end - # source://activerecord//lib/arel/predications.rb#139 + # pkg:gem/activerecord#lib/arel/predications.rb:139 def matches_any(others, escape = T.unsafe(nil), case_sensitive = T.unsafe(nil)); end - # source://activerecord//lib/arel/predications.rb#135 + # pkg:gem/activerecord#lib/arel/predications.rb:135 def matches_regexp(other, case_sensitive = T.unsafe(nil)); end - # source://activerecord//lib/arel/predications.rb#84 + # pkg:gem/activerecord#lib/arel/predications.rb:84 def not_between(other); end - # source://activerecord//lib/arel/predications.rb#5 + # pkg:gem/activerecord#lib/arel/predications.rb:5 def not_eq(other); end - # source://activerecord//lib/arel/predications.rb#13 + # pkg:gem/activerecord#lib/arel/predications.rb:13 def not_eq_all(others); end - # source://activerecord//lib/arel/predications.rb#9 + # pkg:gem/activerecord#lib/arel/predications.rb:9 def not_eq_any(others); end - # source://activerecord//lib/arel/predications.rb#112 + # pkg:gem/activerecord#lib/arel/predications.rb:112 def not_in(other); end - # source://activerecord//lib/arel/predications.rb#127 + # pkg:gem/activerecord#lib/arel/predications.rb:127 def not_in_all(others); end - # source://activerecord//lib/arel/predications.rb#123 + # pkg:gem/activerecord#lib/arel/predications.rb:123 def not_in_any(others); end - # source://activerecord//lib/arel/predications.rb#223 + # pkg:gem/activerecord#lib/arel/predications.rb:223 def overlaps(other); end - # source://activerecord//lib/arel/predications.rb#227 + # pkg:gem/activerecord#lib/arel/predications.rb:227 def quoted_array(others); end - # source://activerecord//lib/arel/predications.rb#211 + # pkg:gem/activerecord#lib/arel/predications.rb:211 def when(right); end private - # source://activerecord//lib/arel/predications.rb#237 + # pkg:gem/activerecord#lib/arel/predications.rb:237 def grouping_all(method_id, others, *extras); end - # source://activerecord//lib/arel/predications.rb#232 + # pkg:gem/activerecord#lib/arel/predications.rb:232 def grouping_any(method_id, others, *extras); end - # @return [Boolean] - # - # source://activerecord//lib/arel/predications.rb#246 + # pkg:gem/activerecord#lib/arel/predications.rb:246 def infinity?(value); end - # @return [Boolean] - # - # source://activerecord//lib/arel/predications.rb#254 + # pkg:gem/activerecord#lib/arel/predications.rb:254 def open_ended?(value); end - # source://activerecord//lib/arel/predications.rb#242 + # pkg:gem/activerecord#lib/arel/predications.rb:242 def quoted_node(other); end - # @return [Boolean] - # - # source://activerecord//lib/arel/predications.rb#250 + # pkg:gem/activerecord#lib/arel/predications.rb:250 def unboundable?(value); end end -# source://activerecord//lib/arel/select_manager.rb#4 +# pkg:gem/activerecord#lib/arel/select_manager.rb:4 class Arel::SelectManager < ::Arel::TreeManager include ::Arel::Crud - # @return [SelectManager] a new instance of SelectManager - # - # source://activerecord//lib/arel/select_manager.rb#9 + # pkg:gem/activerecord#lib/arel/select_manager.rb:9 def initialize(table = T.unsafe(nil)); end - # source://activerecord//lib/arel/select_manager.rb#48 + # pkg:gem/activerecord#lib/arel/select_manager.rb:48 def as(other); end - # source://activerecord//lib/arel/select_manager.rb#252 + # pkg:gem/activerecord#lib/arel/select_manager.rb:252 def comment(*values); end - # source://activerecord//lib/arel/select_manager.rb#24 + # pkg:gem/activerecord#lib/arel/select_manager.rb:24 def constraints; end - # source://activerecord//lib/arel/select_manager.rb#154 + # pkg:gem/activerecord#lib/arel/select_manager.rb:154 def distinct(value = T.unsafe(nil)); end - # source://activerecord//lib/arel/select_manager.rb#163 + # pkg:gem/activerecord#lib/arel/select_manager.rb:163 def distinct_on(value); end - # source://activerecord//lib/arel/select_manager.rb#213 + # pkg:gem/activerecord#lib/arel/select_manager.rb:213 def except(other); end # Produces an Arel::Nodes::Exists node # - # source://activerecord//lib/arel/select_manager.rb#44 + # pkg:gem/activerecord#lib/arel/select_manager.rb:44 def exists; end - # source://activerecord//lib/arel/select_manager.rb#85 + # pkg:gem/activerecord#lib/arel/select_manager.rb:85 def from(table); end - # source://activerecord//lib/arel/select_manager.rb#98 + # pkg:gem/activerecord#lib/arel/select_manager.rb:98 def froms; end - # source://activerecord//lib/arel/select_manager.rb#74 + # pkg:gem/activerecord#lib/arel/select_manager.rb:74 def group(*columns); end - # source://activerecord//lib/arel/select_manager.rb#119 + # pkg:gem/activerecord#lib/arel/select_manager.rb:119 def having(expr); end - # source://activerecord//lib/arel/select_manager.rb#209 + # pkg:gem/activerecord#lib/arel/select_manager.rb:209 def intersect(other); end - # source://activerecord//lib/arel/select_manager.rb#102 + # pkg:gem/activerecord#lib/arel/select_manager.rb:102 def join(relation, klass = T.unsafe(nil)); end - # source://activerecord//lib/arel/select_manager.rb#244 + # pkg:gem/activerecord#lib/arel/select_manager.rb:244 def join_sources; end - # source://activerecord//lib/arel/select_manager.rb#218 + # pkg:gem/activerecord#lib/arel/select_manager.rb:218 def lateral(table_name = T.unsafe(nil)); end - # source://activerecord//lib/arel/select_manager.rb#19 + # pkg:gem/activerecord#lib/arel/select_manager.rb:19 def limit; end - # source://activerecord//lib/arel/select_manager.rb#234 + # pkg:gem/activerecord#lib/arel/select_manager.rb:242 def limit=(limit); end - # source://activerecord//lib/arel/select_manager.rb#52 + # pkg:gem/activerecord#lib/arel/select_manager.rb:52 def lock(locking = T.unsafe(nil)); end - # source://activerecord//lib/arel/select_manager.rb#65 + # pkg:gem/activerecord#lib/arel/select_manager.rb:65 def locked; end - # source://activerecord//lib/arel/select_manager.rb#213 + # pkg:gem/activerecord#lib/arel/select_manager.rb:216 def minus(other); end - # source://activerecord//lib/arel/select_manager.rb#28 + # pkg:gem/activerecord#lib/arel/select_manager.rb:28 def offset; end - # source://activerecord//lib/arel/select_manager.rb#32 + # pkg:gem/activerecord#lib/arel/select_manager.rb:40 def offset=(amount); end - # source://activerecord//lib/arel/select_manager.rb#69 + # pkg:gem/activerecord#lib/arel/select_manager.rb:69 def on(*exprs); end - # source://activerecord//lib/arel/select_manager.rb#147 + # pkg:gem/activerecord#lib/arel/select_manager.rb:147 def optimizer_hints(*hints); end - # source://activerecord//lib/arel/select_manager.rb#172 + # pkg:gem/activerecord#lib/arel/select_manager.rb:172 def order(*expr); end - # source://activerecord//lib/arel/select_manager.rb#180 + # pkg:gem/activerecord#lib/arel/select_manager.rb:180 def orders; end - # source://activerecord//lib/arel/select_manager.rb#115 + # pkg:gem/activerecord#lib/arel/select_manager.rb:115 def outer_join(relation); end - # source://activerecord//lib/arel/select_manager.rb#130 + # pkg:gem/activerecord#lib/arel/select_manager.rb:130 def project(*projections); end - # source://activerecord//lib/arel/select_manager.rb#139 + # pkg:gem/activerecord#lib/arel/select_manager.rb:139 def projections; end - # source://activerecord//lib/arel/select_manager.rb#143 + # pkg:gem/activerecord#lib/arel/select_manager.rb:143 def projections=(projections); end - # source://activerecord//lib/arel/select_manager.rb#32 + # pkg:gem/activerecord#lib/arel/select_manager.rb:32 def skip(amount); end - # source://activerecord//lib/arel/select_manager.rb#248 + # pkg:gem/activerecord#lib/arel/select_manager.rb:248 def source; end - # source://activerecord//lib/arel/select_manager.rb#234 + # pkg:gem/activerecord#lib/arel/select_manager.rb:234 def take(limit); end - # source://activerecord//lib/arel/select_manager.rb#19 + # pkg:gem/activerecord#lib/arel/select_manager.rb:22 def taken; end - # source://activerecord//lib/arel/select_manager.rb#198 + # pkg:gem/activerecord#lib/arel/select_manager.rb:198 def union(operation, other = T.unsafe(nil)); end - # source://activerecord//lib/arel/select_manager.rb#184 + # pkg:gem/activerecord#lib/arel/select_manager.rb:184 def where(expr); end - # source://activerecord//lib/arel/select_manager.rb#192 + # pkg:gem/activerecord#lib/arel/select_manager.rb:192 def where_sql(engine = T.unsafe(nil)); end - # source://activerecord//lib/arel/select_manager.rb#124 + # pkg:gem/activerecord#lib/arel/select_manager.rb:124 def window(name); end - # source://activerecord//lib/arel/select_manager.rb#223 + # pkg:gem/activerecord#lib/arel/select_manager.rb:223 def with(*subqueries); end private - # source://activerecord//lib/arel/select_manager.rb#262 + # pkg:gem/activerecord#lib/arel/select_manager.rb:262 def collapse(exprs); end - # source://activerecord//lib/arel/select_manager.rb#14 + # pkg:gem/activerecord#lib/arel/select_manager.rb:14 def initialize_copy(other); end end -# source://activerecord//lib/arel/select_manager.rb#7 +# pkg:gem/activerecord#lib/arel/select_manager.rb:7 Arel::SelectManager::STRING_OR_SYMBOL_CLASS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/arel/table.rb#4 +# pkg:gem/activerecord#lib/arel/table.rb:4 class Arel::Table include ::Arel::FactoryMethods include ::Arel::AliasPredication - # @return [Table] a new instance of Table - # - # source://activerecord//lib/arel/table.rb#14 + # pkg:gem/activerecord#lib/arel/table.rb:14 def initialize(name, as: T.unsafe(nil), klass: T.unsafe(nil), type_caster: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/table.rb#95 + # pkg:gem/activerecord#lib/arel/table.rb:100 def ==(other); end - # source://activerecord//lib/arel/table.rb#82 + # pkg:gem/activerecord#lib/arel/table.rb:82 def [](name, table = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/table.rb#110 + # pkg:gem/activerecord#lib/arel/table.rb:110 def able_to_type_cast?; end - # source://activerecord//lib/arel/table.rb#30 + # pkg:gem/activerecord#lib/arel/table.rb:30 def alias(name = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/table.rb#95 + # pkg:gem/activerecord#lib/arel/table.rb:95 def eql?(other); end - # source://activerecord//lib/arel/table.rb#34 + # pkg:gem/activerecord#lib/arel/table.rb:34 def from; end - # source://activerecord//lib/arel/table.rb#54 + # pkg:gem/activerecord#lib/arel/table.rb:54 def group(*columns); end - # source://activerecord//lib/arel/table.rb#88 + # pkg:gem/activerecord#lib/arel/table.rb:88 def hash; end - # source://activerecord//lib/arel/table.rb#78 + # pkg:gem/activerecord#lib/arel/table.rb:78 def having(expr); end - # source://activerecord//lib/arel/table.rb#38 + # pkg:gem/activerecord#lib/arel/table.rb:38 def join(relation, klass = T.unsafe(nil)); end - # Returns the value of attribute name. - # - # source://activerecord//lib/arel/table.rb#11 + # pkg:gem/activerecord#lib/arel/table.rb:11 def name; end - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activerecord//lib/arel/table.rb#11 + # pkg:gem/activerecord#lib/arel/table.rb:11 def name=(_arg0); end - # source://activerecord//lib/arel/table.rb#58 + # pkg:gem/activerecord#lib/arel/table.rb:58 def order(*expr); end - # source://activerecord//lib/arel/table.rb#50 + # pkg:gem/activerecord#lib/arel/table.rb:50 def outer_join(relation); end - # source://activerecord//lib/arel/table.rb#66 + # pkg:gem/activerecord#lib/arel/table.rb:66 def project(*things); end - # source://activerecord//lib/arel/table.rb#74 + # pkg:gem/activerecord#lib/arel/table.rb:74 def skip(amount); end - # Returns the value of attribute table_alias. - # - # source://activerecord//lib/arel/table.rb#12 + # pkg:gem/activerecord#lib/arel/table.rb:12 def table_alias; end - # source://activerecord//lib/arel/table.rb#70 + # pkg:gem/activerecord#lib/arel/table.rb:70 def take(amount); end - # source://activerecord//lib/arel/table.rb#102 + # pkg:gem/activerecord#lib/arel/table.rb:102 def type_cast_for_database(attr_name, value); end - # source://activerecord//lib/arel/table.rb#106 + # pkg:gem/activerecord#lib/arel/table.rb:106 def type_for_attribute(name); end - # source://activerecord//lib/arel/table.rb#62 + # pkg:gem/activerecord#lib/arel/table.rb:62 def where(condition); end private - # Returns the value of attribute type_caster. - # - # source://activerecord//lib/arel/table.rb#115 + # pkg:gem/activerecord#lib/arel/table.rb:115 def type_caster; end class << self - # Returns the value of attribute engine. - # - # source://activerecord//lib/arel/table.rb#9 + # pkg:gem/activerecord#lib/arel/table.rb:9 def engine; end - # Sets the attribute engine - # - # @param value the value to set the attribute engine to. - # - # source://activerecord//lib/arel/table.rb#9 + # pkg:gem/activerecord#lib/arel/table.rb:9 def engine=(_arg0); end end end -# source://activerecord//lib/arel/tree_manager.rb#4 +# pkg:gem/activerecord#lib/arel/tree_manager.rb:4 class Arel::TreeManager include ::Arel::FactoryMethods - # Returns the value of attribute ast. - # - # source://activerecord//lib/arel/tree_manager.rb#45 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:45 def ast; end - # source://activerecord//lib/arel/tree_manager.rb#47 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:47 def to_dot; end - # source://activerecord//lib/arel/tree_manager.rb#53 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:53 def to_sql(engine = T.unsafe(nil)); end private - # source://activerecord//lib/arel/tree_manager.rb#60 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:60 def initialize_copy(other); end end -# source://activerecord//lib/arel/tree_manager.rb#7 +# pkg:gem/activerecord#lib/arel/tree_manager.rb:7 module Arel::TreeManager::StatementMethods - # source://activerecord//lib/arel/tree_manager.rb#31 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:31 def key; end - # source://activerecord//lib/arel/tree_manager.rb#23 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:23 def key=(key); end - # source://activerecord//lib/arel/tree_manager.rb#13 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:13 def offset(offset); end - # source://activerecord//lib/arel/tree_manager.rb#18 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:18 def order(*expr); end - # source://activerecord//lib/arel/tree_manager.rb#8 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:8 def take(limit); end - # source://activerecord//lib/arel/tree_manager.rb#39 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:39 def where(expr); end - # source://activerecord//lib/arel/tree_manager.rb#35 + # pkg:gem/activerecord#lib/arel/tree_manager.rb:35 def wheres=(exprs); end end -# source://activerecord//lib/arel/update_manager.rb#4 +# pkg:gem/activerecord#lib/arel/update_manager.rb:4 class Arel::UpdateManager < ::Arel::TreeManager include ::Arel::TreeManager::StatementMethods - # @return [UpdateManager] a new instance of UpdateManager - # - # source://activerecord//lib/arel/update_manager.rb#7 + # pkg:gem/activerecord#lib/arel/update_manager.rb:7 def initialize(table = T.unsafe(nil)); end - # source://activerecord//lib/arel/update_manager.rb#49 + # pkg:gem/activerecord#lib/arel/update_manager.rb:49 def comment(value); end - # source://activerecord//lib/arel/update_manager.rb#33 + # pkg:gem/activerecord#lib/arel/update_manager.rb:33 def group(columns); end - # source://activerecord//lib/arel/update_manager.rb#44 + # pkg:gem/activerecord#lib/arel/update_manager.rb:44 def having(expr); end - # source://activerecord//lib/arel/update_manager.rb#18 + # pkg:gem/activerecord#lib/arel/update_manager.rb:18 def set(values); end # UPDATE +table+ # - # source://activerecord//lib/arel/update_manager.rb#13 + # pkg:gem/activerecord#lib/arel/update_manager.rb:13 def table(table); end end -# source://activerecord//lib/arel.rb#29 +# pkg:gem/activerecord#lib/arel.rb:29 Arel::VERSION = T.let(T.unsafe(nil), String) -# source://activerecord//lib/arel/visitors/visitor.rb#4 +# pkg:gem/activerecord#lib/arel/visitors/visitor.rb:4 module Arel::Visitors; end -# source://activerecord//lib/arel/visitors/dot.rb#5 +# pkg:gem/activerecord#lib/arel/visitors/dot.rb:5 class Arel::Visitors::Dot < ::Arel::Visitors::Visitor - # @return [Dot] a new instance of Dot - # - # source://activerecord//lib/arel/visitors/dot.rb#19 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:19 def initialize; end - # source://activerecord//lib/arel/visitors/dot.rb#28 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:28 def accept(object, collector); end private - # source://activerecord//lib/arel/visitors/dot.rb#263 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:263 def edge(name); end - # source://activerecord//lib/arel/visitors/dot.rb#281 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:281 def quote(string); end - # source://activerecord//lib/arel/visitors/dot.rb#285 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:285 def to_dot; end - # source://activerecord//lib/arel/visitors/dot.rb#249 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:249 def visit(o); end - # source://activerecord//lib/arel/visitors/dot.rb#218 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:218 def visit_ActiveModel_Attribute(o); end - # source://activerecord//lib/arel/visitors/dot.rb#185 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:185 def visit_Arel_Attributes_Attribute(o); end - # source://activerecord//lib/arel/visitors/dot.rb#190 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:195 def visit_Arel_Nodes_And(o); end - # source://activerecord//lib/arel/visitors/dot.rb#44 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:44 def visit_Arel_Nodes_Binary(o); end - # source://activerecord//lib/arel/visitors/dot.rb#214 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:214 def visit_Arel_Nodes_BindParam(o); end - # source://activerecord//lib/arel/visitors/dot.rb#239 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:239 def visit_Arel_Nodes_Case(o); end - # source://activerecord//lib/arel/visitors/dot.rb#174 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:174 def visit_Arel_Nodes_Casted(o); end - # source://activerecord//lib/arel/visitors/dot.rb#235 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:235 def visit_Arel_Nodes_Comment(o); end - # source://activerecord//lib/arel/visitors/dot.rb#77 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:77 def visit_Arel_Nodes_Count(o); end - # intentionally left blank - # - # source://activerecord//lib/arel/visitors/dot.rb#103 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:106 def visit_Arel_Nodes_CurrentRow(o); end - # source://activerecord//lib/arel/visitors/dot.rb#160 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:160 def visit_Arel_Nodes_DeleteStatement(o); end - # source://activerecord//lib/arel/visitors/dot.rb#103 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:107 def visit_Arel_Nodes_Distinct(o); end - # source://activerecord//lib/arel/visitors/dot.rb#109 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:109 def visit_Arel_Nodes_Extract(o); end - # source://activerecord//lib/arel/visitors/dot.rb#34 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:34 def visit_Arel_Nodes_Function(o); end - # source://activerecord//lib/arel/visitors/dot.rb#179 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:179 def visit_Arel_Nodes_HomogeneousIn(o); end - # source://activerecord//lib/arel/visitors/dot.rb#54 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:54 def visit_Arel_Nodes_InfixOperation(o); end - # source://activerecord//lib/arel/visitors/dot.rb#121 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:121 def visit_Arel_Nodes_InsertStatement(o); end - # source://activerecord//lib/arel/visitors/dot.rb#114 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:114 def visit_Arel_Nodes_NamedFunction(o); end - # source://activerecord//lib/arel/visitors/dot.rb#96 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:96 def visit_Arel_Nodes_NamedWindow(o); end - # source://activerecord//lib/arel/visitors/dot.rb#60 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:66 def visit_Arel_Nodes_NotRegexp(o); end - # source://activerecord//lib/arel/visitors/dot.rb#190 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:196 def visit_Arel_Nodes_Or(o); end - # source://activerecord//lib/arel/visitors/dot.rb#68 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:68 def visit_Arel_Nodes_Ordering(o); end - # source://activerecord//lib/arel/visitors/dot.rb#60 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:65 def visit_Arel_Nodes_Regexp(o); end - # source://activerecord//lib/arel/visitors/dot.rb#128 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:128 def visit_Arel_Nodes_SelectCore(o); end - # source://activerecord//lib/arel/visitors/dot.rb#140 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:140 def visit_Arel_Nodes_SelectStatement(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:212 def visit_Arel_Nodes_SqlLiteral(o); end - # source://activerecord//lib/arel/visitors/dot.rb#86 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:86 def visit_Arel_Nodes_StringJoin(o); end - # source://activerecord//lib/arel/visitors/dot.rb#72 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:72 def visit_Arel_Nodes_TableAlias(o); end - # source://activerecord//lib/arel/visitors/dot.rb#40 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:40 def visit_Arel_Nodes_Unary(o); end - # source://activerecord//lib/arel/visitors/dot.rb#49 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:49 def visit_Arel_Nodes_UnaryOperation(o); end - # source://activerecord//lib/arel/visitors/dot.rb#149 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:149 def visit_Arel_Nodes_UpdateStatement(o); end - # source://activerecord//lib/arel/visitors/dot.rb#82 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:82 def visit_Arel_Nodes_ValuesList(o); end - # source://activerecord//lib/arel/visitors/dot.rb#90 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:90 def visit_Arel_Nodes_Window(o); end - # source://activerecord//lib/arel/visitors/dot.rb#190 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:197 def visit_Arel_Nodes_With(o); end - # source://activerecord//lib/arel/visitors/dot.rb#170 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:170 def visit_Arel_Table(o); end - # source://activerecord//lib/arel/visitors/dot.rb#228 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:228 def visit_Array(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:209 def visit_BigDecimal(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:203 def visit_Date(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:204 def visit_DateTime(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:207 def visit_FalseClass(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:210 def visit_Float(o); end - # source://activerecord//lib/arel/visitors/dot.rb#222 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:222 def visit_Hash(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:208 def visit_Integer(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:205 def visit_NilClass(o); end - # source://activerecord//lib/arel/visitors/dot.rb#228 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:233 def visit_Set(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:199 def visit_String(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:211 def visit_Symbol(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:202 def visit_Time(o); end - # source://activerecord//lib/arel/visitors/dot.rb#199 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:206 def visit_TrueClass(o); end - # source://activerecord//lib/arel/visitors/dot.rb#190 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:190 def visit__children(o); end - # source://activerecord//lib/arel/visitors/dot.rb#103 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:103 def visit__no_edges(o); end - # source://activerecord//lib/arel/visitors/dot.rb#60 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:60 def visit__regexp(o); end - # source://activerecord//lib/arel/visitors/dot.rb#245 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:245 def visit_edge(o, method); end - # source://activerecord//lib/arel/visitors/dot.rb#271 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:271 def with_node(node); end end -# source://activerecord//lib/arel/visitors/dot.rb#16 +# pkg:gem/activerecord#lib/arel/visitors/dot.rb:16 class Arel::Visitors::Dot::Edge < ::Struct; end -# source://activerecord//lib/arel/visitors/dot.rb#6 +# pkg:gem/activerecord#lib/arel/visitors/dot.rb:6 class Arel::Visitors::Dot::Node - # @return [Node] a new instance of Node - # - # source://activerecord//lib/arel/visitors/dot.rb#9 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:9 def initialize(name, id, fields = T.unsafe(nil)); end - # Returns the value of attribute fields. - # - # source://activerecord//lib/arel/visitors/dot.rb#7 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:7 def fields; end - # Sets the attribute fields - # - # @param value the value to set the attribute fields to. - # - # source://activerecord//lib/arel/visitors/dot.rb#7 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:7 def fields=(_arg0); end - # Returns the value of attribute id. - # - # source://activerecord//lib/arel/visitors/dot.rb#7 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:7 def id; end - # Sets the attribute id - # - # @param value the value to set the attribute id to. - # - # source://activerecord//lib/arel/visitors/dot.rb#7 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:7 def id=(_arg0); end - # Returns the value of attribute name. - # - # source://activerecord//lib/arel/visitors/dot.rb#7 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:7 def name; end - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activerecord//lib/arel/visitors/dot.rb#7 + # pkg:gem/activerecord#lib/arel/visitors/dot.rb:7 def name=(_arg0); end end -# source://activerecord//lib/arel/visitors/mysql.rb#5 +# pkg:gem/activerecord#lib/arel/visitors/mysql.rb:5 class Arel::Visitors::MySQL < ::Arel::Visitors::ToSql private # MySQL doesn't automatically create a temporary table for use subquery, so we have # to give it some prompting in the form of a subsubquery. # - # source://activerecord//lib/arel/visitors/mysql.rb#93 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:93 def build_subselect(key, o); end - # In the simple case, MySQL allows us to place JOINs directly into the UPDATE - # query. However, this does not allow for LIMIT, OFFSET and ORDER. To support - # these, we must use a subquery. - # - # source://activerecord//lib/arel/visitors/mysql.rb#81 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:89 def prepare_delete_statement(o); end # In the simple case, MySQL allows us to place JOINs directly into the UPDATE # query. However, this does not allow for LIMIT, OFFSET and ORDER. To support # these, we must use a subquery. # - # source://activerecord//lib/arel/visitors/mysql.rb#81 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:81 def prepare_update_statement(o); end - # source://activerecord//lib/arel/visitors/mysql.rb#7 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:7 def visit_Arel_Nodes_Bin(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#34 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:34 def visit_Arel_Nodes_Concat(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#72 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:72 def visit_Arel_Nodes_Cte(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#49 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:49 def visit_Arel_Nodes_IsDistinctFrom(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#43 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:43 def visit_Arel_Nodes_IsNotDistinctFrom(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#58 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:58 def visit_Arel_Nodes_NotRegexp(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#62 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:62 def visit_Arel_Nodes_NullsFirst(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#67 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:67 def visit_Arel_Nodes_NullsLast(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#54 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:54 def visit_Arel_Nodes_Regexp(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#29 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:29 def visit_Arel_Nodes_SelectCore(o, collector); end # :'( @@ -41722,614 +38268,556 @@ class Arel::Visitors::MySQL < ::Arel::Visitors::ToSql # you can use some large number for the second parameter. # https://dev.mysql.com/doc/refman/en/select.html # - # source://activerecord//lib/arel/visitors/mysql.rb#22 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:22 def visit_Arel_Nodes_SelectStatement(o, collector); end - # source://activerecord//lib/arel/visitors/mysql.rb#13 + # pkg:gem/activerecord#lib/arel/visitors/mysql.rb:13 def visit_Arel_Nodes_UnqualifiedColumn(o, collector); end end -# source://activerecord//lib/arel/visitors/postgresql.rb#5 +# pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:5 class Arel::Visitors::PostgreSQL < ::Arel::Visitors::ToSql private - # source://activerecord//lib/arel/visitors/postgresql.rb#84 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:84 def bind_block; end # Utilized by GroupingSet, Cube & RollUp visitors to # handle grouping aggregation semantics # - # source://activerecord//lib/arel/visitors/postgresql.rb#88 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:88 def grouping_array_or_grouping_element(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#49 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:49 def visit_Arel_Nodes_Cube(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#39 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:39 def visit_Arel_Nodes_DistinctOn(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#18 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:18 def visit_Arel_Nodes_DoesNotMatch(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#44 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:44 def visit_Arel_Nodes_GroupingElement(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#59 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:59 def visit_Arel_Nodes_GroupingSet(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#75 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:75 def visit_Arel_Nodes_IsDistinctFrom(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#69 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:69 def visit_Arel_Nodes_IsNotDistinctFrom(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#64 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:64 def visit_Arel_Nodes_Lateral(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#7 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:7 def visit_Arel_Nodes_Matches(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#34 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:34 def visit_Arel_Nodes_NotRegexp(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#29 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:29 def visit_Arel_Nodes_Regexp(o, collector); end - # source://activerecord//lib/arel/visitors/postgresql.rb#54 + # pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:54 def visit_Arel_Nodes_RollUp(o, collector); end end -# source://activerecord//lib/arel/visitors/postgresql.rb#81 +# pkg:gem/activerecord#lib/arel/visitors/postgresql.rb:81 Arel::Visitors::PostgreSQL::BIND_BLOCK = T.let(T.unsafe(nil), Proc) -# source://activerecord//lib/arel/visitors/sqlite.rb#5 +# pkg:gem/activerecord#lib/arel/visitors/sqlite.rb:5 class Arel::Visitors::SQLite < ::Arel::Visitors::ToSql private # Queries used in UNION should not be wrapped by parentheses, # because it is an invalid syntax in SQLite. # - # source://activerecord//lib/arel/visitors/sqlite.rb#39 + # pkg:gem/activerecord#lib/arel/visitors/sqlite.rb:39 def infix_value_with_paren(o, collector, value, suppress_parens = T.unsafe(nil)); end - # source://activerecord//lib/arel/visitors/sqlite.rb#21 + # pkg:gem/activerecord#lib/arel/visitors/sqlite.rb:21 def visit_Arel_Nodes_False(o, collector); end - # source://activerecord//lib/arel/visitors/sqlite.rb#31 + # pkg:gem/activerecord#lib/arel/visitors/sqlite.rb:31 def visit_Arel_Nodes_IsDistinctFrom(o, collector); end - # source://activerecord//lib/arel/visitors/sqlite.rb#25 + # pkg:gem/activerecord#lib/arel/visitors/sqlite.rb:25 def visit_Arel_Nodes_IsNotDistinctFrom(o, collector); end # Locks are not supported in SQLite # - # source://activerecord//lib/arel/visitors/sqlite.rb#8 + # pkg:gem/activerecord#lib/arel/visitors/sqlite.rb:8 def visit_Arel_Nodes_Lock(o, collector); end - # source://activerecord//lib/arel/visitors/sqlite.rb#12 + # pkg:gem/activerecord#lib/arel/visitors/sqlite.rb:12 def visit_Arel_Nodes_SelectStatement(o, collector); end - # source://activerecord//lib/arel/visitors/sqlite.rb#17 + # pkg:gem/activerecord#lib/arel/visitors/sqlite.rb:17 def visit_Arel_Nodes_True(o, collector); end end -# source://activerecord//lib/arel/visitors/to_sql.rb#11 +# pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:11 class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor - # @return [ToSql] a new instance of ToSql - # - # source://activerecord//lib/arel/visitors/to_sql.rb#12 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:12 def initialize(connection); end - # source://activerecord//lib/arel/visitors/to_sql.rb#17 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:17 def compile(node, collector = T.unsafe(nil)); end private - # source://activerecord//lib/arel/visitors/to_sql.rb#998 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:998 def aggregate(name, o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#756 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:756 def bind_block; end # FIXME: we should probably have a 2-pass visitor for this # - # source://activerecord//lib/arel/visitors/to_sql.rb#945 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:945 def build_subselect(key, o); end - # source://activerecord//lib/arel/visitors/to_sql.rb#1025 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:1025 def collect_ctes(children, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#181 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:181 def collect_nodes_for(nodes, collector, spacer, connector = T.unsafe(nil)); end - # source://activerecord//lib/arel/visitors/to_sql.rb#889 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:889 def collect_optimizer_hints(o, collector); end # Used by some visitors to enclose select queries in parentheses # - # source://activerecord//lib/arel/visitors/to_sql.rb#983 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:983 def grouping_parentheses(o, collector, always_wrap_selects = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#919 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:919 def has_group_by_and_having?(o); end - # @return [Boolean] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#911 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:911 def has_join_sources?(o); end - # @return [Boolean] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#915 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:915 def has_limit_or_offset_or_orders?(o); end - # source://activerecord//lib/arel/visitors/to_sql.rb#959 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:959 def infix_value(o, collector, value); end - # source://activerecord//lib/arel/visitors/to_sql.rb#965 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:965 def infix_value_with_paren(o, collector, value, suppress_parens = T.unsafe(nil)); end - # source://activerecord//lib/arel/visitors/to_sql.rb#899 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:899 def inject_join(list, collector, join_str); end - # source://activerecord//lib/arel/visitors/to_sql.rb#1012 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:1012 def is_distinct_from(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#893 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:893 def maybe_visit(thing, collector); end - # The default strategy for an UPDATE with joins is to use a subquery. This doesn't work - # on MySQL (even when aliasing the tables), but MySQL allows using JOIN directly in - # an UPDATE statement, so in the MySQL visitor we redefine this to do that. - # - # source://activerecord//lib/arel/visitors/to_sql.rb#926 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:942 def prepare_delete_statement(o); end # The default strategy for an UPDATE with joins is to use a subquery. This doesn't work # on MySQL (even when aliasing the tables), but MySQL allows using JOIN directly in # an UPDATE statement, so in the MySQL visitor we redefine this to do that. # - # source://activerecord//lib/arel/visitors/to_sql.rb#926 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:926 def prepare_update_statement(o); end - # source://activerecord//lib/arel/visitors/to_sql.rb#869 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:869 def quote(value); end - # source://activerecord//lib/arel/visitors/to_sql.rb#879 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:879 def quote_column_name(name); end - # source://activerecord//lib/arel/visitors/to_sql.rb#874 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:874 def quote_table_name(name); end - # @return [Boolean] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#994 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:994 def require_parentheses?(o); end - # source://activerecord//lib/arel/visitors/to_sql.rb#884 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:884 def sanitize_as_sql_comment(value); end - # @return [Boolean] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#907 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:907 def unboundable?(value); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:830 def unsupported(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#758 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:758 def visit_ActiveModel_Attribute(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:834 def visit_ActiveSupport_Multibyte_Chars(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:835 def visit_ActiveSupport_StringInquirer(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#748 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:748 def visit_Arel_Attributes_Attribute(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#624 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:624 def visit_Arel_Nodes_And(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#695 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:695 def visit_Arel_Nodes_As(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#365 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:365 def visit_Arel_Nodes_Ascending(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#632 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:632 def visit_Arel_Nodes_Assignment(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#423 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:423 def visit_Arel_Nodes_Avg(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#433 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:433 def visit_Arel_Nodes_Between(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#188 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:188 def visit_Arel_Nodes_Bin(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#762 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:762 def visit_Arel_Nodes_BindParam(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#772 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:772 def visit_Arel_Nodes_BoundSqlLiteral(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#701 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:701 def visit_Arel_Nodes_Case(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#89 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:89 def visit_Arel_Nodes_Casted(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#177 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:177 def visit_Arel_Nodes_Comment(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#407 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:407 def visit_Arel_Nodes_Count(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#734 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:734 def visit_Arel_Nodes_Cte(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#298 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:298 def visit_Arel_Nodes_CurrentRow(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#22 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:22 def visit_Arel_Nodes_DeleteStatement(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#369 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:369 def visit_Arel_Nodes_Descending(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#192 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:192 def visit_Arel_Nodes_Distinct(o, collector); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#196 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:196 def visit_Arel_Nodes_DistinctOn(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#499 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:499 def visit_Arel_Nodes_DoesNotMatch(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#725 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:725 def visit_Arel_Nodes_Else(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#645 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:645 def visit_Arel_Nodes_Equality(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#223 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:223 def visit_Arel_Nodes_Except(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#78 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:78 def visit_Arel_Nodes_Exists(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#402 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:402 def visit_Arel_Nodes_Extract(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#98 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:98 def visit_Arel_Nodes_False(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#253 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:253 def visit_Arel_Nodes_Filter(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#288 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:288 def visit_Arel_Nodes_Following(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#865 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:865 def visit_Arel_Nodes_Fragments(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#534 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:534 def visit_Arel_Nodes_FullOuterJoin(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#451 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:451 def visit_Arel_Nodes_GreaterThan(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#439 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:439 def visit_Arel_Nodes_GreaterThanOrEqual(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#384 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:384 def visit_Arel_Nodes_Group(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#329 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:329 def visit_Arel_Nodes_Grouping(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#338 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:338 def visit_Arel_Nodes_HomogeneousIn(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#590 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:590 def visit_Arel_Nodes_In(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#849 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:849 def visit_Arel_Nodes_InfixOperation(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#555 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:555 def visit_Arel_Nodes_InnerJoin(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#55 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:55 def visit_Arel_Nodes_InsertStatement(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#218 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:218 def visit_Arel_Nodes_Intersect(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#670 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:670 def visit_Arel_Nodes_IsDistinctFrom(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#660 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:660 def visit_Arel_Nodes_IsNotDistinctFrom(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#511 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:511 def visit_Arel_Nodes_JoinSource(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#475 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:475 def visit_Arel_Nodes_LessThan(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#463 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:463 def visit_Arel_Nodes_LessThanOrEqual(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#320 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:320 def visit_Arel_Nodes_Limit(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#325 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:325 def visit_Arel_Nodes_Lock(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#487 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:487 def visit_Arel_Nodes_Matches(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#415 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:415 def visit_Arel_Nodes_Max(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#419 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:419 def visit_Arel_Nodes_Min(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#388 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:388 def visit_Arel_Nodes_NamedFunction(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#228 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:228 def visit_Arel_Nodes_NamedWindow(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#571 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:571 def visit_Arel_Nodes_Not(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#680 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:680 def visit_Arel_Nodes_NotEqual(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#607 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:607 def visit_Arel_Nodes_NotIn(o, collector); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#526 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:526 def visit_Arel_Nodes_NotRegexp(o, collector); end # NullsFirst is available on all but MySQL, where it is redefined. # - # source://activerecord//lib/arel/visitors/to_sql.rb#374 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:374 def visit_Arel_Nodes_NullsFirst(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#379 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:379 def visit_Arel_Nodes_NullsLast(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#315 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:315 def visit_Arel_Nodes_Offset(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#566 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:566 def visit_Arel_Nodes_On(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#172 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:172 def visit_Arel_Nodes_OptimizerHints(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#628 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:628 def visit_Arel_Nodes_Or(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#541 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:541 def visit_Arel_Nodes_OuterJoin(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#302 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:302 def visit_Arel_Nodes_Over(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#278 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:278 def visit_Arel_Nodes_Preceding(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#89 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:92 def visit_Arel_Nodes_Quoted(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#269 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:269 def visit_Arel_Nodes_Range(o, collector); end - # @raise [NotImplementedError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#522 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:522 def visit_Arel_Nodes_Regexp(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#548 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:548 def visit_Arel_Nodes_RightOuterJoin(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#260 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:260 def visit_Arel_Nodes_Rows(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#151 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:151 def visit_Arel_Nodes_SelectCore(o, collector); end # The Oracle enhanced adapter uses this private method, # see https://github.com/rsim/oracle-enhanced/issues/2186 # - # source://activerecord//lib/arel/visitors/to_sql.rb#145 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:145 def visit_Arel_Nodes_SelectOptions(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#122 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:122 def visit_Arel_Nodes_SelectStatement(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#766 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:766 def visit_Arel_Nodes_SqlLiteral(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#530 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:530 def visit_Arel_Nodes_StringJoin(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#411 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:411 def visit_Arel_Nodes_Sum(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#427 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:427 def visit_Arel_Nodes_TableAlias(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#94 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:94 def visit_Arel_Nodes_True(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#855 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:855 def visit_Arel_Nodes_UnaryOperation(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#210 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:210 def visit_Arel_Nodes_Union(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#214 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:214 def visit_Arel_Nodes_UnionAll(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#730 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:730 def visit_Arel_Nodes_UnqualifiedColumn(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#41 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:41 def visit_Arel_Nodes_UpdateStatement(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#102 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:102 def visit_Arel_Nodes_ValuesList(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#718 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:718 def visit_Arel_Nodes_When(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#234 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:234 def visit_Arel_Nodes_Window(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#200 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:200 def visit_Arel_Nodes_With(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#205 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:205 def visit_Arel_Nodes_WithRecursive(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#360 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:360 def visit_Arel_SelectManager(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#576 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:576 def visit_Arel_Table(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#860 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:860 def visit_Array(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:836 def visit_BigDecimal(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:837 def visit_Class(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:838 def visit_Date(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:839 def visit_DateTime(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:840 def visit_FalseClass(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:841 def visit_Float(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:842 def visit_Hash(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#826 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:826 def visit_Integer(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:843 def visit_NilClass(o, collector); end - # source://activerecord//lib/arel/visitors/to_sql.rb#860 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:863 def visit_Set(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:844 def visit_String(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:845 def visit_Symbol(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:846 def visit_Time(o, collector); end - # @raise [UnsupportedVisitError] - # - # source://activerecord//lib/arel/visitors/to_sql.rb#830 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:847 def visit_TrueClass(o, collector); end end -# source://activerecord//lib/arel/visitors/to_sql.rb#753 +# pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:753 Arel::Visitors::ToSql::BIND_BLOCK = T.let(T.unsafe(nil), Proc) -# source://activerecord//lib/arel/visitors/to_sql.rb#5 +# pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:5 class Arel::Visitors::UnsupportedVisitError < ::StandardError - # @return [UnsupportedVisitError] a new instance of UnsupportedVisitError - # - # source://activerecord//lib/arel/visitors/to_sql.rb#6 + # pkg:gem/activerecord#lib/arel/visitors/to_sql.rb:6 def initialize(object); end end -# source://activerecord//lib/arel/visitors/visitor.rb#5 +# pkg:gem/activerecord#lib/arel/visitors/visitor.rb:5 class Arel::Visitors::Visitor - # @return [Visitor] a new instance of Visitor - # - # source://activerecord//lib/arel/visitors/visitor.rb#6 + # pkg:gem/activerecord#lib/arel/visitors/visitor.rb:6 def initialize; end - # source://activerecord//lib/arel/visitors/visitor.rb#10 + # pkg:gem/activerecord#lib/arel/visitors/visitor.rb:10 def accept(object, collector = T.unsafe(nil)); end private - # Returns the value of attribute dispatch. - # - # source://activerecord//lib/arel/visitors/visitor.rb#15 + # pkg:gem/activerecord#lib/arel/visitors/visitor.rb:15 def dispatch; end - # source://activerecord//lib/arel/visitors/visitor.rb#23 + # pkg:gem/activerecord#lib/arel/visitors/visitor.rb:23 def get_dispatch_cache; end - # source://activerecord//lib/arel/visitors/visitor.rb#27 + # pkg:gem/activerecord#lib/arel/visitors/visitor.rb:27 def visit(object, collector = T.unsafe(nil)); end class << self - # source://activerecord//lib/arel/visitors/visitor.rb#17 + # pkg:gem/activerecord#lib/arel/visitors/visitor.rb:17 def dispatch_cache; end end end -# source://activerecord//lib/arel/window_predications.rb#4 +# pkg:gem/activerecord#lib/arel/window_predications.rb:4 module Arel::WindowPredications - # source://activerecord//lib/arel/window_predications.rb#5 + # pkg:gem/activerecord#lib/arel/window_predications.rb:5 def over(expr = T.unsafe(nil)); end end diff --git a/sorbet/rbi/gems/activestorage@8.0.5.1.rbi b/sorbet/rbi/gems/activestorage@8.0.5.1.rbi deleted file mode 100644 index abcb59a5..00000000 --- a/sorbet/rbi/gems/activestorage@8.0.5.1.rbi +++ /dev/null @@ -1,3880 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `activestorage` gem. -# Please instead update this file by running `bin/tapioca gem activestorage`. - - -class ActiveRecord::Base - include ::ActiveModel::ForbiddenAttributesProtection - include ::ActiveModel::AttributeAssignment - include ::ActiveModel::Access - include ::ActiveModel::Serialization - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _before_commit_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _commit_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _create_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _destroy_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _find_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _initialize_callbacks; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#11 - def _reflections; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#11 - def _reflections?; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _rollback_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_before_commit_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_commit_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_create_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_destroy_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_find_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_initialize_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_rollback_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_save_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_touch_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_update_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_validate_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#912 - def _run_validation_callbacks(&block); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _save_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _touch_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _update_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _validate_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#924 - def _validation_callbacks; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators?; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#12 - def aggregate_reflections; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#12 - def aggregate_reflections?; end - - # source://activestorage//lib/active_storage/reflection.rb#53 - def attachment_reflections; end - - # source://activestorage//lib/active_storage/reflection.rb#53 - def attachment_reflections?; end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 - def attribute_aliases; end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 - def attribute_aliases?; end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns; end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns?; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#13 - def automatic_scope_inversing; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#13 - def automatic_scope_inversing?; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations?; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#16 - def cache_timestamp_format; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#16 - def cache_timestamp_format?; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#24 - def cache_versioning; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#24 - def cache_versioning?; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#32 - def collection_cache_versioning; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#32 - def collection_cache_versioning?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#183 - def column_for_attribute(name, &_arg1); end - - # source://activerecord/8.0.5.1/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names; end - - # source://activerecord/8.0.5.1/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#98 - def default_connection_handler; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#98 - def default_connection_handler?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#100 - def default_role; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#100 - def default_role?; end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/default.rb#20 - def default_scope_override; end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/default.rb#19 - def default_scopes; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#102 - def default_shard; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#102 - def default_shard?; end - - # source://activerecord/8.0.5.1/lib/active_record/enum.rb#168 - def defined_enums; end - - # source://activerecord/8.0.5.1/lib/active_record/enum.rb#168 - def defined_enums?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#47 - def destroy_association_async_batch_size; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#37 - def destroy_association_async_job(&_arg0); end - - # source://activerecord/8.0.5.1/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes=(_arg0); end - - # source://activerecord/8.0.5.1/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes?; end - - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json; end - - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json?; end - - # source://activerecord/8.0.5.1/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically; end - - # source://activerecord/8.0.5.1/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#22 - def logger; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#22 - def logger?; end - - # source://activemodel/8.0.5.1/lib/active_model/naming.rb#255 - def model_name(&_arg0); end - - # source://activerecord/8.0.5.1/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options; end - - # source://activerecord/8.0.5.1/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options?; end - - # source://activerecord/8.0.5.1/lib/active_record/normalization.rb#8 - def normalized_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/normalization.rb#8 - def normalized_attributes=(_arg0); end - - # source://activerecord/8.0.5.1/lib/active_record/normalization.rb#8 - def normalized_attributes?; end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter=(_arg0); end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#168 - def pluralize_table_names; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#168 - def pluralize_table_names?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type?; end - - # source://activerecord/8.0.5.1/lib/active_record/timestamp.rb#47 - def record_timestamps; end - - # source://activerecord/8.0.5.1/lib/active_record/timestamp.rb#47 - def record_timestamps=(_arg0); end - - # source://activerecord/8.0.5.1/lib/active_record/timestamp.rb#47 - def record_timestamps?; end - - # source://activerecord/8.0.5.1/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret; end - - # source://activerecord/8.0.5.1/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes?; end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#43 - def store_full_class_name; end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#43 - def store_full_class_name?; end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#47 - def store_full_sti_class; end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#47 - def store_full_sti_class?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#164 - def table_name_prefix; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#164 - def table_name_prefix?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#165 - def table_name_suffix; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#165 - def table_name_suffix?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#183 - def type_for_attribute(*_arg0, **_arg1, &_arg2); end - - class << self - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#69 - def __callbacks=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/readonly_attributes.rb#11 - def _attr_readonly; end - - # source://activerecord/8.0.5.1/lib/active_record/readonly_attributes.rb#11 - def _attr_readonly=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/readonly_attributes.rb#11 - def _attr_readonly?; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _before_commit_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _before_commit_callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _commit_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _commit_callbacks=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/counter_cache.rb#9 - def _counter_cache_columns; end - - # source://activerecord/8.0.5.1/lib/active_record/counter_cache.rb#9 - def _counter_cache_columns=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/counter_cache.rb#9 - def _counter_cache_columns?; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _create_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _create_callbacks=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#24 - def _destroy_association_async_job; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#24 - def _destroy_association_async_job=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#24 - def _destroy_association_async_job?; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _destroy_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _destroy_callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _find_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _find_callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _initialize_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _initialize_callbacks=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#11 - def _reflections; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#11 - def _reflections=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#11 - def _reflections?; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _rollback_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _rollback_callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _save_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _save_callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _touch_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _touch_callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _update_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _update_callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _validate_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _validate_callbacks=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#916 - def _validation_callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/callbacks.rb#920 - def _validation_callbacks=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators; end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/validations.rb#50 - def _validators?; end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 - def after_create(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 - def after_destroy(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 - def after_find(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 - def after_initialize(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 - def after_save(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 - def after_touch(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#144 - def after_update(*args, **options, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#12 - def aggregate_reflections; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#12 - def aggregate_reflections=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#12 - def aggregate_reflections?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#121 - def application_record_class?; end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#137 - def around_create(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#137 - def around_destroy(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#137 - def around_save(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#137 - def around_update(*args, **options, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#141 - def asynchronous_queries_session; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#145 - def asynchronous_queries_tracker; end - - # source://activestorage//lib/active_storage/reflection.rb#53 - def attachment_reflections; end - - # source://activestorage//lib/active_storage/reflection.rb#53 - def attachment_reflections=(value); end - - # source://activestorage//lib/active_storage/reflection.rb#53 - def attachment_reflections?; end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 - def attribute_aliases; end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 - def attribute_aliases=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#71 - def attribute_aliases?; end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns; end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/attribute_methods.rb#72 - def attribute_method_patterns?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#119 - def attributes_for_inspect; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#119 - def attributes_for_inspect=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#119 - def attributes_for_inspect?; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#13 - def automatic_scope_inversing; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#13 - def automatic_scope_inversing=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#13 - def automatic_scope_inversing?; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations; end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/reflection.rb#14 - def automatically_invert_plural_associations?; end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#130 - def before_create(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#130 - def before_destroy(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#130 - def before_save(*args, **options, &block); end - - # source://activemodel/8.0.5.1/lib/active_model/callbacks.rb#130 - def before_update(*args, **options, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#89 - def belongs_to_required_by_default; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#89 - def belongs_to_required_by_default=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#89 - def belongs_to_required_by_default?; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#16 - def cache_timestamp_format; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#16 - def cache_timestamp_format=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#16 - def cache_timestamp_format?; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#24 - def cache_versioning; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#24 - def cache_versioning=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#24 - def cache_versioning?; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#32 - def collection_cache_versioning; end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#32 - def collection_cache_versioning=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/integration.rb#32 - def collection_cache_versioning?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#77 - def configurations; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#71 - def configurations=(config); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#216 - def connected_to_stack; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#230 - def connection_class; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#226 - def connection_class=(b); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#234 - def connection_class?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#238 - def connection_class_for_self; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#133 - def connection_handler; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#137 - def connection_handler=(handler); end - - # source://activerecord/8.0.5.1/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names; end - - # source://activerecord/8.0.5.1/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/counter_cache.rb#10 - def counter_cached_association_names?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#196 - def current_preventing_writes; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#159 - def current_role; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#177 - def current_shard; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/serialization.rb#20 - def default_column_serializer; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/serialization.rb#20 - def default_column_serializer=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/serialization.rb#20 - def default_column_serializer?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#98 - def default_connection_handler; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#98 - def default_connection_handler=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#98 - def default_connection_handler?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#100 - def default_role; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#100 - def default_role=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#100 - def default_role?; end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/default.rb#20 - def default_scope_override; end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/default.rb#20 - def default_scope_override=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/default.rb#19 - def default_scopes; end - - # source://activerecord/8.0.5.1/lib/active_record/scoping/default.rb#19 - def default_scopes=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#102 - def default_shard; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#102 - def default_shard=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#102 - def default_shard?; end - - # source://activerecord/8.0.5.1/lib/active_record/enum.rb#168 - def defined_enums; end - - # source://activerecord/8.0.5.1/lib/active_record/enum.rb#168 - def defined_enums=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/enum.rb#168 - def defined_enums?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#47 - def destroy_association_async_batch_size; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#47 - def destroy_association_async_batch_size=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#27 - def destroy_association_async_job; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#24 - def destroy_association_async_job=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/encryption/encryptable_record.rb#11 - def encrypted_attributes?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#87 - def enumerate_columns_in_select_statements; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#87 - def enumerate_columns_in_select_statements=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#87 - def enumerate_columns_in_select_statements?; end - - # source://activerecord/8.0.5.1/lib/active_record/token_for.rb#11 - def generated_token_verifier; end - - # source://activerecord/8.0.5.1/lib/active_record/token_for.rb#11 - def generated_token_verifier=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#94 - def has_many_inversing; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#94 - def has_many_inversing=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#94 - def has_many_inversing?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#170 - def immutable_strings_by_default; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#170 - def immutable_strings_by_default=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#170 - def immutable_strings_by_default?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#169 - def implicit_order_column; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#169 - def implicit_order_column=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#169 - def implicit_order_column?; end - - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json; end - - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/serializers/json.rb#15 - def include_root_in_json?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#172 - def inheritance_column; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#325 - def inheritance_column=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#172 - def inheritance_column?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#167 - def internal_metadata_table_name; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#167 - def internal_metadata_table_name=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#167 - def internal_metadata_table_name?; end - - # source://activerecord/8.0.5.1/lib/active_record/store.rb#101 - def local_stored_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/store.rb#101 - def local_stored_attributes=(_arg0); end - - # source://activerecord/8.0.5.1/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically; end - - # source://activerecord/8.0.5.1/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/locking/optimistic.rb#56 - def lock_optimistically?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#22 - def logger; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#22 - def logger=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#22 - def logger?; end - - # source://activerecord/8.0.5.1/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options; end - - # source://activerecord/8.0.5.1/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/nested_attributes.rb#15 - def nested_attributes_options?; end - - # source://activerecord/8.0.5.1/lib/active_record/normalization.rb#8 - def normalized_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/normalization.rb#8 - def normalized_attributes=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/normalization.rb#8 - def normalized_attributes?; end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter; end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter=(value); end - - # source://activemodel/8.0.5.1/lib/active_model/conversion.rb#32 - def param_delimiter?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#50 - def partial_inserts?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/dirty.rb#49 - def partial_updates?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#168 - def pluralize_table_names; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#168 - def pluralize_table_names=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#168 - def pluralize_table_names?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#207 - def preventing_writes?(class_name); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#163 - def primary_key_prefix_type?; end - - # source://activerecord/8.0.5.1/lib/active_record/timestamp.rb#47 - def record_timestamps; end - - # source://activerecord/8.0.5.1/lib/active_record/timestamp.rb#47 - def record_timestamps=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/timestamp.rb#47 - def record_timestamps?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#96 - def run_commit_callbacks_on_first_saved_instances_in_transaction; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#96 - def run_commit_callbacks_on_first_saved_instances_in_transaction=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#96 - def run_commit_callbacks_on_first_saved_instances_in_transaction?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#166 - def schema_migrations_table_name; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#166 - def schema_migrations_table_name=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#166 - def schema_migrations_table_name?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#104 - def shard_selector; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#104 - def shard_selector=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#104 - def shard_selector?; end - - # source://activerecord/8.0.5.1/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret; end - - # source://activerecord/8.0.5.1/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/signed_id.rb#13 - def signed_id_verifier_secret?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#61 - def skip_time_zone_conversion_for_attributes?; end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#43 - def store_full_class_name; end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#43 - def store_full_class_name=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#43 - def store_full_class_name?; end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#47 - def store_full_sti_class; end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#47 - def store_full_sti_class=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/inheritance.rb#47 - def store_full_sti_class?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#91 - def strict_loading_by_default; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#91 - def strict_loading_by_default=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#91 - def strict_loading_by_default?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#92 - def strict_loading_mode; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#92 - def strict_loading_mode=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#92 - def strict_loading_mode?; end - - # source://activerecord/8.0.5.1/lib/active_record/core.rb#253 - def strict_loading_violation!(owner:, reflection:); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#164 - def table_name_prefix; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#164 - def table_name_prefix=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#164 - def table_name_prefix?; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#165 - def table_name_suffix; end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#165 - def table_name_suffix=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#165 - def table_name_suffix?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#60 - def time_zone_aware_attributes?; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types; end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/attribute_methods/time_zone_conversion.rb#62 - def time_zone_aware_types?; end - - # source://activerecord/8.0.5.1/lib/active_record/token_for.rb#10 - def token_definitions; end - - # source://activerecord/8.0.5.1/lib/active_record/token_for.rb#10 - def token_definitions=(value); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__attr_readonly; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__attr_readonly=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__counter_cache_columns; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__counter_cache_columns=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__destroy_association_async_job; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__destroy_association_async_job=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_aggregate_reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_aggregate_reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_attachment_reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_attachment_reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_attribute_aliases; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_attribute_aliases=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_attribute_method_patterns; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_attribute_method_patterns=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_attributes_for_inspect; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_attributes_for_inspect=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_automatic_scope_inversing; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_automatic_scope_inversing=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_automatically_invert_plural_associations; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_automatically_invert_plural_associations=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_belongs_to_required_by_default; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_belongs_to_required_by_default=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_cache_timestamp_format; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_cache_timestamp_format=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_cache_versioning; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_cache_versioning=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_collection_cache_versioning; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_collection_cache_versioning=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_counter_cached_association_names; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_counter_cached_association_names=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_column_serializer; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_column_serializer=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_connection_handler; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_connection_handler=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_role; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_role=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_scope_override; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_scope_override=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_scopes; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_scopes=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_default_shard; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_default_shard=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_destroy_association_async_batch_size; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_destroy_association_async_batch_size=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_encrypted_attributes; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_encrypted_attributes=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_enumerate_columns_in_select_statements; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_enumerate_columns_in_select_statements=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_generated_token_verifier; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_generated_token_verifier=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_has_many_inversing; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_has_many_inversing=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_immutable_strings_by_default; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_immutable_strings_by_default=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_implicit_order_column; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_implicit_order_column=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_include_root_in_json; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_include_root_in_json=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_inheritance_column; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_inheritance_column=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_internal_metadata_table_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_internal_metadata_table_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_lock_optimistically; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_lock_optimistically=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_logger; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_logger=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_nested_attributes_options; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_nested_attributes_options=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_normalized_attributes; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_normalized_attributes=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_param_delimiter; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_param_delimiter=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_partial_inserts; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_partial_inserts=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_partial_updates; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_partial_updates=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_pluralize_table_names; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_pluralize_table_names=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_primary_key_prefix_type; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_primary_key_prefix_type=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_record_timestamps; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_record_timestamps=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_run_commit_callbacks_on_first_saved_instances_in_transaction; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_run_commit_callbacks_on_first_saved_instances_in_transaction=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_schema_migrations_table_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_schema_migrations_table_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_shard_selector; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_shard_selector=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_signed_id_verifier_secret; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_signed_id_verifier_secret=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_skip_time_zone_conversion_for_attributes; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_skip_time_zone_conversion_for_attributes=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_store_full_class_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_store_full_class_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_store_full_sti_class; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_store_full_sti_class=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_strict_loading_by_default; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_strict_loading_by_default=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_strict_loading_mode; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_strict_loading_mode=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_table_name_prefix; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_table_name_prefix=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_table_name_suffix; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_table_name_suffix=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_time_zone_aware_attributes; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_time_zone_aware_attributes=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_time_zone_aware_types; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_time_zone_aware_types=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_token_definitions; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_token_definitions=(new_value); end - - # source://activerecord/8.0.5.1/lib/active_record/model_schema.rb#172 - def _inheritance_column=(value); end - end -end - -# :markup: markdown -# :include: ../README.md -# -# source://activestorage//lib/active_storage/gem_version.rb#3 -module ActiveStorage - extend ::ActiveSupport::Autoload - - # source://activestorage//lib/active_storage.rb#56 - def analyzers; end - - # source://activestorage//lib/active_storage.rb#56 - def analyzers=(val); end - - # source://activestorage//lib/active_storage.rb#62 - def binary_content_type; end - - # source://activestorage//lib/active_storage.rb#62 - def binary_content_type=(val); end - - # source://activestorage//lib/active_storage.rb#64 - def content_types_allowed_inline; end - - # source://activestorage//lib/active_storage.rb#64 - def content_types_allowed_inline=(val); end - - # source://activestorage//lib/active_storage.rb#63 - def content_types_to_serve_as_binary; end - - # source://activestorage//lib/active_storage.rb#63 - def content_types_to_serve_as_binary=(val); end - - # source://activestorage//lib/active_storage.rb#360 - def draw_routes; end - - # source://activestorage//lib/active_storage.rb#360 - def draw_routes=(val); end - - # source://activestorage//lib/active_storage.rb#49 - def logger; end - - # source://activestorage//lib/active_storage.rb#49 - def logger=(val); end - - # source://activestorage//lib/active_storage.rb#58 - def paths; end - - # source://activestorage//lib/active_storage.rb#58 - def paths=(val); end - - # source://activestorage//lib/active_storage.rb#55 - def previewers; end - - # source://activestorage//lib/active_storage.rb#55 - def previewers=(val); end - - # source://activestorage//lib/active_storage.rb#53 - def queues; end - - # source://activestorage//lib/active_storage.rb#53 - def queues=(val); end - - # source://activestorage//lib/active_storage.rb#361 - def resolve_model_to_route; end - - # source://activestorage//lib/active_storage.rb#361 - def resolve_model_to_route=(val); end - - # source://activestorage//lib/active_storage.rb#359 - def routes_prefix; end - - # source://activestorage//lib/active_storage.rb#359 - def routes_prefix=(val); end - - # source://activestorage//lib/active_storage.rb#355 - def service_urls_expire_in; end - - # source://activestorage//lib/active_storage.rb#355 - def service_urls_expire_in=(val); end - - # source://activestorage//lib/active_storage.rb#354 - def streaming_chunk_max_size; end - - # source://activestorage//lib/active_storage.rb#354 - def streaming_chunk_max_size=(val); end - - # source://activestorage//lib/active_storage.rb#66 - def supported_image_processing_methods; end - - # source://activestorage//lib/active_storage.rb#66 - def supported_image_processing_methods=(val); end - - # source://activestorage//lib/active_storage.rb#356 - def touch_attachment_records; end - - # source://activestorage//lib/active_storage.rb#356 - def touch_attachment_records=(val); end - - # source://activestorage//lib/active_storage.rb#363 - def track_variants; end - - # source://activestorage//lib/active_storage.rb#363 - def track_variants=(val); end - - # source://activestorage//lib/active_storage.rb#352 - def unsupported_image_processing_arguments; end - - # source://activestorage//lib/active_storage.rb#352 - def unsupported_image_processing_arguments=(val); end - - # source://activestorage//lib/active_storage.rb#357 - def urls_expire_in; end - - # source://activestorage//lib/active_storage.rb#357 - def urls_expire_in=(val); end - - # source://activestorage//lib/active_storage.rb#60 - def variable_content_types; end - - # source://activestorage//lib/active_storage.rb#60 - def variable_content_types=(val); end - - # source://activestorage//lib/active_storage.rb#51 - def variant_processor; end - - # source://activestorage//lib/active_storage.rb#51 - def variant_processor=(val); end - - # source://activestorage//lib/active_storage.rb#50 - def verifier; end - - # source://activestorage//lib/active_storage.rb#50 - def verifier=(val); end - - # source://activestorage//lib/active_storage.rb#377 - def video_preview_arguments; end - - # source://activestorage//lib/active_storage.rb#377 - def video_preview_arguments=(val); end - - # source://activestorage//lib/active_storage.rb#61 - def web_image_content_types; end - - # source://activestorage//lib/active_storage.rb#61 - def web_image_content_types=(val); end - - class << self - # source://activestorage//lib/active_storage.rb#56 - def analyzers; end - - # source://activestorage//lib/active_storage.rb#56 - def analyzers=(val); end - - # source://activestorage//lib/active_storage.rb#62 - def binary_content_type; end - - # source://activestorage//lib/active_storage.rb#62 - def binary_content_type=(val); end - - # source://activestorage//lib/active_storage.rb#365 - def checksum_implementation; end - - # source://activestorage//lib/active_storage.rb#365 - def checksum_implementation=(_arg0); end - - # source://activestorage//lib/active_storage.rb#64 - def content_types_allowed_inline; end - - # source://activestorage//lib/active_storage.rb#64 - def content_types_allowed_inline=(val); end - - # source://activestorage//lib/active_storage.rb#63 - def content_types_to_serve_as_binary; end - - # source://activestorage//lib/active_storage.rb#63 - def content_types_to_serve_as_binary=(val); end - - # source://activestorage//lib/active_storage/deprecator.rb#4 - def deprecator; end - - # source://activestorage//lib/active_storage.rb#360 - def draw_routes; end - - # source://activestorage//lib/active_storage.rb#360 - def draw_routes=(val); end - - # Returns the currently loaded version of Active Storage as a +Gem::Version+. - # - # source://activestorage//lib/active_storage/gem_version.rb#5 - def gem_version; end - - # source://activestorage//lib/active_storage.rb#49 - def logger; end - - # source://activestorage//lib/active_storage.rb#49 - def logger=(val); end - - # source://activestorage//lib/active_storage.rb#58 - def paths; end - - # source://activestorage//lib/active_storage.rb#58 - def paths=(val); end - - # source://activestorage//lib/active_storage.rb#55 - def previewers; end - - # source://activestorage//lib/active_storage.rb#55 - def previewers=(val); end - - # source://activestorage//lib/active_storage.rb#53 - def queues; end - - # source://activestorage//lib/active_storage.rb#53 - def queues=(val); end - - # source://railties/8.0.5.1/lib/rails/engine.rb#413 - def railtie_helpers_paths; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#396 - def railtie_namespace; end - - # source://railties/8.0.5.1/lib/rails/engine.rb#417 - def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - - # source://activestorage//lib/active_storage.rb#361 - def resolve_model_to_route; end - - # source://activestorage//lib/active_storage.rb#361 - def resolve_model_to_route=(val); end - - # source://activestorage//lib/active_storage.rb#359 - def routes_prefix; end - - # source://activestorage//lib/active_storage.rb#359 - def routes_prefix=(val); end - - # source://activestorage//lib/active_storage.rb#355 - def service_urls_expire_in; end - - # source://activestorage//lib/active_storage.rb#355 - def service_urls_expire_in=(val); end - - # source://activestorage//lib/active_storage.rb#354 - def streaming_chunk_max_size; end - - # source://activestorage//lib/active_storage.rb#354 - def streaming_chunk_max_size=(val); end - - # source://activestorage//lib/active_storage.rb#374 - def streaming_max_ranges; end - - # source://activestorage//lib/active_storage.rb#374 - def streaming_max_ranges=(_arg0); end - - # source://activestorage//lib/active_storage.rb#66 - def supported_image_processing_methods; end - - # source://activestorage//lib/active_storage.rb#66 - def supported_image_processing_methods=(val); end - - # source://railties/8.0.5.1/lib/rails/engine.rb#402 - def table_name_prefix; end - - # source://activestorage//lib/active_storage.rb#356 - def touch_attachment_records; end - - # source://activestorage//lib/active_storage.rb#356 - def touch_attachment_records=(val); end - - # source://activestorage//lib/active_storage.rb#363 - def track_variants; end - - # source://activestorage//lib/active_storage.rb#363 - def track_variants=(val); end - - # source://activestorage//lib/active_storage.rb#352 - def unsupported_image_processing_arguments; end - - # source://activestorage//lib/active_storage.rb#352 - def unsupported_image_processing_arguments=(val); end - - # source://activestorage//lib/active_storage.rb#357 - def urls_expire_in; end - - # source://activestorage//lib/active_storage.rb#357 - def urls_expire_in=(val); end - - # source://railties/8.0.5.1/lib/rails/engine.rb#409 - def use_relative_model_naming?; end - - # source://activestorage//lib/active_storage.rb#60 - def variable_content_types; end - - # source://activestorage//lib/active_storage.rb#60 - def variable_content_types=(val); end - - # source://activestorage//lib/active_storage.rb#51 - def variant_processor; end - - # source://activestorage//lib/active_storage.rb#51 - def variant_processor=(val); end - - # source://activestorage//lib/active_storage.rb#50 - def verifier; end - - # source://activestorage//lib/active_storage.rb#50 - def verifier=(val); end - - # Returns the currently loaded version of Active Storage as a +Gem::Version+. - # - # source://activestorage//lib/active_storage/version.rb#7 - def version; end - - # source://activestorage//lib/active_storage.rb#377 - def video_preview_arguments; end - - # source://activestorage//lib/active_storage.rb#377 - def video_preview_arguments=(val); end - - # source://activestorage//lib/active_storage.rb#61 - def web_image_content_types; end - - # source://activestorage//lib/active_storage.rb#61 - def web_image_content_types=(val); end - end -end - -class ActiveStorage::AnalyzeJob < ::ActiveStorage::BaseJob - def perform(blob); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -# = Active Storage \Analyzer -# -# This is an abstract base class for analyzers, which extract metadata from blobs. See -# ActiveStorage::Analyzer::VideoAnalyzer for an example of a concrete subclass. -# -# source://activestorage//lib/active_storage/analyzer.rb#8 -class ActiveStorage::Analyzer - # @return [Analyzer] a new instance of Analyzer - # - # source://activestorage//lib/active_storage/analyzer.rb#23 - def initialize(blob); end - - # Returns the value of attribute blob. - # - # source://activestorage//lib/active_storage/analyzer.rb#9 - def blob; end - - # Override this method in a concrete subclass. Have it return a Hash of metadata. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/analyzer.rb#28 - def metadata; end - - private - - # Downloads the blob to a tempfile on disk. Yields the tempfile. - # - # source://activestorage//lib/active_storage/analyzer.rb#34 - def download_blob_to_tempfile(&block); end - - # source://activestorage//lib/active_storage/analyzer.rb#46 - def instrument(analyzer, &block); end - - # source://activestorage//lib/active_storage/analyzer.rb#38 - def logger; end - - # source://activestorage//lib/active_storage/analyzer.rb#42 - def tmpdir; end - - class << self - # Implement this method in a concrete subclass. Have it return true when given a blob from which - # the analyzer can extract metadata. - # - # @return [Boolean] - # - # source://activestorage//lib/active_storage/analyzer.rb#13 - def accept?(blob); end - - # Implement this method in concrete subclasses. It will determine if blob analysis - # should be done in a job or performed inline. By default, analysis is enqueued in a job. - # - # @return [Boolean] - # - # source://activestorage//lib/active_storage/analyzer.rb#19 - def analyze_later?; end - end -end - -# source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#14 -class ActiveStorage::Analyzer::AudioAnalyzer < ::ActiveStorage::Analyzer - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#19 - def metadata; end - - private - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#44 - def audio_stream; end - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#29 - def bit_rate; end - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#24 - def duration; end - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#73 - def ffprobe_path; end - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#52 - def probe; end - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#56 - def probe_from(file); end - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#34 - def sample_rate; end - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#48 - def streams; end - - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#39 - def tags; end - - class << self - # source://activestorage//lib/active_storage/analyzer/audio_analyzer.rb#15 - def accept?(blob); end - end -end - -# source://activestorage//lib/active_storage/analyzer/image_analyzer.rb#14 -class ActiveStorage::Analyzer::ImageAnalyzer < ::ActiveStorage::Analyzer - # source://activestorage//lib/active_storage/analyzer/image_analyzer.rb#19 - def metadata; end - - class << self - # source://activestorage//lib/active_storage/analyzer/image_analyzer.rb#15 - def accept?(blob); end - end -end - -# source://activestorage//lib/active_storage/analyzer/image_analyzer/image_magick.rb#6 -class ActiveStorage::Analyzer::ImageAnalyzer::ImageMagick < ::ActiveStorage::Analyzer::ImageAnalyzer - private - - # source://activestorage//lib/active_storage/analyzer/image_analyzer/image_magick.rb#12 - def read_image; end - - # source://activestorage//lib/active_storage/analyzer/image_analyzer/image_magick.rb#37 - def rotated_image?(image); end - - class << self - # source://activestorage//lib/active_storage/analyzer/image_analyzer/image_magick.rb#7 - def accept?(blob); end - end -end - -# source://activestorage//lib/active_storage/analyzer/image_analyzer/vips.rb#8 -class ActiveStorage::Analyzer::ImageAnalyzer::Vips < ::ActiveStorage::Analyzer::ImageAnalyzer - private - - # source://activestorage//lib/active_storage/analyzer/image_analyzer/vips.rb#14 - def read_image; end - - # source://activestorage//lib/active_storage/analyzer/image_analyzer/vips.rb#43 - def rotated_image?(image); end - - class << self - # source://activestorage//lib/active_storage/analyzer/image_analyzer/vips.rb#9 - def accept?(blob); end - end -end - -# source://activestorage//lib/active_storage/analyzer/image_analyzer/vips.rb#42 -ActiveStorage::Analyzer::ImageAnalyzer::Vips::ROTATIONS = T.let(T.unsafe(nil), Regexp) - -# source://activestorage//lib/active_storage/analyzer/null_analyzer.rb#4 -class ActiveStorage::Analyzer::NullAnalyzer < ::ActiveStorage::Analyzer - # source://activestorage//lib/active_storage/analyzer/null_analyzer.rb#13 - def metadata; end - - class << self - # source://activestorage//lib/active_storage/analyzer/null_analyzer.rb#5 - def accept?(blob); end - - # source://activestorage//lib/active_storage/analyzer/null_analyzer.rb#9 - def analyze_later?; end - end -end - -# source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#24 -class ActiveStorage::Analyzer::VideoAnalyzer < ::ActiveStorage::Analyzer - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#29 - def metadata; end - - private - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#55 - def angle; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#82 - def audio?; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#120 - def audio_stream; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#90 - def computed_height; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#128 - def container; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#67 - def display_aspect_ratio; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#104 - def display_height_scale; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#63 - def display_matrix; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#50 - def duration; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#100 - def encoded_height; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#96 - def encoded_width; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#153 - def ffprobe_path; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#42 - def height; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#132 - def probe; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#136 - def probe_from(file); end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#78 - def rotated?; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#112 - def side_data; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#124 - def streams; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#108 - def tags; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#86 - def video?; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#116 - def video_stream; end - - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#34 - def width; end - - class << self - # source://activestorage//lib/active_storage/analyzer/video_analyzer.rb#25 - def accept?(blob); end - end -end - -# = Active Storage \Attached -# -# Abstract base class for the concrete ActiveStorage::Attached::One and ActiveStorage::Attached::Many -# classes that both provide proxy access to the blob association for a record. -# -# source://activestorage//lib/active_storage/attached.rb#10 -class ActiveStorage::Attached - # @return [Attached] a new instance of Attached - # - # source://activestorage//lib/active_storage/attached.rb#13 - def initialize(name, record); end - - # Returns the value of attribute name. - # - # source://activestorage//lib/active_storage/attached.rb#11 - def name; end - - # Returns the value of attribute record. - # - # source://activestorage//lib/active_storage/attached.rb#11 - def record; end - - private - - # source://activestorage//lib/active_storage/attached.rb#18 - def change; end -end - -# source://activestorage//lib/active_storage/attached/changes.rb#4 -module ActiveStorage::Attached::Changes - extend ::ActiveSupport::Autoload -end - -# source://activestorage//lib/active_storage/attached/changes/create_many.rb#4 -class ActiveStorage::Attached::Changes::CreateMany - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#7 - def initialize(name, record, attachables, pending_uploads: T.unsafe(nil)); end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#5 - def attachables; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#14 - def attachments; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#18 - def blobs; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#5 - def name; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#5 - def pending_uploads; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#5 - def record; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#26 - def save; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#22 - def upload; end - - private - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#44 - def assign_associated_attachments; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#36 - def build_subchange_from(attachable); end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#52 - def persisted_or_new_attachments; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#48 - def reset_associated_blobs; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#32 - def subchanges; end - - # source://activestorage//lib/active_storage/attached/changes/create_many.rb#40 - def subchanges_without_blobs; end -end - -# source://activestorage//lib/active_storage/attached/changes/create_one.rb#7 -class ActiveStorage::Attached::Changes::CreateOne - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#10 - def initialize(name, record, attachable); end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#8 - def attachable; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#15 - def attachment; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#19 - def blob; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#8 - def name; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#8 - def record; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#48 - def save; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#23 - def upload; end - - private - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#120 - def attachment_service_name; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#64 - def build_attachment; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#58 - def find_attachment; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#54 - def find_or_build_attachment; end - - # source://activestorage//lib/active_storage/attached/changes/create_one.rb#68 - def find_or_build_blob; end -end - -# source://activestorage//lib/active_storage/attached/changes/create_one_of_many.rb#4 -class ActiveStorage::Attached::Changes::CreateOneOfMany < ::ActiveStorage::Attached::Changes::CreateOne - private - - # source://activestorage//lib/active_storage/attached/changes/create_one_of_many.rb#6 - def find_attachment; end -end - -# source://activestorage//lib/active_storage/attached/changes/delete_many.rb#4 -class ActiveStorage::Attached::Changes::DeleteMany - # source://activestorage//lib/active_storage/attached/changes/delete_many.rb#7 - def initialize(name, record); end - - # source://activestorage//lib/active_storage/attached/changes/delete_many.rb#11 - def attachables; end - - # source://activestorage//lib/active_storage/attached/changes/delete_many.rb#15 - def attachments; end - - # source://activestorage//lib/active_storage/attached/changes/delete_many.rb#19 - def blobs; end - - # source://activestorage//lib/active_storage/attached/changes/delete_many.rb#5 - def name; end - - # source://activestorage//lib/active_storage/attached/changes/delete_many.rb#5 - def record; end - - # source://activestorage//lib/active_storage/attached/changes/delete_many.rb#23 - def save; end -end - -# source://activestorage//lib/active_storage/attached/changes/delete_one.rb#4 -class ActiveStorage::Attached::Changes::DeleteOne - # source://activestorage//lib/active_storage/attached/changes/delete_one.rb#7 - def initialize(name, record); end - - # source://activestorage//lib/active_storage/attached/changes/delete_one.rb#11 - def attachment; end - - # source://activestorage//lib/active_storage/attached/changes/delete_one.rb#5 - def name; end - - # source://activestorage//lib/active_storage/attached/changes/delete_one.rb#5 - def record; end - - # source://activestorage//lib/active_storage/attached/changes/delete_one.rb#15 - def save; end -end - -# source://activestorage//lib/active_storage/attached/changes/detach_many.rb#4 -class ActiveStorage::Attached::Changes::DetachMany - # source://activestorage//lib/active_storage/attached/changes/detach_many.rb#7 - def initialize(name, record, attachments); end - - # source://activestorage//lib/active_storage/attached/changes/detach_many.rb#5 - def attachments; end - - # source://activestorage//lib/active_storage/attached/changes/detach_many.rb#11 - def detach; end - - # source://activestorage//lib/active_storage/attached/changes/detach_many.rb#5 - def name; end - - # source://activestorage//lib/active_storage/attached/changes/detach_many.rb#5 - def record; end -end - -# source://activestorage//lib/active_storage/attached/changes/detach_one.rb#4 -class ActiveStorage::Attached::Changes::DetachOne - # source://activestorage//lib/active_storage/attached/changes/detach_one.rb#7 - def initialize(name, record, attachment); end - - # source://activestorage//lib/active_storage/attached/changes/detach_one.rb#5 - def attachment; end - - # source://activestorage//lib/active_storage/attached/changes/detach_one.rb#11 - def detach; end - - # source://activestorage//lib/active_storage/attached/changes/detach_one.rb#5 - def name; end - - # source://activestorage//lib/active_storage/attached/changes/detach_one.rb#5 - def record; end - - private - - # source://activestorage//lib/active_storage/attached/changes/detach_one.rb#19 - def reset; end -end - -# source://activestorage//lib/active_storage/attached/changes/purge_many.rb#4 -class ActiveStorage::Attached::Changes::PurgeMany - # source://activestorage//lib/active_storage/attached/changes/purge_many.rb#7 - def initialize(name, record, attachments); end - - # source://activestorage//lib/active_storage/attached/changes/purge_many.rb#5 - def attachments; end - - # source://activestorage//lib/active_storage/attached/changes/purge_many.rb#5 - def name; end - - # source://activestorage//lib/active_storage/attached/changes/purge_many.rb#11 - def purge; end - - # source://activestorage//lib/active_storage/attached/changes/purge_many.rb#16 - def purge_later; end - - # source://activestorage//lib/active_storage/attached/changes/purge_many.rb#5 - def record; end - - private - - # source://activestorage//lib/active_storage/attached/changes/purge_many.rb#22 - def reset; end -end - -# source://activestorage//lib/active_storage/attached/changes/purge_one.rb#4 -class ActiveStorage::Attached::Changes::PurgeOne - # source://activestorage//lib/active_storage/attached/changes/purge_one.rb#7 - def initialize(name, record, attachment); end - - # source://activestorage//lib/active_storage/attached/changes/purge_one.rb#5 - def attachment; end - - # source://activestorage//lib/active_storage/attached/changes/purge_one.rb#5 - def name; end - - # source://activestorage//lib/active_storage/attached/changes/purge_one.rb#11 - def purge; end - - # source://activestorage//lib/active_storage/attached/changes/purge_one.rb#16 - def purge_later; end - - # source://activestorage//lib/active_storage/attached/changes/purge_one.rb#5 - def record; end - - private - - # source://activestorage//lib/active_storage/attached/changes/purge_one.rb#22 - def reset; end -end - -# source://activestorage//lib/active_storage/attached/many.rb#7 -class ActiveStorage::Attached::Many < ::ActiveStorage::Attached - # source://activestorage//lib/active_storage/attached/many.rb#51 - def attach(*attachables); end - - # source://activestorage//lib/active_storage/attached/many.rb#66 - def attached?; end - - # source://activestorage//lib/active_storage/attached/many.rb#32 - def attachments; end - - # source://activestorage//lib/active_storage/attached/many.rb#37 - def blobs; end - - # source://activestorage//lib/active_storage/attached/many.rb#25 - def detach(*_arg0, **_arg1, &_arg2); end - - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#169 - def method_missing(method, *_arg1, **_arg2, &_arg3); end - - # source://activestorage//lib/active_storage/attached/many.rb#13 - def purge(*_arg0, **_arg1, &_arg2); end - - # source://activestorage//lib/active_storage/attached/many.rb#19 - def purge_later(*_arg0, **_arg1, &_arg2); end - - private - - # source://activestorage//lib/active_storage/attached/many.rb#75 - def detach_many; end - - # source://activestorage//lib/active_storage/attached/many.rb#71 - def purge_many; end - - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#161 - def respond_to_missing?(name, include_private = T.unsafe(nil)); end -end - -# source://activestorage//lib/active_storage/attached/model.rb#9 -module ActiveStorage::Attached::Model - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::ActiveStorage::Attached::Model::ClassMethods - - # source://activestorage//lib/active_storage/attached/model.rb#281 - def attachment_changes; end - - # source://activestorage//lib/active_storage/attached/model.rb#285 - def changed_for_autosave?; end - - # source://activestorage//lib/active_storage/attached/model.rb#295 - def reload(*_arg0); end - - private - - # source://activestorage//lib/active_storage/attached/model.rb#289 - def initialize_dup(*_arg0); end - - class << self - # source://activestorage//lib/active_storage/attached/model.rb#263 - def validate_service_configuration(service_name, model_class, association_name); end - - private - - # source://activestorage//lib/active_storage/attached/model.rb#274 - def validate_global_service_configuration(model_class); end - end -end - -# source://activestorage//lib/active_storage/attached/model.rb#0 -module ActiveStorage::Attached::Model::ClassMethods - # source://activestorage//lib/active_storage/attached/model.rb#210 - def has_many_attached(name, dependent: T.unsafe(nil), service: T.unsafe(nil), strict_loading: T.unsafe(nil)); end - - # source://activestorage//lib/active_storage/attached/model.rb#108 - def has_one_attached(name, dependent: T.unsafe(nil), service: T.unsafe(nil), strict_loading: T.unsafe(nil)); end -end - -# source://activestorage//lib/active_storage/attached/one.rb#7 -class ActiveStorage::Attached::One < ::ActiveStorage::Attached - # source://activestorage//lib/active_storage/attached/one.rb#58 - def attach(attachable); end - - # source://activestorage//lib/active_storage/attached/one.rb#73 - def attached?; end - - # source://activestorage//lib/active_storage/attached/one.rb#33 - def attachment; end - - # source://activestorage//lib/active_storage/attached/one.rb#44 - def blank?; end - - # source://activestorage//lib/active_storage/attached/one.rb#25 - def detach(*_arg0, **_arg1, &_arg2); end - - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#169 - def method_missing(method, *_arg1, **_arg2, &_arg3); end - - # source://activestorage//lib/active_storage/attached/one.rb#13 - def purge(*_arg0, **_arg1, &_arg2); end - - # source://activestorage//lib/active_storage/attached/one.rb#19 - def purge_later(*_arg0, **_arg1, &_arg2); end - - private - - # source://activestorage//lib/active_storage/attached/one.rb#82 - def detach_one; end - - # source://activestorage//lib/active_storage/attached/one.rb#78 - def purge_one; end - - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#161 - def respond_to_missing?(name, include_private = T.unsafe(nil)); end -end - -class ActiveStorage::Attachment < ::ActiveStorage::Record - include ::ActiveStorage::Attachment::GeneratedAttributeMethods - include ::ActiveStorage::Attachment::GeneratedAssociationMethods - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_blob(*args); end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_record(*args); end - - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#169 - def method_missing(method, *_arg1, **_arg2, &_arg3); end - - def preview(transformations); end - def purge; end - def purge_later; end - def representation(transformations); end - def signed_id(*_arg0, **_arg1, &_arg2); end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def validate_associated_records_for_blob(*args); end - - def variant(transformations); end - - private - - def analyze_blob_later; end - def dependent; end - def mirror_blob_later; end - def named_variants; end - def purge_dependent_blob_later; end - - # source://activesupport/8.0.5.1/lib/active_support/delegation.rb#161 - def respond_to_missing?(name, include_private = T.unsafe(nil)); end - - def transform_variants_later; end - def transformations_by_name(transformations); end - - class << self - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def with_all_variant_records(*args, **_arg1); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - end -end - -module ActiveStorage::Attachment::GeneratedAssociationMethods - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def blob=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/belongs_to.rb#146 - def blob_changed?; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/belongs_to.rb#150 - def blob_previously_changed?; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#32 - def build_blob(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#36 - def create_blob(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#40 - def create_blob!(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def record; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def record=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/belongs_to.rb#146 - def record_changed?; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/belongs_to.rb#150 - def record_previously_changed?; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#19 - def reload_blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#19 - def reload_record; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#23 - def reset_blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#23 - def reset_record; end -end - -module ActiveStorage::Attachment::GeneratedAttributeMethods; end - -class ActiveStorage::BaseController < ::ActionController::Base - include ::ActiveStorage::SetCurrent - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_etag_with_template_digest; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_etag_with_template_digest=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class ActiveStorage::BaseJob < ::ActiveJob::Base; end -module ActiveStorage::Blobs; end - -class ActiveStorage::Blobs::ProxyController < ::ActiveStorage::BaseController - include ::ActiveStorage::SetBlob - include ::ActionController::Live - include ::ActiveStorage::Streaming - include ::ActiveStorage::DisableSession - extend ::ActionController::Live::ClassMethods - - def show; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - class << self - # source://actionpack/8.0.5.1/lib/action_controller/metal/live.rb#97 - def live_streaming_excluded_keys; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/live.rb#97 - def live_streaming_excluded_keys=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/live.rb#97 - def live_streaming_excluded_keys?; end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_live_streaming_excluded_keys; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_live_streaming_excluded_keys=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class ActiveStorage::Blobs::RedirectController < ::ActiveStorage::BaseController - include ::ActiveStorage::SetBlob - - def show; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class ActiveStorage::Current < ::ActiveSupport::CurrentAttributes - class << self - # source://activesupport/8.0.5.1/lib/active_support/current_attributes.rb#120 - def url_options; end - - # source://activesupport/8.0.5.1/lib/active_support/current_attributes.rb#121 - def url_options=(value); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defaults; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defaults=(new_value); end - end -end - -class ActiveStorage::DirectUploadsController < ::ActiveStorage::BaseController - def create; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def blob_args; end - def direct_upload_json(blob); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -module ActiveStorage::DisableSession - extend ::ActiveSupport::Concern -end - -class ActiveStorage::DiskController < ::ActiveStorage::BaseController - include ::ActiveStorage::FileServer - - def show; end - def update; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def acceptable_content?(token); end - def decode_verified_key; end - def decode_verified_token; end - def named_disk_service(name); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -# source://activestorage//lib/active_storage/downloader.rb#4 -class ActiveStorage::Downloader - # @return [Downloader] a new instance of Downloader - # - # source://activestorage//lib/active_storage/downloader.rb#7 - def initialize(service); end - - # source://activestorage//lib/active_storage/downloader.rb#11 - def open(key, checksum: T.unsafe(nil), verify: T.unsafe(nil), name: T.unsafe(nil), tmpdir: T.unsafe(nil)); end - - # Returns the value of attribute service. - # - # source://activestorage//lib/active_storage/downloader.rb#5 - def service; end - - private - - # source://activestorage//lib/active_storage/downloader.rb#30 - def download(key, file); end - - # source://activestorage//lib/active_storage/downloader.rb#20 - def open_tempfile(name, tmpdir = T.unsafe(nil)); end - - # source://activestorage//lib/active_storage/downloader.rb#37 - def verify_integrity_of(file, checksum:); end -end - -# source://activestorage//lib/active_storage/engine.rb#25 -class ActiveStorage::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end - -# Generic base class for all Active Storage exceptions. -# -# source://activestorage//lib/active_storage/errors.rb#5 -class ActiveStorage::Error < ::StandardError; end - -# Raised when ActiveStorage::Blob#download is called on a blob where the -# backing file is no longer present in its service. -# -# source://activestorage//lib/active_storage/errors.rb#25 -class ActiveStorage::FileNotFoundError < ::ActiveStorage::Error; end - -module ActiveStorage::FileServer - private - - def serve_file(path, content_type:, disposition:); end -end - -class ActiveStorage::Filename - include ::Comparable - - def initialize(filename); end - - def <=>(other); end - def as_json(*_arg0); end - def base; end - def extension; end - def extension_with_delimiter; end - def extension_without_delimiter; end - def sanitized; end - def to_s; end - - class << self - def wrap(filename); end - end -end - -# = Active Storage \FixtureSet -# -# Fixtures are a way of organizing data that you want to test against; in -# short, sample data. -# -# To learn more about fixtures, read the ActiveRecord::FixtureSet documentation. -# -# === YAML -# -# Like other Active Record-backed models, ActiveStorage::Attachment and -# ActiveStorage::Blob records inherit from ActiveRecord::Base instances and -# therefore can be populated by fixtures. -# -# Consider a hypothetical Article model class, its related -# fixture data, as well as fixture data for related ActiveStorage::Attachment -# and ActiveStorage::Blob records: -# -# # app/models/article.rb -# class Article < ApplicationRecord -# has_one_attached :thumbnail -# end -# -# -# -# # fixtures/active_storage/blobs.yml -# first_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob filename: "first.png" %> -# -# -# -# # fixtures/active_storage/attachments.yml -# first_thumbnail_attachment: -# name: thumbnail -# record: first (Article) -# blob: first_thumbnail_blob -# -# When processed, Active Record will insert database records for each fixture -# entry and will ensure the Active Storage relationship is intact. -# -# source://activestorage//lib/active_storage/fixture_set.rb#44 -class ActiveStorage::FixtureSet - include ::ActiveSupport::Testing::FileFixtures - include ::ActiveRecord::SecureToken - extend ::ActiveRecord::SecureToken::ClassMethods - - # source://activesupport/8.0.5.1/lib/active_support/testing/file_fixtures.rb#20 - def file_fixture_path; end - - # source://activesupport/8.0.5.1/lib/active_support/testing/file_fixtures.rb#20 - def file_fixture_path?; end - - # source://activestorage//lib/active_storage/fixture_set.rb#70 - def prepare(instance, **attributes); end - - class << self - # Generate a YAML-encoded representation of an ActiveStorage::Blob - # instance's attributes, resolve the file relative to the directory mentioned - # by ActiveSupport::Testing::FileFixtures.file_fixture, and upload - # the file to the Service - # - # ==== Examples - # - # # tests/fixtures/active_storage/blobs.yml - # second_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob( - # filename: "second.svg", - # ) %> - # - # third_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob( - # filename: "third.svg", - # content_type: "image/svg+xml", - # service_name: "public" - # ) %> - # - # source://activestorage//lib/active_storage/fixture_set.rb#66 - def blob(filename:, **attributes); end - - # source://activesupport/8.0.5.1/lib/active_support/testing/file_fixtures.rb#20 - def file_fixture_path; end - - # source://activesupport/8.0.5.1/lib/active_support/testing/file_fixtures.rb#20 - def file_fixture_path=(value); end - - # source://activesupport/8.0.5.1/lib/active_support/testing/file_fixtures.rb#20 - def file_fixture_path?; end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_file_fixture_path; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_file_fixture_path=(new_value); end - end -end - -# Raised when uploaded or downloaded data does not match a precomputed checksum. -# Indicates that a network error or a software bug caused data corruption. -# -# source://activestorage//lib/active_storage/errors.rb#21 -class ActiveStorage::IntegrityError < ::ActiveStorage::Error; end - -# Raised when a storage key resolves to a path outside the service's root -# directory, indicating a potential path traversal attack. -# -# source://activestorage//lib/active_storage/errors.rb#32 -class ActiveStorage::InvalidKeyError < ::ActiveStorage::Error; end - -# Raised when ActiveStorage::Blob#variant is called on a blob that isn't variable. -# Use ActiveStorage::Blob#variable? to determine whether a blob is variable. -# -# source://activestorage//lib/active_storage/errors.rb#9 -class ActiveStorage::InvariableError < ::ActiveStorage::Error; end - -# source://activestorage//lib/active_storage/log_subscriber.rb#6 -class ActiveStorage::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://activestorage//lib/active_storage/log_subscriber.rb#53 - def logger; end - - # source://activestorage//lib/active_storage/log_subscriber.rb#21 - def preview(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#26 - def service_delete(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#31 - def service_delete_prefixed(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#14 - def service_download(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#36 - def service_exist(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#46 - def service_mirror(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#14 - def service_streaming_download(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#7 - def service_upload(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#41 - def service_url(event); end - - private - - # source://activestorage//lib/active_storage/log_subscriber.rb#62 - def debug(event, colored_message); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#58 - def info(event, colored_message); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#70 - def key_in(event); end - - # source://activestorage//lib/active_storage/log_subscriber.rb#66 - def log_prefix_for_service(event); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_log_levels; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_log_levels=(new_value); end - end -end - -class ActiveStorage::MirrorJob < ::ActiveStorage::BaseJob - def perform(key, checksum:); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -class ActiveStorage::NamedVariant - def initialize(transformations); end - - def preprocessed; end - def preprocessed?(record); end - def transformations; end -end - -# Raised when a Previewer is unable to generate a preview image. -# -# source://activestorage//lib/active_storage/errors.rb#28 -class ActiveStorage::PreviewError < ::ActiveStorage::Error; end - -class ActiveStorage::PreviewImageJob < ::ActiveStorage::BaseJob - def perform(blob, variations); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -# = Active Storage \Previewer -# -# This is an abstract base class for previewers, which generate images from blobs. See -# ActiveStorage::Previewer::MuPDFPreviewer and ActiveStorage::Previewer::VideoPreviewer for -# examples of concrete subclasses. -# -# source://activestorage//lib/active_storage/previewer.rb#9 -class ActiveStorage::Previewer - # @return [Previewer] a new instance of Previewer - # - # source://activestorage//lib/active_storage/previewer.rb#18 - def initialize(blob); end - - # Returns the value of attribute blob. - # - # source://activestorage//lib/active_storage/previewer.rb#10 - def blob; end - - # Override this method in a concrete subclass. Have it yield an attachable preview image (i.e. - # anything accepted by ActiveStorage::Attached::One#attach). Pass the additional options to - # the underlying blob that is created. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/previewer.rb#25 - def preview(**options); end - - private - - # source://activestorage//lib/active_storage/previewer.rb#78 - def capture(*argv, to:); end - - # Downloads the blob to a tempfile on disk. Yields the tempfile. - # - # source://activestorage//lib/active_storage/previewer.rb#31 - def download_blob_to_tempfile(&block); end - - # Executes a system command, capturing its binary output in a tempfile. Yields the tempfile. - # - # Use this method to shell out to a system library (e.g. muPDF or FFmpeg) for preview image - # generation. The resulting tempfile can be used as the +:io+ value in an attachable Hash: - # - # def preview - # download_blob_to_tempfile do |input| - # draw "my-drawing-command", input.path, "--format", "png", "-" do |output| - # yield io: output, filename: "#{blob.filename.base}.png", content_type: "image/png" - # end - # end - # end - # - # The output tempfile is opened in the directory returned by #tmpdir. - # - # source://activestorage//lib/active_storage/previewer.rb#49 - def draw(*argv); end - - # source://activestorage//lib/active_storage/previewer.rb#69 - def instrument(operation, payload = T.unsafe(nil), &block); end - - # source://activestorage//lib/active_storage/previewer.rb#93 - def logger; end - - # source://activestorage//lib/active_storage/previewer.rb#59 - def open_tempfile; end - - # source://activestorage//lib/active_storage/previewer.rb#73 - def service_name; end - - # source://activestorage//lib/active_storage/previewer.rb#97 - def tmpdir; end - - class << self - # Implement this method in a concrete subclass. Have it return true when given a blob from which - # the previewer can generate an image. - # - # @return [Boolean] - # - # source://activestorage//lib/active_storage/previewer.rb#14 - def accept?(blob); end - end -end - -# source://activestorage//lib/active_storage/previewer/mupdf_previewer.rb#4 -class ActiveStorage::Previewer::MuPDFPreviewer < ::ActiveStorage::Previewer - # source://activestorage//lib/active_storage/previewer/mupdf_previewer.rb#27 - def preview(**options); end - - private - - # source://activestorage//lib/active_storage/previewer/mupdf_previewer.rb#36 - def draw_first_page_from(file, &block); end - - class << self - # source://activestorage//lib/active_storage/previewer/mupdf_previewer.rb#6 - def accept?(blob); end - - # source://activestorage//lib/active_storage/previewer/mupdf_previewer.rb#18 - def mutool_exists?; end - - # source://activestorage//lib/active_storage/previewer/mupdf_previewer.rb#14 - def mutool_path; end - - # source://activestorage//lib/active_storage/previewer/mupdf_previewer.rb#10 - def pdf?(content_type); end - end -end - -# source://activestorage//lib/active_storage/previewer/poppler_pdf_previewer.rb#4 -class ActiveStorage::Previewer::PopplerPDFPreviewer < ::ActiveStorage::Previewer - # source://activestorage//lib/active_storage/previewer/poppler_pdf_previewer.rb#25 - def preview(**options); end - - private - - # source://activestorage//lib/active_storage/previewer/poppler_pdf_previewer.rb#34 - def draw_first_page_from(file, &block); end - - class << self - # source://activestorage//lib/active_storage/previewer/poppler_pdf_previewer.rb#6 - def accept?(blob); end - - # source://activestorage//lib/active_storage/previewer/poppler_pdf_previewer.rb#10 - def pdf?(content_type); end - - # source://activestorage//lib/active_storage/previewer/poppler_pdf_previewer.rb#18 - def pdftoppm_exists?; end - - # source://activestorage//lib/active_storage/previewer/poppler_pdf_previewer.rb#14 - def pdftoppm_path; end - end -end - -# source://activestorage//lib/active_storage/previewer/video_previewer.rb#6 -class ActiveStorage::Previewer::VideoPreviewer < ::ActiveStorage::Previewer - # source://activestorage//lib/active_storage/previewer/video_previewer.rb#23 - def preview(**options); end - - private - - # source://activestorage//lib/active_storage/previewer/video_previewer.rb#32 - def draw_relevant_frame_from(file, &block); end - - class << self - # source://activestorage//lib/active_storage/previewer/video_previewer.rb#8 - def accept?(blob); end - - # source://activestorage//lib/active_storage/previewer/video_previewer.rb#12 - def ffmpeg_exists?; end - - # source://activestorage//lib/active_storage/previewer/video_previewer.rb#18 - def ffmpeg_path; end - end -end - -class ActiveStorage::PurgeJob < ::ActiveStorage::BaseJob - def perform(blob); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -class ActiveStorage::Record < ::ActiveRecord::Base - include ::ActiveStorage::Record::GeneratedAttributeMethods - include ::ActiveStorage::Record::GeneratedAssociationMethods - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - end -end - -module ActiveStorage::Record::GeneratedAssociationMethods; end -module ActiveStorage::Record::GeneratedAttributeMethods; end - -# source://activestorage//lib/active_storage/reflection.rb#4 -module ActiveStorage::Reflection; end - -# source://activestorage//lib/active_storage/reflection.rb#49 -module ActiveStorage::Reflection::ActiveRecordExtensions - extend ::ActiveSupport::Concern - include GeneratedInstanceMethods - - mixes_in_class_methods GeneratedClassMethods - mixes_in_class_methods ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods - - module GeneratedClassMethods - def attachment_reflections; end - def attachment_reflections=(value); end - def attachment_reflections?; end - end - - module GeneratedInstanceMethods - def attachment_reflections; end - def attachment_reflections?; end - end -end - -# source://activestorage//lib/active_storage/reflection.rb#56 -module ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods - # Returns an array of reflection objects for all the attachments in the - # class. - # - # source://activestorage//lib/active_storage/reflection.rb#59 - def reflect_on_all_attachments; end - - # Returns the reflection object for the named +attachment+. - # - # User.reflect_on_attachment(:avatar) - # # => the avatar reflection - # - # source://activestorage//lib/active_storage/reflection.rb#68 - def reflect_on_attachment(attachment); end -end - -# source://activestorage//lib/active_storage/reflection.rb#5 -class ActiveStorage::Reflection::HasAttachedReflection < ::ActiveRecord::Reflection::MacroReflection - # source://activestorage//lib/active_storage/reflection.rb#10 - def named_variants; end - - # source://activestorage//lib/active_storage/reflection.rb#6 - def variant(name, transformations); end -end - -# Holds all the metadata about a has_many_attached attachment as it was -# specified in the Active Record class. -# -# source://activestorage//lib/active_storage/reflection.rb#25 -class ActiveStorage::Reflection::HasManyAttachedReflection < ::ActiveStorage::Reflection::HasAttachedReflection - # source://activestorage//lib/active_storage/reflection.rb#26 - def macro; end -end - -# Holds all the metadata about a has_one_attached attachment as it was -# specified in the Active Record class. -# -# source://activestorage//lib/active_storage/reflection.rb#17 -class ActiveStorage::Reflection::HasOneAttachedReflection < ::ActiveStorage::Reflection::HasAttachedReflection - # source://activestorage//lib/active_storage/reflection.rb#18 - def macro; end -end - -# source://activestorage//lib/active_storage/reflection.rb#31 -module ActiveStorage::Reflection::ReflectionExtension - # source://activestorage//lib/active_storage/reflection.rb#32 - def add_attachment_reflection(model, name, reflection); end - - private - - # source://activestorage//lib/active_storage/reflection.rb#37 - def reflection_class_for(macro); end -end - -module ActiveStorage::Representations; end - -class ActiveStorage::Representations::BaseController < ::ActiveStorage::BaseController - include ::ActiveStorage::SetBlob - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - def blob_scope; end - def set_representation; end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class ActiveStorage::Representations::ProxyController < ::ActiveStorage::Representations::BaseController - include ::ActionController::Live - include ::ActiveStorage::Streaming - include ::ActiveStorage::DisableSession - extend ::ActionController::Live::ClassMethods - - def show; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - class << self - # source://actionpack/8.0.5.1/lib/action_controller/metal/live.rb#97 - def live_streaming_excluded_keys; end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/live.rb#97 - def live_streaming_excluded_keys=(value); end - - # source://actionpack/8.0.5.1/lib/action_controller/metal/live.rb#97 - def live_streaming_excluded_keys?; end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_live_streaming_excluded_keys; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_live_streaming_excluded_keys=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -class ActiveStorage::Representations::RedirectController < ::ActiveStorage::Representations::BaseController - def show; end - - private - - # source://actionview/8.0.5.1/lib/action_view/layouts.rb#328 - def _layout(lookup_context, formats, keys); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_middleware_stack; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_middleware_stack=(new_value); end - end -end - -# = Active Storage \Service -# -# Abstract class serving as an interface for concrete services. -# -# The available services are: -# -# * +Disk+, to manage attachments saved directly on the hard drive. -# * +GCS+, to manage attachments through Google Cloud Storage. -# * +S3+, to manage attachments through Amazon S3. -# * +AzureStorage+, to manage attachments through Microsoft Azure Storage. -# * +Mirror+, to be able to use several services to manage attachments. -# -# Inside a \Rails application, you can set-up your services through the -# generated config/storage.yml file and reference one -# of the aforementioned constant under the +service+ key. For example: -# -# local: -# service: Disk -# root: <%= Rails.root.join("storage") %> -# -# You can checkout the service's constructor to know which keys are required. -# -# Then, in your application's configuration, you can specify the service to -# use like this: -# -# config.active_storage.service = :local -# -# If you are using Active Storage outside of a Ruby on \Rails application, you -# can configure the service to use like this: -# -# ActiveStorage::Blob.service = ActiveStorage::Service.configure( -# :local, -# { local: {service: "Disk", root: Pathname("/tmp/foo/storage") } } -# ) -# -# source://activestorage//lib/active_storage/service.rb#43 -class ActiveStorage::Service - extend ::ActiveSupport::Autoload - - # Concatenate multiple files into a single "composed" file. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#96 - def compose(source_keys, destination_key, filename: T.unsafe(nil), content_type: T.unsafe(nil), disposition: T.unsafe(nil), custom_metadata: T.unsafe(nil)); end - - # Delete the file at the +key+. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#101 - def delete(key); end - - # Delete files at keys starting with the +prefix+. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#106 - def delete_prefixed(prefix); end - - # Return the content of the file at the +key+. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#82 - def download(key); end - - # Return the partial content in the byte +range+ of the file at the +key+. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#87 - def download_chunk(key, range); end - - # Return +true+ if a file exists at the +key+. - # - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://activestorage//lib/active_storage/service.rb#111 - def exist?(key); end - - # Returns a Hash of headers for +url_for_direct_upload+ requests. - # - # source://activestorage//lib/active_storage/service.rb#143 - def headers_for_direct_upload(key, filename:, content_type:, content_length:, checksum:, custom_metadata: T.unsafe(nil)); end - - # Returns the value of attribute name. - # - # source://activestorage//lib/active_storage/service.rb#46 - def name; end - - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activestorage//lib/active_storage/service.rb#46 - def name=(_arg0); end - - # source://activestorage//lib/active_storage/service.rb#91 - def open(*args, **options, &block); end - - # @return [Boolean] - # - # source://activestorage//lib/active_storage/service.rb#147 - def public?; end - - # Update metadata for the file identified by +key+ in the service. - # Override in subclasses only if the service needs to store specific - # metadata that has to be updated upon identification. - # - # source://activestorage//lib/active_storage/service.rb#78 - def update_metadata(key, **metadata); end - - # Upload the +io+ to the +key+ specified. If a +checksum+ is provided, the service will - # ensure a match when the upload has completed or raise an ActiveStorage::IntegrityError. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#71 - def upload(key, io, checksum: T.unsafe(nil), **options); end - - # Returns the URL for the file at the +key+. This returns a permanent URL for public files, and returns a - # short-lived URL for private files. For private files you can provide the +disposition+ (+:inline+ or +:attachment+), - # +filename+, and +content_type+ that you wish the file to be served with on request. Additionally, you can also provide - # the amount of seconds the URL will be valid for, specified in +expires_in+. - # - # source://activestorage//lib/active_storage/service.rb#119 - def url(key, **options); end - - # Returns a signed, temporary URL that a direct upload file can be PUT to on the +key+. - # The URL will be valid for the amount of seconds specified in +expires_in+. - # You must also provide the +content_type+, +content_length+, and +checksum+ of the file - # that will be uploaded. All these attributes will be validated by the service upon upload. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#138 - def url_for_direct_upload(key, expires_in:, content_type:, content_length:, checksum:, custom_metadata: T.unsafe(nil)); end - - private - - # source://activestorage//lib/active_storage/service.rb#175 - def content_disposition_with(filename:, type: T.unsafe(nil)); end - - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#160 - def custom_metadata_headers(metadata); end - - # source://activestorage//lib/active_storage/service.rb#164 - def instrument(operation, payload = T.unsafe(nil), &block); end - - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#152 - def private_url(key, expires_in:, filename:, disposition:, content_type:, **_arg5); end - - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/service.rb#156 - def public_url(key, **_arg1); end - - # source://activestorage//lib/active_storage/service.rb#170 - def service_name; end - - class << self - # Override in subclasses that stitch together multiple services and hence - # need to build additional services using the configurator. - # - # Passes the configurator and all of the service's config as keyword args. - # - # See MirrorService for an example. - # - # source://activestorage//lib/active_storage/service.rb#62 - def build(configurator:, name:, service: T.unsafe(nil), **service_config); end - - # Configure an Active Storage service by name from a set of configurations, - # typically loaded from a YAML file. The Active Storage engine uses this - # to set the global Active Storage service when the app boots. - # - # source://activestorage//lib/active_storage/service.rb#52 - def configure(service_name, configurations); end - end -end - -# source://activestorage//lib/active_storage/service/configurator.rb#4 -class ActiveStorage::Service::Configurator - # source://activestorage//lib/active_storage/service/configurator.rb#11 - def initialize(configurations); end - - # source://activestorage//lib/active_storage/service/configurator.rb#15 - def build(service_name); end - - # source://activestorage//lib/active_storage/service/configurator.rb#5 - def configurations; end - - private - - # source://activestorage//lib/active_storage/service/configurator.rb#23 - def config_for(name); end - - # source://activestorage//lib/active_storage/service/configurator.rb#29 - def resolve(class_name); end - - class << self - # source://activestorage//lib/active_storage/service/configurator.rb#7 - def build(service_name, configurations); end - end -end - -# source://activestorage//lib/active_storage/service/registry.rb#4 -class ActiveStorage::Service::Registry - # source://activestorage//lib/active_storage/service/registry.rb#5 - def initialize(configurations); end - - # source://activestorage//lib/active_storage/service/registry.rb#10 - def fetch(name); end - - private - - # source://activestorage//lib/active_storage/service/registry.rb#26 - def configurations; end - - # source://activestorage//lib/active_storage/service/registry.rb#28 - def configurator; end - - # source://activestorage//lib/active_storage/service/registry.rb#26 - def services; end -end - -module ActiveStorage::SetBlob - extend ::ActiveSupport::Concern - - private - - def blob_scope; end - def set_blob; end -end - -module ActiveStorage::SetCurrent - extend ::ActiveSupport::Concern -end - -module ActiveStorage::Streaming - extend ::ActiveSupport::Concern - include GeneratedInstanceMethods - include ::ActionController::Rendering - include ::ActionController::DataStreaming - include ::ActionController::Live - - mixes_in_class_methods GeneratedClassMethods - mixes_in_class_methods ::ActionController::Rendering::ClassMethods - mixes_in_class_methods ::ActionController::Live::ClassMethods - - private - - def ranges_valid?(ranges); end - def send_blob_byte_range_data(blob, range_header, disposition: T.unsafe(nil)); end - def send_blob_stream(blob, disposition: T.unsafe(nil)); end - - module GeneratedClassMethods - def live_streaming_excluded_keys; end - def live_streaming_excluded_keys=(value); end - def live_streaming_excluded_keys?; end - end - - module GeneratedInstanceMethods; end -end - -ActiveStorage::Streaming::DEFAULT_BLOB_STREAMING_DISPOSITION = T.let(T.unsafe(nil), String) - -class ActiveStorage::TransformJob < ::ActiveStorage::BaseJob - def perform(blob, transformations); end - - class << self - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_rescue_handlers; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_rescue_handlers=(new_value); end - end -end - -# source://activestorage//lib/active_storage.rb#379 -module ActiveStorage::Transformers - extend ::ActiveSupport::Autoload -end - -# source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#14 -class ActiveStorage::Transformers::ImageProcessingTransformer < ::ActiveStorage::Transformers::Transformer - private - - # source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#32 - def operations; end - - # source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#19 - def process(file, format:); end - - # source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#28 - def processor; end - - # source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#79 - def validate_arg_array(argument); end - - # source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#93 - def validate_arg_hash(argument); end - - # @raise [UnsupportedImageProcessingArgument] - # - # source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#71 - def validate_arg_string(argument); end - - # source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#51 - def validate_transformation(name, argument); end -end - -# source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#17 -class ActiveStorage::Transformers::ImageProcessingTransformer::UnsupportedImageProcessingArgument < ::StandardError; end - -# source://activestorage//lib/active_storage/transformers/image_processing_transformer.rb#16 -class ActiveStorage::Transformers::ImageProcessingTransformer::UnsupportedImageProcessingMethod < ::StandardError; end - -# = Active Storage \Transformers \Transformer -# -# A Transformer applies a set of transformations to an image. -# -# The following concrete subclasses are included in Active Storage: -# -# * ActiveStorage::Transformers::ImageProcessingTransformer: -# backed by ImageProcessing, a common interface for MiniMagick and ruby-vips -# -# source://activestorage//lib/active_storage/transformers/transformer.rb#13 -class ActiveStorage::Transformers::Transformer - # @return [Transformer] a new instance of Transformer - # - # source://activestorage//lib/active_storage/transformers/transformer.rb#16 - def initialize(transformations); end - - # Applies the transformations to the source image in +file+, producing a target image in the - # specified +format+. Yields an open Tempfile containing the target image. Closes and unlinks - # the output tempfile after yielding to the given block. Returns the result of the block. - # - # source://activestorage//lib/active_storage/transformers/transformer.rb#23 - def transform(file, format:); end - - # Returns the value of attribute transformations. - # - # source://activestorage//lib/active_storage/transformers/transformer.rb#14 - def transformations; end - - private - - # Returns an open Tempfile containing a transformed image in the given +format+. - # All subclasses implement this method. - # - # @raise [NotImplementedError] - # - # source://activestorage//lib/active_storage/transformers/transformer.rb#36 - def process(file, format:); end -end - -# Raised when ActiveStorage::Blob#preview is called on a blob that isn't previewable. -# Use ActiveStorage::Blob#previewable? to determine whether a blob is previewable. -# -# source://activestorage//lib/active_storage/errors.rb#13 -class ActiveStorage::UnpreviewableError < ::ActiveStorage::Error; end - -# Raised when ActiveStorage::Blob#representation is called on a blob that isn't representable. -# Use ActiveStorage::Blob#representable? to determine whether a blob is representable. -# -# source://activestorage//lib/active_storage/errors.rb#17 -class ActiveStorage::UnrepresentableError < ::ActiveStorage::Error; end - -# source://activestorage//lib/active_storage/gem_version.rb#9 -module ActiveStorage::VERSION; end - -# source://activestorage//lib/active_storage/gem_version.rb#10 -ActiveStorage::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) - -# source://activestorage//lib/active_storage/gem_version.rb#11 -ActiveStorage::VERSION::MINOR = T.let(T.unsafe(nil), Integer) - -# source://activestorage//lib/active_storage/gem_version.rb#13 -ActiveStorage::VERSION::PRE = T.let(T.unsafe(nil), String) - -# source://activestorage//lib/active_storage/gem_version.rb#15 -ActiveStorage::VERSION::STRING = T.let(T.unsafe(nil), String) - -# source://activestorage//lib/active_storage/gem_version.rb#12 -ActiveStorage::VERSION::TINY = T.let(T.unsafe(nil), Integer) - -# source://activestorage//lib/active_storage/vips.rb#17 -ActiveStorage::VIPS_AVAILABLE = T.let(T.unsafe(nil), TrueClass) - -class ActiveStorage::VariantRecord < ::ActiveStorage::Record - include ::ActiveStorage::VariantRecord::GeneratedAttributeMethods - include ::ActiveStorage::VariantRecord::GeneratedAssociationMethods - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_blob(*args); end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_image_attachment(*args); end - - # source://activerecord/8.0.5.1/lib/active_record/autosave_association.rb#162 - def autosave_associated_records_for_image_blob(*args); end - - class << self - # source://activerecord/8.0.5.1/lib/active_record/scoping/named.rb#174 - def with_attached_image(*args, **_arg1); end - - private - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr__validators; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr__validators=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_attachment_reflections; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_attachment_reflections=(new_value); end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#15 - def __class_attr_defined_enums; end - - # source://activesupport/8.0.5.1/lib/active_support/class_attribute.rb#17 - def __class_attr_defined_enums=(new_value); end - end -end - -module ActiveStorage::VariantRecord::GeneratedAssociationMethods - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def blob=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/belongs_to.rb#146 - def blob_changed?; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/belongs_to.rb#150 - def blob_previously_changed?; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#32 - def build_blob(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#32 - def build_image_attachment(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#32 - def build_image_blob(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#36 - def create_blob(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#40 - def create_blob!(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#36 - def create_image_attachment(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#40 - def create_image_attachment!(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#36 - def create_image_blob(*args, &block); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#40 - def create_image_blob!(*args, &block); end - - # source://activestorage//lib/active_storage/attached/model.rb#113 - def image; end - - # source://activestorage//lib/active_storage/attached/model.rb#118 - def image=(attachable); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def image_attachment; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def image_attachment=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#104 - def image_blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/association.rb#112 - def image_blob=(value); end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#19 - def reload_blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#19 - def reload_image_attachment; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#19 - def reload_image_blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#23 - def reset_blob; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#23 - def reset_image_attachment; end - - # source://activerecord/8.0.5.1/lib/active_record/associations/builder/singular_association.rb#23 - def reset_image_blob; end -end - -module ActiveStorage::VariantRecord::GeneratedAttributeMethods; end - -class ActiveStorage::Variation - def initialize(transformations); end - - def content_type; end - def default_to(defaults); end - def digest; end - def format; end - def key; end - def transform(file, &block); end - def transformations; end - - private - - def transformer; end - - class << self - def decode(key); end - def encode(transformations); end - def wrap(variator); end - end -end diff --git a/sorbet/rbi/gems/activestorage@8.0.5.2.rbi b/sorbet/rbi/gems/activestorage@8.0.5.2.rbi new file mode 100644 index 00000000..70405a8c --- /dev/null +++ b/sorbet/rbi/gems/activestorage@8.0.5.2.rbi @@ -0,0 +1,2345 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `activestorage` gem. +# Please instead update this file by running `bin/tapioca gem activestorage`. + + +class ActiveRecord::Base + include ::ActiveModel::ForbiddenAttributesProtection + include ::ActiveModel::AttributeAssignment + include ::ActiveModel::Access + include ::ActiveModel::Serialization +end + +# :markup: markdown +# :include: ../README.md +# +# pkg:gem/activestorage#lib/active_storage/gem_version.rb:3 +module ActiveStorage + extend ::ActiveSupport::Autoload + + # pkg:gem/activestorage#lib/active_storage.rb:56 + def analyzers; end + + # pkg:gem/activestorage#lib/active_storage.rb:56 + def analyzers=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:62 + def binary_content_type; end + + # pkg:gem/activestorage#lib/active_storage.rb:62 + def binary_content_type=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:64 + def content_types_allowed_inline; end + + # pkg:gem/activestorage#lib/active_storage.rb:64 + def content_types_allowed_inline=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:63 + def content_types_to_serve_as_binary; end + + # pkg:gem/activestorage#lib/active_storage.rb:63 + def content_types_to_serve_as_binary=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:360 + def draw_routes; end + + # pkg:gem/activestorage#lib/active_storage.rb:360 + def draw_routes=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:379 + def ffmpeg_allowed_formats; end + + # pkg:gem/activestorage#lib/active_storage.rb:379 + def ffmpeg_allowed_formats=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:49 + def logger; end + + # pkg:gem/activestorage#lib/active_storage.rb:49 + def logger=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:58 + def paths; end + + # pkg:gem/activestorage#lib/active_storage.rb:58 + def paths=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:55 + def previewers; end + + # pkg:gem/activestorage#lib/active_storage.rb:55 + def previewers=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:53 + def queues; end + + # pkg:gem/activestorage#lib/active_storage.rb:53 + def queues=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:361 + def resolve_model_to_route; end + + # pkg:gem/activestorage#lib/active_storage.rb:361 + def resolve_model_to_route=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:359 + def routes_prefix; end + + # pkg:gem/activestorage#lib/active_storage.rb:359 + def routes_prefix=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:355 + def service_urls_expire_in; end + + # pkg:gem/activestorage#lib/active_storage.rb:355 + def service_urls_expire_in=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:354 + def streaming_chunk_max_size; end + + # pkg:gem/activestorage#lib/active_storage.rb:354 + def streaming_chunk_max_size=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:66 + def supported_image_processing_methods; end + + # pkg:gem/activestorage#lib/active_storage.rb:66 + def supported_image_processing_methods=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:356 + def touch_attachment_records; end + + # pkg:gem/activestorage#lib/active_storage.rb:356 + def touch_attachment_records=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:363 + def track_variants; end + + # pkg:gem/activestorage#lib/active_storage.rb:363 + def track_variants=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:352 + def unsupported_image_processing_arguments; end + + # pkg:gem/activestorage#lib/active_storage.rb:352 + def unsupported_image_processing_arguments=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:357 + def urls_expire_in; end + + # pkg:gem/activestorage#lib/active_storage.rb:357 + def urls_expire_in=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:60 + def variable_content_types; end + + # pkg:gem/activestorage#lib/active_storage.rb:60 + def variable_content_types=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:51 + def variant_processor; end + + # pkg:gem/activestorage#lib/active_storage.rb:51 + def variant_processor=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:50 + def verifier; end + + # pkg:gem/activestorage#lib/active_storage.rb:50 + def verifier=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:377 + def video_preview_arguments; end + + # pkg:gem/activestorage#lib/active_storage.rb:377 + def video_preview_arguments=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:61 + def web_image_content_types; end + + # pkg:gem/activestorage#lib/active_storage.rb:61 + def web_image_content_types=(val); end + + class << self + # pkg:gem/activestorage#lib/active_storage.rb:56 + def analyzers; end + + # pkg:gem/activestorage#lib/active_storage.rb:56 + def analyzers=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:62 + def binary_content_type; end + + # pkg:gem/activestorage#lib/active_storage.rb:62 + def binary_content_type=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:365 + def checksum_implementation; end + + # pkg:gem/activestorage#lib/active_storage.rb:365 + def checksum_implementation=(_arg0); end + + # pkg:gem/activestorage#lib/active_storage.rb:64 + def content_types_allowed_inline; end + + # pkg:gem/activestorage#lib/active_storage.rb:64 + def content_types_allowed_inline=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:63 + def content_types_to_serve_as_binary; end + + # pkg:gem/activestorage#lib/active_storage.rb:63 + def content_types_to_serve_as_binary=(val); end + + # pkg:gem/activestorage#lib/active_storage/deprecator.rb:4 + def deprecator; end + + # pkg:gem/activestorage#lib/active_storage.rb:360 + def draw_routes; end + + # pkg:gem/activestorage#lib/active_storage.rb:360 + def draw_routes=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:379 + def ffmpeg_allowed_formats; end + + # pkg:gem/activestorage#lib/active_storage.rb:379 + def ffmpeg_allowed_formats=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:381 + def ffmpeg_format_whitelist_arguments; end + + # Returns the currently loaded version of Active Storage as a +Gem::Version+. + # + # pkg:gem/activestorage#lib/active_storage/gem_version.rb:5 + def gem_version; end + + # pkg:gem/activestorage#lib/active_storage.rb:49 + def logger; end + + # pkg:gem/activestorage#lib/active_storage.rb:49 + def logger=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:58 + def paths; end + + # pkg:gem/activestorage#lib/active_storage.rb:58 + def paths=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:55 + def previewers; end + + # pkg:gem/activestorage#lib/active_storage.rb:55 + def previewers=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:53 + def queues; end + + # pkg:gem/activestorage#lib/active_storage.rb:53 + def queues=(val); end + + # pkg:gem/activestorage#lib/active_storage/engine.rb:26 + def railtie_helpers_paths; end + + # pkg:gem/activestorage#lib/active_storage/engine.rb:26 + def railtie_namespace; end + + # pkg:gem/activestorage#lib/active_storage/engine.rb:26 + def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end + + # Raises when the installed mini_magick cannot apply the shipped ImageMagick security policy. + # Called before Active Storage hands untrusted content to ImageMagick. + # + # pkg:gem/activestorage#lib/active_storage/image_magick.rb:53 + def require_securable_mini_magick!; end + + # pkg:gem/activestorage#lib/active_storage.rb:361 + def resolve_model_to_route; end + + # pkg:gem/activestorage#lib/active_storage.rb:361 + def resolve_model_to_route=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:359 + def routes_prefix; end + + # pkg:gem/activestorage#lib/active_storage.rb:359 + def routes_prefix=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:355 + def service_urls_expire_in; end + + # pkg:gem/activestorage#lib/active_storage.rb:355 + def service_urls_expire_in=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:354 + def streaming_chunk_max_size; end + + # pkg:gem/activestorage#lib/active_storage.rb:354 + def streaming_chunk_max_size=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:374 + def streaming_max_ranges; end + + # pkg:gem/activestorage#lib/active_storage.rb:374 + def streaming_max_ranges=(_arg0); end + + # pkg:gem/activestorage#lib/active_storage.rb:66 + def supported_image_processing_methods; end + + # pkg:gem/activestorage#lib/active_storage.rb:66 + def supported_image_processing_methods=(val); end + + # pkg:gem/activestorage#lib/active_storage/engine.rb:26 + def table_name_prefix; end + + # pkg:gem/activestorage#lib/active_storage.rb:356 + def touch_attachment_records; end + + # pkg:gem/activestorage#lib/active_storage.rb:356 + def touch_attachment_records=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:363 + def track_variants; end + + # pkg:gem/activestorage#lib/active_storage.rb:363 + def track_variants=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:352 + def unsupported_image_processing_arguments; end + + # pkg:gem/activestorage#lib/active_storage.rb:352 + def unsupported_image_processing_arguments=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:357 + def urls_expire_in; end + + # pkg:gem/activestorage#lib/active_storage.rb:357 + def urls_expire_in=(val); end + + # pkg:gem/activestorage#lib/active_storage/engine.rb:26 + def use_relative_model_naming?; end + + # pkg:gem/activestorage#lib/active_storage.rb:60 + def variable_content_types; end + + # pkg:gem/activestorage#lib/active_storage.rb:60 + def variable_content_types=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:51 + def variant_processor; end + + # pkg:gem/activestorage#lib/active_storage.rb:51 + def variant_processor=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:50 + def verifier; end + + # pkg:gem/activestorage#lib/active_storage.rb:50 + def verifier=(val); end + + # Returns the currently loaded version of Active Storage as a +Gem::Version+. + # + # pkg:gem/activestorage#lib/active_storage/version.rb:7 + def version; end + + # pkg:gem/activestorage#lib/active_storage.rb:377 + def video_preview_arguments; end + + # pkg:gem/activestorage#lib/active_storage.rb:377 + def video_preview_arguments=(val); end + + # pkg:gem/activestorage#lib/active_storage.rb:61 + def web_image_content_types; end + + # pkg:gem/activestorage#lib/active_storage.rb:61 + def web_image_content_types=(val); end + end +end + +class ActiveStorage::AnalyzeJob < ::ActiveStorage::BaseJob + def perform(blob); end + + class << self + private + + def __class_attr_queue_name; end + def __class_attr_queue_name=(new_value); end + def __class_attr_rescue_handlers; end + def __class_attr_rescue_handlers=(new_value); end + end +end + +# = Active Storage \Analyzer +# +# This is an abstract base class for analyzers, which extract metadata from blobs. See +# ActiveStorage::Analyzer::VideoAnalyzer for an example of a concrete subclass. +# +# pkg:gem/activestorage#lib/active_storage/analyzer.rb:8 +class ActiveStorage::Analyzer + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:23 + def initialize(blob); end + + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:9 + def blob; end + + # Override this method in a concrete subclass. Have it return a Hash of metadata. + # + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:28 + def metadata; end + + private + + # Downloads the blob to a tempfile on disk. Yields the tempfile. + # + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:34 + def download_blob_to_tempfile(&block); end + + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:46 + def instrument(analyzer, &block); end + + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:38 + def logger; end + + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:42 + def tmpdir; end + + class << self + # Implement this method in a concrete subclass. Have it return true when given a blob from which + # the analyzer can extract metadata. + # + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:13 + def accept?(blob); end + + # Implement this method in concrete subclasses. It will determine if blob analysis + # should be done in a job or performed inline. By default, analysis is enqueued in a job. + # + # pkg:gem/activestorage#lib/active_storage/analyzer.rb:19 + def analyze_later?; end + end +end + +# = Active Storage Audio \Analyzer +# +# Extracts duration (seconds), bit_rate (bits/s), sample_rate (hertz) and tags (internal metadata) from an audio blob. +# +# Example: +# +# ActiveStorage::Analyzer::AudioAnalyzer.new(blob).metadata +# # => { duration: 5.0, bit_rate: 320340, sample_rate: 44100, tags: { encoder: "Lavc57.64", ... } } +# +# This analyzer requires the {FFmpeg}[https://www.ffmpeg.org] system library, which is not provided by \Rails. +# +# pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:14 +class ActiveStorage::Analyzer::AudioAnalyzer < ::ActiveStorage::Analyzer + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:19 + def metadata; end + + private + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:44 + def audio_stream; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:29 + def bit_rate; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:24 + def duration; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:76 + def ffprobe_path; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:52 + def probe; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:56 + def probe_from(file); end + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:34 + def sample_rate; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:48 + def streams; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:39 + def tags; end + + class << self + # pkg:gem/activestorage#lib/active_storage/analyzer/audio_analyzer.rb:15 + def accept?(blob); end + end +end + +# = Active Storage Image \Analyzer +# +# This is an abstract base class for image analyzers, which extract width and height from an image blob. +# +# If the image contains EXIF data indicating its angle is 90 or 270 degrees, its width and height are swapped for convenience. +# +# Example: +# +# ActiveStorage::Analyzer::ImageAnalyzer::ImageMagick.new(blob).metadata +# # => { width: 4104, height: 2736 } +# +# pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer.rb:14 +class ActiveStorage::Analyzer::ImageAnalyzer < ::ActiveStorage::Analyzer + # pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer.rb:19 + def metadata; end + + class << self + # pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer.rb:15 + def accept?(blob); end + end +end + +# This analyzer relies on the third-party {MiniMagick}[https://github.com/minimagick/minimagick] gem. MiniMagick requires +# the {ImageMagick}[http://www.imagemagick.org] system library. +# +# pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/image_magick.rb:8 +class ActiveStorage::Analyzer::ImageAnalyzer::ImageMagick < ::ActiveStorage::Analyzer::ImageAnalyzer + private + + # pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/image_magick.rb:14 + def read_image; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/image_magick.rb:41 + def rotated_image?(image); end + + class << self + # pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/image_magick.rb:9 + def accept?(blob); end + end +end + +# This analyzer relies on the third-party {ruby-vips}[https://github.com/libvips/ruby-vips] gem. Ruby-vips requires +# the {libvips}[https://libvips.github.io/libvips/] system library. +# +# pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/vips.rb:8 +class ActiveStorage::Analyzer::ImageAnalyzer::Vips < ::ActiveStorage::Analyzer::ImageAnalyzer + private + + # pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/vips.rb:14 + def read_image; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/vips.rb:43 + def rotated_image?(image); end + + class << self + # pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/vips.rb:9 + def accept?(blob); end + end +end + +# pkg:gem/activestorage#lib/active_storage/analyzer/image_analyzer/vips.rb:42 +ActiveStorage::Analyzer::ImageAnalyzer::Vips::ROTATIONS = T.let(T.unsafe(nil), Regexp) + +# pkg:gem/activestorage#lib/active_storage/analyzer/null_analyzer.rb:4 +class ActiveStorage::Analyzer::NullAnalyzer < ::ActiveStorage::Analyzer + # pkg:gem/activestorage#lib/active_storage/analyzer/null_analyzer.rb:13 + def metadata; end + + class << self + # pkg:gem/activestorage#lib/active_storage/analyzer/null_analyzer.rb:5 + def accept?(blob); end + + # pkg:gem/activestorage#lib/active_storage/analyzer/null_analyzer.rb:9 + def analyze_later?; end + end +end + +# = Active Storage Video \Analyzer +# +# Extracts the following from a video blob: +# +# * Width (pixels) +# * Height (pixels) +# * Duration (seconds) +# * Angle (degrees) +# * Display aspect ratio +# * Audio (true if file has an audio channel, false if not) +# * Video (true if file has an video channel, false if not) +# +# Example: +# +# ActiveStorage::Analyzer::VideoAnalyzer.new(blob).metadata +# # => { width: 640.0, height: 480.0, duration: 5.0, angle: 0, display_aspect_ratio: [4, 3], audio: true, video: true } +# +# When a video's angle is 90, -90, 270 or -270 degrees, its width and height are automatically swapped for convenience. +# +# This analyzer requires the {FFmpeg}[https://www.ffmpeg.org] system library, which is not provided by \Rails. +# +# pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:24 +class ActiveStorage::Analyzer::VideoAnalyzer < ::ActiveStorage::Analyzer + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:29 + def metadata; end + + private + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:55 + def angle; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:82 + def audio?; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:120 + def audio_stream; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:90 + def computed_height; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:128 + def container; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:67 + def display_aspect_ratio; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:104 + def display_height_scale; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:63 + def display_matrix; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:50 + def duration; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:100 + def encoded_height; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:96 + def encoded_width; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:156 + def ffprobe_path; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:42 + def height; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:132 + def probe; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:136 + def probe_from(file); end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:78 + def rotated?; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:112 + def side_data; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:124 + def streams; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:108 + def tags; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:86 + def video?; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:116 + def video_stream; end + + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:34 + def width; end + + class << self + # pkg:gem/activestorage#lib/active_storage/analyzer/video_analyzer.rb:25 + def accept?(blob); end + end +end + +# = Active Storage \Attached +# +# Abstract base class for the concrete ActiveStorage::Attached::One and ActiveStorage::Attached::Many +# classes that both provide proxy access to the blob association for a record. +# +# pkg:gem/activestorage#lib/active_storage/attached.rb:10 +class ActiveStorage::Attached + # pkg:gem/activestorage#lib/active_storage/attached.rb:13 + def initialize(name, record); end + + # pkg:gem/activestorage#lib/active_storage/attached.rb:11 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached.rb:11 + def record; end + + private + + # pkg:gem/activestorage#lib/active_storage/attached.rb:18 + def change; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes.rb:4 +module ActiveStorage::Attached::Changes + extend ::ActiveSupport::Autoload +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:4 +class ActiveStorage::Attached::Changes::CreateMany + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:7 + def initialize(name, record, attachables, pending_uploads: T.unsafe(nil)); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:5 + def attachables; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:14 + def attachments; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:18 + def blobs; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:5 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:5 + def pending_uploads; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:5 + def record; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:26 + def save; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:22 + def upload; end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:44 + def assign_associated_attachments; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:36 + def build_subchange_from(attachable); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:52 + def persisted_or_new_attachments; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:48 + def reset_associated_blobs; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:32 + def subchanges; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_many.rb:40 + def subchanges_without_blobs; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:7 +class ActiveStorage::Attached::Changes::CreateOne + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:10 + def initialize(name, record, attachable); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:8 + def attachable; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:15 + def attachment; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:19 + def blob; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:8 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:8 + def record; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:48 + def save; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:23 + def upload; end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:120 + def attachment_service_name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:64 + def build_attachment; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:58 + def find_attachment; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:54 + def find_or_build_attachment; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one.rb:68 + def find_or_build_blob; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/create_one_of_many.rb:4 +class ActiveStorage::Attached::Changes::CreateOneOfMany < ::ActiveStorage::Attached::Changes::CreateOne + private + + # pkg:gem/activestorage#lib/active_storage/attached/changes/create_one_of_many.rb:6 + def find_attachment; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/delete_many.rb:4 +class ActiveStorage::Attached::Changes::DeleteMany + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_many.rb:7 + def initialize(name, record); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_many.rb:11 + def attachables; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_many.rb:15 + def attachments; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_many.rb:19 + def blobs; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_many.rb:5 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_many.rb:5 + def record; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_many.rb:23 + def save; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/delete_one.rb:4 +class ActiveStorage::Attached::Changes::DeleteOne + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_one.rb:7 + def initialize(name, record); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_one.rb:11 + def attachment; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_one.rb:5 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_one.rb:5 + def record; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/delete_one.rb:15 + def save; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/detach_many.rb:4 +class ActiveStorage::Attached::Changes::DetachMany + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_many.rb:7 + def initialize(name, record, attachments); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_many.rb:5 + def attachments; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_many.rb:11 + def detach; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_many.rb:5 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_many.rb:5 + def record; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/detach_one.rb:4 +class ActiveStorage::Attached::Changes::DetachOne + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_one.rb:7 + def initialize(name, record, attachment); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_one.rb:5 + def attachment; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_one.rb:11 + def detach; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_one.rb:5 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_one.rb:5 + def record; end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/changes/detach_one.rb:19 + def reset; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/purge_many.rb:4 +class ActiveStorage::Attached::Changes::PurgeMany + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_many.rb:7 + def initialize(name, record, attachments); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_many.rb:5 + def attachments; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_many.rb:5 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_many.rb:11 + def purge; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_many.rb:16 + def purge_later; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_many.rb:5 + def record; end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_many.rb:22 + def reset; end +end + +# pkg:gem/activestorage#lib/active_storage/attached/changes/purge_one.rb:4 +class ActiveStorage::Attached::Changes::PurgeOne + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_one.rb:7 + def initialize(name, record, attachment); end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_one.rb:5 + def attachment; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_one.rb:5 + def name; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_one.rb:11 + def purge; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_one.rb:16 + def purge_later; end + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_one.rb:5 + def record; end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/changes/purge_one.rb:22 + def reset; end +end + +# = Active Storage \Attached \Many +# +# Decorated proxy object representing of multiple attachments to a model. +# +# pkg:gem/activestorage#lib/active_storage/attached/many.rb:7 +class ActiveStorage::Attached::Many < ::ActiveStorage::Attached + # Attaches one or more +attachables+ to the record. + # + # If the record is persisted and unchanged, the attachments are saved to + # the database immediately. Otherwise, they'll be saved to the DB when the + # record is next saved. + # + # document.images.attach(params[:images]) # Array of ActionDispatch::Http::UploadedFile objects + # document.images.attach(params[:signed_blob_id]) # Signed reference to blob from direct upload + # document.images.attach(io: File.open("/path/to/racecar.jpg"), filename: "racecar.jpg", content_type: "image/jpeg") + # document.images.attach([ first_blob, second_blob ]) + # + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:51 + def attach(*attachables); end + + # Returns true if any attachments have been made. + # + # class Gallery < ApplicationRecord + # has_many_attached :photos + # end + # + # Gallery.new.photos.attached? # => false + # + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:66 + def attached?; end + + # Returns all the associated attachment records. + # + # All methods called on this proxy object that aren't listed here will automatically be delegated to +attachments+. + # + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:32 + def attachments; end + + # Returns all attached blobs. + # + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:37 + def blobs; end + + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:25 + def detach(*, **, &); end + + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:27 + def method_missing(method, *, **, &); end + + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:13 + def purge(*, **, &); end + + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:19 + def purge_later(*, **, &); end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:75 + def detach_many; end + + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:71 + def purge_many; end + + # pkg:gem/activestorage#lib/active_storage/attached/many.rb:27 + def respond_to_missing?(name, include_private = T.unsafe(nil)); end +end + +# = Active Storage \Attached \Model +# +# Provides the class-level DSL for declaring an Active Record model's attachments. +# +# pkg:gem/activestorage#lib/active_storage/attached/model.rb:9 +module ActiveStorage::Attached::Model + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::ActiveStorage::Attached::Model::ClassMethods + + # pkg:gem/activestorage#lib/active_storage/attached/model.rb:281 + def attachment_changes; end + + # pkg:gem/activestorage#lib/active_storage/attached/model.rb:285 + def changed_for_autosave?; end + + # pkg:gem/activestorage#lib/active_storage/attached/model.rb:295 + def reload(*); end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/model.rb:289 + def initialize_dup(*); end + + class << self + # pkg:gem/activestorage#lib/active_storage/attached/model.rb:263 + def validate_service_configuration(service_name, model_class, association_name); end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/model.rb:274 + def validate_global_service_configuration(model_class); end + end +end + +# pkg:gem/activestorage#lib/active_storage/attached/model.rb:54 +module ActiveStorage::Attached::Model::ClassMethods + # pkg:gem/activestorage#lib/active_storage/attached/model.rb:210 + def has_many_attached(name, dependent: T.unsafe(nil), service: T.unsafe(nil), strict_loading: T.unsafe(nil)); end + + # pkg:gem/activestorage#lib/active_storage/attached/model.rb:108 + def has_one_attached(name, dependent: T.unsafe(nil), service: T.unsafe(nil), strict_loading: T.unsafe(nil)); end +end + +# = Active Storage \Attached \One +# +# Representation of a single attachment to a model. +# +# pkg:gem/activestorage#lib/active_storage/attached/one.rb:7 +class ActiveStorage::Attached::One < ::ActiveStorage::Attached + # Attaches an +attachable+ to the record. + # + # If the record is persisted and unchanged, the attachment is saved to + # the database immediately. Otherwise, it'll be saved to the DB when the + # record is next saved. + # + # person.avatar.attach(params[:avatar]) # ActionDispatch::Http::UploadedFile object + # person.avatar.attach(params[:signed_blob_id]) # Signed reference to blob from direct upload + # person.avatar.attach(io: File.open("/path/to/face.jpg"), filename: "face.jpg", content_type: "image/jpeg") + # person.avatar.attach(avatar_blob) # ActiveStorage::Blob object + # + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:58 + def attach(attachable); end + + # Returns +true+ if an attachment has been made. + # + # class User < ApplicationRecord + # has_one_attached :avatar + # end + # + # User.new.avatar.attached? # => false + # + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:73 + def attached?; end + + # Returns the associated attachment record. + # + # You don't have to call this method to access the attachment's methods as + # they are all available at the model level. + # + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:33 + def attachment; end + + # Returns +true+ if an attachment is not attached. + # + # class User < ApplicationRecord + # has_one_attached :avatar + # end + # + # User.new.avatar.blank? # => true + # + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:44 + def blank?; end + + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:25 + def detach(*, **, &); end + + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:27 + def method_missing(method, *, **, &); end + + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:13 + def purge(*, **, &); end + + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:19 + def purge_later(*, **, &); end + + private + + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:82 + def detach_one; end + + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:78 + def purge_one; end + + # pkg:gem/activestorage#lib/active_storage/attached/one.rb:27 + def respond_to_missing?(name, include_private = T.unsafe(nil)); end +end + +class ActiveStorage::Attachment < ::ActiveStorage::Record + include ::ActiveStorage::Attachment::GeneratedAttributeMethods + include ::ActiveStorage::Attachment::GeneratedAssociationMethods + + def autosave_associated_records_for_blob(*args); end + def autosave_associated_records_for_record(*args); end + def method_missing(method, *, **, &); end + def preview(transformations); end + def purge; end + def purge_later; end + def representation(transformations); end + def signed_id(*, **, &); end + def validate_associated_records_for_blob(*args); end + def variant(transformations); end + + private + + def analyze_blob_later; end + def dependent; end + def mirror_blob_later; end + def named_variants; end + def purge_dependent_blob_later; end + def respond_to_missing?(name, include_private = T.unsafe(nil)); end + def transform_variants_later; end + def transformations_by_name(transformations); end + + class << self + def with_all_variant_records(*args, **); end + + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr__reflections; end + def __class_attr__reflections=(new_value); end + def __class_attr__validators; end + def __class_attr__validators=(new_value); end + def __class_attr_defined_enums; end + def __class_attr_defined_enums=(new_value); end + end +end + +module ActiveStorage::Attachment::GeneratedAssociationMethods + def blob; end + def blob=(value); end + def blob_changed?; end + def blob_previously_changed?; end + def build_blob(*args, &block); end + def create_blob(*args, &block); end + def create_blob!(*args, &block); end + def record; end + def record=(value); end + def record_changed?; end + def record_previously_changed?; end + def reload_blob; end + def reload_record; end + def reset_blob; end + def reset_record; end +end + +module ActiveStorage::Attachment::GeneratedAttributeMethods; end + +class ActiveStorage::BaseController < ::ActionController::Base + include ::ActiveStorage::SetCurrent + + private + + def _layout(lookup_context, formats, keys); end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_etag_with_template_digest; end + def __class_attr_etag_with_template_digest=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class ActiveStorage::BaseJob < ::ActiveJob::Base; end +module ActiveStorage::Blobs; end + +class ActiveStorage::Blobs::ProxyController < ::ActiveStorage::BaseController + include ::ActiveStorage::SetBlob + include ::ActionController::Live + include ::ActiveStorage::Streaming + include ::ActiveStorage::DisableSession + extend ::ActionController::Live::ClassMethods + + def show; end + + private + + def _layout(lookup_context, formats, keys); end + + class << self + def live_streaming_excluded_keys; end + def live_streaming_excluded_keys=(value); end + def live_streaming_excluded_keys?; end + + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_live_streaming_excluded_keys; end + def __class_attr_live_streaming_excluded_keys=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class ActiveStorage::Blobs::RedirectController < ::ActiveStorage::BaseController + include ::ActiveStorage::SetBlob + + def show; end + + private + + def _layout(lookup_context, formats, keys); end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class ActiveStorage::Current < ::ActiveSupport::CurrentAttributes + class << self + def url_options; end + def url_options=(value); end + + private + + def __class_attr_defaults; end + def __class_attr_defaults=(new_value); end + end +end + +class ActiveStorage::DirectUploadsController < ::ActiveStorage::BaseController + def create; end + + private + + def _layout(lookup_context, formats, keys); end + def blob_args; end + def direct_upload_json(blob); end + + class << self + private + + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +module ActiveStorage::DisableSession + extend ::ActiveSupport::Concern +end + +class ActiveStorage::DiskController < ::ActiveStorage::BaseController + include ::ActiveStorage::FileServer + + def show; end + def update; end + + private + + def _layout(lookup_context, formats, keys); end + def acceptable_content?(token); end + def decode_verified_key; end + def decode_verified_token; end + def named_disk_service(name); end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +# pkg:gem/activestorage#lib/active_storage/downloader.rb:4 +class ActiveStorage::Downloader + # pkg:gem/activestorage#lib/active_storage/downloader.rb:7 + def initialize(service); end + + # pkg:gem/activestorage#lib/active_storage/downloader.rb:11 + def open(key, checksum: T.unsafe(nil), verify: T.unsafe(nil), name: T.unsafe(nil), tmpdir: T.unsafe(nil)); end + + # pkg:gem/activestorage#lib/active_storage/downloader.rb:5 + def service; end + + private + + # pkg:gem/activestorage#lib/active_storage/downloader.rb:30 + def download(key, file); end + + # pkg:gem/activestorage#lib/active_storage/downloader.rb:20 + def open_tempfile(name, tmpdir = T.unsafe(nil)); end + + # pkg:gem/activestorage#lib/active_storage/downloader.rb:37 + def verify_integrity_of(file, checksum:); end +end + +# pkg:gem/activestorage#lib/active_storage/engine.rb:25 +class ActiveStorage::Engine < ::Rails::Engine; end + +# Generic base class for all Active Storage exceptions. +# +# pkg:gem/activestorage#lib/active_storage/errors.rb:5 +class ActiveStorage::Error < ::StandardError; end + +# Raised when ActiveStorage::Blob#download is called on a blob where the +# backing file is no longer present in its service. +# +# pkg:gem/activestorage#lib/active_storage/errors.rb:25 +class ActiveStorage::FileNotFoundError < ::ActiveStorage::Error; end + +module ActiveStorage::FileServer + private + + def serve_file(path, content_type:, disposition:); end +end + +class ActiveStorage::Filename + include ::Comparable + + def initialize(filename); end + + def <=>(other); end + def as_json(*); end + def base; end + def extension; end + def extension_with_delimiter; end + def extension_without_delimiter; end + def sanitized; end + def to_s; end + + class << self + def wrap(filename); end + end +end + +# = Active Storage \FixtureSet +# +# Fixtures are a way of organizing data that you want to test against; in +# short, sample data. +# +# To learn more about fixtures, read the ActiveRecord::FixtureSet documentation. +# +# === YAML +# +# Like other Active Record-backed models, ActiveStorage::Attachment and +# ActiveStorage::Blob records inherit from ActiveRecord::Base instances and +# therefore can be populated by fixtures. +# +# Consider a hypothetical Article model class, its related +# fixture data, as well as fixture data for related ActiveStorage::Attachment +# and ActiveStorage::Blob records: +# +# # app/models/article.rb +# class Article < ApplicationRecord +# has_one_attached :thumbnail +# end +# +# +# +# # fixtures/active_storage/blobs.yml +# first_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob filename: "first.png" %> +# +# +# +# # fixtures/active_storage/attachments.yml +# first_thumbnail_attachment: +# name: thumbnail +# record: first (Article) +# blob: first_thumbnail_blob +# +# When processed, Active Record will insert database records for each fixture +# entry and will ensure the Active Storage relationship is intact. +# +# pkg:gem/activestorage#lib/active_storage/fixture_set.rb:44 +class ActiveStorage::FixtureSet + include ::ActiveSupport::Testing::FileFixtures + include ::ActiveRecord::SecureToken + extend ::ActiveRecord::SecureToken::ClassMethods + + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:45 + def file_fixture_path; end + + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:45 + def file_fixture_path?; end + + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:70 + def prepare(instance, **attributes); end + + class << self + # Generate a YAML-encoded representation of an ActiveStorage::Blob + # instance's attributes, resolve the file relative to the directory mentioned + # by ActiveSupport::Testing::FileFixtures.file_fixture, and upload + # the file to the Service + # + # ==== Examples + # + # # tests/fixtures/active_storage/blobs.yml + # second_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob( + # filename: "second.svg", + # ) %> + # + # third_thumbnail_blob: <%= ActiveStorage::FixtureSet.blob( + # filename: "third.svg", + # content_type: "image/svg+xml", + # service_name: "public" + # ) %> + # + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:66 + def blob(filename:, **attributes); end + + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:45 + def file_fixture_path; end + + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:45 + def file_fixture_path=(value); end + + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:45 + def file_fixture_path?; end + + private + + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:45 + def __class_attr_file_fixture_path; end + + # pkg:gem/activestorage#lib/active_storage/fixture_set.rb:45 + def __class_attr_file_fixture_path=(new_value); end + end +end + +# Adds Active Storage's ImageMagick security policy to every ImageMagick process MiniMagick spawns. +# +# ImageMagick reads every `policy.xml` on its configuration search path and applies all of them, +# so the shipped policy adds to the operator's policy rather than replacing it. `MAGICK_CONFIGURE_PATH` +# prepends to that search path; a value the operator has already set, in the environment or in +# `MiniMagick.cli_env`, is kept after the shipped directory. +# +# pkg:gem/activestorage#lib/active_storage/image_magick.rb:25 +module ActiveStorage::ImageMagick + class << self + # Called when Active Storage loads, and again after the application initializes, so that a + # `MAGICK_CONFIGURE_PATH` or `MiniMagick.cli_env` set by an initializer or dotenv keeps the policy. + # + # pkg:gem/activestorage#lib/active_storage/image_magick.rb:30 + def apply_policy; end + + # pkg:gem/activestorage#lib/active_storage/image_magick.rb:37 + def configure_path(operator_path); end + + private + + # pkg:gem/activestorage#lib/active_storage/image_magick.rb:41 + def operator_paths(path); end + end +end + +# pkg:gem/activestorage#lib/active_storage/image_magick.rb:26 +ActiveStorage::ImageMagick::POLICY_DIRECTORY = T.let(T.unsafe(nil), String) + +# Raised when uploaded or downloaded data does not match a precomputed checksum. +# Indicates that a network error or a software bug caused data corruption. +# +# pkg:gem/activestorage#lib/active_storage/errors.rb:21 +class ActiveStorage::IntegrityError < ::ActiveStorage::Error; end + +# Raised when a storage key resolves to a path outside the service's root +# directory, indicating a potential path traversal attack. +# +# pkg:gem/activestorage#lib/active_storage/errors.rb:32 +class ActiveStorage::InvalidKeyError < ::ActiveStorage::Error; end + +# Raised when ActiveStorage::Blob#variant is called on a blob that isn't variable. +# Use ActiveStorage::Blob#variable? to determine whether a blob is variable. +# +# pkg:gem/activestorage#lib/active_storage/errors.rb:9 +class ActiveStorage::InvariableError < ::ActiveStorage::Error; end + +# pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:6 +class ActiveStorage::LogSubscriber < ::ActiveSupport::LogSubscriber + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:53 + def logger; end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:21 + def preview(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:26 + def service_delete(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:31 + def service_delete_prefixed(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:14 + def service_download(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:36 + def service_exist(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:46 + def service_mirror(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:19 + def service_streaming_download(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:7 + def service_upload(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:41 + def service_url(event); end + + private + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:62 + def debug(event, colored_message); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:58 + def info(event, colored_message); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:70 + def key_in(event); end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:66 + def log_prefix_for_service(event); end + + class << self + private + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:12 + def __class_attr_log_levels; end + + # pkg:gem/activestorage#lib/active_storage/log_subscriber.rb:12 + def __class_attr_log_levels=(new_value); end + end +end + +# pkg:gem/activestorage#lib/active_storage/image_magick.rb:14 +ActiveStorage::MINIMAGICK_AVAILABLE = T.let(T.unsafe(nil), FalseClass) + +# pkg:gem/activestorage#lib/active_storage/image_magick.rb:48 +ActiveStorage::MINIMAGICK_UNSECURABLE = T.let(T.unsafe(nil), FalseClass) + +class ActiveStorage::MirrorJob < ::ActiveStorage::BaseJob + def perform(key, checksum:); end + + class << self + private + + def __class_attr_queue_name; end + def __class_attr_queue_name=(new_value); end + def __class_attr_rescue_handlers; end + def __class_attr_rescue_handlers=(new_value); end + end +end + +class ActiveStorage::NamedVariant + def initialize(transformations); end + + def preprocessed; end + def preprocessed?(record); end + def transformations; end +end + +# Raised when a Previewer is unable to generate a preview image. +# +# pkg:gem/activestorage#lib/active_storage/errors.rb:28 +class ActiveStorage::PreviewError < ::ActiveStorage::Error; end + +class ActiveStorage::PreviewImageJob < ::ActiveStorage::BaseJob + def perform(blob, variations); end + + class << self + private + + def __class_attr_queue_name; end + def __class_attr_queue_name=(new_value); end + def __class_attr_rescue_handlers; end + def __class_attr_rescue_handlers=(new_value); end + end +end + +# = Active Storage \Previewer +# +# This is an abstract base class for previewers, which generate images from blobs. See +# ActiveStorage::Previewer::MuPDFPreviewer and ActiveStorage::Previewer::VideoPreviewer for +# examples of concrete subclasses. +# +# pkg:gem/activestorage#lib/active_storage/previewer.rb:9 +class ActiveStorage::Previewer + # pkg:gem/activestorage#lib/active_storage/previewer.rb:18 + def initialize(blob); end + + # pkg:gem/activestorage#lib/active_storage/previewer.rb:10 + def blob; end + + # Override this method in a concrete subclass. Have it yield an attachable preview image (i.e. + # anything accepted by ActiveStorage::Attached::One#attach). Pass the additional options to + # the underlying blob that is created. + # + # pkg:gem/activestorage#lib/active_storage/previewer.rb:25 + def preview(**options); end + + private + + # pkg:gem/activestorage#lib/active_storage/previewer.rb:78 + def capture(*argv, to:); end + + # Downloads the blob to a tempfile on disk. Yields the tempfile. + # + # pkg:gem/activestorage#lib/active_storage/previewer.rb:31 + def download_blob_to_tempfile(&block); end + + # Executes a system command, capturing its binary output in a tempfile. Yields the tempfile. + # + # Use this method to shell out to a system library (e.g. muPDF or FFmpeg) for preview image + # generation. The resulting tempfile can be used as the +:io+ value in an attachable Hash: + # + # def preview + # download_blob_to_tempfile do |input| + # draw "my-drawing-command", input.path, "--format", "png", "-" do |output| + # yield io: output, filename: "#{blob.filename.base}.png", content_type: "image/png" + # end + # end + # end + # + # The output tempfile is opened in the directory returned by #tmpdir. + # + # pkg:gem/activestorage#lib/active_storage/previewer.rb:49 + def draw(*argv); end + + # pkg:gem/activestorage#lib/active_storage/previewer.rb:69 + def instrument(operation, payload = T.unsafe(nil), &block); end + + # pkg:gem/activestorage#lib/active_storage/previewer.rb:93 + def logger; end + + # pkg:gem/activestorage#lib/active_storage/previewer.rb:59 + def open_tempfile; end + + # pkg:gem/activestorage#lib/active_storage/previewer.rb:73 + def service_name; end + + # pkg:gem/activestorage#lib/active_storage/previewer.rb:97 + def tmpdir; end + + class << self + # Implement this method in a concrete subclass. Have it return true when given a blob from which + # the previewer can generate an image. + # + # pkg:gem/activestorage#lib/active_storage/previewer.rb:14 + def accept?(blob); end + end +end + +# pkg:gem/activestorage#lib/active_storage/previewer/mupdf_previewer.rb:4 +class ActiveStorage::Previewer::MuPDFPreviewer < ::ActiveStorage::Previewer + # pkg:gem/activestorage#lib/active_storage/previewer/mupdf_previewer.rb:27 + def preview(**options); end + + private + + # pkg:gem/activestorage#lib/active_storage/previewer/mupdf_previewer.rb:36 + def draw_first_page_from(file, &block); end + + class << self + # pkg:gem/activestorage#lib/active_storage/previewer/mupdf_previewer.rb:6 + def accept?(blob); end + + # pkg:gem/activestorage#lib/active_storage/previewer/mupdf_previewer.rb:18 + def mutool_exists?; end + + # pkg:gem/activestorage#lib/active_storage/previewer/mupdf_previewer.rb:14 + def mutool_path; end + + # pkg:gem/activestorage#lib/active_storage/previewer/mupdf_previewer.rb:10 + def pdf?(content_type); end + end +end + +# pkg:gem/activestorage#lib/active_storage/previewer/poppler_pdf_previewer.rb:4 +class ActiveStorage::Previewer::PopplerPDFPreviewer < ::ActiveStorage::Previewer + # pkg:gem/activestorage#lib/active_storage/previewer/poppler_pdf_previewer.rb:25 + def preview(**options); end + + private + + # pkg:gem/activestorage#lib/active_storage/previewer/poppler_pdf_previewer.rb:34 + def draw_first_page_from(file, &block); end + + class << self + # pkg:gem/activestorage#lib/active_storage/previewer/poppler_pdf_previewer.rb:6 + def accept?(blob); end + + # pkg:gem/activestorage#lib/active_storage/previewer/poppler_pdf_previewer.rb:10 + def pdf?(content_type); end + + # pkg:gem/activestorage#lib/active_storage/previewer/poppler_pdf_previewer.rb:18 + def pdftoppm_exists?; end + + # pkg:gem/activestorage#lib/active_storage/previewer/poppler_pdf_previewer.rb:14 + def pdftoppm_path; end + end +end + +# pkg:gem/activestorage#lib/active_storage/previewer/video_previewer.rb:6 +class ActiveStorage::Previewer::VideoPreviewer < ::ActiveStorage::Previewer + # pkg:gem/activestorage#lib/active_storage/previewer/video_previewer.rb:23 + def preview(**options); end + + private + + # pkg:gem/activestorage#lib/active_storage/previewer/video_previewer.rb:32 + def draw_relevant_frame_from(file, &block); end + + class << self + # pkg:gem/activestorage#lib/active_storage/previewer/video_previewer.rb:8 + def accept?(blob); end + + # pkg:gem/activestorage#lib/active_storage/previewer/video_previewer.rb:12 + def ffmpeg_exists?; end + + # pkg:gem/activestorage#lib/active_storage/previewer/video_previewer.rb:18 + def ffmpeg_path; end + end +end + +class ActiveStorage::PurgeJob < ::ActiveStorage::BaseJob + def perform(blob); end + + class << self + private + + def __class_attr_queue_name; end + def __class_attr_queue_name=(new_value); end + def __class_attr_rescue_handlers; end + def __class_attr_rescue_handlers=(new_value); end + end +end + +class ActiveStorage::Record < ::ActiveRecord::Base + include ::ActiveStorage::Record::GeneratedAttributeMethods + include ::ActiveStorage::Record::GeneratedAssociationMethods + + class << self + private + + def __class_attr__validators; end + def __class_attr__validators=(new_value); end + def __class_attr_defined_enums; end + def __class_attr_defined_enums=(new_value); end + end +end + +module ActiveStorage::Record::GeneratedAssociationMethods; end +module ActiveStorage::Record::GeneratedAttributeMethods; end + +# pkg:gem/activestorage#lib/active_storage/reflection.rb:4 +module ActiveStorage::Reflection; end + +# pkg:gem/activestorage#lib/active_storage/reflection.rb:49 +module ActiveStorage::Reflection::ActiveRecordExtensions + extend ::ActiveSupport::Concern + include GeneratedInstanceMethods + + mixes_in_class_methods GeneratedClassMethods + mixes_in_class_methods ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods + + module GeneratedClassMethods + def attachment_reflections; end + def attachment_reflections=(value); end + def attachment_reflections?; end + end + + module GeneratedInstanceMethods + def attachment_reflections; end + def attachment_reflections?; end + end +end + +# pkg:gem/activestorage#lib/active_storage/reflection.rb:56 +module ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods + # Returns an array of reflection objects for all the attachments in the + # class. + # + # pkg:gem/activestorage#lib/active_storage/reflection.rb:59 + def reflect_on_all_attachments; end + + # Returns the reflection object for the named +attachment+. + # + # User.reflect_on_attachment(:avatar) + # # => the avatar reflection + # + # pkg:gem/activestorage#lib/active_storage/reflection.rb:68 + def reflect_on_attachment(attachment); end +end + +# pkg:gem/activestorage#lib/active_storage/reflection.rb:5 +class ActiveStorage::Reflection::HasAttachedReflection < ::ActiveRecord::Reflection::MacroReflection + # pkg:gem/activestorage#lib/active_storage/reflection.rb:10 + def named_variants; end + + # pkg:gem/activestorage#lib/active_storage/reflection.rb:6 + def variant(name, transformations); end +end + +# Holds all the metadata about a has_many_attached attachment as it was +# specified in the Active Record class. +# +# pkg:gem/activestorage#lib/active_storage/reflection.rb:25 +class ActiveStorage::Reflection::HasManyAttachedReflection < ::ActiveStorage::Reflection::HasAttachedReflection + # pkg:gem/activestorage#lib/active_storage/reflection.rb:26 + def macro; end +end + +# Holds all the metadata about a has_one_attached attachment as it was +# specified in the Active Record class. +# +# pkg:gem/activestorage#lib/active_storage/reflection.rb:17 +class ActiveStorage::Reflection::HasOneAttachedReflection < ::ActiveStorage::Reflection::HasAttachedReflection + # pkg:gem/activestorage#lib/active_storage/reflection.rb:18 + def macro; end +end + +# pkg:gem/activestorage#lib/active_storage/reflection.rb:31 +module ActiveStorage::Reflection::ReflectionExtension + # pkg:gem/activestorage#lib/active_storage/reflection.rb:32 + def add_attachment_reflection(model, name, reflection); end + + private + + # pkg:gem/activestorage#lib/active_storage/reflection.rb:37 + def reflection_class_for(macro); end +end + +module ActiveStorage::Representations; end + +class ActiveStorage::Representations::BaseController < ::ActiveStorage::BaseController + include ::ActiveStorage::SetBlob + + private + + def _layout(lookup_context, formats, keys); end + def blob_scope; end + def set_representation; end + + class << self + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class ActiveStorage::Representations::ProxyController < ::ActiveStorage::Representations::BaseController + include ::ActionController::Live + include ::ActiveStorage::Streaming + include ::ActiveStorage::DisableSession + extend ::ActionController::Live::ClassMethods + + def show; end + + private + + def _layout(lookup_context, formats, keys); end + + class << self + def live_streaming_excluded_keys; end + def live_streaming_excluded_keys=(value); end + def live_streaming_excluded_keys?; end + + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr_live_streaming_excluded_keys; end + def __class_attr_live_streaming_excluded_keys=(new_value); end + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +class ActiveStorage::Representations::RedirectController < ::ActiveStorage::Representations::BaseController + def show; end + + private + + def _layout(lookup_context, formats, keys); end + + class << self + private + + def __class_attr_middleware_stack; end + def __class_attr_middleware_stack=(new_value); end + end +end + +# = Active Storage \Service +# +# Abstract class serving as an interface for concrete services. +# +# The available services are: +# +# * +Disk+, to manage attachments saved directly on the hard drive. +# * +GCS+, to manage attachments through Google Cloud Storage. +# * +S3+, to manage attachments through Amazon S3. +# * +AzureStorage+, to manage attachments through Microsoft Azure Storage. +# * +Mirror+, to be able to use several services to manage attachments. +# +# Inside a \Rails application, you can set-up your services through the +# generated config/storage.yml file and reference one +# of the aforementioned constant under the +service+ key. For example: +# +# local: +# service: Disk +# root: <%= Rails.root.join("storage") %> +# +# You can checkout the service's constructor to know which keys are required. +# +# Then, in your application's configuration, you can specify the service to +# use like this: +# +# config.active_storage.service = :local +# +# If you are using Active Storage outside of a Ruby on \Rails application, you +# can configure the service to use like this: +# +# ActiveStorage::Blob.service = ActiveStorage::Service.configure( +# :local, +# { local: {service: "Disk", root: Pathname("/tmp/foo/storage") } } +# ) +# +# pkg:gem/activestorage#lib/active_storage/service.rb:43 +class ActiveStorage::Service + extend ::ActiveSupport::Autoload + + # Concatenate multiple files into a single "composed" file. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:96 + def compose(source_keys, destination_key, filename: T.unsafe(nil), content_type: T.unsafe(nil), disposition: T.unsafe(nil), custom_metadata: T.unsafe(nil)); end + + # Delete the file at the +key+. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:101 + def delete(key); end + + # Delete files at keys starting with the +prefix+. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:106 + def delete_prefixed(prefix); end + + # Return the content of the file at the +key+. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:82 + def download(key); end + + # Return the partial content in the byte +range+ of the file at the +key+. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:87 + def download_chunk(key, range); end + + # Return +true+ if a file exists at the +key+. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:111 + def exist?(key); end + + # Returns a Hash of headers for +url_for_direct_upload+ requests. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:143 + def headers_for_direct_upload(key, filename:, content_type:, content_length:, checksum:, custom_metadata: T.unsafe(nil)); end + + # pkg:gem/activestorage#lib/active_storage/service.rb:46 + def name; end + + # pkg:gem/activestorage#lib/active_storage/service.rb:46 + def name=(_arg0); end + + # pkg:gem/activestorage#lib/active_storage/service.rb:91 + def open(*args, **options, &block); end + + # pkg:gem/activestorage#lib/active_storage/service.rb:147 + def public?; end + + # Update metadata for the file identified by +key+ in the service. + # Override in subclasses only if the service needs to store specific + # metadata that has to be updated upon identification. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:78 + def update_metadata(key, **metadata); end + + # Upload the +io+ to the +key+ specified. If a +checksum+ is provided, the service will + # ensure a match when the upload has completed or raise an ActiveStorage::IntegrityError. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:71 + def upload(key, io, checksum: T.unsafe(nil), **options); end + + # Returns the URL for the file at the +key+. This returns a permanent URL for public files, and returns a + # short-lived URL for private files. For private files you can provide the +disposition+ (+:inline+ or +:attachment+), + # +filename+, and +content_type+ that you wish the file to be served with on request. Additionally, you can also provide + # the amount of seconds the URL will be valid for, specified in +expires_in+. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:119 + def url(key, **options); end + + # Returns a signed, temporary URL that a direct upload file can be PUT to on the +key+. + # The URL will be valid for the amount of seconds specified in +expires_in+. + # You must also provide the +content_type+, +content_length+, and +checksum+ of the file + # that will be uploaded. All these attributes will be validated by the service upon upload. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:138 + def url_for_direct_upload(key, expires_in:, content_type:, content_length:, checksum:, custom_metadata: T.unsafe(nil)); end + + private + + # pkg:gem/activestorage#lib/active_storage/service.rb:175 + def content_disposition_with(filename:, type: T.unsafe(nil)); end + + # pkg:gem/activestorage#lib/active_storage/service.rb:160 + def custom_metadata_headers(metadata); end + + # pkg:gem/activestorage#lib/active_storage/service.rb:164 + def instrument(operation, payload = T.unsafe(nil), &block); end + + # pkg:gem/activestorage#lib/active_storage/service.rb:152 + def private_url(key, expires_in:, filename:, disposition:, content_type:, **); end + + # pkg:gem/activestorage#lib/active_storage/service.rb:156 + def public_url(key, **); end + + # pkg:gem/activestorage#lib/active_storage/service.rb:170 + def service_name; end + + class << self + # Override in subclasses that stitch together multiple services and hence + # need to build additional services using the configurator. + # + # Passes the configurator and all of the service's config as keyword args. + # + # See MirrorService for an example. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:62 + def build(configurator:, name:, service: T.unsafe(nil), **service_config); end + + # Configure an Active Storage service by name from a set of configurations, + # typically loaded from a YAML file. The Active Storage engine uses this + # to set the global Active Storage service when the app boots. + # + # pkg:gem/activestorage#lib/active_storage/service.rb:52 + def configure(service_name, configurations); end + end +end + +# pkg:gem/activestorage#lib/active_storage/service/configurator.rb:4 +class ActiveStorage::Service::Configurator + # pkg:gem/activestorage#lib/active_storage/service/configurator.rb:11 + def initialize(configurations); end + + # pkg:gem/activestorage#lib/active_storage/service/configurator.rb:15 + def build(service_name); end + + # pkg:gem/activestorage#lib/active_storage/service/configurator.rb:5 + def configurations; end + + private + + # pkg:gem/activestorage#lib/active_storage/service/configurator.rb:23 + def config_for(name); end + + # pkg:gem/activestorage#lib/active_storage/service/configurator.rb:29 + def resolve(class_name); end + + class << self + # pkg:gem/activestorage#lib/active_storage/service/configurator.rb:7 + def build(service_name, configurations); end + end +end + +# pkg:gem/activestorage#lib/active_storage/service/registry.rb:4 +class ActiveStorage::Service::Registry + # pkg:gem/activestorage#lib/active_storage/service/registry.rb:5 + def initialize(configurations); end + + # pkg:gem/activestorage#lib/active_storage/service/registry.rb:10 + def fetch(name); end + + private + + # pkg:gem/activestorage#lib/active_storage/service/registry.rb:26 + def configurations; end + + # pkg:gem/activestorage#lib/active_storage/service/registry.rb:28 + def configurator; end + + # pkg:gem/activestorage#lib/active_storage/service/registry.rb:26 + def services; end +end + +module ActiveStorage::SetBlob + extend ::ActiveSupport::Concern + + private + + def blob_scope; end + def set_blob; end +end + +module ActiveStorage::SetCurrent + extend ::ActiveSupport::Concern +end + +module ActiveStorage::Streaming + extend ::ActiveSupport::Concern + include GeneratedInstanceMethods + include ::ActionController::Rendering + include ::ActionController::DataStreaming + include ::ActionController::Live + + mixes_in_class_methods GeneratedClassMethods + mixes_in_class_methods ::ActionController::Rendering::ClassMethods + mixes_in_class_methods ::ActionController::Live::ClassMethods + + private + + def ranges_valid?(ranges); end + def send_blob_byte_range_data(blob, range_header, disposition: T.unsafe(nil)); end + def send_blob_stream(blob, disposition: T.unsafe(nil)); end + + module GeneratedClassMethods + def live_streaming_excluded_keys; end + def live_streaming_excluded_keys=(value); end + def live_streaming_excluded_keys?; end + end + + module GeneratedInstanceMethods; end +end + +ActiveStorage::Streaming::DEFAULT_BLOB_STREAMING_DISPOSITION = T.let(T.unsafe(nil), String) + +class ActiveStorage::TransformJob < ::ActiveStorage::BaseJob + def perform(blob, transformations); end + + class << self + private + + def __class_attr_queue_name; end + def __class_attr_queue_name=(new_value); end + def __class_attr_rescue_handlers; end + def __class_attr_rescue_handlers=(new_value); end + end +end + +# pkg:gem/activestorage#lib/active_storage.rb:385 +module ActiveStorage::Transformers + extend ::ActiveSupport::Autoload +end + +# pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:14 +class ActiveStorage::Transformers::ImageProcessingTransformer < ::ActiveStorage::Transformers::Transformer + private + + # pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:32 + def operations; end + + # pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:19 + def process(file, format:); end + + # pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:28 + def processor; end + + # pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:79 + def validate_arg_array(argument); end + + # pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:93 + def validate_arg_hash(argument); end + + # pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:71 + def validate_arg_string(argument); end + + # pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:51 + def validate_transformation(name, argument); end +end + +# pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:17 +class ActiveStorage::Transformers::ImageProcessingTransformer::UnsupportedImageProcessingArgument < ::StandardError; end + +# pkg:gem/activestorage#lib/active_storage/transformers/image_processing_transformer.rb:16 +class ActiveStorage::Transformers::ImageProcessingTransformer::UnsupportedImageProcessingMethod < ::StandardError; end + +# = Active Storage \Transformers \Transformer +# +# A Transformer applies a set of transformations to an image. +# +# The following concrete subclasses are included in Active Storage: +# +# * ActiveStorage::Transformers::ImageProcessingTransformer: +# backed by ImageProcessing, a common interface for MiniMagick and ruby-vips +# +# pkg:gem/activestorage#lib/active_storage/transformers/transformer.rb:13 +class ActiveStorage::Transformers::Transformer + # pkg:gem/activestorage#lib/active_storage/transformers/transformer.rb:16 + def initialize(transformations); end + + # Applies the transformations to the source image in +file+, producing a target image in the + # specified +format+. Yields an open Tempfile containing the target image. Closes and unlinks + # the output tempfile after yielding to the given block. Returns the result of the block. + # + # pkg:gem/activestorage#lib/active_storage/transformers/transformer.rb:23 + def transform(file, format:); end + + # pkg:gem/activestorage#lib/active_storage/transformers/transformer.rb:14 + def transformations; end + + private + + # Returns an open Tempfile containing a transformed image in the given +format+. + # All subclasses implement this method. + # + # pkg:gem/activestorage#lib/active_storage/transformers/transformer.rb:36 + def process(file, format:); end +end + +# Raised when ActiveStorage::Blob#preview is called on a blob that isn't previewable. +# Use ActiveStorage::Blob#previewable? to determine whether a blob is previewable. +# +# pkg:gem/activestorage#lib/active_storage/errors.rb:13 +class ActiveStorage::UnpreviewableError < ::ActiveStorage::Error; end + +# Raised when ActiveStorage::Blob#representation is called on a blob that isn't representable. +# Use ActiveStorage::Blob#representable? to determine whether a blob is representable. +# +# pkg:gem/activestorage#lib/active_storage/errors.rb:17 +class ActiveStorage::UnrepresentableError < ::ActiveStorage::Error; end + +# pkg:gem/activestorage#lib/active_storage/gem_version.rb:9 +module ActiveStorage::VERSION; end + +# pkg:gem/activestorage#lib/active_storage/gem_version.rb:10 +ActiveStorage::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) + +# pkg:gem/activestorage#lib/active_storage/gem_version.rb:11 +ActiveStorage::VERSION::MINOR = T.let(T.unsafe(nil), Integer) + +# pkg:gem/activestorage#lib/active_storage/gem_version.rb:13 +ActiveStorage::VERSION::PRE = T.let(T.unsafe(nil), String) + +# pkg:gem/activestorage#lib/active_storage/gem_version.rb:15 +ActiveStorage::VERSION::STRING = T.let(T.unsafe(nil), String) + +# pkg:gem/activestorage#lib/active_storage/gem_version.rb:12 +ActiveStorage::VERSION::TINY = T.let(T.unsafe(nil), Integer) + +# pkg:gem/activestorage#lib/active_storage/vips.rb:19 +ActiveStorage::VIPS_AVAILABLE = T.let(T.unsafe(nil), FalseClass) + +class ActiveStorage::VariantRecord < ::ActiveStorage::Record + include ::ActiveStorage::VariantRecord::GeneratedAttributeMethods + include ::ActiveStorage::VariantRecord::GeneratedAssociationMethods + + def autosave_associated_records_for_blob(*args); end + def autosave_associated_records_for_image_attachment(*args); end + def autosave_associated_records_for_image_blob(*args); end + + class << self + def with_attached_image(*args, **); end + + private + + def __class_attr___callbacks; end + def __class_attr___callbacks=(new_value); end + def __class_attr__reflections; end + def __class_attr__reflections=(new_value); end + def __class_attr__validators; end + def __class_attr__validators=(new_value); end + def __class_attr_attachment_reflections; end + def __class_attr_attachment_reflections=(new_value); end + def __class_attr_defined_enums; end + def __class_attr_defined_enums=(new_value); end + end +end + +module ActiveStorage::VariantRecord::GeneratedAssociationMethods + def blob; end + def blob=(value); end + def blob_changed?; end + def blob_previously_changed?; end + def build_blob(*args, &block); end + def build_image_attachment(*args, &block); end + def build_image_blob(*args, &block); end + def create_blob(*args, &block); end + def create_blob!(*args, &block); end + def create_image_attachment(*args, &block); end + def create_image_attachment!(*args, &block); end + def create_image_blob(*args, &block); end + def create_image_blob!(*args, &block); end + def image; end + def image=(attachable); end + def image_attachment; end + def image_attachment=(value); end + def image_blob; end + def image_blob=(value); end + def reload_blob; end + def reload_image_attachment; end + def reload_image_blob; end + def reset_blob; end + def reset_image_attachment; end + def reset_image_blob; end +end + +module ActiveStorage::VariantRecord::GeneratedAttributeMethods; end + +class ActiveStorage::Variation + def initialize(transformations); end + + def content_type; end + def default_to(defaults); end + def digest; end + def format; end + def key; end + def transform(file, &block); end + def transformations; end + + private + + def transformer; end + + class << self + def decode(key); end + def encode(transformations); end + def wrap(variator); end + end +end diff --git a/sorbet/rbi/gems/activesupport@8.0.5.1.rbi b/sorbet/rbi/gems/activesupport@8.0.5.2.rbi similarity index 63% rename from sorbet/rbi/gems/activesupport@8.0.5.1.rbi rename to sorbet/rbi/gems/activesupport@8.0.5.2.rbi index d3885307..9abb82e5 100644 --- a/sorbet/rbi/gems/activesupport@8.0.5.1.rbi +++ b/sorbet/rbi/gems/activesupport@8.0.5.2.rbi @@ -6,111 +6,132 @@ # :include: ../README.rdoc +# -- +# The JSON gem adds a few modules to Ruby core classes containing :to_json definition, overwriting +# their default behavior. That said, we need to define the basic to_json method in all of them, +# otherwise they will always use to_json gem implementation, which is backwards incompatible in +# several cases (for instance, the JSON implementation for Hash does not work) with inheritance. +# +# On the other hand, we should avoid conflict with ::JSON.{generate,dump}(obj). Unfortunately, the +# JSON gem's encoder relies on its own to_json implementation to encode objects. Since it always +# passes a ::JSON::State object as the only argument to to_json, we can detect that and forward the +# calls to the original to_json method. +# +# It should be noted that when using ::JSON.{generate,dump} directly, ActiveSupport's encoder is +# bypassed completely. This means that as_json won't be invoked and the JSON gem will simply +# ignore any options it does not natively understand. This also means that ::JSON.{generate,dump} +# should give exactly the same results with or without Active Support. +# -- +# Defines the standard inflection rules. These are the starting point for +# new projects and are not considered complete. The current set of inflection +# rules is frozen. This means, we do not change them to become more complete. +# This is a safety measure to keep existing applications from breaking. +# ++ # -# source://activesupport//lib/active_support/delegation.rb#3 +# pkg:gem/activesupport#lib/active_support/delegation.rb:3 module ActiveSupport extend ::ActiveSupport::LazyLoadHooks extend ::ActiveSupport::Autoload - # source://activesupport//lib/active_support/json/decoding.rb#9 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:9 def parse_json_times; end - # source://activesupport//lib/active_support/json/decoding.rb#9 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:9 def parse_json_times=(val); end - # source://activesupport//lib/active_support.rb#100 + # pkg:gem/activesupport#lib/active_support.rb:100 def test_order; end - # source://activesupport//lib/active_support.rb#100 + # pkg:gem/activesupport#lib/active_support.rb:100 def test_order=(val); end - # source://activesupport//lib/active_support.rb#101 + # pkg:gem/activesupport#lib/active_support.rb:101 def test_parallelization_threshold; end - # source://activesupport//lib/active_support.rb#101 + # pkg:gem/activesupport#lib/active_support.rb:101 def test_parallelization_threshold=(val); end class << self - # source://activesupport//lib/active_support.rb#106 + # pkg:gem/activesupport#lib/active_support.rb:106 def cache_format_version; end - # source://activesupport//lib/active_support.rb#110 + # pkg:gem/activesupport#lib/active_support.rb:110 def cache_format_version=(value); end - # source://activesupport//lib/active_support/deprecator.rb#4 + # pkg:gem/activesupport#lib/active_support/deprecator.rb:4 def deprecator; end - # source://activesupport//lib/active_support.rb#94 + # pkg:gem/activesupport#lib/active_support.rb:94 def eager_load!; end - # source://activesupport//lib/active_support.rb#104 + # pkg:gem/activesupport#lib/active_support.rb:104 def error_reporter; end - # source://activesupport//lib/active_support.rb#104 + # pkg:gem/activesupport#lib/active_support.rb:104 def error_reporter=(_arg0); end - # source://activesupport//lib/active_support/json/encoding.rb#8 - def escape_html_entities_in_json(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 + def escape_html_entities_in_json(*, **, &); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def escape_html_entities_in_json=(arg); end # Returns the currently loaded version of Active Support as a +Gem::Version+. # - # source://activesupport//lib/active_support/gem_version.rb#5 + # pkg:gem/activesupport#lib/active_support/gem_version.rb:5 def gem_version; end - # source://activesupport//lib/active_support/json/encoding.rb#8 - def json_encoder(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 + def json_encoder(*, **, &); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def json_encoder=(arg); end - # source://activesupport//lib/active_support/json/decoding.rb#9 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:9 def parse_json_times; end - # source://activesupport//lib/active_support/json/decoding.rb#9 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:9 def parse_json_times=(val); end - # source://activesupport//lib/active_support.rb#100 + # pkg:gem/activesupport#lib/active_support.rb:100 def test_order; end - # source://activesupport//lib/active_support.rb#100 + # pkg:gem/activesupport#lib/active_support.rb:100 def test_order=(val); end - # source://activesupport//lib/active_support.rb#101 + # pkg:gem/activesupport#lib/active_support.rb:101 def test_parallelization_threshold; end - # source://activesupport//lib/active_support.rb#101 + # pkg:gem/activesupport#lib/active_support.rb:101 def test_parallelization_threshold=(val); end - # source://activesupport//lib/active_support/json/encoding.rb#8 - def time_precision(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 + def time_precision(*, **, &); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def time_precision=(arg); end - # source://activesupport//lib/active_support.rb#114 + # pkg:gem/activesupport#lib/active_support.rb:114 def to_time_preserves_timezone; end - # source://activesupport//lib/active_support.rb#118 + # pkg:gem/activesupport#lib/active_support.rb:118 def to_time_preserves_timezone=(value); end - # source://activesupport//lib/active_support/json/encoding.rb#8 - def use_standard_json_time_format(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 + def use_standard_json_time_format(*, **, &); end - # source://activesupport//lib/active_support/json/encoding.rb#8 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:8 def use_standard_json_time_format=(arg); end - # source://activesupport//lib/active_support.rb#134 + # pkg:gem/activesupport#lib/active_support.rb:134 def utc_to_local_returns_utc_offset_times; end - # source://activesupport//lib/active_support.rb#138 + # pkg:gem/activesupport#lib/active_support.rb:138 def utc_to_local_returns_utc_offset_times=(value); end # Returns the currently loaded version of Active Support as a +Gem::Version+. # - # source://activesupport//lib/active_support/version.rb#7 + # pkg:gem/activesupport#lib/active_support/version.rb:7 def version; end end end @@ -123,7 +144,7 @@ end # module and invoke the +action+ class macro to define the action. An action # needs a name and a block to execute. # -# source://activesupport//lib/active_support/actionable_error.rb#11 +# pkg:gem/activesupport#lib/active_support/actionable_error.rb:11 module ActiveSupport::ActionableError extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -132,10 +153,10 @@ module ActiveSupport::ActionableError mixes_in_class_methods ::ActiveSupport::ActionableError::ClassMethods class << self - # source://activesupport//lib/active_support/actionable_error.rb#20 + # pkg:gem/activesupport#lib/active_support/actionable_error.rb:20 def actions(error); end - # source://activesupport//lib/active_support/actionable_error.rb#29 + # pkg:gem/activesupport#lib/active_support/actionable_error.rb:29 def dispatch(error, name); end end @@ -152,7 +173,7 @@ module ActiveSupport::ActionableError end end -# source://activesupport//lib/active_support/actionable_error.rb#35 +# pkg:gem/activesupport#lib/active_support/actionable_error.rb:35 module ActiveSupport::ActionableError::ClassMethods # Defines an action that can resolve the error. # @@ -164,11 +185,11 @@ module ActiveSupport::ActionableError::ClassMethods # end # end # - # source://activesupport//lib/active_support/actionable_error.rb#45 + # pkg:gem/activesupport#lib/active_support/actionable_error.rb:45 def action(name, &block); end end -# source://activesupport//lib/active_support/actionable_error.rb#14 +# pkg:gem/activesupport#lib/active_support/actionable_error.rb:14 class ActiveSupport::ActionableError::NonActionable < ::StandardError; end # = \Array Inquirer @@ -182,7 +203,7 @@ class ActiveSupport::ActionableError::NonActionable < ::StandardError; end # variants.tablet? # => true # variants.desktop? # => false # -# source://activesupport//lib/active_support/array_inquirer.rb#14 +# pkg:gem/activesupport#lib/active_support/array_inquirer.rb:14 class ActiveSupport::ArrayInquirer < ::Array # Passes each element of +candidates+ collection to ArrayInquirer collection. # The method returns true if any element from the ArrayInquirer collection @@ -197,19 +218,15 @@ class ActiveSupport::ArrayInquirer < ::Array # variants.any?('phone', 'desktop') # => true # variants.any?(:desktop, :watch) # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/array_inquirer.rb#27 + # pkg:gem/activesupport#lib/active_support/array_inquirer.rb:27 def any?(*candidates); end private - # source://activesupport//lib/active_support/array_inquirer.rb#42 - def method_missing(name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activesupport#lib/active_support/array_inquirer.rb:42 + def method_missing(name, *, **, &); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/array_inquirer.rb#38 + # pkg:gem/activesupport#lib/active_support/array_inquirer.rb:38 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -237,21 +254,21 @@ end # # MyLib.eager_load! # -# source://activesupport//lib/active_support/dependencies/autoload.rb#29 +# pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:29 module ActiveSupport::Autoload - # source://activesupport//lib/active_support/dependencies/autoload.rb#30 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:30 def autoload(const_name, path = T.unsafe(nil)); end - # source://activesupport//lib/active_support/dependencies/autoload.rb#51 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:51 def autoload_at(path); end - # source://activesupport//lib/active_support/dependencies/autoload.rb#44 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:44 def autoload_under(path); end - # source://activesupport//lib/active_support/dependencies/autoload.rb#58 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:58 def eager_autoload; end - # source://activesupport//lib/active_support/dependencies/autoload.rb#65 + # pkg:gem/activesupport#lib/active_support/dependencies/autoload.rb:65 def eager_load!; end end @@ -286,11 +303,9 @@ end # # Inspired by the Quiet Backtrace gem by thoughtbot. # -# source://activesupport//lib/active_support/backtrace_cleaner.rb#34 +# pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:34 class ActiveSupport::BacktraceCleaner - # @return [BacktraceCleaner] a new instance of BacktraceCleaner - # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#35 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:35 def initialize; end # Adds a filter from the block provided. Each line in the backtrace will be @@ -300,7 +315,7 @@ class ActiveSupport::BacktraceCleaner # root = "#{Rails.root}/" # backtrace_cleaner.add_filter { |line| line.delete_prefix(root) } # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#83 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:83 def add_filter(&block); end # Adds a silencer from the block provided. If the silencer returns +true+ @@ -309,72 +324,69 @@ class ActiveSupport::BacktraceCleaner # # Will reject all lines that include the word "puma", like "/gems/puma/server.rb" or "/app/my_puma_server/rb" # backtrace_cleaner.add_silencer { |line| /puma/.match?(line) } # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#92 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:92 def add_silencer(&block); end # Returns the backtrace after all filters and silencers have been run # against it. Filters run first, then silencers. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#45 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:45 def clean(backtrace, kind = T.unsafe(nil)); end # Returns the frame with all filters applied. # returns +nil+ if the frame was silenced. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#61 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:61 def clean_frame(frame, kind = T.unsafe(nil)); end - # Returns the backtrace after all filters and silencers have been run - # against it. Filters run first, then silencers. - # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#45 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:57 def filter(backtrace, kind = T.unsafe(nil)); end # Removes all filters, but leaves in the silencers. Useful if you suddenly # need to see entire filepaths in the backtrace that you had already # filtered out. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#106 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:106 def remove_filters!; end # Removes all silencers, but leaves in the filters. Useful if your # context of debugging suddenly expands as you suspect a bug in one of # the libraries you use. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#99 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:99 def remove_silencers!; end private - # source://activesupport//lib/active_support/backtrace_cleaner.rb#127 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:127 def add_core_silencer; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#118 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:118 def add_gem_filter; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#131 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:131 def add_gem_silencer; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#135 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:135 def add_stdlib_silencer; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#139 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:139 def filter_backtrace(backtrace); end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#113 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:113 def initialize_copy(_other); end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#155 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:155 def noise(backtrace); end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#147 + # pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:147 def silence(backtrace); end end -# source://activesupport//lib/active_support/backtrace_cleaner.rb#111 +# pkg:gem/activesupport#lib/active_support/backtrace_cleaner.rb:111 ActiveSupport::BacktraceCleaner::FORMATTED_GEMS_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/benchmark.rb#4 +# pkg:gem/activesupport#lib/active_support/benchmark.rb:4 module ActiveSupport::Benchmark class << self # Benchmark realtime in the specified time unit. By default, @@ -388,14 +400,14 @@ module ActiveSupport::Benchmark # # `unit` can be any of the values accepted by Ruby's `Process.clock_gettime`. # - # source://activesupport//lib/active_support/benchmark.rb#15 + # pkg:gem/activesupport#lib/active_support/benchmark.rb:15 def realtime(unit = T.unsafe(nil), &block); end end end # = \Benchmarkable # -# source://activesupport//lib/active_support/benchmarkable.rb#7 +# pkg:gem/activesupport#lib/active_support/benchmarkable.rb:7 module ActiveSupport::Benchmarkable # Allows you to measure the execution time of a block in a template and # records the result to the log. Wrap this block around expensive operations @@ -427,13 +439,13 @@ module ActiveSupport::Benchmarkable # <%= expensive_and_chatty_files_operation %> # <% end %> # - # source://activesupport//lib/active_support/benchmarkable.rb#37 + # pkg:gem/activesupport#lib/active_support/benchmarkable.rb:37 def benchmark(message = T.unsafe(nil), options = T.unsafe(nil), &block); end end -# source://activesupport//lib/active_support/core_ext/big_decimal/conversions.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/big_decimal/conversions.rb:7 module ActiveSupport::BigDecimalWithDefaultFormat - # source://activesupport//lib/active_support/core_ext/big_decimal/conversions.rb#8 + # pkg:gem/activesupport#lib/active_support/core_ext/big_decimal/conversions.rb:8 def to_s(format = T.unsafe(nil)); end end @@ -508,144 +520,130 @@ end # puts logger.broadcasts # => [MyLogger, MyLogger] # logger.loggable? # [true, true] # -# source://activesupport//lib/active_support/broadcast_logger.rb#74 +# pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:74 class ActiveSupport::BroadcastLogger include ::ActiveSupport::LoggerSilence include ::ActiveSupport::LoggerThreadSafeLevel - # @return [BroadcastLogger] a new instance of BroadcastLogger - # - # source://activesupport//lib/active_support/broadcast_logger.rb#81 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:81 def initialize(*loggers); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def <<(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def <<(*, **, &); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def add(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def add(*, **, &); end # Add logger(s) to the broadcast. # # broadcast_logger = ActiveSupport::BroadcastLogger.new # broadcast_logger.broadcast_to(Logger.new(STDOUT), Logger.new(STDERR)) # - # source://activesupport//lib/active_support/broadcast_logger.rb#92 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:92 def broadcast_to(*loggers); end # Returns all the logger that are part of this broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#78 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:78 def broadcasts; end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def close(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def close(*, **, &); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def debug(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def debug(*, **, &); end # Sets the log level to +Logger::DEBUG+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#146 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:146 def debug!; end # True if the log level allows entries with severity +Logger::DEBUG+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#141 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:141 def debug?; end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def error(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def error(*, **, &); end # Sets the log level to +Logger::ERROR+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#179 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:179 def error!; end # True if the log level allows entries with severity +Logger::ERROR+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#174 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:174 def error?; end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def fatal(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def fatal(*, **, &); end # Sets the log level to +Logger::FATAL+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#190 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:190 def fatal!; end # True if the log level allows entries with severity +Logger::FATAL+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#185 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:185 def fatal?; end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def formatter(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def formatter(*, **, &); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def formatter=(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def formatter=(*, **, &); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def info(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def info(*, **, &); end # Sets the log level to +Logger::INFO+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#157 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:157 def info!; end # True if the log level allows entries with severity +Logger::INFO+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#152 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:152 def info?; end # Returns the lowest level of all the loggers in the broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#135 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:135 def level; end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def level=(*_arg0, **_arg1, &_arg2); end + # Returns the lowest level of all the loggers in the broadcast. + # + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def level=(*, **, &); end - # source://activesupport//lib/active_support/broadcast_logger.rb#113 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:113 def local_level; end - # source://activesupport//lib/active_support/broadcast_logger.rb#107 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:107 def local_level=(level); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def log(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def log(*, **, &); end - # Returns the value of attribute progname. - # - # source://activesupport//lib/active_support/broadcast_logger.rb#79 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:79 def progname; end - # Sets the attribute progname - # - # @param value the value to set the attribute progname to. - # - # source://activesupport//lib/active_support/broadcast_logger.rb#79 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:79 def progname=(_arg0); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def sev_threshold=(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def sev_threshold=(*, **, &); end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:75 def silencer; end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:75 def silencer=(val); end # Remove a logger from the broadcast. When a logger is removed, messages sent to @@ -656,59 +654,55 @@ class ActiveSupport::BroadcastLogger # # broadcast_logger.stop_broadcasting_to(sink) # - # source://activesupport//lib/active_support/broadcast_logger.rb#103 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:103 def stop_broadcasting_to(logger); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def unknown(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def unknown(*, **, &); end - # source://activesupport//lib/active_support/broadcast_logger.rb#128 - def warn(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:127 + def warn(*, **, &); end # Sets the log level to +Logger::WARN+ for the whole broadcast. # - # source://activesupport//lib/active_support/broadcast_logger.rb#168 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:168 def warn!; end # True if the log level allows entries with severity +Logger::WARN+ to be written # to at least one broadcast. False otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#163 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:163 def warn?; end private - # source://activesupport//lib/active_support/broadcast_logger.rb#202 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:202 def dispatch(method, *args, **kwargs, &block); end - # source://activesupport//lib/active_support/broadcast_logger.rb#194 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:194 def initialize_copy(other); end - # source://activesupport//lib/active_support/broadcast_logger.rb#222 - def method_missing(name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:222 + def method_missing(name, *, **, &); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/broadcast_logger.rb#234 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:234 def respond_to_missing?(method, include_all); end class << self - # source://activesupport//lib/active_support/logger_silence.rb#12 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:75 def silencer; end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:75 def silencer=(val); end end end -# source://activesupport//lib/active_support/broadcast_logger.rb#121 +# pkg:gem/activesupport#lib/active_support/broadcast_logger.rb:121 ActiveSupport::BroadcastLogger::LOGGER_METHODS = T.let(T.unsafe(nil), Array) # See ActiveSupport::Cache::Store for documentation. # -# source://activesupport//lib/active_support/cache/entry.rb#6 +# pkg:gem/activesupport#lib/active_support/cache/entry.rb:6 module ActiveSupport::Cache class << self # Expands out the +key+ argument into a key that can be used for the @@ -724,19 +718,13 @@ module ActiveSupport::Cache # # The +key+ argument can also respond to +cache_key+ or +to_param+. # - # source://activesupport//lib/active_support/cache.rb#112 + # pkg:gem/activesupport#lib/active_support/cache.rb:112 def expand_cache_key(key, namespace = T.unsafe(nil)); end - # Returns the value of attribute format_version. - # - # source://activesupport//lib/active_support/cache.rb#59 + # pkg:gem/activesupport#lib/active_support/cache.rb:59 def format_version; end - # Sets the attribute format_version - # - # @param value the value to set the attribute format_version to. - # - # source://activesupport//lib/active_support/cache.rb#59 + # pkg:gem/activesupport#lib/active_support/cache.rb:59 def format_version=(_arg0); end # Creates a new Store object according to the given options. @@ -765,125 +753,115 @@ module ActiveSupport::Cache # ActiveSupport::Cache.lookup_store(MyOwnCacheStore.new) # # => returns MyOwnCacheStore.new # - # source://activesupport//lib/active_support/cache.rb#86 + # pkg:gem/activesupport#lib/active_support/cache.rb:86 def lookup_store(store = T.unsafe(nil), *parameters); end private - # source://activesupport//lib/active_support/cache.rb#124 + # pkg:gem/activesupport#lib/active_support/cache.rb:124 def retrieve_cache_key(key); end # Obtains the specified cache store class, given the name of the +store+. # Raises an error when the store class cannot be found. # - # source://activesupport//lib/active_support/cache.rb#136 + # pkg:gem/activesupport#lib/active_support/cache.rb:136 def retrieve_store_class(store); end end end -# source://activesupport//lib/active_support/cache/coder.rb#7 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:7 class ActiveSupport::Cache::Coder - # @return [Coder] a new instance of Coder - # - # source://activesupport//lib/active_support/cache/coder.rb#8 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:8 def initialize(serializer, compressor, legacy_serializer: T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/coder.rb#14 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:14 def dump(entry); end - # source://activesupport//lib/active_support/cache/coder.rb#20 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:20 def dump_compressed(entry, threshold); end - # source://activesupport//lib/active_support/cache/coder.rb#48 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:48 def load(dumped); end private - # source://activesupport//lib/active_support/cache/coder.rb#136 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:136 def dump_version(version); end - # source://activesupport//lib/active_support/cache/coder.rb#144 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:144 def load_version(dumped_version); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/coder.rb#121 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:121 def signature?(dumped); end - # source://activesupport//lib/active_support/cache/coder.rb#129 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:129 def try_compress(string, threshold); end - # source://activesupport//lib/active_support/cache/coder.rb#125 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:125 def type_for_string(value); end end -# source://activesupport//lib/active_support/cache/coder.rb#76 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:76 ActiveSupport::Cache::Coder::COMPRESSED_FLAG = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache/coder.rb#98 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:98 class ActiveSupport::Cache::Coder::LazyEntry < ::ActiveSupport::Cache::Entry - # @return [LazyEntry] a new instance of LazyEntry - # - # source://activesupport//lib/active_support/cache/coder.rb#99 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:99 def initialize(serializer, compressor, payload, **options); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/coder.rb#114 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:114 def mismatched?(version); end - # source://activesupport//lib/active_support/cache/coder.rb#106 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:106 def value; end end -# source://activesupport//lib/active_support/cache/coder.rb#84 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:84 ActiveSupport::Cache::Coder::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#68 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:68 ActiveSupport::Cache::Coder::OBJECT_DUMP_TYPE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache/coder.rb#80 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:80 ActiveSupport::Cache::Coder::PACKED_EXPIRES_AT_TEMPLATE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#78 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:78 ActiveSupport::Cache::Coder::PACKED_TEMPLATE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#79 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:79 ActiveSupport::Cache::Coder::PACKED_TYPE_TEMPLATE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#82 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:82 ActiveSupport::Cache::Coder::PACKED_VERSION_INDEX = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache/coder.rb#81 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:81 ActiveSupport::Cache::Coder::PACKED_VERSION_LENGTH_TEMPLATE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#66 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:66 ActiveSupport::Cache::Coder::SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/coder.rb#96 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:96 ActiveSupport::Cache::Coder::STRING_DESERIALIZERS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/cache/coder.rb#70 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:70 ActiveSupport::Cache::Coder::STRING_ENCODINGS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/cache/coder.rb#86 +# pkg:gem/activesupport#lib/active_support/cache/coder.rb:86 class ActiveSupport::Cache::Coder::StringDeserializer - # @return [StringDeserializer] a new instance of StringDeserializer - # - # source://activesupport//lib/active_support/cache/coder.rb#87 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:87 def initialize(encoding); end - # source://activesupport//lib/active_support/cache/coder.rb#91 + # pkg:gem/activesupport#lib/active_support/cache/coder.rb:91 def load(payload); end end -# source://activesupport//lib/active_support/cache.rb#46 +# pkg:gem/activesupport#lib/active_support/cache.rb:46 ActiveSupport::Cache::DEFAULT_COMPRESS_LIMIT = T.let(T.unsafe(nil), Integer) # Raised by coders when the cache entry can't be deserialized. # This error is treated as a cache miss. # -# source://activesupport//lib/active_support/cache.rb#50 +# pkg:gem/activesupport#lib/active_support/cache.rb:50 class ActiveSupport::Cache::DeserializationError < ::StandardError; end # This class is used to represent cache entries. Cache entries have a value, an optional @@ -894,81 +872,69 @@ class ActiveSupport::Cache::DeserializationError < ::StandardError; end # Since cache entries in most instances will be serialized, the internals of this class are highly optimized # using short instance variable names that are lazily defined. # -# source://activesupport//lib/active_support/cache/entry.rb#14 +# pkg:gem/activesupport#lib/active_support/cache/entry.rb:14 class ActiveSupport::Cache::Entry # Creates a new cache entry for the specified value. Options supported are # +:compressed+, +:version+, +:expires_at+ and +:expires_in+. # - # @return [Entry] a new instance of Entry - # - # source://activesupport//lib/active_support/cache/entry.rb#25 - def initialize(value, compressed: T.unsafe(nil), version: T.unsafe(nil), expires_in: T.unsafe(nil), expires_at: T.unsafe(nil), **_arg5); end + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:25 + def initialize(value, compressed: T.unsafe(nil), version: T.unsafe(nil), expires_in: T.unsafe(nil), expires_at: T.unsafe(nil), **); end # Returns the size of the cached value. This could be less than # value.bytesize if the data is compressed. # - # source://activesupport//lib/active_support/cache/entry.rb#61 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:61 def bytesize; end - # source://activesupport//lib/active_support/cache/entry.rb#76 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:76 def compressed(compress_threshold); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/entry.rb#72 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:72 def compressed?; end # Duplicates the value in a class. This is used by cache implementations that don't natively # serialize entries to protect against accidental cache modifications. # - # source://activesupport//lib/active_support/cache/entry.rb#106 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:106 def dup_value!; end # Checks if the entry is expired. The +expires_in+ parameter can override # the value set when the entry was created. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/entry.rb#43 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:43 def expired?; end - # source://activesupport//lib/active_support/cache/entry.rb#47 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:47 def expires_at; end - # source://activesupport//lib/active_support/cache/entry.rb#51 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:51 def expires_at=(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/entry.rb#100 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:100 def local?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/entry.rb#37 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:37 def mismatched?(version); end - # source://activesupport//lib/active_support/cache/entry.rb#116 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:116 def pack; end - # source://activesupport//lib/active_support/cache/entry.rb#33 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:33 def value; end - # Returns the value of attribute version. - # - # source://activesupport//lib/active_support/cache/entry.rb#21 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:21 def version; end private - # source://activesupport//lib/active_support/cache/entry.rb#127 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:127 def marshal_load(payload); end - # source://activesupport//lib/active_support/cache/entry.rb#123 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:123 def uncompress(value); end class << self - # source://activesupport//lib/active_support/cache/entry.rb#16 + # pkg:gem/activesupport#lib/active_support/cache/entry.rb:16 def unpack(members); end end end @@ -977,28 +943,24 @@ end # # A cache store implementation which stores everything on the filesystem. # -# source://activesupport//lib/active_support/cache/file_store.rb#12 +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:12 class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store - # @return [FileStore] a new instance of FileStore - # - # source://activesupport//lib/active_support/cache/file_store.rb#20 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:20 def initialize(cache_path, **options); end - # Returns the value of attribute cache_path. - # - # source://activesupport//lib/active_support/cache/file_store.rb#13 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:13 def cache_path; end # Preemptively iterates through all stored keys and removes the ones which have expired. # - # source://activesupport//lib/active_support/cache/file_store.rb#40 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:40 def cleanup(options = T.unsafe(nil)); end # Deletes all items from the cache. In this case it deletes all the entries in the specified # file store directory except for .keep or .gitkeep. Be careful which directory is specified in your # config file when using +FileStore+ because everything in that directory will be deleted. # - # source://activesupport//lib/active_support/cache/file_store.rb#33 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:33 def clear(options = T.unsafe(nil)); end # Decrement a cached integer value. Returns the updated value. @@ -1012,10 +974,10 @@ class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store # cache.write("baz", 5) # cache.decrement("baz") # => 4 # - # source://activesupport//lib/active_support/cache/file_store.rb#80 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:80 def decrement(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/file_store.rb#89 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:89 def delete_matched(matcher, options = T.unsafe(nil)); end # Increment a cached integer value. Returns the updated value. @@ -1030,87 +992,85 @@ class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store # cache.write("baz", 5) # cache.increment("baz") # => 6 # - # source://activesupport//lib/active_support/cache/file_store.rb#60 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:60 def increment(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/file_store.rb#101 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:101 def inspect; end private # Delete empty directories in the cache. # - # source://activesupport//lib/active_support/cache/file_store.rb#195 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:195 def delete_empty_directories(dir); end - # source://activesupport//lib/active_support/cache/file_store.rb#131 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:131 def delete_entry(key, **options); end # Make sure a file path's directories exist. # - # source://activesupport//lib/active_support/cache/file_store.rb#204 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:204 def ensure_cache_path(path); end # Translate a file path into a key. # - # source://activesupport//lib/active_support/cache/file_store.rb#189 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:189 def file_path_key(path); end # Lock a file for a block so only one process can modify it at a time. # - # source://activesupport//lib/active_support/cache/file_store.rb#148 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:148 def lock_file(file_name, &block); end # Modifies the amount of an integer value that is stored in the cache. # If the key is not found it is created and set to +amount+. # - # source://activesupport//lib/active_support/cache/file_store.rb#222 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:222 def modify_value(name, amount, options); end # Translate a key into a file path. # - # source://activesupport//lib/active_support/cache/file_store.rb#162 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:162 def normalize_key(key, options); end - # source://activesupport//lib/active_support/cache/file_store.rb#106 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:106 def read_entry(key, **options); end - # source://activesupport//lib/active_support/cache/file_store.rb#113 - def read_serialized_entry(key, **_arg1); end + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:113 + def read_serialized_entry(key, **); end - # source://activesupport//lib/active_support/cache/file_store.rb#208 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:208 def search_dir(dir, &callback); end - # source://activesupport//lib/active_support/cache/file_store.rb#120 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:120 def write_entry(key, entry, **options); end - # source://activesupport//lib/active_support/cache/file_store.rb#124 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:124 def write_serialized_entry(key, payload, **options); end class << self # Advertise cache versioning support. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/file_store.rb#26 + # pkg:gem/activesupport#lib/active_support/cache/file_store.rb:26 def supports_cache_versioning?; end end end -# source://activesupport//lib/active_support/cache/file_store.rb#15 +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:15 ActiveSupport::Cache::FileStore::DIR_FORMATTER = T.let(T.unsafe(nil), String) -# max filename size on file system is 255, minus room for timestamp, pid, and random characters appended by Tempfile (used by atomic write) -# -# source://activesupport//lib/active_support/cache/file_store.rb#16 +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:16 ActiveSupport::Cache::FileStore::FILENAME_MAX_SIZE = T.let(T.unsafe(nil), Integer) -# max is 1024, plus some room +# max filename size on file system is 255, minus room for timestamp, pid, and random characters appended by Tempfile (used by atomic write) # -# source://activesupport//lib/active_support/cache/file_store.rb#17 +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:17 ActiveSupport::Cache::FileStore::FILEPATH_MAX_SIZE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/cache/file_store.rb#18 +# max is 1024, plus some room +# +# pkg:gem/activesupport#lib/active_support/cache/file_store.rb:18 ActiveSupport::Cache::FileStore::GITKEEP_FILES = T.let(T.unsafe(nil), Array) # = Memcached \Cache \Store @@ -1128,7 +1088,7 @@ ActiveSupport::Cache::FileStore::GITKEEP_FILES = T.let(T.unsafe(nil), Array) # +MemCacheStore+ implements the Strategy::LocalCache strategy which # implements an in-memory cache inside of a block. # -# source://activesupport//lib/active_support/cache/mem_cache_store.rb#32 +# pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:32 class ActiveSupport::Cache::MemCacheStore < ::ActiveSupport::Cache::Store include ::ActiveSupport::Cache::Strategy::LocalCache @@ -1141,15 +1101,13 @@ class ActiveSupport::Cache::MemCacheStore < ::ActiveSupport::Cache::Store # If no addresses are provided, but ENV['MEMCACHE_SERVERS'] is defined, it will be used instead. Otherwise, # +MemCacheStore+ will connect to localhost:11211 (the default memcached port). # - # @return [MemCacheStore] a new instance of MemCacheStore - # - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#77 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:77 def initialize(*addresses); end # Clear the entire cache on all memcached servers. This method should # be used with care when shared cache is being used. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#79 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:174 def clear(options = T.unsafe(nil)); end # Decrement a cached integer value using the memcached decr atomic operator. @@ -1168,7 +1126,7 @@ class ActiveSupport::Cache::MemCacheStore < ::ActiveSupport::Cache::Store # Decrementing a non-numeric value, or a value written without # raw: true, will fail and return +nil+. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#104 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:161 def decrement(name, amount = T.unsafe(nil), **options); end # Increment a cached integer value using the memcached incr atomic operator. @@ -1187,60 +1145,60 @@ class ActiveSupport::Cache::MemCacheStore < ::ActiveSupport::Cache::Store # Incrementing a non-numeric value, or a value written without # raw: true, will fail and return +nil+. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#97 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:135 def increment(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#99 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:99 def inspect; end # Get the statistics from the memcached servers. # - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#179 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:179 def stats; end private # Delete an entry from the cache. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#198 - def delete_entry(key, **_arg1); end + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:239 + def delete_entry(key, **); end - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#270 - def deserialize_entry(payload, raw: T.unsafe(nil), **_arg2); end + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:270 + def deserialize_entry(payload, raw: T.unsafe(nil), **); end # Memcache keys are binaries. So we need to force their encoding to binary # before applying the regular expression to ensure we are escaping all # characters properly. # - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#254 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:254 def normalize_key(key, options); end # Read an entry from the cache. # - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#185 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:185 def read_entry(key, **options); end # Reads multiple entries from the cache implementation. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#160 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:215 def read_multi_entries(names, **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#146 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:189 def read_serialized_entry(key, raw: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#278 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:278 def rescue_error_with(fallback); end - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#243 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:243 def serialize_entry(entry, raw: T.unsafe(nil), **options); end # Write an entry to the cache. # - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#196 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:196 def write_entry(key, entry, **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#189 - def write_serialized_entry(key, payload, **_arg2); end + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:200 + def write_serialized_entry(key, payload, **); end class << self # Creates a new Dalli::Client instance with specified addresses and options. @@ -1253,28 +1211,26 @@ class ActiveSupport::Cache::MemCacheStore < ::ActiveSupport::Cache::Store # ActiveSupport::Cache::MemCacheStore.build_mem_cache('localhost:10290') # # => # # - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#56 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:56 def build_mem_cache(*addresses); end # Advertise cache versioning support. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/mem_cache_store.rb#38 + # pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:38 def supports_cache_versioning?; end end end -# source://activesupport//lib/active_support/cache/mem_cache_store.rb#45 +# pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:45 ActiveSupport::Cache::MemCacheStore::ESCAPE_KEY_CHARS = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/cache/mem_cache_store.rb#44 +# pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:44 ActiveSupport::Cache::MemCacheStore::KEY_MAX_SIZE = T.let(T.unsafe(nil), Integer) # These options represent behavior overridden by this implementation and should # not be allowed to get down to the Dalli client # -# source://activesupport//lib/active_support/cache/mem_cache_store.rb#35 +# pkg:gem/activesupport#lib/active_support/cache/mem_cache_store.rb:35 ActiveSupport::Cache::MemCacheStore::OVERRIDDEN_OPTIONS = T.let(T.unsafe(nil), Array) # = Memory \Cache \Store @@ -1299,21 +1255,19 @@ ActiveSupport::Cache::MemCacheStore::OVERRIDDEN_OPTIONS = T.let(T.unsafe(nil), A # # +MemoryStore+ is thread-safe. # -# source://activesupport//lib/active_support/cache/memory_store.rb#28 +# pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:28 class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store - # @return [MemoryStore] a new instance of MemoryStore - # - # source://activesupport//lib/active_support/cache/memory_store.rb#73 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:73 def initialize(options = T.unsafe(nil)); end # Preemptively iterates through all stored keys and removes the ones which have expired. # - # source://activesupport//lib/active_support/cache/memory_store.rb#101 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:101 def cleanup(options = T.unsafe(nil)); end # Delete all data stored in a given cache store. # - # source://activesupport//lib/active_support/cache/memory_store.rb#93 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:93 def clear(options = T.unsafe(nil)); end # Decrement a cached integer value. Returns the updated value. @@ -1327,12 +1281,12 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store # cache.write("baz", 5) # cache.decrement("baz") # => 4 # - # source://activesupport//lib/active_support/cache/memory_store.rb#166 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:166 def decrement(name, amount = T.unsafe(nil), **options); end # Deletes cache entries if the cache key matches a given pattern. # - # source://activesupport//lib/active_support/cache/memory_store.rb#173 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:173 def delete_matched(matcher, options = T.unsafe(nil)); end # Increment a cached integer value. Returns the updated value. @@ -1347,87 +1301,83 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store # cache.write("baz", 5) # cache.increment("baz") # => 6 # - # source://activesupport//lib/active_support/cache/memory_store.rb#149 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:149 def increment(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/memory_store.rb#185 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:185 def inspect; end # To ensure entries fit within the specified memory prune the cache by removing the least # recently accessed entries. # - # source://activesupport//lib/active_support/cache/memory_store.rb#114 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:114 def prune(target_size, max_time = T.unsafe(nil)); end # Returns true if the cache is currently being pruned. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/memory_store.rb#133 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:133 def pruning?; end # Synchronize calls to the cache. This should be called wherever the underlying cache implementation # is not thread safe. # - # source://activesupport//lib/active_support/cache/memory_store.rb#191 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:191 def synchronize(&block); end private - # source://activesupport//lib/active_support/cache/memory_store.rb#198 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:198 def cached_size(key, payload); end - # source://activesupport//lib/active_support/cache/memory_store.rb#231 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:231 def delete_entry(key, **options); end # Modifies the amount of an integer value that is stored in the cache. # If the key is not found it is created and set to +amount+. # - # source://activesupport//lib/active_support/cache/memory_store.rb#241 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:241 def modify_value(name, amount, **options); end - # source://activesupport//lib/active_support/cache/memory_store.rb#202 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:202 def read_entry(key, **options); end - # source://activesupport//lib/active_support/cache/memory_store.rb#214 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:214 def write_entry(key, entry, **options); end class << self # Advertise cache versioning support. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/memory_store.rb#88 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:88 def supports_cache_versioning?; end end end -# source://activesupport//lib/active_support/cache/memory_store.rb#29 +# pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:29 module ActiveSupport::Cache::MemoryStore::DupCoder extend ::ActiveSupport::Cache::MemoryStore::DupCoder - # source://activesupport//lib/active_support/cache/memory_store.rb#32 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:32 def dump(entry); end - # source://activesupport//lib/active_support/cache/memory_store.rb#40 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:40 def dump_compressed(entry, threshold); end - # source://activesupport//lib/active_support/cache/memory_store.rb#45 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:45 def load(entry); end private - # source://activesupport//lib/active_support/cache/memory_store.rb#56 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:56 def dump_value(value); end - # source://activesupport//lib/active_support/cache/memory_store.rb#64 + # pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:64 def load_value(string); end end -# source://activesupport//lib/active_support/cache/memory_store.rb#54 +# pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:54 ActiveSupport::Cache::MemoryStore::DupCoder::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/memory_store.rb#196 +# pkg:gem/activesupport#lib/active_support/cache/memory_store.rb:196 ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Integer) # = Null \Cache \Store @@ -1440,171 +1390,159 @@ ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Int # be cached inside blocks that utilize this strategy. See # ActiveSupport::Cache::Strategy::LocalCache for more details. # -# source://activesupport//lib/active_support/cache/null_store.rb#14 +# pkg:gem/activesupport#lib/active_support/cache/null_store.rb:14 class ActiveSupport::Cache::NullStore < ::ActiveSupport::Cache::Store include ::ActiveSupport::Cache::Strategy::LocalCache - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#85 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:25 def cleanup(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#79 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:22 def clear(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#104 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:31 def decrement(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#91 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:34 def delete_matched(matcher, options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#97 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:28 def increment(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/null_store.rb#37 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:37 def inspect; end private - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#198 - def delete_entry(key, **_arg1); end + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:57 + def delete_entry(key, **); end - # source://activesupport//lib/active_support/cache/null_store.rb#42 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:42 def read_entry(key, **s); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#146 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:46 def read_serialized_entry(key, raw: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/null_store.rb#49 - def write_entry(key, entry, **_arg2); end + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:49 + def write_entry(key, entry, **); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#189 - def write_serialized_entry(key, payload, **_arg2); end + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:53 + def write_serialized_entry(key, payload, **); end class << self # Advertise cache versioning support. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/null_store.rb#18 + # pkg:gem/activesupport#lib/active_support/cache/null_store.rb:18 def supports_cache_versioning?; end end end # Mapping of canonical option names to aliases that a store will recognize. # -# source://activesupport//lib/active_support/cache.rb#42 +# pkg:gem/activesupport#lib/active_support/cache.rb:42 ActiveSupport::Cache::OPTION_ALIASES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#8 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:8 module ActiveSupport::Cache::SerializerWithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#17 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:17 def load(dumped); end private - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#39 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:39 def marshal_load(payload); end class << self - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#9 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:9 def [](format); end end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#66 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:66 module ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback include ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#88 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:88 def _load(marked); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#73 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:73 def dump(entry); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#77 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:77 def dump_compressed(entry, threshold); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#94 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:94 def dumped?(dumped); end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#71 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:71 ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback::MARK_COMPRESSED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#70 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:70 ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback::MARK_UNCOMPRESSED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#99 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:99 module ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback include ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#109 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:109 def _load(dumped); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#105 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:105 def dump(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#113 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:113 def dumped?(dumped); end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#103 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:103 ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#118 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:118 module ActiveSupport::Cache::SerializerWithFallback::MessagePackWithFallback include ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback::MessagePackWithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#126 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:126 def _load(dumped); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#122 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:122 def dump(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#130 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:130 def dumped?(dumped); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#135 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:135 def available?; end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#45 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:45 module ActiveSupport::Cache::SerializerWithFallback::PassthroughWithFallback include ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback extend ::ActiveSupport::Cache::SerializerWithFallback::PassthroughWithFallback - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#57 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:57 def _load(entry); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#49 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:49 def dump(entry); end - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#53 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:53 def dump_compressed(entry, threshold); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#61 + # pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:61 def dumped?(dumped); end end -# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#144 +# pkg:gem/activesupport#lib/active_support/cache/serializer_with_fallback.rb:144 ActiveSupport::Cache::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil), Hash) # = Active Support \Cache \Store @@ -1649,7 +1587,7 @@ ActiveSupport::Cache::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil), # cache.namespace = -> { @last_mod_time } # Set the namespace to a variable # @last_mod_time = Time.now # Invalidate the entire cache by changing namespace # -# source://activesupport//lib/active_support/cache.rb#189 +# pkg:gem/activesupport#lib/active_support/cache.rb:189 class ActiveSupport::Cache::Store # Creates a new cache. # @@ -1723,9 +1661,7 @@ class ActiveSupport::Cache::Store # Any other specified options are treated as default options for the # relevant cache operations, such as #read, #write, and #fetch. # - # @return [Store] a new instance of Store - # - # source://activesupport//lib/active_support/cache.rb#296 + # pkg:gem/activesupport#lib/active_support/cache.rb:296 def initialize(options = T.unsafe(nil)); end # Cleans up the cache by removing expired entries. @@ -1734,9 +1670,7 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#750 + # pkg:gem/activesupport#lib/active_support/cache.rb:750 def cleanup(options = T.unsafe(nil)); end # Clears the entire cache. Be careful with this method since it could @@ -1746,9 +1680,7 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#760 + # pkg:gem/activesupport#lib/active_support/cache.rb:760 def clear(options = T.unsafe(nil)); end # Decrements an integer value in the cache. @@ -1757,9 +1689,7 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#741 + # pkg:gem/activesupport#lib/active_support/cache.rb:741 def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end # Deletes an entry in the cache. Returns +true+ if an entry is deleted @@ -1767,7 +1697,7 @@ class ActiveSupport::Cache::Store # # Options are passed to the underlying cache implementation. # - # source://activesupport//lib/active_support/cache.rb#677 + # pkg:gem/activesupport#lib/active_support/cache.rb:677 def delete(name, options = T.unsafe(nil)); end # Deletes all entries with keys matching the pattern. @@ -1776,9 +1706,7 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#723 + # pkg:gem/activesupport#lib/active_support/cache.rb:723 def delete_matched(matcher, options = T.unsafe(nil)); end # Deletes multiple entries in the cache. Returns the number of deleted @@ -1786,16 +1714,14 @@ class ActiveSupport::Cache::Store # # Options are passed to the underlying cache implementation. # - # source://activesupport//lib/active_support/cache.rb#690 + # pkg:gem/activesupport#lib/active_support/cache.rb:690 def delete_multi(names, options = T.unsafe(nil)); end # Returns +true+ if the cache contains an entry for the given key. # # Options are passed to the underlying cache implementation. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache.rb#704 + # pkg:gem/activesupport#lib/active_support/cache.rb:704 def exist?(name, options = T.unsafe(nil)); end # Fetches data from the cache, using the given key. If there is data in @@ -1913,7 +1839,7 @@ class ActiveSupport::Cache::Store # token # end # - # source://activesupport//lib/active_support/cache.rb#445 + # pkg:gem/activesupport#lib/active_support/cache.rb:445 def fetch(name, options = T.unsafe(nil), &block); end # Fetches data from the cache, using the given keys. If there is data in @@ -1946,9 +1872,7 @@ class ActiveSupport::Cache::Store # cache.read("fizz") # # => nil # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/cache.rb#596 + # pkg:gem/activesupport#lib/active_support/cache.rb:596 def fetch_multi(*names); end # Increments an integer value in the cache. @@ -1957,34 +1881,30 @@ class ActiveSupport::Cache::Store # # Some implementations may not support this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#732 + # pkg:gem/activesupport#lib/active_support/cache.rb:732 def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache.rb#190 + # pkg:gem/activesupport#lib/active_support/cache.rb:190 def logger; end - # source://activesupport//lib/active_support/cache.rb#190 + # pkg:gem/activesupport#lib/active_support/cache.rb:190 def logger=(val); end # Silences the logger within a block. # - # source://activesupport//lib/active_support/cache.rb#323 + # pkg:gem/activesupport#lib/active_support/cache.rb:323 def mute; end - # source://activesupport//lib/active_support/cache.rb#714 + # pkg:gem/activesupport#lib/active_support/cache.rb:714 def new_entry(value, options = T.unsafe(nil)); end - # Returns the value of attribute options. - # - # source://activesupport//lib/active_support/cache.rb#193 + # pkg:gem/activesupport#lib/active_support/cache.rb:193 def options; end - # source://activesupport//lib/active_support/cache.rb#191 + # pkg:gem/activesupport#lib/active_support/cache.rb:191 def raise_on_invalid_cache_expiration_time; end - # source://activesupport//lib/active_support/cache.rb#191 + # pkg:gem/activesupport#lib/active_support/cache.rb:191 def raise_on_invalid_cache_expiration_time=(val); end # Reads data from the cache, using the given key. If there is data in @@ -2004,7 +1924,7 @@ class ActiveSupport::Cache::Store # # Other options will be handled by the specific cache store implementation. # - # source://activesupport//lib/active_support/cache.rb#499 + # pkg:gem/activesupport#lib/active_support/cache.rb:499 def read(name, options = T.unsafe(nil)); end # Reads multiple values at once from the cache. Options can be passed @@ -2014,22 +1934,18 @@ class ActiveSupport::Cache::Store # # Returns a hash mapping the names provided to the values found. # - # source://activesupport//lib/active_support/cache.rb#537 + # pkg:gem/activesupport#lib/active_support/cache.rb:537 def read_multi(*names); end - # Returns the value of attribute silence. - # - # source://activesupport//lib/active_support/cache.rb#193 + # pkg:gem/activesupport#lib/active_support/cache.rb:193 def silence; end # Silences the logger. # - # source://activesupport//lib/active_support/cache.rb#317 + # pkg:gem/activesupport#lib/active_support/cache.rb:317 def silence!; end - # Returns the value of attribute silence. - # - # source://activesupport//lib/active_support/cache.rb#193 + # pkg:gem/activesupport#lib/active_support/cache.rb:194 def silence?; end # Writes the value to the cache with the key. The value must be supported @@ -2069,62 +1985,60 @@ class ActiveSupport::Cache::Store # # Other options will be handled by the specific cache store implementation. # - # source://activesupport//lib/active_support/cache.rb#663 + # pkg:gem/activesupport#lib/active_support/cache.rb:663 def write(name, value, options = T.unsafe(nil)); end # Cache Storage API to write multiple values at once. # - # source://activesupport//lib/active_support/cache.rb#552 + # pkg:gem/activesupport#lib/active_support/cache.rb:552 def write_multi(hash, options = T.unsafe(nil)); end private - # source://activesupport//lib/active_support/cache.rb#1011 + # pkg:gem/activesupport#lib/active_support/cache.rb:1011 def _instrument(operation, multi: T.unsafe(nil), options: T.unsafe(nil), **payload, &block); end - # source://activesupport//lib/active_support/cache.rb#765 + # pkg:gem/activesupport#lib/active_support/cache.rb:765 def default_serializer; end # Deletes an entry from the cache implementation. Subclasses must # implement this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#851 + # pkg:gem/activesupport#lib/active_support/cache.rb:851 def delete_entry(key, **options); end # Deletes multiples entries in the cache implementation. Subclasses MAY # implement this method. # - # source://activesupport//lib/active_support/cache.rb#857 + # pkg:gem/activesupport#lib/active_support/cache.rb:857 def delete_multi_entries(entries, **options); end - # source://activesupport//lib/active_support/cache.rb#816 - def deserialize_entry(payload, **_arg1); end + # pkg:gem/activesupport#lib/active_support/cache.rb:816 + def deserialize_entry(payload, **); end # Expands key to be a consistent string value. Invokes +cache_key+ if # object responds to +cache_key+. Otherwise, +to_param+ method will be # called. If the key is a Hash, then keys will be sorted alphabetically. # - # source://activesupport//lib/active_support/cache.rb#974 + # pkg:gem/activesupport#lib/active_support/cache.rb:974 def expanded_key(key); end - # source://activesupport//lib/active_support/cache.rb#995 + # pkg:gem/activesupport#lib/active_support/cache.rb:995 def expanded_version(key); end - # source://activesupport//lib/active_support/cache.rb#1048 + # pkg:gem/activesupport#lib/active_support/cache.rb:1048 def get_entry_value(entry, name, options); end - # source://activesupport//lib/active_support/cache.rb#1032 + # pkg:gem/activesupport#lib/active_support/cache.rb:1032 def handle_expired_entry(entry, key, options); end - # source://activesupport//lib/active_support/cache.rb#891 + # pkg:gem/activesupport#lib/active_support/cache.rb:891 def handle_invalid_expires_in(message); end - # source://activesupport//lib/active_support/cache.rb#1003 + # pkg:gem/activesupport#lib/active_support/cache.rb:1003 def instrument(operation, key, options = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/cache.rb#1007 + # pkg:gem/activesupport#lib/active_support/cache.rb:1007 def instrument_multi(operation, keys, options = T.unsafe(nil), &block); end # Adds the namespace defined in the options to a pattern designed to @@ -2132,12 +2046,12 @@ class ActiveSupport::Cache::Store # this method to translate a pattern that matches names into one that # matches namespaced keys. # - # source://activesupport//lib/active_support/cache.rb#780 + # pkg:gem/activesupport#lib/active_support/cache.rb:780 def key_matcher(pattern, options); end # Merges the default options with ones specific to a method call. # - # source://activesupport//lib/active_support/cache.rb#862 + # pkg:gem/activesupport#lib/active_support/cache.rb:862 def merged_options(call_options); end # Prefix the key with a namespace string: @@ -2150,84 +2064,78 @@ class ActiveSupport::Cache::Store # namespace_key 'foo', namespace: -> { 'cache' } # # => 'cache:foo' # - # source://activesupport//lib/active_support/cache.rb#949 + # pkg:gem/activesupport#lib/active_support/cache.rb:949 def namespace_key(key, call_options = T.unsafe(nil)); end # Expands and namespaces the cache key. # Raises an exception when the key is +nil+ or an empty string. # May be overridden by cache stores to do additional normalization. # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/cache.rb#933 + # pkg:gem/activesupport#lib/active_support/cache.rb:933 def normalize_key(key, options = T.unsafe(nil)); end # Normalize aliased options to their canonical form # - # source://activesupport//lib/active_support/cache.rb#902 + # pkg:gem/activesupport#lib/active_support/cache.rb:902 def normalize_options(options); end - # source://activesupport//lib/active_support/cache.rb#991 + # pkg:gem/activesupport#lib/active_support/cache.rb:991 def normalize_version(key, options = T.unsafe(nil)); end # Reads an entry from the cache implementation. Subclasses must implement # this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#797 + # pkg:gem/activesupport#lib/active_support/cache.rb:797 def read_entry(key, **options); end # Reads multiple entries from the cache implementation. Subclasses MAY # implement this method. # - # source://activesupport//lib/active_support/cache.rb#824 + # pkg:gem/activesupport#lib/active_support/cache.rb:824 def read_multi_entries(names, **options); end - # source://activesupport//lib/active_support/cache.rb#1053 + # pkg:gem/activesupport#lib/active_support/cache.rb:1053 def save_block_result_to_cache(name, key, options); end - # source://activesupport//lib/active_support/cache.rb#807 + # pkg:gem/activesupport#lib/active_support/cache.rb:807 def serialize_entry(entry, **options); end - # source://activesupport//lib/active_support/cache.rb#913 + # pkg:gem/activesupport#lib/active_support/cache.rb:913 def validate_options(options); end # Writes an entry to the cache implementation. Subclasses must implement # this method. # - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/cache.rb#803 + # pkg:gem/activesupport#lib/active_support/cache.rb:803 def write_entry(key, entry, **options); end # Writes multiple entries to the cache implementation. Subclasses MAY # implement this method. # - # source://activesupport//lib/active_support/cache.rb#843 + # pkg:gem/activesupport#lib/active_support/cache.rb:843 def write_multi_entries(hash, **options); end class << self - # source://activesupport//lib/active_support/cache.rb#190 + # pkg:gem/activesupport#lib/active_support/cache.rb:190 def logger; end - # source://activesupport//lib/active_support/cache.rb#190 + # pkg:gem/activesupport#lib/active_support/cache.rb:190 def logger=(val); end - # source://activesupport//lib/active_support/cache.rb#191 + # pkg:gem/activesupport#lib/active_support/cache.rb:191 def raise_on_invalid_cache_expiration_time; end - # source://activesupport//lib/active_support/cache.rb#191 + # pkg:gem/activesupport#lib/active_support/cache.rb:191 def raise_on_invalid_cache_expiration_time=(val); end private - # source://activesupport//lib/active_support/cache.rb#201 + # pkg:gem/activesupport#lib/active_support/cache.rb:201 def retrieve_pool_options(options); end end end -# source://activesupport//lib/active_support/cache.rb#52 +# pkg:gem/activesupport#lib/active_support/cache.rb:52 module ActiveSupport::Cache::Strategy; end # = Local \Cache \Strategy @@ -2236,77 +2144,77 @@ module ActiveSupport::Cache::Strategy; end # duration of a block. Repeated calls to the cache for the same key will hit the # in-memory cache for faster access. # -# source://activesupport//lib/active_support/cache/strategy/local_cache.rb#13 +# pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:13 module ActiveSupport::Cache::Strategy::LocalCache - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#85 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:85 def cleanup(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#79 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:79 def clear(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#104 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:104 def decrement(name, amount = T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#91 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:91 def delete_matched(matcher, options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#111 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:111 def fetch_multi(*names, &block); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#97 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:97 def increment(name, amount = T.unsafe(nil), **options); end # Middleware class can be inserted as a Rack handler to be local cache for the # duration of request. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#73 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:73 def middleware; end # Use a local cache for the duration of block. # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#67 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:67 def with_local_cache(&block); end private - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#221 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:221 def bypass_local_cache(&block); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#198 - def delete_entry(key, **_arg1); end + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:198 + def delete_entry(key, **); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#217 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:217 def local_cache; end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#213 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:213 def local_cache_key; end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#160 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:160 def read_multi_entries(names, **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#146 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:146 def read_serialized_entry(key, raw: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#225 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:225 def use_temporary_local_cache(temporary_cache); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#203 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:203 def write_cache_value(name, value, **options); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#189 - def write_serialized_entry(key, payload, **_arg2); end + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:189 + def write_serialized_entry(key, payload, **); end end # Class for storing and registering the local caches. # -# source://activesupport//lib/active_support/cache/strategy/local_cache.rb#17 +# pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:17 module ActiveSupport::Cache::Strategy::LocalCache::LocalCacheRegistry extend ::ActiveSupport::Cache::Strategy::LocalCache::LocalCacheRegistry - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#20 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:20 def cache_for(local_cache_key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#25 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:25 def set_cache_for(local_cache_key, value); end end @@ -2315,29 +2223,27 @@ end # Simple memory backed cache. This cache is not thread safe and is intended only # for serving as a temporary memory cache for a single thread. # -# source://activesupport//lib/active_support/cache/strategy/local_cache.rb#35 +# pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:35 class ActiveSupport::Cache::Strategy::LocalCache::LocalStore - # @return [LocalStore] a new instance of LocalStore - # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#36 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:36 def initialize; end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#40 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:40 def clear(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#57 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:57 def delete_entry(key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#61 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:61 def fetch_entry(key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#44 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:44 def read_entry(key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#48 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:48 def read_multi_entries(keys); end - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#52 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache.rb:52 def write_entry(key, entry); end end @@ -2345,30 +2251,28 @@ end # This class wraps up local storage for middlewares. Only the middleware method should # construct them. # -# source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#13 +# pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:13 class ActiveSupport::Cache::Strategy::LocalCache::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#16 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:16 def initialize(name, local_cache_key); end - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#27 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:27 def call(env); end - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#14 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:14 def local_cache_key; end - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#14 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:14 def name; end - # source://activesupport//lib/active_support/cache/strategy/local_cache_middleware.rb#22 + # pkg:gem/activesupport#lib/active_support/cache/strategy/local_cache_middleware.rb:22 def new(app); end end # These options mean something to all cache implementations. Individual cache # implementations may support additional options. # -# source://activesupport//lib/active_support/cache.rb#26 +# pkg:gem/activesupport#lib/active_support/cache.rb:26 ActiveSupport::Cache::UNIVERSAL_OPTIONS = T.let(T.unsafe(nil), Array) # Enables the dynamic configuration of Cache entry options while ensuring @@ -2376,37 +2280,35 @@ ActiveSupport::Cache::UNIVERSAL_OPTIONS = T.let(T.unsafe(nil), Array) # ActiveSupport::Cache::Store#fetch, the second argument will be an # instance of +WriteOptions+. # -# source://activesupport//lib/active_support/cache.rb#1069 +# pkg:gem/activesupport#lib/active_support/cache.rb:1069 class ActiveSupport::Cache::WriteOptions - # @return [WriteOptions] a new instance of WriteOptions - # - # source://activesupport//lib/active_support/cache.rb#1070 + # pkg:gem/activesupport#lib/active_support/cache.rb:1070 def initialize(options); end - # source://activesupport//lib/active_support/cache.rb#1094 + # pkg:gem/activesupport#lib/active_support/cache.rb:1094 def expires_at; end # Sets the Cache entry's +expires_at+ value. If an +expires_in+ option was # previously set, this will unset it since +expires_at+ and +expires_in+ # cannot both be set. # - # source://activesupport//lib/active_support/cache.rb#1101 + # pkg:gem/activesupport#lib/active_support/cache.rb:1101 def expires_at=(expires_at); end - # source://activesupport//lib/active_support/cache.rb#1082 + # pkg:gem/activesupport#lib/active_support/cache.rb:1082 def expires_in; end # Sets the Cache entry's +expires_in+ value. If an +expires_at+ option was # previously set, this will unset it since +expires_in+ and +expires_at+ # cannot both be set. # - # source://activesupport//lib/active_support/cache.rb#1089 + # pkg:gem/activesupport#lib/active_support/cache.rb:1089 def expires_in=(expires_in); end - # source://activesupport//lib/active_support/cache.rb#1074 + # pkg:gem/activesupport#lib/active_support/cache.rb:1074 def version; end - # source://activesupport//lib/active_support/cache.rb#1078 + # pkg:gem/activesupport#lib/active_support/cache.rb:1078 def version=(version); end end @@ -2416,16 +2318,14 @@ end # re-executing the key generation process when it's called using the same +salt+ and # +key_size+. # -# source://activesupport//lib/active_support/key_generator.rb#55 +# pkg:gem/activesupport#lib/active_support/key_generator.rb:55 class ActiveSupport::CachingKeyGenerator - # @return [CachingKeyGenerator] a new instance of CachingKeyGenerator - # - # source://activesupport//lib/active_support/key_generator.rb#56 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:56 def initialize(key_generator); end # Returns a derived key suitable for use. # - # source://activesupport//lib/active_support/key_generator.rb#62 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:62 def generate_key(*args); end end @@ -2483,7 +2383,7 @@ end # - save # saved # -# source://activesupport//lib/active_support/callbacks.rb#64 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:64 module ActiveSupport::Callbacks extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -2515,7 +2415,7 @@ module ActiveSupport::Callbacks # smoothly through and into the supplied block, we want as little evidence # as possible that we were here. # - # source://activesupport//lib/active_support/callbacks.rb#96 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:96 def run_callbacks(kind, type = T.unsafe(nil)); end private @@ -2524,7 +2424,7 @@ module ActiveSupport::Callbacks # This can be overridden in ActiveSupport::Callbacks implementors in order # to provide better debugging/logging. # - # source://activesupport//lib/active_support/callbacks.rb#149 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:149 def halted_callback_hook(filter, name); end module GeneratedClassMethods @@ -2537,13 +2437,13 @@ module ActiveSupport::Callbacks end end -# source://activesupport//lib/active_support/callbacks.rb#72 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:72 ActiveSupport::Callbacks::CALLBACK_FILTER_TYPES = T.let(T.unsafe(nil), Array) # A future invocation of user-supplied code (either as a callback, # or a condition filter). # -# source://activesupport//lib/active_support/callbacks.rb#336 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:336 module ActiveSupport::Callbacks::CallTemplate class << self # Filters support: @@ -2555,69 +2455,59 @@ module ActiveSupport::Callbacks::CallTemplate # All of these objects are converted into a CallTemplate and handled # the same after this point. # - # source://activesupport//lib/active_support/callbacks.rb#494 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:494 def build(filter, callback); end end end -# source://activesupport//lib/active_support/callbacks.rb#395 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:395 class ActiveSupport::Callbacks::CallTemplate::InstanceExec0 - # @return [InstanceExec0] a new instance of InstanceExec0 - # - # source://activesupport//lib/active_support/callbacks.rb#396 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:396 def initialize(block); end - # source://activesupport//lib/active_support/callbacks.rb#400 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:400 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#410 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:410 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#404 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:404 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#417 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:417 class ActiveSupport::Callbacks::CallTemplate::InstanceExec1 - # @return [InstanceExec1] a new instance of InstanceExec1 - # - # source://activesupport//lib/active_support/callbacks.rb#418 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:418 def initialize(block); end - # source://activesupport//lib/active_support/callbacks.rb#422 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:422 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#432 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:432 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#426 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:426 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#439 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:439 class ActiveSupport::Callbacks::CallTemplate::InstanceExec2 - # @return [InstanceExec2] a new instance of InstanceExec2 - # - # source://activesupport//lib/active_support/callbacks.rb#440 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:440 def initialize(block); end - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/callbacks.rb#444 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:444 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#456 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:456 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#449 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:449 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#337 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:337 class ActiveSupport::Callbacks::CallTemplate::MethodCall - # @return [MethodCall] a new instance of MethodCall - # - # source://activesupport//lib/active_support/callbacks.rb#338 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:338 def initialize(method); end # Return the parts needed to make this call, with the given @@ -2634,202 +2524,166 @@ class ActiveSupport::Callbacks::CallTemplate::MethodCall # The actual invocation is left up to the caller to minimize # call stack pollution. # - # source://activesupport//lib/active_support/callbacks.rb#355 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:355 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#365 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:365 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#359 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:359 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#372 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:372 class ActiveSupport::Callbacks::CallTemplate::ObjectCall - # @return [ObjectCall] a new instance of ObjectCall - # - # source://activesupport//lib/active_support/callbacks.rb#373 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:373 def initialize(target, method); end - # source://activesupport//lib/active_support/callbacks.rb#378 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:378 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#388 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:388 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#382 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:382 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#464 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:464 class ActiveSupport::Callbacks::CallTemplate::ProcCall - # @return [ProcCall] a new instance of ProcCall - # - # source://activesupport//lib/active_support/callbacks.rb#465 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:465 def initialize(target); end - # source://activesupport//lib/active_support/callbacks.rb#469 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:469 def expand(target, value, block); end - # source://activesupport//lib/active_support/callbacks.rb#479 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:479 def inverted_lambda; end - # source://activesupport//lib/active_support/callbacks.rb#473 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:473 def make_lambda; end end -# source://activesupport//lib/active_support/callbacks.rb#230 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:230 class ActiveSupport::Callbacks::Callback - # @return [Callback] a new instance of Callback - # - # source://activesupport//lib/active_support/callbacks.rb#245 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:245 def initialize(name, filter, kind, options, chain_config); end # Wraps code with filter # - # source://activesupport//lib/active_support/callbacks.rb#299 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:299 def apply(callback_sequence); end - # Returns the value of attribute chain_config. - # - # source://activesupport//lib/active_support/callbacks.rb#243 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:243 def chain_config; end - # source://activesupport//lib/active_support/callbacks.rb#281 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:281 def compiled; end - # source://activesupport//lib/active_support/callbacks.rb#303 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:303 def current_scopes; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#272 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:272 def duplicates?(other); end - # Returns the value of attribute filter. - # - # source://activesupport//lib/active_support/callbacks.rb#243 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:243 def filter; end - # Returns the value of attribute kind. - # - # source://activesupport//lib/active_support/callbacks.rb#242 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:242 def kind; end - # Sets the attribute kind - # - # @param value the value to set the attribute kind to. - # - # source://activesupport//lib/active_support/callbacks.rb#242 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:242 def kind=(_arg0); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#268 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:268 def matches?(_kind, _filter); end - # source://activesupport//lib/active_support/callbacks.rb#256 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:256 def merge_conditional_options(chain, if_option:, unless_option:); end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/callbacks.rb#242 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:242 def name; end - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://activesupport//lib/active_support/callbacks.rb#242 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:242 def name=(_arg0); end private - # source://activesupport//lib/active_support/callbacks.rb#311 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:311 def check_conditionals(conditionals); end - # source://activesupport//lib/active_support/callbacks.rb#326 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:326 def conditions_lambdas; end class << self - # source://activesupport//lib/active_support/callbacks.rb#231 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:231 def build(chain, filter, kind, options); end end end -# source://activesupport//lib/active_support/callbacks.rb#308 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:308 ActiveSupport::Callbacks::Callback::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/callbacks.rb#567 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:567 class ActiveSupport::Callbacks::CallbackChain include ::Enumerable - # @return [CallbackChain] a new instance of CallbackChain - # - # source://activesupport//lib/active_support/callbacks.rb#572 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:572 def initialize(name, config); end - # source://activesupport//lib/active_support/callbacks.rb#632 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:632 def append(*callbacks); end - # source://activesupport//lib/active_support/callbacks.rb#600 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:600 def clear; end - # source://activesupport//lib/active_support/callbacks.rb#614 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:614 def compile(type); end - # Returns the value of attribute config. - # - # source://activesupport//lib/active_support/callbacks.rb#570 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:570 def config; end - # source://activesupport//lib/active_support/callbacks.rb#594 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:594 def delete(o); end - # source://activesupport//lib/active_support/callbacks.rb#584 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:584 def each(&block); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#586 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:586 def empty?; end - # source://activesupport//lib/active_support/callbacks.rb#585 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:585 def index(o); end - # source://activesupport//lib/active_support/callbacks.rb#588 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:588 def insert(index, o); end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/callbacks.rb#570 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:570 def name; end - # source://activesupport//lib/active_support/callbacks.rb#636 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:636 def prepend(*callbacks); end protected - # Returns the value of attribute chain. - # - # source://activesupport//lib/active_support/callbacks.rb#641 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:641 def chain; end private - # source://activesupport//lib/active_support/callbacks.rb#644 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:644 def append_one(callback); end - # source://activesupport//lib/active_support/callbacks.rb#664 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:664 def default_terminator; end - # source://activesupport//lib/active_support/callbacks.rb#607 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:607 def initialize_copy(other); end - # source://activesupport//lib/active_support/callbacks.rb#651 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:651 def prepend_one(callback); end - # source://activesupport//lib/active_support/callbacks.rb#658 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:658 def remove_duplicates(callback); end end @@ -2837,53 +2691,45 @@ end # chaining them with nested lambda calls, see: # https://github.com/rails/rails/issues/18011 # -# source://activesupport//lib/active_support/callbacks.rb#518 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:518 class ActiveSupport::Callbacks::CallbackSequence - # @return [CallbackSequence] a new instance of CallbackSequence - # - # source://activesupport//lib/active_support/callbacks.rb#519 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:519 def initialize(nested = T.unsafe(nil), call_template = T.unsafe(nil), user_conditions = T.unsafe(nil)); end - # source://activesupport//lib/active_support/callbacks.rb#534 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:534 def after(after); end - # source://activesupport//lib/active_support/callbacks.rb#540 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:540 def around(call_template, user_conditions); end - # source://activesupport//lib/active_support/callbacks.rb#528 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:528 def before(before); end - # source://activesupport//lib/active_support/callbacks.rb#554 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:554 def expand_call_template(arg, block); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#550 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:550 def final?; end - # source://activesupport//lib/active_support/callbacks.rb#562 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:562 def invoke_after(arg); end - # source://activesupport//lib/active_support/callbacks.rb#558 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:558 def invoke_before(arg); end - # Returns the value of attribute nested. - # - # source://activesupport//lib/active_support/callbacks.rb#548 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:548 def nested; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/callbacks.rb#544 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:544 def skip?(arg); end end -# source://activesupport//lib/active_support/callbacks.rb#676 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:676 module ActiveSupport::Callbacks::ClassMethods # This is used internally to append, prepend and skip callbacks to the # CallbackChain. # - # source://activesupport//lib/active_support/callbacks.rb#686 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:686 def __update_callbacks(name); end # Define sets of events in the object life cycle that support callbacks. @@ -2965,15 +2811,15 @@ module ActiveSupport::Callbacks::ClassMethods # Calling +define_callbacks+ multiple times with the same +names+ will # overwrite previous callbacks registered with #set_callback. # - # source://activesupport//lib/active_support/callbacks.rb#901 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:901 def define_callbacks(*names); end - # source://activesupport//lib/active_support/callbacks.rb#677 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:677 def normalize_callback_params(filters, block); end # Remove all set callbacks for the given event. # - # source://activesupport//lib/active_support/callbacks.rb#811 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:811 def reset_callbacks(name); end # Install a callback for the given event. @@ -3021,7 +2867,7 @@ module ActiveSupport::Callbacks::ClassMethods # * :prepend - If +true+, the callback will be prepended to the # existing chain rather than appended. # - # source://activesupport//lib/active_support/callbacks.rb#737 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:737 def set_callback(name, *filter_list, &block); end # Skip a previously set callback. Like #set_callback, :if or @@ -3060,211 +2906,175 @@ module ActiveSupport::Callbacks::ClassMethods # An ArgumentError will be raised if the callback has not # already been set (unless the :raise option is set to false). # - # source://activesupport//lib/active_support/callbacks.rb#786 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:786 def skip_callback(name, *filter_list, &block); end protected - # source://activesupport//lib/active_support/callbacks.rb#932 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:932 def get_callbacks(name); end - # source://activesupport//lib/active_support/callbacks.rb#936 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:936 def set_callbacks(name, callbacks); end end -# source://activesupport//lib/active_support/callbacks.rb#152 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:152 module ActiveSupport::Callbacks::Conditionals; end -# source://activesupport//lib/active_support/callbacks.rb#153 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:153 class ActiveSupport::Callbacks::Conditionals::Value - # @return [Value] a new instance of Value - # - # source://activesupport//lib/active_support/callbacks.rb#154 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:154 def initialize(&block); end - # source://activesupport//lib/active_support/callbacks.rb#157 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:157 def call(target, value); end end -# source://activesupport//lib/active_support/callbacks.rb#161 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:161 module ActiveSupport::Callbacks::Filters; end -# source://activesupport//lib/active_support/callbacks.rb#193 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:193 class ActiveSupport::Callbacks::Filters::After - # @return [After] a new instance of After - # - # source://activesupport//lib/active_support/callbacks.rb#195 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:195 def initialize(user_callback, user_conditions, chain_config); end - # source://activesupport//lib/active_support/callbacks.rb#213 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:213 def apply(callback_sequence); end - # source://activesupport//lib/active_support/callbacks.rb#201 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:201 def call(env); end - # Returns the value of attribute halting. - # - # source://activesupport//lib/active_support/callbacks.rb#194 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:194 def halting; end - # Returns the value of attribute user_callback. - # - # source://activesupport//lib/active_support/callbacks.rb#194 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:194 def user_callback; end - # Returns the value of attribute user_conditions. - # - # source://activesupport//lib/active_support/callbacks.rb#194 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:194 def user_conditions; end end -# source://activesupport//lib/active_support/callbacks.rb#218 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:218 class ActiveSupport::Callbacks::Filters::Around - # @return [Around] a new instance of Around - # - # source://activesupport//lib/active_support/callbacks.rb#219 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:219 def initialize(user_callback, user_conditions); end - # source://activesupport//lib/active_support/callbacks.rb#224 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:224 def apply(callback_sequence); end end -# source://activesupport//lib/active_support/callbacks.rb#164 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:164 class ActiveSupport::Callbacks::Filters::Before - # @return [Before] a new instance of Before - # - # source://activesupport//lib/active_support/callbacks.rb#165 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:165 def initialize(user_callback, user_conditions, chain_config, filter, name); end - # source://activesupport//lib/active_support/callbacks.rb#188 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:188 def apply(callback_sequence); end - # source://activesupport//lib/active_support/callbacks.rb#172 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:172 def call(env); end - # Returns the value of attribute filter. - # - # source://activesupport//lib/active_support/callbacks.rb#170 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:170 def filter; end - # Returns the value of attribute halted_lambda. - # - # source://activesupport//lib/active_support/callbacks.rb#170 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:170 def halted_lambda; end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/callbacks.rb#170 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:170 def name; end - # Returns the value of attribute user_callback. - # - # source://activesupport//lib/active_support/callbacks.rb#170 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:170 def user_callback; end - # Returns the value of attribute user_conditions. - # - # source://activesupport//lib/active_support/callbacks.rb#170 + # pkg:gem/activesupport#lib/active_support/callbacks.rb:170 def user_conditions; end end -# source://activesupport//lib/active_support/callbacks.rb#162 +# pkg:gem/activesupport#lib/active_support/callbacks.rb:162 class ActiveSupport::Callbacks::Filters::Environment < ::Struct - # Returns the value of attribute halted - # - # @return [Object] the current value of halted + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def halted; end - # Sets the attribute halted - # - # @param value [Object] the value to set the attribute halted to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def halted=(_); end - # Returns the value of attribute target - # - # @return [Object] the current value of target + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def target; end - # Sets the attribute target - # - # @param value [Object] the value to set the attribute target to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def target=(_); end - # Returns the value of attribute value - # - # @return [Object] the current value of value + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def value; end - # Sets the attribute value - # - # @param value [Object] the value to set the attribute value to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def value=(_); end class << self + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def [](*_arg0); end + + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def inspect; end + + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def keyword_init?; end + + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def members; end + + # pkg:gem/activesupport#lib/active_support/callbacks.rb:162 def new(*_arg0); end end end -# source://activesupport//lib/active_support/class_attribute.rb#4 +# pkg:gem/activesupport#lib/active_support/class_attribute.rb:4 module ActiveSupport::ClassAttribute class << self - # source://activesupport//lib/active_support/class_attribute.rb#6 + # pkg:gem/activesupport#lib/active_support/class_attribute.rb:6 def redefine(owner, name, namespaced_name, value); end - # source://activesupport//lib/active_support/class_attribute.rb#26 + # pkg:gem/activesupport#lib/active_support/class_attribute.rb:26 def redefine_method(owner, name, private: T.unsafe(nil), &block); end end end -# source://activesupport//lib/active_support/code_generator.rb#4 +# pkg:gem/activesupport#lib/active_support/code_generator.rb:4 class ActiveSupport::CodeGenerator - # @return [CodeGenerator] a new instance of CodeGenerator - # - # source://activesupport//lib/active_support/code_generator.rb#53 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:53 def initialize(owner, path, line); end - # @yield [@sources] - # - # source://activesupport//lib/active_support/code_generator.rb#61 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:61 def class_eval; end - # source://activesupport//lib/active_support/code_generator.rb#65 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:65 def define_cached_method(canonical_name, namespace:, as: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/code_generator.rb#69 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:69 def execute; end class << self - # source://activesupport//lib/active_support/code_generator.rb#41 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:41 def batch(owner, path, line); end end end -# source://activesupport//lib/active_support/code_generator.rb#5 +# pkg:gem/activesupport#lib/active_support/code_generator.rb:5 class ActiveSupport::CodeGenerator::MethodSet - # @return [MethodSet] a new instance of MethodSet - # - # source://activesupport//lib/active_support/code_generator.rb#8 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:8 def initialize(namespace); end - # source://activesupport//lib/active_support/code_generator.rb#28 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:28 def apply(owner, path, line); end - # source://activesupport//lib/active_support/code_generator.rb#15 + # pkg:gem/activesupport#lib/active_support/code_generator.rb:15 def define_cached_method(canonical_name, as: T.unsafe(nil)); end end -# source://activesupport//lib/active_support/code_generator.rb#6 +# pkg:gem/activesupport#lib/active_support/code_generator.rb:6 ActiveSupport::CodeGenerator::MethodSet::METHOD_CACHES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/range/compare_range.rb#4 +# pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:4 module ActiveSupport::CompareWithRange # Extends the default Range#=== to support range comparisons. # (1..5) === (1..5) # => true @@ -3278,7 +3088,7 @@ module ActiveSupport::CompareWithRange # # The given range must be fully bounded, with both start and end. # - # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:16 def ===(value); end # Extends the default Range#include? to support range comparisons. @@ -3293,9 +3103,7 @@ module ActiveSupport::CompareWithRange # # The given range must be fully bounded, with both start and end. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:41 def include?(value); end end @@ -3408,9 +3216,9 @@ end # # prepend is also used for any dependencies. # -# source://activesupport//lib/active_support/concern.rb#112 +# pkg:gem/activesupport#lib/active_support/concern.rb:112 module ActiveSupport::Concern - # source://activesupport//lib/active_support/concern.rb#129 + # pkg:gem/activesupport#lib/active_support/concern.rb:129 def append_features(base); end # Define class methods from given block. @@ -3434,81 +3242,77 @@ module ActiveSupport::Concern # Buzz.foo # => "foo" # Buzz.bar # => private method 'bar' called for Buzz:Class(NoMethodError) # - # source://activesupport//lib/active_support/concern.rb#209 + # pkg:gem/activesupport#lib/active_support/concern.rb:209 def class_methods(&class_methods_module_definition); end # Evaluate given block in context of base class, # so that you can write class macros here. # When you define more than one +included+ block, it raises an exception. # - # source://activesupport//lib/active_support/concern.rb#158 + # pkg:gem/activesupport#lib/active_support/concern.rb:158 def included(base = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/concern.rb#142 + # pkg:gem/activesupport#lib/active_support/concern.rb:142 def prepend_features(base); end # Evaluate given block in context of base class, # so that you can write class macros here. # When you define more than one +prepended+ block, it raises an exception. # - # source://activesupport//lib/active_support/concern.rb#175 + # pkg:gem/activesupport#lib/active_support/concern.rb:175 def prepended(base = T.unsafe(nil), &block); end class << self - # source://activesupport//lib/active_support/concern.rb#125 + # pkg:gem/activesupport#lib/active_support/concern.rb:125 def extended(base); end end end -# source://activesupport//lib/active_support/concern.rb#113 +# pkg:gem/activesupport#lib/active_support/concern.rb:113 class ActiveSupport::Concern::MultipleIncludedBlocks < ::StandardError - # @return [MultipleIncludedBlocks] a new instance of MultipleIncludedBlocks - # - # source://activesupport//lib/active_support/concern.rb#114 + # pkg:gem/activesupport#lib/active_support/concern.rb:114 def initialize; end end -# source://activesupport//lib/active_support/concern.rb#119 +# pkg:gem/activesupport#lib/active_support/concern.rb:119 class ActiveSupport::Concern::MultiplePrependBlocks < ::StandardError - # @return [MultiplePrependBlocks] a new instance of MultiplePrependBlocks - # - # source://activesupport//lib/active_support/concern.rb#120 + # pkg:gem/activesupport#lib/active_support/concern.rb:120 def initialize; end end -# source://activesupport//lib/active_support/concurrency/share_lock.rb#6 +# pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:6 module ActiveSupport::Concurrency; end # A monitor that will permit dependency loading while blocked waiting for # the lock. # -# source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#32 +# pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:32 class ActiveSupport::Concurrency::LoadInterlockAwareMonitor < ::Monitor include ::ActiveSupport::Concurrency::LoadInterlockAwareMonitorMixin end -# source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#7 +# pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:7 module ActiveSupport::Concurrency::LoadInterlockAwareMonitorMixin # Enters an exclusive section, but allows dependency loading while blocked # - # source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#13 + # pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:13 def mon_enter; end - # source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#18 + # pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:18 def synchronize(&block); end end -# source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#9 +# pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:9 ActiveSupport::Concurrency::LoadInterlockAwareMonitorMixin::EXCEPTION_IMMEDIATE = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#8 +# pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:8 ActiveSupport::Concurrency::LoadInterlockAwareMonitorMixin::EXCEPTION_NEVER = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/concurrency/null_lock.rb#5 +# pkg:gem/activesupport#lib/active_support/concurrency/null_lock.rb:5 module ActiveSupport::Concurrency::NullLock extend ::ActiveSupport::Concurrency::NullLock - # source://activesupport//lib/active_support/concurrency/null_lock.rb#8 + # pkg:gem/activesupport#lib/active_support/concurrency/null_lock.rb:8 def synchronize; end end @@ -3516,13 +3320,11 @@ end # # https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock # -# source://activesupport//lib/active_support/concurrency/share_lock.rb#10 +# pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:10 class ActiveSupport::Concurrency::ShareLock include ::MonitorMixin - # @return [ShareLock] a new instance of ShareLock - # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#49 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:49 def initialize; end # Execute the supplied block while holding the Exclusive lock. If @@ -3532,19 +3334,19 @@ class ActiveSupport::Concurrency::ShareLock # # See +start_exclusive+ for other options. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#147 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:147 def exclusive(purpose: T.unsafe(nil), compatible: T.unsafe(nil), after_compatible: T.unsafe(nil), no_wait: T.unsafe(nil)); end # We track Thread objects, instead of just using counters, because # we need exclusive locks to be reentrant, and we need to be able # to upgrade share locks to exclusive. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#17 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:17 def raw_state; end # Execute the supplied block while holding the Share lock. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#158 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:158 def sharing; end # Returns false if +no_wait+ is set and the lock is not @@ -3562,69 +3364,61 @@ class ActiveSupport::Concurrency::ShareLock # +purpose+ matching, it is possible to yield only to other # threads whose activity will not interfere. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#75 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:75 def start_exclusive(purpose: T.unsafe(nil), compatible: T.unsafe(nil), no_wait: T.unsafe(nil)); end - # source://activesupport//lib/active_support/concurrency/share_lock.rb#113 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:113 def start_sharing; end # Relinquish the exclusive lock. Must only be called by the thread # that called start_exclusive (and currently holds the lock). # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#95 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:95 def stop_exclusive(compatible: T.unsafe(nil)); end - # source://activesupport//lib/active_support/concurrency/share_lock.rb#130 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:130 def stop_sharing; end # Temporarily give up all held Share locks while executing the # supplied block, allowing any +compatible+ exclusive lock request # to proceed. # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#170 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:170 def yield_shares(purpose: T.unsafe(nil), compatible: T.unsafe(nil), block_share: T.unsafe(nil)); end private # Must be called within synchronize # - # @return [Boolean] - # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#203 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:203 def busy_for_exclusive?(purpose); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#208 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:208 def busy_for_sharing?(purpose); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/concurrency/share_lock.rb#213 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:213 def eligible_waiters?(compatible); end - # source://activesupport//lib/active_support/concurrency/share_lock.rb#217 + # pkg:gem/activesupport#lib/active_support/concurrency/share_lock.rb:217 def wait_for(method, &block); end end -# source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#36 +# pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:36 class ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor include ::ActiveSupport::Concurrency::LoadInterlockAwareMonitorMixin - # @return [ThreadLoadInterlockAwareMonitor] a new instance of ThreadLoadInterlockAwareMonitor - # - # source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#39 + # pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:39 def initialize; end - # source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#13 + # pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:54 def mon_enter; end private - # source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#60 + # pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:60 def mon_exit; end - # source://activesupport//lib/active_support/concurrency/load_interlock_aware_monitor.rb#46 + # pkg:gem/activesupport#lib/active_support/concurrency/load_interlock_aware_monitor.rb:46 def mon_try_enter; end end @@ -3633,7 +3427,7 @@ end # Configurable provides a config method to store and retrieve # configuration options as an OrderedOptions. # -# source://activesupport//lib/active_support/configurable.rb#11 +# pkg:gem/activesupport#lib/active_support/configurable.rb:11 module ActiveSupport::Configurable extend ::ActiveSupport::Concern @@ -3655,18 +3449,16 @@ module ActiveSupport::Configurable # user.config.allowed_access # => true # user.config.level # => 1 # - # source://activesupport//lib/active_support/configurable.rb#155 + # pkg:gem/activesupport#lib/active_support/configurable.rb:155 def config; end end -# source://activesupport//lib/active_support/configurable.rb#29 +# pkg:gem/activesupport#lib/active_support/configurable.rb:29 module ActiveSupport::Configurable::ClassMethods - # source://activesupport//lib/active_support/configurable.rb#30 + # pkg:gem/activesupport#lib/active_support/configurable.rb:30 def config; end - # @yield [config] - # - # source://activesupport//lib/active_support/configurable.rb#39 + # pkg:gem/activesupport#lib/active_support/configurable.rb:39 def configure; end private @@ -3740,22 +3532,22 @@ module ActiveSupport::Configurable::ClassMethods # User.allowed_access # => false # User.hair_colors # => [:brown, :black, :blonde, :red] # - # source://activesupport//lib/active_support/configurable.rb#111 + # pkg:gem/activesupport#lib/active_support/configurable.rb:111 def config_accessor(*names, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end - # source://activesupport//lib/active_support/configurable.rb#132 + # pkg:gem/activesupport#lib/active_support/configurable.rb:132 def inherited(subclass); end end -# source://activesupport//lib/active_support/configurable.rb#14 +# pkg:gem/activesupport#lib/active_support/configurable.rb:14 class ActiveSupport::Configurable::Configuration < ::ActiveSupport::InheritableOptions - # source://activesupport//lib/active_support/configurable.rb#15 + # pkg:gem/activesupport#lib/active_support/configurable.rb:15 def compile_methods!; end class << self # Compiles reader methods so we don't have to go through method_missing. # - # source://activesupport//lib/active_support/configurable.rb#20 + # pkg:gem/activesupport#lib/active_support/configurable.rb:20 def compile_methods!(keys); end end end @@ -3766,76 +3558,67 @@ end # Warns in case of YAML confusing characters, like invisible # non-breaking spaces. # -# source://activesupport//lib/active_support/configuration_file.rb#9 +# pkg:gem/activesupport#lib/active_support/configuration_file.rb:9 class ActiveSupport::ConfigurationFile - # @return [ConfigurationFile] a new instance of ConfigurationFile - # - # source://activesupport//lib/active_support/configuration_file.rb#12 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:12 def initialize(content_path); end - # source://activesupport//lib/active_support/configuration_file.rb#21 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:21 def parse(context: T.unsafe(nil), **options); end private - # source://activesupport//lib/active_support/configuration_file.rb#44 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:44 def read(content_path); end - # source://activesupport//lib/active_support/configuration_file.rb#54 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:54 def render(context); end class << self - # source://activesupport//lib/active_support/configuration_file.rb#17 + # pkg:gem/activesupport#lib/active_support/configuration_file.rb:17 def parse(content_path, **options); end end end -# source://activesupport//lib/active_support/configuration_file.rb#10 +# pkg:gem/activesupport#lib/active_support/configuration_file.rb:10 class ActiveSupport::ConfigurationFile::FormatError < ::StandardError; end -# source://activesupport//lib/active_support/core_ext/erb/util.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:6 module ActiveSupport::CoreExt; end -# source://activesupport//lib/active_support/core_ext/erb/util.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:7 module ActiveSupport::CoreExt::ERBUtil - # A utility method for escaping HTML tag characters. - # This method is also aliased as h. - # - # puts html_escape('is a > 0 & a < 10?') - # # => is a > 0 & a < 10? - # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:28 def h(s); end + # HTML escapes strings but doesn't wrap them with an ActiveSupport::SafeBuffer. + # This method is not for public consumption! Seriously! # A utility method for escaping HTML tag characters. # This method is also aliased as h. # # puts html_escape('is a > 0 & a < 10?') # # => is a > 0 & a < 10? # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:10 def html_escape(s); end - # HTML escapes strings but doesn't wrap them with an ActiveSupport::SafeBuffer. - # This method is not for public consumption! Seriously! - # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:18 def unwrapped_html_escape(s); end end -# source://activesupport//lib/active_support/core_ext/erb/util.rb#31 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:31 module ActiveSupport::CoreExt::ERBUtilPrivate include ::ActiveSupport::CoreExt::ERBUtil private - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:33 def h(s); end - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:33 def html_escape(s); end - # source://activesupport//lib/active_support/core_ext/erb/util.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:33 def unwrapped_html_escape(s); end end @@ -3923,47 +3706,39 @@ end # The attributes stuck in Current should be used by more or less all actions on all requests. If you start # sticking controller-specific attributes in there, you're going to create a mess. # -# source://activesupport//lib/active_support/current_attributes.rb#92 +# pkg:gem/activesupport#lib/active_support/current_attributes.rb:92 class ActiveSupport::CurrentAttributes include ::ActiveSupport::Callbacks extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker - # @return [CurrentAttributes] a new instance of CurrentAttributes - # - # source://activesupport//lib/active_support/current_attributes.rb#206 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:187 def initialize; end - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:93 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def _reset_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#912 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def _run_reset_callbacks(&block); end - # Returns the value of attribute attributes. - # - # source://activesupport//lib/active_support/current_attributes.rb#204 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:187 def attributes; end - # Sets the attribute attributes - # - # @param value the value to set the attribute attributes to. - # - # source://activesupport//lib/active_support/current_attributes.rb#204 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:187 def attributes=(_arg0); end - # source://activesupport//lib/active_support/current_attributes.rb#202 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:187 def defaults; end - # source://activesupport//lib/active_support/current_attributes.rb#202 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:187 def defaults?; end # Reset all attributes. Should be called before and after actions, when used as a per-request singleton. # - # source://activesupport//lib/active_support/current_attributes.rb#225 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:187 def reset; end # Expose one or more attributes within a block. Old values are returned after the block concludes. @@ -3977,30 +3752,28 @@ class ActiveSupport::CurrentAttributes # end # end # - # source://activesupport//lib/active_support/current_attributes.rb#220 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:187 def set(attributes, &block); end private - # source://activesupport//lib/active_support/current_attributes.rb#232 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:187 def resolve_defaults; end class << self - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:93 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:93 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def _reset_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:94 def _reset_callbacks=(value); end - # Calls this callback after #reset is called on the instance. Used for resetting external collaborators, like Time.zone. - # - # source://activesupport//lib/active_support/current_attributes.rb#149 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:152 def after_reset(*methods, &block); end # Declares one or more attributes that will be given both class and instance accessor methods. @@ -4012,99 +3785,108 @@ class ActiveSupport::CurrentAttributes # constructed. Otherwise, the value will be duplicated with +#dup+. # Default values are re-assigned when the attributes are reset. # - # source://activesupport//lib/active_support/current_attributes.rb#114 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:114 def attribute(*names, default: T.unsafe(nil)); end - # source://activesupport//lib/active_support/current_attributes.rb#198 - def attributes(&_arg0); end + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:198 + def attributes(&); end - # source://activesupport//lib/active_support/current_attributes.rb#198 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:198 def attributes=(arg); end # Calls this callback before #reset is called on the instance. Used for resetting external collaborators that depend on current values. # - # source://activesupport//lib/active_support/current_attributes.rb#144 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:144 def before_reset(*methods, &block); end - # source://activesupport//lib/active_support/current_attributes.rb#160 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:160 def clear_all; end - # source://activesupport//lib/active_support/current_attributes.rb#202 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:202 def defaults; end - # source://activesupport//lib/active_support/current_attributes.rb#202 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:202 def defaults=(value); end - # source://activesupport//lib/active_support/current_attributes.rb#202 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:202 def defaults?; end # Returns singleton instance for this class in this thread. If none exists, one is created. # - # source://activesupport//lib/active_support/current_attributes.rb#102 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:102 def instance; end - # source://activesupport//lib/active_support/current_attributes.rb#154 - def reset(*_arg0, **_arg1, &_arg2); end + # Reset all attributes. Should be called before and after actions, when used as a per-request singleton. + # + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:154 + def reset(*, **, &); end - # source://activesupport//lib/active_support/current_attributes.rb#156 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:156 def reset_all; end # Calls this callback after #reset is called on the instance. Used for resetting external collaborators, like Time.zone. # - # source://activesupport//lib/active_support/current_attributes.rb#149 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:149 def resets(*methods, &block); end - # source://activesupport//lib/active_support/current_attributes.rb#154 - def set(*_arg0, **_arg1, &_arg2); end + # Expose one or more attributes within a block. Old values are returned after the block concludes. + # Example demonstrating the common use of needing to set Current attributes outside the request-cycle: + # + # class Chat::PublicationJob < ApplicationJob + # def perform(attributes, room_number, creator) + # Current.set(person: creator) do + # Chat::Publisher.publish(attributes: attributes, room_number: room_number) + # end + # end + # end + # + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:154 + def set(*, **, &); end private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:93 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:93 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:202 def __class_attr_defaults; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:202 def __class_attr_defaults=(new_value); end - # source://activesupport//lib/active_support/current_attributes.rb#170 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:170 def current_instances; end - # source://activesupport//lib/active_support/current_attributes.rb#174 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:174 def current_instances_key; end - # source://activesupport//lib/active_support/current_attributes.rb#166 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:166 def generated_attribute_methods; end - # @private - # - # source://activesupport//lib/active_support/current_attributes.rb#186 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:186 def method_added(name); end - # source://activesupport//lib/active_support/current_attributes.rb#178 - def method_missing(name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:178 + def method_missing(name, *, **, &); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/current_attributes.rb#182 + # pkg:gem/activesupport#lib/active_support/current_attributes.rb:182 def respond_to_missing?(name, _); end end end -# source://activesupport//lib/active_support/current_attributes.rb#96 +# pkg:gem/activesupport#lib/active_support/current_attributes.rb:96 ActiveSupport::CurrentAttributes::INVALID_ATTRIBUTE_NAMES = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/current_attributes.rb#98 +# pkg:gem/activesupport#lib/active_support/current_attributes.rb:98 ActiveSupport::CurrentAttributes::NOT_SET = T.let(T.unsafe(nil), Object) # Provides +deep_merge+ and +deep_merge!+ methods. Expects the including class # to provide a merge!(other, &block) method. # -# source://activesupport//lib/active_support/deep_mergeable.rb#6 +# pkg:gem/activesupport#lib/active_support/deep_mergeable.rb:6 module ActiveSupport::DeepMergeable # Returns a new instance with the values from +other+ merged recursively. # @@ -4128,83 +3910,81 @@ module ActiveSupport::DeepMergeable # end # # => { a: 100, b: 450, c: { c1: 300 } } # - # source://activesupport//lib/active_support/deep_mergeable.rb#29 + # pkg:gem/activesupport#lib/active_support/deep_mergeable.rb:29 def deep_merge(other, &block); end # Same as #deep_merge, but modifies +self+. # - # source://activesupport//lib/active_support/deep_mergeable.rb#34 + # pkg:gem/activesupport#lib/active_support/deep_mergeable.rb:34 def deep_merge!(other, &block); end # Returns true if +other+ can be deep merged into +self+. Classes may # override this method to restrict or expand the domain of deep mergeable # values. Defaults to checking that +other+ is of type +self.class+. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/deep_mergeable.rb#49 + # pkg:gem/activesupport#lib/active_support/deep_mergeable.rb:49 def deep_merge?(other); end end -# source://activesupport//lib/active_support/delegation.rb#14 +# pkg:gem/activesupport#lib/active_support/delegation.rb:14 module ActiveSupport::Delegation class << self - # source://activesupport//lib/active_support/delegation.rb#21 + # pkg:gem/activesupport#lib/active_support/delegation.rb:21 def generate(owner, methods, location: T.unsafe(nil), to: T.unsafe(nil), prefix: T.unsafe(nil), allow_nil: T.unsafe(nil), nilable: T.unsafe(nil), private: T.unsafe(nil), as: T.unsafe(nil), signature: T.unsafe(nil)); end - # source://activesupport//lib/active_support/delegation.rb#150 + # pkg:gem/activesupport#lib/active_support/delegation.rb:150 def generate_method_missing(owner, target, allow_nil: T.unsafe(nil)); end end end -# source://activesupport//lib/active_support/delegation.rb#18 +# pkg:gem/activesupport#lib/active_support/delegation.rb:18 ActiveSupport::Delegation::RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set) -# source://activesupport//lib/active_support/delegation.rb#15 +# pkg:gem/activesupport#lib/active_support/delegation.rb:15 ActiveSupport::Delegation::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) # Error generated by +delegate+ when a method is called on +nil+ and +allow_nil+ # option is not used. # -# source://activesupport//lib/active_support/delegation.rb#6 +# pkg:gem/activesupport#lib/active_support/delegation.rb:6 class ActiveSupport::DelegationError < ::NoMethodError class << self - # source://activesupport//lib/active_support/delegation.rb#8 + # pkg:gem/activesupport#lib/active_support/delegation.rb:8 def nil_target(method_name, target); end end end -# source://activesupport//lib/active_support/dependencies/interlock.rb#6 +# pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:6 module ActiveSupport::Dependencies class << self - # source://activesupport//lib/active_support/dependencies.rb#61 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:61 def _autoloaded_tracked_classes; end - # source://activesupport//lib/active_support/dependencies.rb#61 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:61 def _autoloaded_tracked_classes=(_arg0); end - # source://activesupport//lib/active_support/dependencies.rb#55 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:55 def _eager_load_paths; end - # source://activesupport//lib/active_support/dependencies.rb#55 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:55 def _eager_load_paths=(_arg0); end - # source://activesupport//lib/active_support/dependencies.rb#48 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:48 def autoload_once_paths; end - # source://activesupport//lib/active_support/dependencies.rb#48 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:48 def autoload_once_paths=(_arg0); end - # source://activesupport//lib/active_support/dependencies.rb#42 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:42 def autoload_paths; end - # source://activesupport//lib/active_support/dependencies.rb#42 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:42 def autoload_paths=(_arg0); end - # source://activesupport//lib/active_support/dependencies.rb#68 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:68 def autoloader; end - # source://activesupport//lib/active_support/dependencies.rb#68 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:68 def autoloader=(_arg0); end # Private method that reloads constants autoloaded by the main autoloader. @@ -4213,85 +3993,81 @@ module ActiveSupport::Dependencies # reload. That involves more things, like deleting unloaded classes from the # internal state of the descendants tracker, or reloading routes. # - # source://activesupport//lib/active_support/dependencies.rb#75 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:75 def clear; end # Private method that helps configuring the autoloaders. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/dependencies.rb#93 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:93 def eager_load?(path); end - # source://activesupport//lib/active_support/dependencies.rb#9 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:9 def interlock; end - # source://activesupport//lib/active_support/dependencies.rb#9 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:9 def interlock=(_arg0); end # Execute the supplied block while holding an exclusive lock, # preventing any other thread from being inside a #run_interlock # block at the same time. # - # source://activesupport//lib/active_support/dependencies.rb#23 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:23 def load_interlock(&block); end # Execute the supplied block without interference from any # concurrent loads. # - # source://activesupport//lib/active_support/dependencies.rb#16 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:16 def run_interlock(&block); end # Private method used by require_dependency. # - # source://activesupport//lib/active_support/dependencies.rb#83 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:83 def search_for_file(relpath); end # Execute the supplied block while holding an exclusive lock, # preventing any other thread from being inside a #run_interlock # block at the same time. # - # source://activesupport//lib/active_support/dependencies.rb#30 + # pkg:gem/activesupport#lib/active_support/dependencies.rb:30 def unload_interlock(&block); end end end -# source://activesupport//lib/active_support/dependencies/interlock.rb#7 +# pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:7 class ActiveSupport::Dependencies::Interlock - # @return [Interlock] a new instance of Interlock - # - # source://activesupport//lib/active_support/dependencies/interlock.rb#8 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:8 def initialize; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#32 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:32 def done_running; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#24 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:24 def done_unloading; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#12 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:12 def loading(&block); end - # source://activesupport//lib/active_support/dependencies/interlock.rb#40 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:40 def permit_concurrent_loads(&block); end - # source://activesupport//lib/active_support/dependencies/interlock.rb#44 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:44 def raw_state(&block); end - # source://activesupport//lib/active_support/dependencies/interlock.rb#36 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:36 def running(&block); end - # source://activesupport//lib/active_support/dependencies/interlock.rb#28 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:28 def start_running; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#20 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:20 def start_unloading; end - # source://activesupport//lib/active_support/dependencies/interlock.rb#16 + # pkg:gem/activesupport#lib/active_support/dependencies/interlock.rb:16 def unloading(&block); end end -# source://activesupport//lib/active_support/dependencies/require_dependency.rb#3 +# pkg:gem/activesupport#lib/active_support/dependencies/require_dependency.rb:3 module ActiveSupport::Dependencies::RequireDependency # Warning: This method is obsolete. The semantics of the autoloader # match Ruby's and you do not need to be defensive with load order anymore. @@ -4301,7 +4077,7 @@ module ActiveSupport::Dependencies::RequireDependency # should call +require_dependency+ where needed in case the runtime mode is # +:classic+. # - # source://activesupport//lib/active_support/dependencies/require_dependency.rb#11 + # pkg:gem/activesupport#lib/active_support/dependencies/require_dependency.rb:11 def require_dependency(filename); end end @@ -4335,7 +4111,7 @@ end # # in config/environments/test.rb # config.active_support.deprecation = :raise # -# source://activesupport//lib/active_support/deprecation.rb#33 +# pkg:gem/activesupport#lib/active_support/deprecation.rb:33 class ActiveSupport::Deprecation include ::ActiveSupport::Deprecation::Behavior include ::ActiveSupport::Deprecation::Reporting @@ -4347,23 +4123,21 @@ class ActiveSupport::Deprecation # # ActiveSupport::Deprecation.new('2.0', 'MyLibrary') # - # @return [Deprecation] a new instance of Deprecation - # - # source://activesupport//lib/active_support/deprecation.rb#71 + # pkg:gem/activesupport#lib/active_support/deprecation.rb:71 def initialize(deprecation_horizon = T.unsafe(nil), gem_name = T.unsafe(nil)); end # The version number in which the deprecated behavior will be removed, by default. # - # source://activesupport//lib/active_support/deprecation.rb#65 + # pkg:gem/activesupport#lib/active_support/deprecation.rb:65 def deprecation_horizon; end # The version number in which the deprecated behavior will be removed, by default. # - # source://activesupport//lib/active_support/deprecation.rb#65 + # pkg:gem/activesupport#lib/active_support/deprecation.rb:65 def deprecation_horizon=(_arg0); end class << self - # source://activesupport//lib/active_support/deprecation.rb#60 + # pkg:gem/activesupport#lib/active_support/deprecation.rb:60 def _instance; end end end @@ -4382,11 +4156,11 @@ end # Setting behaviors only affects deprecations that happen after boot time. # For more information you can read the documentation of the #behavior= method. # -# source://activesupport//lib/active_support/deprecation/behaviors.rb#69 +# pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:69 module ActiveSupport::Deprecation::Behavior # Returns the current behavior or if one isn't set, defaults to +:stderr+. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#74 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:74 def behavior; end # Sets the behavior to the specified value. Can be a single value, array, @@ -4418,22 +4192,22 @@ module ActiveSupport::Deprecation::Behavior # all deprecation behaviors. This is similar to the +:silence+ option but # more performant. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#111 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:111 def behavior=(behavior); end # Whether to print a backtrace along with the warning. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#71 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:71 def debug; end # Whether to print a backtrace along with the warning. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#71 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:71 def debug=(_arg0); end # Returns the current behavior for disallowed deprecations or if one isn't set, defaults to +:raise+. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#79 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:79 def disallowed_behavior; end # Sets the behavior for disallowed deprecations (those configured by @@ -4441,29 +4215,27 @@ module ActiveSupport::Deprecation::Behavior # value. As with #behavior=, this can be a single value, array, or an # object that responds to +call+. # - # source://activesupport//lib/active_support/deprecation/behaviors.rb#119 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:119 def disallowed_behavior=(behavior); end private - # source://activesupport//lib/active_support/deprecation/behaviors.rb#124 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:124 def arity_coerce(behavior); end - # source://activesupport//lib/active_support/deprecation/behaviors.rb#143 + # pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:143 def arity_of_callable(callable); end end # Default warning behaviors per Rails.env. # -# source://activesupport//lib/active_support/deprecation/behaviors.rb#13 +# pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:13 ActiveSupport::Deprecation::DEFAULT_BEHAVIORS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/deprecation/constant_accessor.rb#5 +# pkg:gem/activesupport#lib/active_support/deprecation/constant_accessor.rb:5 module ActiveSupport::Deprecation::DeprecatedConstantAccessor class << self - # @private - # - # source://activesupport//lib/active_support/deprecation/constant_accessor.rb#6 + # pkg:gem/activesupport#lib/active_support/deprecation/constant_accessor.rb:6 def included(base); end end end @@ -4484,14 +4256,12 @@ end # (Backtrace information…) # ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"] # -# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#120 +# pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:120 class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module - # @return [DeprecatedConstantProxy] a new instance of DeprecatedConstantProxy - # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#128 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:128 def initialize(old_const, new_const, deprecator, message: T.unsafe(nil)); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#158 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:158 def append_features(base); end # Returns the class of the new constant. @@ -4500,46 +4270,46 @@ class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module # PLANETS = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('PLANETS', 'PLANETS_POST_2006') # PLANETS.class # => Array # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#154 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:154 def class; end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#168 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:168 def extended(base); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147 - def hash(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:147 + def hash(*, **, &); end # Don't give a deprecation warning on inspect since test/unit and error # logs rely on it for diagnostics. # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#141 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:141 def inspect; end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147 - def instance_methods(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:147 + def instance_methods(*, **, &); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147 - def name(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:147 + def name(*, **, &); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#163 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:163 def prepend_features(base); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147 - def respond_to?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:147 + def respond_to?(*, **, &); end private - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#178 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:178 def const_missing(name); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#183 - def method_missing(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:183 + def method_missing(*, **, &); end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#174 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:174 def target; end class << self - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#121 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:121 def new(*args, **options, &block); end end end @@ -4577,19 +4347,17 @@ end # example.request.to_s # # => "special_request" # -# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#87 +# pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:87 class ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy < ::ActiveSupport::Deprecation::DeprecationProxy - # @return [DeprecatedInstanceVariableProxy] a new instance of DeprecatedInstanceVariableProxy - # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#88 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:88 def initialize(instance, method, var = T.unsafe(nil), deprecator:); end private - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#96 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:96 def target; end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#100 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:100 def warn(callstack, called, args); end end @@ -4604,37 +4372,35 @@ end # (Backtrace) # # => "#" # -# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#38 +# pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:38 class ActiveSupport::Deprecation::DeprecatedObjectProxy < ::ActiveSupport::Deprecation::DeprecationProxy - # @return [DeprecatedObjectProxy] a new instance of DeprecatedObjectProxy - # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#39 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:39 def initialize(object, message, deprecator); end private - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#46 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:46 def target; end - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#50 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:50 def warn(callstack, called, args); end end -# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#5 +# pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:5 class ActiveSupport::Deprecation::DeprecationProxy # Don't give a deprecation warning on inspect since test/unit and error # logs rely on it for diagnostics. # - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#17 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:17 def inspect; end private - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#22 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:22 def method_missing(called, *args, &block); end class << self - # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#6 + # pkg:gem/activesupport#lib/active_support/deprecation/proxy_wrappers.rb:6 def new(*args, **kwargs, &block); end end end @@ -4644,16 +4410,14 @@ end # #silence method silences all deprecators in the collection for the # duration of a given block. # -# source://activesupport//lib/active_support/deprecation/deprecators.rb#9 +# pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:9 class ActiveSupport::Deprecation::Deprecators - # @return [Deprecators] a new instance of Deprecators - # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#10 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:10 def initialize; end # Returns a deprecator added to this collection via #[]=. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#16 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:16 def [](name); end # Adds a given +deprecator+ to this collection. The deprecator will be @@ -4670,7 +4434,7 @@ class ActiveSupport::Deprecation::Deprecators # deprecators[:foo].debug # => true # foo_deprecator.debug # => true # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#34 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:34 def []=(name, deprecator); end # Sets the deprecation warning behavior for all deprecators in this @@ -4678,12 +4442,12 @@ class ActiveSupport::Deprecation::Deprecators # # See ActiveSupport::Deprecation#behavior=. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#60 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:60 def behavior=(behavior); end # Sets the debug flag for all deprecators in this collection. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#52 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:52 def debug=(debug); end # Sets the disallowed deprecation warning behavior for all deprecators in @@ -4691,7 +4455,7 @@ class ActiveSupport::Deprecation::Deprecators # # See ActiveSupport::Deprecation#disallowed_behavior=. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#68 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:68 def disallowed_behavior=(disallowed_behavior); end # Sets the disallowed deprecation warnings for all deprecators in this @@ -4699,13 +4463,13 @@ class ActiveSupport::Deprecation::Deprecators # # See ActiveSupport::Deprecation#disallowed_warnings=. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#76 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:76 def disallowed_warnings=(disallowed_warnings); end # Iterates over all deprecators in this collection. If no block is given, # returns an +Enumerator+. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#41 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:41 def each(&block); end # Silences all deprecators in this collection for the duration of the @@ -4713,29 +4477,40 @@ class ActiveSupport::Deprecation::Deprecators # # See ActiveSupport::Deprecation#silence. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#84 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:84 def silence(&block); end # Sets the silenced flag for all deprecators in this collection. # - # source://activesupport//lib/active_support/deprecation/deprecators.rb#47 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:47 def silenced=(silenced); end private - # source://activesupport//lib/active_support/deprecation/deprecators.rb#97 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:97 def apply_options(deprecator); end - # source://activesupport//lib/active_support/deprecation/deprecators.rb#92 + # pkg:gem/activesupport#lib/active_support/deprecation/deprecators.rb:92 def set_option(name, value); end end -# source://activesupport//lib/active_support/deprecation/disallowed.rb#5 +# pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:5 module ActiveSupport::Deprecation::Disallowed + # Sets the criteria used to identify deprecation messages which should be + # disallowed. Can be an array containing strings, symbols, or regular + # expressions. (Symbols are treated as strings.) These are compared against + # the text of the generated deprecation warning. + # + # Additionally the scalar symbol +:all+ may be used to treat all + # deprecations as disallowed. + # + # Deprecations matching a substring or regular expression will be handled + # using the configured Behavior#disallowed_behavior rather than + # Behavior#behavior. # Returns the configured criteria used to identify deprecation messages # which should be treated as disallowed. # - # source://activesupport//lib/active_support/deprecation/disallowed.rb#21 + # pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:21 def disallowed_warnings; end # Sets the criteria used to identify deprecation messages which should be @@ -4749,27 +4524,25 @@ module ActiveSupport::Deprecation::Disallowed # Deprecations matching a substring or regular expression will be handled # using the configured Behavior#disallowed_behavior rather than # Behavior#behavior. + # Returns the configured criteria used to identify deprecation messages + # which should be treated as disallowed. # - # source://activesupport//lib/active_support/deprecation/disallowed.rb#17 + # pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:17 def disallowed_warnings=(_arg0); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/deprecation/disallowed.rb#26 + # pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:26 def deprecation_disallowed?(message); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/deprecation/disallowed.rb#39 + # pkg:gem/activesupport#lib/active_support/deprecation/disallowed.rb:39 def explicitly_allowed?(message); end end -# source://activesupport//lib/active_support/deprecation.rb#57 +# pkg:gem/activesupport#lib/active_support/deprecation.rb:57 ActiveSupport::Deprecation::MUTEX = T.let(T.unsafe(nil), Thread::Mutex) -# source://activesupport//lib/active_support/deprecation/method_wrappers.rb#8 +# pkg:gem/activesupport#lib/active_support/deprecation/method_wrappers.rb:8 module ActiveSupport::Deprecation::MethodWrapper # Declare that a method has been deprecated. # @@ -4798,11 +4571,11 @@ module ActiveSupport::Deprecation::MethodWrapper # # DEPRECATION WARNING: ccc is deprecated and will be removed from MyGem next-release (use Bar#ccc instead). (called from irb_binding at (irb):12) # # => nil # - # source://activesupport//lib/active_support/deprecation/method_wrappers.rb#35 + # pkg:gem/activesupport#lib/active_support/deprecation/method_wrappers.rb:35 def deprecate_methods(target_module, *method_names); end end -# source://activesupport//lib/active_support/deprecation/reporting.rb#7 +# pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:7 module ActiveSupport::Deprecation::Reporting # Allow previously disallowed deprecation warnings within the block. # allowed_warnings can be an array containing strings, symbols, or regular @@ -4834,26 +4607,26 @@ module ActiveSupport::Deprecation::Reporting # end # # => ActiveSupport::DeprecationException for dev/test, nil for production # - # source://activesupport//lib/active_support/deprecation/reporting.rb#89 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:89 def allow(allowed_warnings = T.unsafe(nil), if: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#48 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:48 def begin_silence; end - # source://activesupport//lib/active_support/deprecation/reporting.rb#99 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:99 def deprecation_warning(deprecated_method_name, message = T.unsafe(nil), caller_backtrace = T.unsafe(nil)); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#52 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:52 def end_silence; end # Name of gem where method is deprecated # - # source://activesupport//lib/active_support/deprecation/reporting.rb#11 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:11 def gem_name; end # Name of gem where method is deprecated # - # source://activesupport//lib/active_support/deprecation/reporting.rb#11 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:11 def gem_name=(_arg0); end # Silence deprecation warnings within the block. @@ -4867,15 +4640,17 @@ module ActiveSupport::Deprecation::Reporting # end # # => nil # - # source://activesupport//lib/active_support/deprecation/reporting.rb#41 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:41 def silence(&block); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#56 + # Whether to print a message (silent mode) + # + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:56 def silenced; end # Whether to print a message (silent mode) # - # source://activesupport//lib/active_support/deprecation/reporting.rb#9 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:9 def silenced=(_arg0); end # Outputs a deprecation warning to the output configured by @@ -4884,7 +4659,7 @@ module ActiveSupport::Deprecation::Reporting # ActiveSupport::Deprecation.new.warn('something broke!') # # => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)" # - # source://activesupport//lib/active_support/deprecation/reporting.rb#18 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:18 def warn(message = T.unsafe(nil), callstack = T.unsafe(nil)); end private @@ -4898,34 +4673,32 @@ module ActiveSupport::Deprecation::Reporting # deprecated_method_warning(:method_name, "Optional message") # # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon} (Optional message)" # - # source://activesupport//lib/active_support/deprecation/reporting.rb#115 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:115 def deprecated_method_warning(method_name, message = T.unsafe(nil)); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#129 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:129 def deprecation_caller_message(callstack); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#124 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:124 def deprecation_message(callstack, message = T.unsafe(nil)); end - # source://activesupport//lib/active_support/deprecation/reporting.rb#140 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:140 def extract_callstack(callstack); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/deprecation/reporting.rb#155 + # pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:155 def ignored_callstack?(path); end end -# source://activesupport//lib/active_support/deprecation/reporting.rb#153 +# pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:153 ActiveSupport::Deprecation::Reporting::LIB_DIR = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/deprecation/reporting.rb#152 +# pkg:gem/activesupport#lib/active_support/deprecation/reporting.rb:152 ActiveSupport::Deprecation::Reporting::RAILS_GEM_ROOT = T.let(T.unsafe(nil), String) # Raised when ActiveSupport::Deprecation::Behavior#behavior is set with :raise. # You would set :raise, as a behavior to raise errors and proactively report exceptions from deprecations. # -# source://activesupport//lib/active_support/deprecation/behaviors.rb#8 +# pkg:gem/activesupport#lib/active_support/deprecation/behaviors.rb:8 class ActiveSupport::DeprecationException < ::StandardError; end # = Active Support Descendants Tracker @@ -4937,64 +4710,65 @@ class ActiveSupport::DeprecationException < ::StandardError; end # so if you know your code won't be executed on older rubies, including # +ActiveSupport::DescendantsTracker+ does not provide any benefit. # -# source://activesupport//lib/active_support/descendants_tracker.rb#14 +# pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:14 module ActiveSupport::DescendantsTracker - # source://activesupport//lib/active_support/descendants_tracker.rb#107 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:107 def descendants; end class << self - # source://activesupport//lib/active_support/descendants_tracker.rb#78 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:78 def clear(classes); end - # source://activesupport//lib/active_support/descendants_tracker.rb#102 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:102 def descendants(klass); end - # source://activesupport//lib/active_support/descendants_tracker.rb#69 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:69 def disable_clear!; end - # source://activesupport//lib/active_support/descendants_tracker.rb#89 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:89 def reject!(classes); end - # source://activesupport//lib/active_support/descendants_tracker.rb#98 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:98 def subclasses(klass); end end end -# source://activesupport//lib/active_support/descendants_tracker.rb#58 +# pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:58 module ActiveSupport::DescendantsTracker::ReloadedClassesFiltering - # source://activesupport//lib/active_support/descendants_tracker.rb#63 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:63 def descendants; end - # source://activesupport//lib/active_support/descendants_tracker.rb#59 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:59 def subclasses; end end +# On MRI `ObjectSpace::WeakMap` keys are weak references. +# So we can simply use WeakMap as a `Set`. # On TruffleRuby `ObjectSpace::WeakMap` keys are strong references. # So we use `object_id` as a key and the actual object as a value. # # JRuby for now doesn't have Class#descendant, but when it will, it will likely # have the same WeakMap semantic than Truffle so we future proof this as much as possible. # -# source://activesupport//lib/active_support/descendants_tracker.rb#20 +# pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:20 class ActiveSupport::DescendantsTracker::WeakSet < ::ObjectSpace::WeakMap - # source://activesupport//lib/active_support/descendants_tracker.rb#23 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:23 def <<(object); end + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:21 def to_a; end end -# source://activesupport//lib/active_support/digest.rb#6 +# pkg:gem/activesupport#lib/active_support/digest.rb:6 class ActiveSupport::Digest class << self - # source://activesupport//lib/active_support/digest.rb#8 + # pkg:gem/activesupport#lib/active_support/digest.rb:8 def hash_digest_class; end - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/digest.rb#12 + # pkg:gem/activesupport#lib/active_support/digest.rb:12 def hash_digest_class=(klass); end - # source://activesupport//lib/active_support/digest.rb#17 + # pkg:gem/activesupport#lib/active_support/digest.rb:17 def hexdigest(arg); end end end @@ -5006,224 +4780,184 @@ end # # 1.month.ago # equivalent to Time.now.advance(months: -1) # -# source://activesupport//lib/active_support/duration.rb#14 +# pkg:gem/activesupport#lib/active_support/duration.rb:14 class ActiveSupport::Duration - # @return [Duration] a new instance of Duration - # - # source://activesupport//lib/active_support/duration.rb#226 + # pkg:gem/activesupport#lib/active_support/duration.rb:226 def initialize(value, parts, variable = T.unsafe(nil)); end # Returns the modulo of this Duration by another Duration or Numeric. # Numeric values are treated as seconds. # - # source://activesupport//lib/active_support/duration.rb#312 + # pkg:gem/activesupport#lib/active_support/duration.rb:312 def %(other); end # Multiplies this Duration by a Numeric and returns a new Duration. # - # source://activesupport//lib/active_support/duration.rb#287 + # pkg:gem/activesupport#lib/active_support/duration.rb:287 def *(other); end # Adds another Duration or a Numeric to this Duration. Numeric values # are treated as seconds. # - # source://activesupport//lib/active_support/duration.rb#268 + # pkg:gem/activesupport#lib/active_support/duration.rb:268 def +(other); end - # source://activesupport//lib/active_support/duration.rb#326 + # pkg:gem/activesupport#lib/active_support/duration.rb:326 def +@; end # Subtracts another Duration or a Numeric from this Duration. Numeric # values are treated as seconds. # - # source://activesupport//lib/active_support/duration.rb#282 + # pkg:gem/activesupport#lib/active_support/duration.rb:282 def -(other); end - # source://activesupport//lib/active_support/duration.rb#322 + # pkg:gem/activesupport#lib/active_support/duration.rb:322 def -@; end # Divides this Duration by a Numeric and returns a new Duration. # - # source://activesupport//lib/active_support/duration.rb#298 + # pkg:gem/activesupport#lib/active_support/duration.rb:298 def /(other); end # Compares one Duration with another or a Numeric to this Duration. # Numeric values are treated as seconds. # - # source://activesupport//lib/active_support/duration.rb#258 + # pkg:gem/activesupport#lib/active_support/duration.rb:258 def <=>(other); end # Returns +true+ if +other+ is also a Duration instance with the # same +value+, or if other == value. # - # source://activesupport//lib/active_support/duration.rb#341 + # pkg:gem/activesupport#lib/active_support/duration.rb:341 def ==(other); end - # source://activesupport//lib/active_support/duration.rb#481 + # pkg:gem/activesupport#lib/active_support/duration.rb:481 def _parts; end - # source://activesupport//lib/active_support/duration.rb#224 - def abs(&_arg0); end + # pkg:gem/activesupport#lib/active_support/duration.rb:224 + def abs(&); end - # Calculates a new Time or Date that is as far in the future - # as this Duration represents. - # - # source://activesupport//lib/active_support/duration.rb#436 + # pkg:gem/activesupport#lib/active_support/duration.rb:440 def after(time = T.unsafe(nil)); end # Calculates a new Time or Date that is as far in the past # as this Duration represents. # - # source://activesupport//lib/active_support/duration.rb#444 + # pkg:gem/activesupport#lib/active_support/duration.rb:444 def ago(time = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration.rb#459 + # pkg:gem/activesupport#lib/active_support/duration.rb:459 def as_json(options = T.unsafe(nil)); end - # Calculates a new Time or Date that is as far in the past - # as this Duration represents. - # - # source://activesupport//lib/active_support/duration.rb#444 + # pkg:gem/activesupport#lib/active_support/duration.rb:448 def before(time = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration.rb#245 + # pkg:gem/activesupport#lib/active_support/duration.rb:245 def coerce(other); end - # source://activesupport//lib/active_support/duration.rb#467 + # pkg:gem/activesupport#lib/active_support/duration.rb:467 def encode_with(coder); end # Returns +true+ if +other+ is also a Duration instance, which has the # same parts as this one. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#426 + # pkg:gem/activesupport#lib/active_support/duration.rb:426 def eql?(other); end - # Calculates a new Time or Date that is as far in the future - # as this Duration represents. - # - # source://activesupport//lib/active_support/duration.rb#436 + # pkg:gem/activesupport#lib/active_support/duration.rb:439 def from_now(time = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration.rb#430 + # pkg:gem/activesupport#lib/active_support/duration.rb:430 def hash; end # Returns the amount of days a duration covers as a float # # 12.hours.in_days # => 0.5 # - # source://activesupport//lib/active_support/duration.rb#399 + # pkg:gem/activesupport#lib/active_support/duration.rb:399 def in_days; end # Returns the amount of hours a duration covers as a float # # 1.day.in_hours # => 24.0 # - # source://activesupport//lib/active_support/duration.rb#392 + # pkg:gem/activesupport#lib/active_support/duration.rb:392 def in_hours; end # Returns the amount of minutes a duration covers as a float # # 1.day.in_minutes # => 1440.0 # - # source://activesupport//lib/active_support/duration.rb#385 + # pkg:gem/activesupport#lib/active_support/duration.rb:385 def in_minutes; end # Returns the amount of months a duration covers as a float # # 9.weeks.in_months # => 2.07 # - # source://activesupport//lib/active_support/duration.rb#413 + # pkg:gem/activesupport#lib/active_support/duration.rb:413 def in_months; end - # Returns the number of seconds that this Duration represents. - # - # 1.minute.to_i # => 60 - # 1.hour.to_i # => 3600 - # 1.day.to_i # => 86400 - # - # Note that this conversion makes some assumptions about the - # duration of some periods, e.g. months are always 1/12 of year - # and years are 365.2425 days: - # - # # equivalent to (1.year / 12).to_i - # 1.month.to_i # => 2629746 - # - # # equivalent to 365.2425.days.to_i - # 1.year.to_i # => 31556952 - # - # In such cases, Ruby's core - # Date[https://docs.ruby-lang.org/en/master/Date.html] and - # Time[https://docs.ruby-lang.org/en/master/Time.html] should be used for precision - # date and time arithmetic. - # - # source://activesupport//lib/active_support/duration.rb#377 + # pkg:gem/activesupport#lib/active_support/duration.rb:380 def in_seconds; end # Returns the amount of weeks a duration covers as a float # # 2.months.in_weeks # => 8.696 # - # source://activesupport//lib/active_support/duration.rb#406 + # pkg:gem/activesupport#lib/active_support/duration.rb:406 def in_weeks; end # Returns the amount of years a duration covers as a float # # 30.days.in_years # => 0.082 # - # source://activesupport//lib/active_support/duration.rb#420 + # pkg:gem/activesupport#lib/active_support/duration.rb:420 def in_years; end - # source://activesupport//lib/active_support/duration.rb#463 + # pkg:gem/activesupport#lib/active_support/duration.rb:463 def init_with(coder); end - # source://activesupport//lib/active_support/duration.rb#450 + # pkg:gem/activesupport#lib/active_support/duration.rb:450 def inspect; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#335 + # pkg:gem/activesupport#lib/active_support/duration.rb:335 def instance_of?(klass); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#330 + # pkg:gem/activesupport#lib/active_support/duration.rb:330 def is_a?(klass); end # Build ISO 8601 Duration string for this duration. # The +precision+ parameter can be used to limit seconds' precision of duration. # - # source://activesupport//lib/active_support/duration.rb#473 + # pkg:gem/activesupport#lib/active_support/duration.rb:473 def iso8601(precision: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#330 + # pkg:gem/activesupport#lib/active_support/duration.rb:333 def kind_of?(klass); end - # source://activesupport//lib/active_support/duration.rb#224 - def negative?(&_arg0); end + # pkg:gem/activesupport#lib/active_support/duration.rb:224 + def negative?(&); end # Returns a copy of the parts hash that defines the duration. # # 5.minutes.parts # => {:minutes=>5} # 3.years.parts # => {:years=>3} # - # source://activesupport//lib/active_support/duration.rb#241 + # pkg:gem/activesupport#lib/active_support/duration.rb:241 def parts; end - # source://activesupport//lib/active_support/duration.rb#224 - def positive?(&_arg0); end + # pkg:gem/activesupport#lib/active_support/duration.rb:224 + def positive?(&); end # Calculates a new Time or Date that is as far in the future # as this Duration represents. # - # source://activesupport//lib/active_support/duration.rb#436 + # pkg:gem/activesupport#lib/active_support/duration.rb:436 def since(time = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration.rb#224 - def to_f(&_arg0); end + # pkg:gem/activesupport#lib/active_support/duration.rb:224 + def to_f(&); end # Returns the number of seconds that this Duration represents. # @@ -5246,7 +4980,7 @@ class ActiveSupport::Duration # Time[https://docs.ruby-lang.org/en/master/Time.html] should be used for precision # date and time arithmetic. # - # source://activesupport//lib/active_support/duration.rb#377 + # pkg:gem/activesupport#lib/active_support/duration.rb:377 def to_i; end # Returns the amount of seconds a duration covers as a string. @@ -5254,48 +4988,37 @@ class ActiveSupport::Duration # # 1.day.to_s # => "86400" # - # source://activesupport//lib/active_support/duration.rb#353 + # pkg:gem/activesupport#lib/active_support/duration.rb:353 def to_s; end - # Calculates a new Time or Date that is as far in the past - # as this Duration represents. - # - # source://activesupport//lib/active_support/duration.rb#444 + # pkg:gem/activesupport#lib/active_support/duration.rb:447 def until(time = T.unsafe(nil)); end - # Returns the value of attribute value. - # - # source://activesupport//lib/active_support/duration.rb#133 + # pkg:gem/activesupport#lib/active_support/duration.rb:133 def value; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#477 + # pkg:gem/activesupport#lib/active_support/duration.rb:477 def variable?; end - # source://activesupport//lib/active_support/duration.rb#224 - def zero?(&_arg0); end + # pkg:gem/activesupport#lib/active_support/duration.rb:224 + def zero?(&); end private - # source://activesupport//lib/active_support/duration.rb#516 - def method_missing(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/duration.rb:516 + def method_missing(*, **, &); end - # @raise [TypeError] - # - # source://activesupport//lib/active_support/duration.rb#520 + # pkg:gem/activesupport#lib/active_support/duration.rb:520 def raise_type_error(other); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#512 + # pkg:gem/activesupport#lib/active_support/duration.rb:512 def respond_to_missing?(method, _); end - # source://activesupport//lib/active_support/duration.rb#486 + # pkg:gem/activesupport#lib/active_support/duration.rb:486 def sum(sign, time = T.unsafe(nil)); end class << self - # source://activesupport//lib/active_support/duration.rb#149 + # pkg:gem/activesupport#lib/active_support/duration.rb:149 def ===(other); end # Creates a new Duration from a seconds value that is converted @@ -5304,19 +5027,19 @@ class ActiveSupport::Duration # ActiveSupport::Duration.build(31556952).parts # => {:years=>1} # ActiveSupport::Duration.build(2716146).parts # => {:months=>1, :days=>1} # - # source://activesupport//lib/active_support/duration.rb#189 + # pkg:gem/activesupport#lib/active_support/duration.rb:189 def build(value); end - # source://activesupport//lib/active_support/duration.rb#167 + # pkg:gem/activesupport#lib/active_support/duration.rb:167 def days(value); end - # source://activesupport//lib/active_support/duration.rb#163 + # pkg:gem/activesupport#lib/active_support/duration.rb:163 def hours(value); end - # source://activesupport//lib/active_support/duration.rb#159 + # pkg:gem/activesupport#lib/active_support/duration.rb:159 def minutes(value); end - # source://activesupport//lib/active_support/duration.rb#175 + # pkg:gem/activesupport#lib/active_support/duration.rb:175 def months(value); end # Creates a new Duration from string formatted according to ISO 8601 Duration. @@ -5325,21 +5048,21 @@ class ActiveSupport::Duration # This method allows negative parts to be present in pattern. # If invalid string is provided, it will raise +ActiveSupport::Duration::ISO8601Parser::ParsingError+. # - # source://activesupport//lib/active_support/duration.rb#144 + # pkg:gem/activesupport#lib/active_support/duration.rb:144 def parse(iso8601duration); end - # source://activesupport//lib/active_support/duration.rb#155 + # pkg:gem/activesupport#lib/active_support/duration.rb:155 def seconds(value); end - # source://activesupport//lib/active_support/duration.rb#171 + # pkg:gem/activesupport#lib/active_support/duration.rb:171 def weeks(value); end - # source://activesupport//lib/active_support/duration.rb#179 + # pkg:gem/activesupport#lib/active_support/duration.rb:179 def years(value); end private - # source://activesupport//lib/active_support/duration.rb#217 + # pkg:gem/activesupport#lib/active_support/duration.rb:217 def calculate_total_seconds(parts); end end end @@ -5350,255 +5073,219 @@ end # # This parser allows negative parts to be present in pattern. # -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#12 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:12 class ActiveSupport::Duration::ISO8601Parser - # @return [ISO8601Parser] a new instance of ISO8601Parser - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#34 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:34 def initialize(string); end - # Returns the value of attribute mode. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#32 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:32 def mode; end - # Sets the attribute mode - # - # @param value the value to set the attribute mode to. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#32 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:32 def mode=(_arg0); end - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#41 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:41 def parse!; end - # Returns the value of attribute parts. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#31 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:31 def parts; end - # Returns the value of attribute scanner. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#31 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:31 def scanner; end - # Returns the value of attribute sign. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#32 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:32 def sign; end - # Sets the attribute sign - # - # @param value the value to set the attribute sign to. - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#32 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:32 def sign=(_arg0); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#83 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:83 def finished?; end # Parses number which can be a float with either comma or period. # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#88 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:88 def number; end - # @raise [ParsingError] - # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#96 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:96 def raise_parsing_error(reason = T.unsafe(nil)); end - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#92 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:92 def scan(pattern); end # Checks for various semantic errors as stated in ISO 8601 standard. # - # source://activesupport//lib/active_support/duration/iso8601_parser.rb#101 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:101 def validate!; end end -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#17 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:17 ActiveSupport::Duration::ISO8601Parser::COMMA = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#22 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:22 ActiveSupport::Duration::ISO8601Parser::DATE_COMPONENT = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#28 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:28 ActiveSupport::Duration::ISO8601Parser::DATE_COMPONENTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#20 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:20 ActiveSupport::Duration::ISO8601Parser::DATE_MARKER = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#25 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:25 ActiveSupport::Duration::ISO8601Parser::DATE_TO_PART = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#16 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:16 ActiveSupport::Duration::ISO8601Parser::PERIOD = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#15 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:15 ActiveSupport::Duration::ISO8601Parser::PERIOD_OR_COMMA = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#13 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:13 class ActiveSupport::Duration::ISO8601Parser::ParsingError < ::ArgumentError; end -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#19 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:19 ActiveSupport::Duration::ISO8601Parser::SIGN_MARKER = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#23 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:23 ActiveSupport::Duration::ISO8601Parser::TIME_COMPONENT = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#29 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:29 ActiveSupport::Duration::ISO8601Parser::TIME_COMPONENTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#21 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:21 ActiveSupport::Duration::ISO8601Parser::TIME_MARKER = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/duration/iso8601_parser.rb#26 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_parser.rb:26 ActiveSupport::Duration::ISO8601Parser::TIME_TO_PART = T.let(T.unsafe(nil), Hash) # Serializes duration to string according to ISO 8601 Duration format. # -# source://activesupport//lib/active_support/duration/iso8601_serializer.rb#6 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:6 class ActiveSupport::Duration::ISO8601Serializer - # @return [ISO8601Serializer] a new instance of ISO8601Serializer - # - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#9 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:9 def initialize(duration, precision: T.unsafe(nil)); end # Builds and returns output string. # - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#15 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:15 def serialize; end private - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#55 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:55 def format_seconds(seconds); end # Return pair of duration's parts and whole duration sign. # Parts are summarized (as they can become repetitive due to addition, etc). # Zero parts are removed as not significant. # - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#38 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:38 def normalize; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#51 + # pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:51 def week_mixed_with_date?(parts); end end -# source://activesupport//lib/active_support/duration/iso8601_serializer.rb#7 +# pkg:gem/activesupport#lib/active_support/duration/iso8601_serializer.rb:7 ActiveSupport::Duration::ISO8601Serializer::DATE_COMPONENTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/duration.rb#130 +# pkg:gem/activesupport#lib/active_support/duration.rb:130 ActiveSupport::Duration::PARTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/duration.rb#120 +# length of a gregorian year (365.2425 days) +# +# pkg:gem/activesupport#lib/active_support/duration.rb:120 ActiveSupport::Duration::PARTS_IN_SECONDS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/duration.rb#115 +# pkg:gem/activesupport#lib/active_support/duration.rb:115 ActiveSupport::Duration::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/duration.rb#114 +# pkg:gem/activesupport#lib/active_support/duration.rb:114 ActiveSupport::Duration::SECONDS_PER_HOUR = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/duration.rb#113 +# pkg:gem/activesupport#lib/active_support/duration.rb:113 ActiveSupport::Duration::SECONDS_PER_MINUTE = T.let(T.unsafe(nil), Integer) -# 1/12 of a gregorian year -# -# source://activesupport//lib/active_support/duration.rb#117 +# pkg:gem/activesupport#lib/active_support/duration.rb:117 ActiveSupport::Duration::SECONDS_PER_MONTH = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/duration.rb#116 +# pkg:gem/activesupport#lib/active_support/duration.rb:116 ActiveSupport::Duration::SECONDS_PER_WEEK = T.let(T.unsafe(nil), Integer) -# length of a gregorian year (365.2425 days) +# 1/12 of a gregorian year # -# source://activesupport//lib/active_support/duration.rb#118 +# pkg:gem/activesupport#lib/active_support/duration.rb:118 ActiveSupport::Duration::SECONDS_PER_YEAR = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/duration.rb#15 +# pkg:gem/activesupport#lib/active_support/duration.rb:15 class ActiveSupport::Duration::Scalar < ::Numeric - # @return [Scalar] a new instance of Scalar - # - # source://activesupport//lib/active_support/duration.rb#19 + # pkg:gem/activesupport#lib/active_support/duration.rb:19 def initialize(value); end - # source://activesupport//lib/active_support/duration.rb#85 + # pkg:gem/activesupport#lib/active_support/duration.rb:85 def %(other); end - # source://activesupport//lib/active_support/duration.rb#66 + # pkg:gem/activesupport#lib/active_support/duration.rb:66 def *(other); end - # source://activesupport//lib/active_support/duration.rb#41 + # pkg:gem/activesupport#lib/active_support/duration.rb:41 def +(other); end - # source://activesupport//lib/active_support/duration.rb#53 + # pkg:gem/activesupport#lib/active_support/duration.rb:53 def -(other); end - # source://activesupport//lib/active_support/duration.rb#27 + # pkg:gem/activesupport#lib/active_support/duration.rb:27 def -@; end - # source://activesupport//lib/active_support/duration.rb#77 + # pkg:gem/activesupport#lib/active_support/duration.rb:77 def /(other); end - # source://activesupport//lib/active_support/duration.rb#31 + # pkg:gem/activesupport#lib/active_support/duration.rb:31 def <=>(other); end - # source://activesupport//lib/active_support/duration.rb#23 + # pkg:gem/activesupport#lib/active_support/duration.rb:23 def coerce(other); end - # source://activesupport//lib/active_support/duration.rb#17 - def to_f(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/duration.rb:17 + def to_f(*, **, &); end - # source://activesupport//lib/active_support/duration.rb#17 - def to_i(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/duration.rb:17 + def to_i(*, **, &); end - # source://activesupport//lib/active_support/duration.rb#17 - def to_s(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/duration.rb:17 + def to_s(*, **, &); end - # Returns the value of attribute value. - # - # source://activesupport//lib/active_support/duration.rb#16 + # pkg:gem/activesupport#lib/active_support/duration.rb:16 def value; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/duration.rb#93 + # pkg:gem/activesupport#lib/active_support/duration.rb:93 def variable?; end private - # source://activesupport//lib/active_support/duration.rb#98 + # pkg:gem/activesupport#lib/active_support/duration.rb:98 def calculate(op, other); end - # @raise [TypeError] - # - # source://activesupport//lib/active_support/duration.rb#108 + # pkg:gem/activesupport#lib/active_support/duration.rb:108 def raise_type_error(other); end end -# source://activesupport//lib/active_support/duration.rb#131 +# pkg:gem/activesupport#lib/active_support/duration.rb:131 ActiveSupport::Duration::VARIABLE_PARTS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/range/each.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/range/each.rb:6 module ActiveSupport::EachTimeWithZone - # source://activesupport//lib/active_support/core_ext/range/each.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/range/each.rb:7 def each(&block); end - # source://activesupport//lib/active_support/core_ext/range/each.rb#12 + # pkg:gem/activesupport#lib/active_support/core_ext/range/each.rb:12 def step(n = T.unsafe(nil), &block); end private - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/range/each.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/range/each.rb:18 def ensure_iteration_allowed; end end @@ -5626,11 +5313,9 @@ end # my_config.foo! # # => KeyError # -# source://activesupport//lib/active_support/encrypted_configuration.rb#35 +# pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:35 class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile - # @return [EncryptedConfiguration] a new instance of EncryptedConfiguration - # - # source://activesupport//lib/active_support/encrypted_configuration.rb#54 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:54 def initialize(config_path:, key_path:, env_key:, raise_if_missing_key:); end # Returns the decrypted content as a Hash with symbolized keys. @@ -5641,78 +5326,68 @@ class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile # my_config.config # # => { some_secret: 123, some_namespace: { another_secret: 789 } } # - # source://activesupport//lib/active_support/encrypted_configuration.rb#85 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:85 def config; end - # source://activesupport//lib/active_support/encrypted_configuration.rb#89 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:89 def inspect; end - # source://activesupport//lib/active_support/delegation.rb#169 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:52 + def method_missing(method, *, **, &); end # Reads the file and returns the decrypted content. See EncryptedFile#read. # - # source://activesupport//lib/active_support/encrypted_configuration.rb#62 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:62 def read; end - # source://activesupport//lib/active_support/encrypted_configuration.rb#69 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:69 def validate!; end private - # source://activesupport//lib/active_support/encrypted_configuration.rb#94 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:94 def deep_symbolize_keys(hash); end - # source://activesupport//lib/active_support/encrypted_configuration.rb#102 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:102 def deep_transform(hash); end - # source://activesupport//lib/active_support/encrypted_configuration.rb#116 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:116 def deserialize(content); end - # source://activesupport//lib/active_support/encrypted_configuration.rb#112 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:112 def options; end - # source://activesupport//lib/active_support/delegation.rb#161 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:52 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/encrypted_configuration.rb#36 +# pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:36 class ActiveSupport::EncryptedConfiguration::InvalidContentError < ::RuntimeError - # @return [InvalidContentError] a new instance of InvalidContentError - # - # source://activesupport//lib/active_support/encrypted_configuration.rb#37 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:37 def initialize(content_path); end - # source://activesupport//lib/active_support/encrypted_configuration.rb#41 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:41 def message; end end -# source://activesupport//lib/active_support/encrypted_configuration.rb#46 +# pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:46 class ActiveSupport::EncryptedConfiguration::InvalidKeyError < ::RuntimeError - # @return [InvalidKeyError] a new instance of InvalidKeyError - # - # source://activesupport//lib/active_support/encrypted_configuration.rb#47 + # pkg:gem/activesupport#lib/active_support/encrypted_configuration.rb:47 def initialize(content_path, key); end end -# source://activesupport//lib/active_support/encrypted_file.rb#8 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:8 class ActiveSupport::EncryptedFile - # @return [EncryptedFile] a new instance of EncryptedFile - # - # source://activesupport//lib/active_support/encrypted_file.rb#42 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:42 def initialize(content_path:, key_path:, env_key:, raise_if_missing_key:); end - # source://activesupport//lib/active_support/encrypted_file.rb#83 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:83 def change(&block); end - # Returns the value of attribute content_path. - # - # source://activesupport//lib/active_support/encrypted_file.rb#40 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:40 def content_path; end - # Returns the value of attribute env_key. - # - # source://activesupport//lib/active_support/encrypted_file.rb#40 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:40 def env_key; end # Returns the encryption key, first trying the environment variable @@ -5720,25 +5395,19 @@ class ActiveSupport::EncryptedFile # If +raise_if_missing_key+ is true, raises MissingKeyError if the # environment variable is not set and the key file does not exist. # - # source://activesupport//lib/active_support/encrypted_file.rb#52 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:52 def key; end # Returns truthy if #key is truthy. Returns falsy otherwise. Unlike #key, # does not raise MissingKeyError when +raise_if_missing_key+ is true. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/encrypted_file.rb#58 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:58 def key?; end - # Returns the value of attribute key_path. - # - # source://activesupport//lib/active_support/encrypted_file.rb#40 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:40 def key_path; end - # Returns the value of attribute raise_if_missing_key. - # - # source://activesupport//lib/active_support/encrypted_file.rb#40 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:40 def raise_if_missing_key; end # Reads the file and returns the decrypted content. @@ -5750,129 +5419,111 @@ class ActiveSupport::EncryptedFile # - ActiveSupport::MessageEncryptor::InvalidMessage if the content cannot be # decrypted or verified. # - # source://activesupport//lib/active_support/encrypted_file.rb#70 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:70 def read; end - # source://activesupport//lib/active_support/encrypted_file.rb#78 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:78 def write(contents); end private - # @raise [InvalidKeyLengthError] - # - # source://activesupport//lib/active_support/encrypted_file.rb#129 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:129 def check_key_length; end - # source://activesupport//lib/active_support/encrypted_file.rb#108 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:108 def decrypt(contents); end - # source://activesupport//lib/active_support/encrypted_file.rb#103 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:103 def encrypt(contents); end - # source://activesupport//lib/active_support/encrypted_file.rb#112 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:112 def encryptor; end - # @raise [MissingKeyError] - # - # source://activesupport//lib/active_support/encrypted_file.rb#125 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:125 def handle_missing_key; end - # source://activesupport//lib/active_support/encrypted_file.rb#117 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:117 def read_env_key; end - # source://activesupport//lib/active_support/encrypted_file.rb#121 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:121 def read_key_file; end - # source://activesupport//lib/active_support/encrypted_file.rb#89 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:89 def writing(contents); end class << self - # source://activesupport//lib/active_support/encrypted_file.rb#35 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:35 def expected_key_length; end - # source://activesupport//lib/active_support/encrypted_file.rb#31 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:31 def generate_key; end end end -# source://activesupport//lib/active_support/encrypted_file.rb#29 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:29 ActiveSupport::EncryptedFile::CIPHER = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/encrypted_file.rb#23 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:23 class ActiveSupport::EncryptedFile::InvalidKeyLengthError < ::RuntimeError - # @return [InvalidKeyLengthError] a new instance of InvalidKeyLengthError - # - # source://activesupport//lib/active_support/encrypted_file.rb#24 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:24 def initialize; end end -# source://activesupport//lib/active_support/encrypted_file.rb#9 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:9 class ActiveSupport::EncryptedFile::MissingContentError < ::RuntimeError - # @return [MissingContentError] a new instance of MissingContentError - # - # source://activesupport//lib/active_support/encrypted_file.rb#10 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:10 def initialize(content_path); end end -# source://activesupport//lib/active_support/encrypted_file.rb#15 +# pkg:gem/activesupport#lib/active_support/encrypted_file.rb:15 class ActiveSupport::EncryptedFile::MissingKeyError < ::RuntimeError - # @return [MissingKeyError] a new instance of MissingKeyError - # - # source://activesupport//lib/active_support/encrypted_file.rb#16 + # pkg:gem/activesupport#lib/active_support/encrypted_file.rb:16 def initialize(key_path:, env_key:); end end -# source://activesupport//lib/active_support/core_ext/enumerable.rb#4 +# pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:4 module ActiveSupport::EnumerableCoreExt; end -# source://activesupport//lib/active_support/core_ext/enumerable.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:5 module ActiveSupport::EnumerableCoreExt::Constants private - # source://activesupport//lib/active_support/core_ext/enumerable.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:7 def const_missing(name); end end -# HACK: For performance reasons, Enumerable shouldn't have any constants of its own. -# So we move SoleItemExpectedError into ActiveSupport::EnumerableCoreExt. -# -# source://activesupport//lib/active_support/core_ext/enumerable.rb#25 +# pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:25 ActiveSupport::EnumerableCoreExt::SoleItemExpectedError = Enumerable::SoleItemExpectedError -# source://activesupport//lib/active_support/environment_inquirer.rb#7 +# pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:9 class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer - # @raise [ArgumentError] - # @return [EnvironmentInquirer] a new instance of EnvironmentInquirer - # - # source://activesupport//lib/active_support/environment_inquirer.rb#15 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:15 def initialize(env); end - # source://activesupport//lib/active_support/environment_inquirer.rb#29 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:28 def development?; end # Returns true if we're in the development or test environment. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/environment_inquirer.rb#36 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:36 def local?; end - # source://activesupport//lib/active_support/environment_inquirer.rb#29 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:28 def production?; end - # source://activesupport//lib/active_support/environment_inquirer.rb#29 + # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:28 def test?; end end # Optimization for the three default environments, so this inquirer doesn't need to rely on # the slower delegation through method_missing that StringInquirer would normally entail. # -# source://activesupport//lib/active_support/environment_inquirer.rb#10 +# pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:10 ActiveSupport::EnvironmentInquirer::DEFAULT_ENVIRONMENTS = T.let(T.unsafe(nil), Array) # Environments that'll respond true for #local? # -# source://activesupport//lib/active_support/environment_inquirer.rb#13 +# pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:13 ActiveSupport::EnvironmentInquirer::LOCAL_ENVIRONMENTS = T.let(T.unsafe(nil), Array) # = Active Support \Error Reporter @@ -5897,23 +5548,15 @@ ActiveSupport::EnvironmentInquirer::LOCAL_ENVIRONMENTS = T.let(T.unsafe(nil), Ar # # maybe_tags = Rails.error.handle(Redis::BaseError) { redis.get("tags") } # -# source://activesupport//lib/active_support/error_reporter.rb#26 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:26 class ActiveSupport::ErrorReporter - # @return [ErrorReporter] a new instance of ErrorReporter - # - # source://activesupport//lib/active_support/error_reporter.rb#35 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:35 def initialize(*subscribers, logger: T.unsafe(nil)); end - # Returns the value of attribute debug_mode. - # - # source://activesupport//lib/active_support/error_reporter.rb#31 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:31 def debug_mode; end - # Sets the attribute debug_mode - # - # @param value the value to set the attribute debug_mode to. - # - # source://activesupport//lib/active_support/error_reporter.rb#31 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:31 def debug_mode=(_arg0); end # Prevent a subscriber from being notified of errors for the @@ -5922,7 +5565,7 @@ class ActiveSupport::ErrorReporter # This can be helpful for error reporting service integrations, when they wish # to handle any errors higher in the stack. # - # source://activesupport//lib/active_support/error_reporter.rb#185 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:185 def disable(subscriber); end # Evaluates the given block, reporting and swallowing any unhandled error. @@ -5963,19 +5606,13 @@ class ActiveSupport::ErrorReporter # source of the error. Subscribers can use this value to ignore certain # errors. Defaults to "application". # - # source://activesupport//lib/active_support/error_reporter.rb#78 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:78 def handle(*error_classes, severity: T.unsafe(nil), context: T.unsafe(nil), fallback: T.unsafe(nil), source: T.unsafe(nil)); end - # Returns the value of attribute logger. - # - # source://activesupport//lib/active_support/error_reporter.rb#31 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:31 def logger; end - # Sets the attribute logger - # - # @param value the value to set the attribute logger to. - # - # source://activesupport//lib/active_support/error_reporter.rb#31 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:31 def logger=(_arg0); end # Evaluates the given block, reporting and re-raising any unhandled error. @@ -6007,7 +5644,7 @@ class ActiveSupport::ErrorReporter # source of the error. Subscribers can use this value to ignore certain # errors. Defaults to "application". # - # source://activesupport//lib/active_support/error_reporter.rb#114 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:114 def record(*error_classes, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end # Report an error directly to subscribers. You can use this method when the @@ -6022,7 +5659,7 @@ class ActiveSupport::ErrorReporter # Otherwise you can use #unexpected to report an error which does accept a # string argument. # - # source://activesupport//lib/active_support/error_reporter.rb#216 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:216 def report(error, handled: T.unsafe(nil), severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end # Update the execution context that is accessible to error subscribers. Any @@ -6031,8 +5668,8 @@ class ActiveSupport::ErrorReporter # # Rails.error.set_context(section: "checkout", user_id: @user.id) # - # source://activesupport//lib/active_support/error_reporter.rb#201 - def set_context(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:201 + def set_context(*, **, &); end # Register a new error subscriber. The subscriber must respond to # @@ -6040,7 +5677,7 @@ class ActiveSupport::ErrorReporter # # The +report+ method should never raise an error. # - # source://activesupport//lib/active_support/error_reporter.rb#161 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:161 def subscribe(subscriber); end # Either report the given error when in production, or raise it when in development or test. @@ -6066,7 +5703,7 @@ class ActiveSupport::ErrorReporter # # ... # end # - # source://activesupport//lib/active_support/error_reporter.rb#145 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:145 def unexpected(error, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end # Unregister an error subscriber. Accepts either a subscriber or a class. @@ -6078,25 +5715,25 @@ class ActiveSupport::ErrorReporter # # or # Rails.error.unsubscribe(MyErrorSubscriber) # - # source://activesupport//lib/active_support/error_reporter.rb#176 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:176 def unsubscribe(subscriber); end private - # source://activesupport//lib/active_support/error_reporter.rb#252 + # pkg:gem/activesupport#lib/active_support/error_reporter.rb:252 def ensure_backtrace(error); end end -# source://activesupport//lib/active_support/error_reporter.rb#29 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:29 ActiveSupport::ErrorReporter::DEFAULT_RESCUE = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/error_reporter.rb#28 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:28 ActiveSupport::ErrorReporter::DEFAULT_SOURCE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/error_reporter.rb#27 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:27 ActiveSupport::ErrorReporter::SEVERITIES = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/error_reporter.rb#33 +# pkg:gem/activesupport#lib/active_support/error_reporter.rb:33 class ActiveSupport::ErrorReporter::UnexpectedError < ::Exception; end # Allows you to "listen" to changes in a file system. @@ -6124,133 +5761,119 @@ class ActiveSupport::ErrorReporter::UnexpectedError < ::Exception; end # checker.execute_if_updated # # => "changed" # -# source://activesupport//lib/active_support/evented_file_update_checker.rb#35 +# pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:35 class ActiveSupport::EventedFileUpdateChecker - # @return [EventedFileUpdateChecker] a new instance of EventedFileUpdateChecker - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#36 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:36 def initialize(files, dirs = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#59 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:59 def execute; end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#64 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:64 def execute_if_updated; end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#46 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:46 def inspect; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#50 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:50 def updated?; end end -# source://activesupport//lib/active_support/evented_file_update_checker.rb#72 +# pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:72 class ActiveSupport::EventedFileUpdateChecker::Core - # @return [Core] a new instance of Core - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#75 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:75 def initialize(files, dirs); end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#142 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:142 def changed(modified, added, removed); end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#176 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:176 def common_path(paths); end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#170 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:170 def directories_to_watch; end - # Returns the value of attribute files. - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#73 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:73 def files; end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#98 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:98 def finalizer; end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#136 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:136 def normalize_dirs!; end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#127 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:127 def restart; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#132 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:132 def restart?; end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#111 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:111 def start; end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#123 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:123 def stop; end - # source://activesupport//lib/active_support/evented_file_update_checker.rb#105 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:105 def thread_safely; end - # Returns the value of attribute updated. - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#73 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:73 def updated; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#148 + # pkg:gem/activesupport#lib/active_support/evented_file_update_checker.rb:148 def watching?(file); end end -# source://activesupport//lib/active_support/execution_context.rb#4 +# pkg:gem/activesupport#lib/active_support/execution_context.rb:4 module ActiveSupport::ExecutionContext class << self - # source://activesupport//lib/active_support/execution_context.rb#34 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:34 def []=(key, value); end - # source://activesupport//lib/active_support/execution_context.rb#7 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:7 def after_change(&block); end - # source://activesupport//lib/active_support/execution_context.rb#43 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:43 def clear; end # Updates the execution context. If a block is given, it resets the provided keys to their # previous value once the block exits. # - # source://activesupport//lib/active_support/execution_context.rb#13 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:13 def set(**options); end - # source://activesupport//lib/active_support/execution_context.rb#39 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:39 def to_h; end private - # source://activesupport//lib/active_support/execution_context.rb#48 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:48 def store; end end end -# source://activesupport//lib/active_support/execution_wrapper.rb#7 +# pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:7 class ActiveSupport::ExecutionWrapper include ::ActiveSupport::Callbacks extend ::ActiveSupport::Callbacks::ClassMethods extend ::ActiveSupport::DescendantsTracker - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _complete_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#912 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _run_complete_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#912 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_run_callbacks(&block); end - # source://activesupport//lib/active_support/execution_wrapper.rb#141 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:141 def complete; end # Complete this in-flight execution. This method *must* be called @@ -6258,51 +5881,49 @@ class ActiveSupport::ExecutionWrapper # # Where possible, prefer +wrap+. # - # source://activesupport//lib/active_support/execution_wrapper.rb#135 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:135 def complete!; end - # source://activesupport//lib/active_support/execution_wrapper.rb#127 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:127 def run; end - # source://activesupport//lib/active_support/execution_wrapper.rb#122 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:122 def run!; end private - # source://activesupport//lib/active_support/execution_wrapper.rb#146 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:146 def hook_state; end class << self - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _complete_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:15 def _complete_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:14 def _run_callbacks=(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/execution_wrapper.rb#118 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:118 def active?; end - # source://activesupport//lib/active_support/execution_wrapper.rb#114 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:114 def active_key; end - # source://activesupport//lib/active_support/execution_wrapper.rb#110 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:110 def error_reporter; end - # source://activesupport//lib/active_support/execution_wrapper.rb#100 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:100 def perform; end # Register an object to be invoked during both the +run+ and @@ -6314,7 +5935,7 @@ class ActiveSupport::ExecutionWrapper # a preceding +to_run+ block; all ordinary +to_complete+ blocks are # invoked in that situation.) # - # source://activesupport//lib/active_support/execution_wrapper.rb#50 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:50 def register_hook(hook, outer: T.unsafe(nil)); end # Run this execution. @@ -6324,87 +5945,95 @@ class ActiveSupport::ExecutionWrapper # # Where possible, prefer +wrap+. # - # source://activesupport//lib/active_support/execution_wrapper.rb#66 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:66 def run!(reset: T.unsafe(nil)); end - # source://activesupport//lib/active_support/execution_wrapper.rb#21 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:21 def to_complete(*args, &block); end - # source://activesupport//lib/active_support/execution_wrapper.rb#17 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:17 def to_run(*args, &block); end # Perform the work in the supplied block as an execution. # - # source://activesupport//lib/active_support/execution_wrapper.rb#86 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:86 def wrap(source: T.unsafe(nil)); end private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:8 def __class_attr___callbacks=(new_value); end end end -# source://activesupport//lib/active_support/execution_wrapper.rb#32 +# pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct - # source://activesupport//lib/active_support/execution_wrapper.rb#33 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:39 def after(target); end - # source://activesupport//lib/active_support/execution_wrapper.rb#33 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:33 def before(target); end - # Returns the value of attribute hook - # - # @return [Object] the current value of hook + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def hook; end - # Sets the attribute hook - # - # @param value [Object] the value to set the attribute hook to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def hook=(_); end class << self + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def [](*_arg0); end + + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def inspect; end + + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def keyword_init?; end + + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def members; end + + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:32 def new(*_arg0); end end end -# source://activesupport//lib/active_support/execution_wrapper.rb#10 +# pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:10 ActiveSupport::ExecutionWrapper::Null = T.let(T.unsafe(nil), Object) -# source://activesupport//lib/active_support/execution_wrapper.rb#25 +# pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 class ActiveSupport::ExecutionWrapper::RunHook < ::Struct - # source://activesupport//lib/active_support/execution_wrapper.rb#26 + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:26 def before(target); end - # Returns the value of attribute hook - # - # @return [Object] the current value of hook + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def hook; end - # Sets the attribute hook - # - # @param value [Object] the value to set the attribute hook to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def hook=(_); end class << self + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def [](*_arg0); end + + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def inspect; end + + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def keyword_init?; end + + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def members; end + + # pkg:gem/activesupport#lib/active_support/execution_wrapper.rb:25 def new(*_arg0); end end end -# source://activesupport//lib/active_support/executor.rb#6 +# pkg:gem/activesupport#lib/active_support/executor.rb:6 class ActiveSupport::Executor < ::ActiveSupport::ExecutionWrapper; end # = \File Update Checker @@ -6437,7 +6066,7 @@ class ActiveSupport::Executor < ::ActiveSupport::ExecutionWrapper; end # i18n_reloader.execute_if_updated # end # -# source://activesupport//lib/active_support/file_update_checker.rb#35 +# pkg:gem/activesupport#lib/active_support/file_update_checker.rb:35 class ActiveSupport::FileUpdateChecker # It accepts two parameters on initialization. The first is an array # of files and the second is an optional hash of directories. The hash must @@ -6448,40 +6077,36 @@ class ActiveSupport::FileUpdateChecker # changes. The array of files and list of directories cannot be changed # after FileUpdateChecker has been initialized. # - # @return [FileUpdateChecker] a new instance of FileUpdateChecker - # - # source://activesupport//lib/active_support/file_update_checker.rb#44 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:44 def initialize(files, dirs = T.unsafe(nil), &block); end # Executes the given block and updates the latest watched files and # timestamp. # - # source://activesupport//lib/active_support/file_update_checker.rb#82 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:82 def execute; end # Execute the block given if updated. # - # source://activesupport//lib/active_support/file_update_checker.rb#92 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:92 def execute_if_updated; end # Check if any of the entries were updated. If so, the watched and/or # updated_at values are cached until the block is executed via +execute+ # or +execute_if_updated+. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/file_update_checker.rb#63 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:63 def updated?; end private - # source://activesupport//lib/active_support/file_update_checker.rb#158 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:158 def compile_ext(array); end - # source://activesupport//lib/active_support/file_update_checker.rb#144 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:144 def compile_glob(hash); end - # source://activesupport//lib/active_support/file_update_checker.rb#154 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:154 def escape(key); end # This method returns the maximum mtime of the files in +paths+, or +nil+ @@ -6492,36 +6117,36 @@ class ActiveSupport::FileUpdateChecker # healthy to consider this edge case because with mtimes in the future # reloading is not triggered. # - # source://activesupport//lib/active_support/file_update_checker.rb#122 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:122 def max_mtime(paths); end - # source://activesupport//lib/active_support/file_update_checker.rb#111 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:111 def updated_at(paths); end - # source://activesupport//lib/active_support/file_update_checker.rb#103 + # pkg:gem/activesupport#lib/active_support/file_update_checker.rb:103 def watched; end end -# source://activesupport//lib/active_support/fork_tracker.rb#4 +# pkg:gem/activesupport#lib/active_support/fork_tracker.rb:4 module ActiveSupport::ForkTracker class << self - # source://activesupport//lib/active_support/fork_tracker.rb#31 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:31 def after_fork(&block); end - # source://activesupport//lib/active_support/fork_tracker.rb#19 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:19 def after_fork_callback; end - # source://activesupport//lib/active_support/fork_tracker.rb#27 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:27 def hook!; end - # source://activesupport//lib/active_support/fork_tracker.rb#36 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:36 def unregister(callback); end end end -# source://activesupport//lib/active_support/fork_tracker.rb#5 +# pkg:gem/activesupport#lib/active_support/fork_tracker.rb:5 module ActiveSupport::ForkTracker::CoreExt - # source://activesupport//lib/active_support/fork_tracker.rb#6 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:6 def _fork; end end @@ -6536,29 +6161,27 @@ end # ActiveSupport::Gzip.decompress(gzip) # # => "compress me!" # -# source://activesupport//lib/active_support/gzip.rb#17 +# pkg:gem/activesupport#lib/active_support/gzip.rb:17 module ActiveSupport::Gzip class << self # Compresses a string using gzip. # - # source://activesupport//lib/active_support/gzip.rb#32 + # pkg:gem/activesupport#lib/active_support/gzip.rb:32 def compress(source, level = T.unsafe(nil), strategy = T.unsafe(nil)); end # Decompresses a gzipped string. # - # source://activesupport//lib/active_support/gzip.rb#27 + # pkg:gem/activesupport#lib/active_support/gzip.rb:27 def decompress(source); end end end -# source://activesupport//lib/active_support/gzip.rb#18 +# pkg:gem/activesupport#lib/active_support/gzip.rb:18 class ActiveSupport::Gzip::Stream < ::StringIO - # @return [Stream] a new instance of Stream - # - # source://activesupport//lib/active_support/gzip.rb#19 - def initialize(*_arg0); end + # pkg:gem/activesupport#lib/active_support/gzip.rb:19 + def initialize(*); end - # source://activesupport//lib/active_support/gzip.rb#23 + # pkg:gem/activesupport#lib/active_support/gzip.rb:23 def close; end end @@ -6609,11 +6232,9 @@ end # # which will, in turn, require this file. # -# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#55 +# pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:55 class ActiveSupport::HashWithIndifferentAccess < ::Hash - # @return [HashWithIndifferentAccess] a new instance of HashWithIndifferentAccess - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#70 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:70 def initialize(constructor = T.unsafe(nil)); end # Same as Hash#[] where the key passed as argument can be @@ -6626,7 +6247,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # counters[:foo] # => 1 # counters[:zoo] # => nil # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#168 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:168 def [](key); end # Assigns a new value to the hash: @@ -6636,7 +6257,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # # This value can be later fetched using either +:key+ or 'key'. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#98 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:98 def []=(key, value); end # Same as Hash#assoc where the key passed as argument can be @@ -6649,13 +6270,13 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # counters.assoc(:foo) # => ["foo", 1] # counters.assoc(:zoo) # => nil # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#181 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:181 def assoc(key); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#374 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:374 def compact; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#318 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:318 def deep_symbolize_keys; end # Same as Hash#default where the key passed as argument can be @@ -6669,12 +6290,12 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash.default('foo') # => 'foo' # hash.default(:foo) # => 'foo' # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#223 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:223 def default(key = T.unsafe(nil)); end # Removes the specified key from the hash. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#301 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:301 def delete(key); end # Same as Hash#dig where the key passed as argument can be @@ -6687,7 +6308,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # counters.dig(:foo, :bar) # => 1 # counters.dig(:zoo) # => nil # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#208 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:208 def dig(*args); end # Returns a shallow copy of the hash. @@ -6699,7 +6320,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash[:a][:c] # => "c" # dup[:a][:c] # => "c" # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#264 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:264 def dup; end # Returns a hash with indifferent access that includes everything except given keys. @@ -6707,15 +6328,13 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash.except(:a, "b") # => {c: 10}.with_indifferent_access # hash # => { a: "x", b: "y", c: 10 }.with_indifferent_access # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#309 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:309 def except(*keys); end # Returns +true+ so that Array#extract_options! finds members of # this class. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#58 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:58 def extractable_options?; end # Same as Hash#fetch where the key passed as argument can be @@ -6729,7 +6348,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # counters.fetch(:bar) { |key| 0 } # => 0 # counters.fetch(:zoo) # => KeyError: key not found: "zoo" # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#195 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:195 def fetch(key, *extras); end # Returns an array of the values at the specified indices, but also @@ -6742,31 +6361,13 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash.fetch_values('a', 'c') { |key| 'z' } # => ["x", "z"] # hash.fetch_values('a', 'c') # => KeyError: key not found: "c" # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#251 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:251 def fetch_values(*indices, &block); end - # Checks the hash for a key matching the argument passed in: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash['key'] = 'value' - # hash.key?(:key) # => true - # hash.key?('key') # => true - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:156 def has_key?(key); end - # Checks the hash for a key matching the argument passed in: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash['key'] = 'value' - # hash.key?(:key) # => true - # hash.key?('key') # => true - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:155 def include?(key); end # Checks the hash for a key matching the argument passed in: @@ -6776,69 +6377,32 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash.key?(:key) # => true # hash.key?('key') # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:151 def key?(key); end - # Checks the hash for a key matching the argument passed in: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash['key'] = 'value' - # hash.key?(:key) # => true - # hash.key?('key') # => true - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#151 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:157 def member?(key); end # This method has the same semantics of +update+, except it does not # modify the receiver but rather returns a new hash with indifferent # access with the result of the merge. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#271 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:271 def merge(*hashes, &block); end - # Updates the receiver in-place, merging in the hashes passed as arguments: - # - # hash_1 = ActiveSupport::HashWithIndifferentAccess.new - # hash_1[:key] = 'value' - # - # hash_2 = ActiveSupport::HashWithIndifferentAccess.new - # hash_2[:key] = 'New Value!' - # - # hash_1.update(hash_2) # => {"key"=>"New Value!"} - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash.update({ "a" => 1 }, { "b" => 2 }) # => { "a" => 1, "b" => 2 } - # - # The arguments can be either an - # +ActiveSupport::HashWithIndifferentAccess+ or a regular +Hash+. - # In either case the merge respects the semantics of indifferent access. - # - # If the argument is a regular hash with keys +:key+ and "key" only one - # of the values end up in the receiver, but which one is unspecified. - # - # When given a block, the value for duplicated keys will be determined - # by the result of invoking the block with the duplicated key, the value - # in the receiver, and the value in +other_hash+. The rules for duplicated - # keys follow the semantics of indifferent access: - # - # hash_1[:key] = 10 - # hash_2['key'] = 12 - # hash_1.update(hash_2) { |key, old, new| old + new } # => {"key"=>22} - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#132 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:143 def merge!(*other_hashes, &block); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#66 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:66 def nested_under_indifferent_access; end + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:90 def regular_update(*_arg0); end + + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:89 def regular_writer(_arg0, _arg1); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#326 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:326 def reject(*args, &block); end # Replaces the contents of this hash with other_hash. @@ -6846,7 +6410,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # h = { "a" => 100, "b" => 200 } # h.replace({ "c" => 300, "d" => 400 }) # => {"c"=>300, "d"=>400} # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#296 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:296 def replace(other_hash); end # Like +merge+ but the other way around: Merges the receiver into the @@ -6856,57 +6420,50 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash['a'] = nil # hash.reverse_merge(a: 0, b: 1) # => {"a"=>nil, "b"=>1} # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#281 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:281 def reverse_merge(other_hash); end # Same semantics as +reverse_merge+ but modifies the receiver in-place. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#287 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:287 def reverse_merge!(other_hash); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#321 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:321 def select(*args, &block); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#364 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:364 def slice(*keys); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#369 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:369 def slice!(*keys); end - # Assigns a new value to the hash: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash[:key] = 'value' - # - # This value can be later fetched using either +:key+ or 'key'. - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#98 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:102 def store(key, value); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#316 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:316 def symbolize_keys; end # Convert to a regular hash with string keys. # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#379 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:379 def to_hash; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#316 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:317 def to_options; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#319 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:319 def to_options!; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#385 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:385 def to_proc; end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#338 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:338 def transform_keys(hash = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#350 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:350 def transform_keys!(hash = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#331 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:331 def transform_values(&block); end # Updates the receiver in-place, merging in the hashes passed as arguments: @@ -6938,7 +6495,7 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash_2['key'] = 12 # hash_1.update(hash_2) { |key, old, new| old + new } # => {"key"=>22} # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#132 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:132 def update(*other_hashes, &block); end # Returns an array of the values at the specified indices: @@ -6948,84 +6505,66 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash # hash[:b] = 'y' # hash.values_at('a', 'b') # => ["x", "y"] # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#237 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:237 def values_at(*keys); end - # Like +merge+ but the other way around: Merges the receiver into the - # argument and returns a new hash with indifferent access as result: - # - # hash = ActiveSupport::HashWithIndifferentAccess.new - # hash['a'] = nil - # hash.reverse_merge(a: 0, b: 1) # => {"a"=>nil, "b"=>1} - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#281 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:284 def with_defaults(other_hash); end - # Same semantics as +reverse_merge+ but modifies the receiver in-place. - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#287 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:290 def with_defaults!(other_hash); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#62 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:62 def with_indifferent_access; end - # Returns a hash with indifferent access that includes everything except given keys. - # hash = { a: "x", b: "y", c: 10 }.with_indifferent_access - # hash.except(:a, "b") # => {c: 10}.with_indifferent_access - # hash # => { a: "x", b: "y", c: 10 }.with_indifferent_access - # - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#309 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:312 def without(*keys); end private - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#390 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:390 def convert_key(key); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#394 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:394 def convert_value(value, conversion: T.unsafe(nil)); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#407 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:407 def convert_value_to_hash(value); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#418 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:418 def copy_defaults(target); end - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#427 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:427 def update_with_single_argument(other_hash, block); end class << self - # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#85 + # pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:85 def [](*args); end end end -# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#336 +# pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:336 ActiveSupport::HashWithIndifferentAccess::NOT_GIVEN = T.let(T.unsafe(nil), Object) -# source://activesupport//lib/active_support/html_safe_translation.rb#4 +# pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:4 module ActiveSupport::HtmlSafeTranslation extend ::ActiveSupport::HtmlSafeTranslation - # @return [Boolean] - # - # source://activesupport//lib/active_support/html_safe_translation.rb#30 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:30 def html_safe_translation_key?(key); end - # source://activesupport//lib/active_support/html_safe_translation.rb#7 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:7 def translate(key, **options); end private - # source://activesupport//lib/active_support/html_safe_translation.rb#35 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:35 def html_escape_translation_options(options); end - # source://activesupport//lib/active_support/html_safe_translation.rb#48 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:48 def html_safe_translation(translation); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/html_safe_translation.rb#43 + # pkg:gem/activesupport#lib/active_support/html_safe_translation.rb:43 def i18n_option?(name); end end @@ -7042,7 +6581,7 @@ end # require it for your application or wish to define rules for languages other # than English, please correct or add them yourself (explained below). # -# source://activesupport//lib/active_support/inflector/inflections.rb#7 +# pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:7 module ActiveSupport::Inflector extend ::ActiveSupport::Inflector @@ -7063,7 +6602,7 @@ module ActiveSupport::Inflector # # camelize(underscore('SSLError')) # => "SslError" # - # source://activesupport//lib/active_support/inflector/methods.rb#70 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:70 def camelize(term, uppercase_first_letter = T.unsafe(nil)); end # Creates a class name from a plural table name like \Rails does for table @@ -7077,7 +6616,7 @@ module ActiveSupport::Inflector # # classify('calculus') # => "Calculu" # - # source://activesupport//lib/active_support/inflector/methods.rb#218 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:218 def classify(table_name); end # Tries to find a constant with the name specified in the argument string. @@ -7099,14 +6638,14 @@ module ActiveSupport::Inflector # NameError is raised when the name is not in CamelCase or the constant is # unknown. # - # source://activesupport//lib/active_support/inflector/methods.rb#289 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:289 def constantize(camel_cased_word); end # Replaces underscores with dashes in the string. # # dasherize('puni_puni') # => "puni-puni" # - # source://activesupport//lib/active_support/inflector/methods.rb#226 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:226 def dasherize(underscored_word); end # Removes the rightmost segment from the constant expression in the string. @@ -7119,7 +6658,7 @@ module ActiveSupport::Inflector # # See also #demodulize. # - # source://activesupport//lib/active_support/inflector/methods.rb#256 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:256 def deconstantize(path); end # Removes the module part from the expression in the string. @@ -7131,7 +6670,7 @@ module ActiveSupport::Inflector # # See also #deconstantize. # - # source://activesupport//lib/active_support/inflector/methods.rb#238 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:238 def demodulize(path); end # Converts the first character in the string to lowercase. @@ -7140,7 +6679,7 @@ module ActiveSupport::Inflector # downcase_first('I') # => "i" # downcase_first('') # => "" # - # source://activesupport//lib/active_support/inflector/methods.rb#175 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:175 def downcase_first(string); end # Creates a foreign key name from a class name. @@ -7151,7 +6690,7 @@ module ActiveSupport::Inflector # foreign_key('Message', false) # => "messageid" # foreign_key('Admin::Post') # => "post_id" # - # source://activesupport//lib/active_support/inflector/methods.rb#267 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:267 def foreign_key(class_name, separate_class_name_and_id_with_underscore = T.unsafe(nil)); end # Tweaks an attribute name for display to end users. @@ -7180,7 +6719,7 @@ module ActiveSupport::Inflector # # humanize('ssl_error') # => "SSL error" # - # source://activesupport//lib/active_support/inflector/methods.rb#135 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:135 def humanize(lower_case_and_underscored_word, capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end # Yields a singleton instance of Inflector::Inflections so you can specify @@ -7192,7 +6731,7 @@ module ActiveSupport::Inflector # inflect.uncountable 'rails' # end # - # source://activesupport//lib/active_support/inflector/inflections.rb#266 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:266 def inflections(locale = T.unsafe(nil)); end # Returns the suffix that should be added to a number to denote the position @@ -7205,7 +6744,7 @@ module ActiveSupport::Inflector # ordinal(-11) # => "th" # ordinal(-1021) # => "st" # - # source://activesupport//lib/active_support/inflector/methods.rb#334 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:335 def ordinal(number); end # Turns a number into an ordinal string used to denote the position in an @@ -7218,7 +6757,7 @@ module ActiveSupport::Inflector # ordinalize(-11) # => "-11th" # ordinalize(-1021) # => "-1021st" # - # source://activesupport//lib/active_support/inflector/methods.rb#347 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:348 def ordinalize(number); end # Replaces special characters in a string so that it may be used as part of @@ -7248,7 +6787,7 @@ module ActiveSupport::Inflector # By default, this parameter is set to nil and it will use # the configured I18n.locale. # - # source://activesupport//lib/active_support/inflector/transliterate.rb#123 + # pkg:gem/activesupport#lib/active_support/inflector/transliterate.rb:123 def parameterize(string, separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end # Returns the plural form of the word in the string. @@ -7264,7 +6803,7 @@ module ActiveSupport::Inflector # pluralize('CamelOctopus') # => "CamelOctopi" # pluralize('ley', :es) # => "leyes" # - # source://activesupport//lib/active_support/inflector/methods.rb#33 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:33 def pluralize(word, locale = T.unsafe(nil)); end # Tries to find a constant with the name specified in the argument string. @@ -7290,7 +6829,7 @@ module ActiveSupport::Inflector # safe_constantize('UnknownModule') # => nil # safe_constantize('UnknownModule::Foo::Bar') # => nil # - # source://activesupport//lib/active_support/inflector/methods.rb#315 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:315 def safe_constantize(camel_cased_word); end # The reverse of #pluralize, returns the singular form of a word in a @@ -7307,7 +6846,7 @@ module ActiveSupport::Inflector # singularize('CamelOctopi') # => "CamelOctopus" # singularize('leyes', :es) # => "ley" # - # source://activesupport//lib/active_support/inflector/methods.rb#50 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:50 def singularize(word, locale = T.unsafe(nil)); end # Creates the name of a table like \Rails does for models to table names. @@ -7317,7 +6856,7 @@ module ActiveSupport::Inflector # tableize('ham_and_egg') # => "ham_and_eggs" # tableize('fancyCategory') # => "fancy_categories" # - # source://activesupport//lib/active_support/inflector/methods.rb#204 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:204 def tableize(class_name); end # Capitalizes all the words and replaces some characters in the string to @@ -7334,7 +6873,7 @@ module ActiveSupport::Inflector # titleize('raiders_of_the_lost_ark') # => "Raiders Of The Lost Ark" # titleize('string_ending_with_id', keep_id_suffix: true) # => "String Ending With Id" # - # source://activesupport//lib/active_support/inflector/methods.rb#192 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:192 def titleize(word, keep_id_suffix: T.unsafe(nil)); end # Replaces non-ASCII characters with an ASCII approximation, or if none @@ -7392,9 +6931,7 @@ module ActiveSupport::Inflector # Transliteration is restricted to UTF-8, US-ASCII, and GB18030 strings. # Other encodings will raise an ArgumentError. # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/inflector/transliterate.rb#64 + # pkg:gem/activesupport#lib/active_support/inflector/transliterate.rb:64 def transliterate(string, replacement = T.unsafe(nil), locale: T.unsafe(nil)); end # Makes an underscored, lowercase form from the expression in the string. @@ -7409,7 +6946,7 @@ module ActiveSupport::Inflector # # camelize(underscore('SSLError')) # => "SslError" # - # source://activesupport//lib/active_support/inflector/methods.rb#99 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:99 def underscore(camel_cased_word); end # Converts the first character in the string to uppercase. @@ -7418,7 +6955,7 @@ module ActiveSupport::Inflector # upcase_first('w') # => "W" # upcase_first('') # => "" # - # source://activesupport//lib/active_support/inflector/methods.rb#166 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:166 def upcase_first(string); end private @@ -7431,20 +6968,11 @@ module ActiveSupport::Inflector # apply_inflections('post', inflections.plurals, :en) # => "posts" # apply_inflections('posts', inflections.singulars, :en) # => "post" # - # source://activesupport//lib/active_support/inflector/methods.rb#376 + # pkg:gem/activesupport#lib/active_support/inflector/methods.rb:360 def apply_inflections(word, rules, locale = T.unsafe(nil)); end - - # Mounts a regular expression, returned as a string to ease interpolation, - # that will match part by part the given constant. - # - # const_regexp("Foo::Bar::Baz") # => "Foo(::Bar(::Baz)?)?" - # const_regexp("::") # => "::" - # - # source://activesupport//lib/active_support/inflector/methods.rb#357 - def const_regexp(camel_cased_word); end end -# source://activesupport//lib/active_support/inflector/transliterate.rb#8 +# pkg:gem/activesupport#lib/active_support/inflector/transliterate.rb:8 ActiveSupport::Inflector::ALLOWED_ENCODINGS_FOR_TRANSLITERATE = T.let(T.unsafe(nil), Array) # = Active Support \Inflections @@ -7468,11 +6996,9 @@ ActiveSupport::Inflector::ALLOWED_ENCODINGS_FOR_TRANSLITERATE = T.let(T.unsafe(n # singularization rules that is runs. This guarantees that your rules run # before any of the rules that may already have been loaded. # -# source://activesupport//lib/active_support/inflector/inflections.rb#30 +# pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:30 class ActiveSupport::Inflector::Inflections - # @return [Inflections] a new instance of Inflections - # - # source://activesupport//lib/active_support/inflector/inflections.rb#80 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:80 def initialize; end # Specifies a new acronym. An acronym must be specified as it will appear @@ -7525,18 +7051,16 @@ class ActiveSupport::Inflector::Inflections # underscore 'McDonald' # => 'mcdonald' # camelize 'mcdonald' # => 'McDonald' # - # source://activesupport//lib/active_support/inflector/inflections.rb#142 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:142 def acronym(word); end - # Returns the value of attribute acronyms. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#76 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:76 def acronyms; end - # source://activesupport//lib/active_support/inflector/inflections.rb#78 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:78 def acronyms_camelize_regex; end - # source://activesupport//lib/active_support/inflector/inflections.rb#78 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:78 def acronyms_underscore_regex; end # Clears the loaded inflections within a given scope (default is @@ -7547,7 +7071,7 @@ class ActiveSupport::Inflector::Inflections # clear :all # clear :plurals # - # source://activesupport//lib/active_support/inflector/inflections.rb#231 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:231 def clear(scope = T.unsafe(nil)); end # Specifies a humanized form of a string by a regular expression rule or @@ -7559,12 +7083,10 @@ class ActiveSupport::Inflector::Inflections # human /_cnt$/i, '\1_count' # human 'legacy_col_person_name', 'Name' # - # source://activesupport//lib/active_support/inflector/inflections.rb#220 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:220 def human(rule, replacement); end - # Returns the value of attribute humans. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#76 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:76 def humans; end # Specifies a new irregular that applies to both pluralization and @@ -7575,7 +7097,7 @@ class ActiveSupport::Inflector::Inflections # irregular 'cactus', 'cacti' # irregular 'person', 'people' # - # source://activesupport//lib/active_support/inflector/inflections.rb#174 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:174 def irregular(singular, plural); end # Specifies a new pluralization rule and its replacement. The rule can @@ -7583,12 +7105,10 @@ class ActiveSupport::Inflector::Inflections # always be a string that may include references to the matched data from # the rule. # - # source://activesupport//lib/active_support/inflector/inflections.rb#151 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:151 def plural(rule, replacement); end - # Returns the value of attribute plurals. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#76 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:76 def plurals; end # Specifies a new singularization rule and its replacement. The rule can @@ -7596,12 +7116,10 @@ class ActiveSupport::Inflector::Inflections # always be a string that may include references to the matched data from # the rule. # - # source://activesupport//lib/active_support/inflector/inflections.rb#161 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:161 def singular(rule, replacement); end - # Returns the value of attribute singulars. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#76 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:76 def singulars; end # Specifies words that are uncountable and should not be inflected. @@ -7610,57 +7128,51 @@ class ActiveSupport::Inflector::Inflections # uncountable 'money', 'information' # uncountable %w( money information rice ) # - # source://activesupport//lib/active_support/inflector/inflections.rb#208 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:208 def uncountable(*words); end - # Returns the value of attribute uncountables. - # - # source://activesupport//lib/active_support/inflector/inflections.rb#76 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:76 def uncountables; end private - # source://activesupport//lib/active_support/inflector/inflections.rb#250 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:250 def define_acronym_regex_patterns; end # Private, for the test suite. # - # source://activesupport//lib/active_support/inflector/inflections.rb#86 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:86 def initialize_dup(orig); end class << self - # source://activesupport//lib/active_support/inflector/inflections.rb#65 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:65 def instance(locale = T.unsafe(nil)); end - # source://activesupport//lib/active_support/inflector/inflections.rb#69 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:69 def instance_or_fallback(locale); end end end -# source://activesupport//lib/active_support/inflector/inflections.rb#33 +# pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:33 class ActiveSupport::Inflector::Inflections::Uncountables < ::Array - # @return [Uncountables] a new instance of Uncountables - # - # source://activesupport//lib/active_support/inflector/inflections.rb#34 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:34 def initialize; end - # source://activesupport//lib/active_support/inflector/inflections.rb#44 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:44 def <<(*word); end - # source://activesupport//lib/active_support/inflector/inflections.rb#48 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:48 def add(words); end - # source://activesupport//lib/active_support/inflector/inflections.rb#39 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:39 def delete(entry); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/inflector/inflections.rb#55 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:55 def uncountable?(str); end private - # source://activesupport//lib/active_support/inflector/inflections.rb#60 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:60 def to_regex(string); end end @@ -7681,102 +7193,91 @@ end # h.girl # => 'Mary' # h.boy # => 'John' # -# source://activesupport//lib/active_support/ordered_options.rb#89 +# pkg:gem/activesupport#lib/active_support/ordered_options.rb:89 class ActiveSupport::InheritableOptions < ::ActiveSupport::OrderedOptions - # @return [InheritableOptions] a new instance of InheritableOptions - # - # source://activesupport//lib/active_support/ordered_options.rb#90 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:90 def initialize(parent = T.unsafe(nil)); end - # source://activesupport//lib/active_support/ordered_options.rb#107 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:107 def ==(other); end - # source://activesupport//lib/active_support/ordered_options.rb#142 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:142 def each(&block); end - # source://activesupport//lib/active_support/ordered_options.rb#134 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:134 def inheritable_copy; end - # source://activesupport//lib/active_support/ordered_options.rb#111 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:111 def inspect; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_options.rb#126 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:126 def key?(key); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_options.rb#130 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:130 def overridden?(key); end - # source://activesupport//lib/active_support/ordered_options.rb#119 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:119 def pretty_print(pp); end - # source://activesupport//lib/active_support/ordered_options.rb#138 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:138 def to_a; end - # source://activesupport//lib/active_support/ordered_options.rb#103 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:103 def to_h; end - # source://activesupport//lib/active_support/ordered_options.rb#115 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:115 def to_s; end private + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:123 def own_key?(_arg0); end end -# source://activesupport//lib/active_support/isolated_execution_state.rb#4 +# pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:4 module ActiveSupport::IsolatedExecutionState class << self - # source://activesupport//lib/active_support/isolated_execution_state.rb#35 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:35 def [](key); end - # source://activesupport//lib/active_support/isolated_execution_state.rb#39 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:39 def []=(key, value); end - # source://activesupport//lib/active_support/isolated_execution_state.rb#51 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:51 def clear; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#55 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:55 def context; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#47 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:47 def delete(key); end - # Returns the value of attribute isolation_level. - # - # source://activesupport//lib/active_support/isolated_execution_state.rb#11 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:11 def isolation_level; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#13 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:13 def isolation_level=(level); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/isolated_execution_state.rb#43 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:43 def key?(key); end - # Returns the value of attribute scope. - # - # source://activesupport//lib/active_support/isolated_execution_state.rb#11 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:11 def scope; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#59 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:59 def share_with(other, except: T.unsafe(nil)); end - # source://activesupport//lib/active_support/isolated_execution_state.rb#31 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:31 def unique_id; end private - # source://activesupport//lib/active_support/isolated_execution_state.rb#69 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:69 def state; end end end -# source://activesupport//lib/active_support/json/decoding.rb#11 +# pkg:gem/activesupport#lib/active_support/json/decoding.rb:11 module ActiveSupport::JSON class << self # Parses a JSON string (JavaScript Object Notation) into a Ruby object. @@ -7787,34 +7288,10 @@ module ActiveSupport::JSON # ActiveSupport::JSON.decode("2.39") # # => 2.39 # - # source://activesupport//lib/active_support/json/decoding.rb#24 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:24 def decode(json); end - # Dumps objects in JSON (JavaScript Object Notation). - # See http://www.json.org for more info. - # - # ActiveSupport::JSON.encode({ team: 'rails', players: '36' }) - # # => "{\"team\":\"rails\",\"players\":\"36\"}" - # - # Generates JSON that is safe to include in JavaScript as it escapes - # U+2028 (Line Separator) and U+2029 (Paragraph Separator): - # - # ActiveSupport::JSON.encode({ key: "\u2028" }) - # # => "{\"key\":\"\\u2028\"}" - # - # By default, it also generates JSON that is safe to include in HTML, as - # it escapes <, >, and &: - # - # ActiveSupport::JSON.encode({ key: "<>&" }) - # # => "{\"key\":\"\\u003c\\u003e\\u0026\"}" - # - # This can be changed with the +escape_html_entities+ option, or the - # global escape_html_entities_in_json configuration option. - # - # ActiveSupport::JSON.encode({ key: "<>&" }, escape_html_entities: false) - # # => "{\"key\":\"<>&\"}" - # - # source://activesupport//lib/active_support/json/encoding.rb#40 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:43 def dump(value, options = T.unsafe(nil)); end # Dumps objects in JSON (JavaScript Object Notation). @@ -7841,18 +7318,10 @@ module ActiveSupport::JSON # ActiveSupport::JSON.encode({ key: "<>&" }, escape_html_entities: false) # # => "{\"key\":\"<>&\"}" # - # source://activesupport//lib/active_support/json/encoding.rb#40 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:40 def encode(value, options = T.unsafe(nil)); end - # Parses a JSON string (JavaScript Object Notation) into a Ruby object. - # See http://www.json.org for more info. - # - # ActiveSupport::JSON.decode("{\"team\":\"rails\",\"players\":\"36\"}") - # # => {"team" => "rails", "players" => "36"} - # ActiveSupport::JSON.decode("2.39") - # # => 2.39 - # - # source://activesupport//lib/active_support/json/decoding.rb#24 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:33 def load(json); end # Returns the class of the error that will be raised when there is an @@ -7866,92 +7335,88 @@ module ActiveSupport::JSON # Rails.logger.warn("Attempted to decode invalid JSON: #{some_string}") # end # - # source://activesupport//lib/active_support/json/decoding.rb#45 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:45 def parse_error; end private - # source://activesupport//lib/active_support/json/decoding.rb#50 + # pkg:gem/activesupport#lib/active_support/json/decoding.rb:50 def convert_dates_from(data); end end end -# source://activesupport//lib/active_support/json/decoding.rb#14 +# pkg:gem/activesupport#lib/active_support/json/decoding.rb:14 ActiveSupport::JSON::DATETIME_REGEX = T.let(T.unsafe(nil), Regexp) # matches YAML-formatted dates # -# source://activesupport//lib/active_support/json/decoding.rb#13 +# pkg:gem/activesupport#lib/active_support/json/decoding.rb:13 ActiveSupport::JSON::DATE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/json/encoding.rb#46 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:46 module ActiveSupport::JSON::Encoding class << self # If true, encode >, <, & as escaped unicode sequences (e.g. > as \u003e) # as a safety measure. # - # source://activesupport//lib/active_support/json/encoding.rb#121 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:121 def escape_html_entities_in_json; end # If true, encode >, <, & as escaped unicode sequences (e.g. > as \u003e) # as a safety measure. # - # source://activesupport//lib/active_support/json/encoding.rb#121 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:121 def escape_html_entities_in_json=(_arg0); end # Sets the encoder used by \Rails to encode Ruby objects into JSON strings # in +Object#to_json+ and +ActiveSupport::JSON.encode+. # - # source://activesupport//lib/active_support/json/encoding.rb#129 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:129 def json_encoder; end # Sets the encoder used by \Rails to encode Ruby objects into JSON strings # in +Object#to_json+ and +ActiveSupport::JSON.encode+. # - # source://activesupport//lib/active_support/json/encoding.rb#129 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:129 def json_encoder=(_arg0); end # Sets the precision of encoded time values. # Defaults to 3 (equivalent to millisecond precision) # - # source://activesupport//lib/active_support/json/encoding.rb#125 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:125 def time_precision; end # Sets the precision of encoded time values. # Defaults to 3 (equivalent to millisecond precision) # - # source://activesupport//lib/active_support/json/encoding.rb#125 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:125 def time_precision=(_arg0); end # If true, use ISO 8601 format for dates and times. Otherwise, fall back # to the Active Support legacy format. # - # source://activesupport//lib/active_support/json/encoding.rb#117 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:117 def use_standard_json_time_format; end # If true, use ISO 8601 format for dates and times. Otherwise, fall back # to the Active Support legacy format. # - # source://activesupport//lib/active_support/json/encoding.rb#117 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:117 def use_standard_json_time_format=(_arg0); end end end -# source://activesupport//lib/active_support/json/encoding.rb#47 +# pkg:gem/activesupport#lib/active_support/json/encoding.rb:47 class ActiveSupport::JSON::Encoding::JSONGemEncoder - # @return [JSONGemEncoder] a new instance of JSONGemEncoder - # - # source://activesupport//lib/active_support/json/encoding.rb#50 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:50 def initialize(options = T.unsafe(nil)); end # Encode the given object into a JSON string # - # source://activesupport//lib/active_support/json/encoding.rb#55 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:55 def encode(value); end - # Returns the value of attribute options. - # - # source://activesupport//lib/active_support/json/encoding.rb#48 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:48 def options; end private @@ -7970,12 +7435,12 @@ class ActiveSupport::JSON::Encoding::JSONGemEncoder # to +object.as_json+, not any of this method's recursive +#as_json+ # calls. # - # source://activesupport//lib/active_support/json/encoding.rb#88 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:88 def jsonify(value); end # Encode a "jsonified" Ruby data structure using the JSON gem # - # source://activesupport//lib/active_support/json/encoding.rb#109 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:109 def stringify(jsonified); end end @@ -7986,28 +7451,26 @@ end # This lets \Rails applications have a single secure secret, but avoid reusing that # key in multiple incompatible contexts. # -# source://activesupport//lib/active_support/key_generator.rb#13 +# pkg:gem/activesupport#lib/active_support/key_generator.rb:13 class ActiveSupport::KeyGenerator - # @return [KeyGenerator] a new instance of KeyGenerator - # - # source://activesupport//lib/active_support/key_generator.rb#28 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:28 def initialize(secret, options = T.unsafe(nil)); end # Returns a derived key suitable for use. The default +key_size+ is chosen # to be compatible with the default settings of ActiveSupport::MessageVerifier. # i.e. OpenSSL::Digest::SHA1#block_length # - # source://activesupport//lib/active_support/key_generator.rb#41 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:41 def generate_key(salt, key_size = T.unsafe(nil)); end - # source://activesupport//lib/active_support/key_generator.rb#45 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:45 def inspect; end class << self - # source://activesupport//lib/active_support/key_generator.rb#23 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:23 def hash_digest_class; end - # source://activesupport//lib/active_support/key_generator.rb#15 + # pkg:gem/activesupport#lib/active_support/key_generator.rb:15 def hash_digest_class=(klass); end end end @@ -8052,7 +7515,7 @@ end # end # end # -# source://activesupport//lib/active_support/lazy_load_hooks.rb#43 +# pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:43 module ActiveSupport::LazyLoadHooks # Declares a block that will be executed when a \Rails component is fully # loaded. If the component has already loaded, the block is executed @@ -8063,7 +7526,7 @@ module ActiveSupport::LazyLoadHooks # * :yield - Yields the object that run_load_hooks to +block+. # * :run_once - Given +block+ will run only once. # - # source://activesupport//lib/active_support/lazy_load_hooks.rb#60 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:60 def on_load(name, options = T.unsafe(nil), &block); end # Executes all blocks registered to +name+ via on_load, using +base+ as the @@ -8074,19 +7537,19 @@ module ActiveSupport::LazyLoadHooks # In the case of the above example, it will execute all hooks registered # for +:active_record+ within the class +ActiveRecord::Base+. # - # source://activesupport//lib/active_support/lazy_load_hooks.rb#75 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:75 def run_load_hooks(name, base = T.unsafe(nil)); end private - # source://activesupport//lib/active_support/lazy_load_hooks.rb#91 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:91 def execute_hook(name, base, options, block); end - # source://activesupport//lib/active_support/lazy_load_hooks.rb#83 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:83 def with_execution_control(name, block, once); end class << self - # source://activesupport//lib/active_support/lazy_load_hooks.rb#44 + # pkg:gem/activesupport#lib/active_support/lazy_load_hooks.rb:44 def extended(base); end end end @@ -8146,52 +7609,48 @@ end # that all logs are flushed, and it is called in Rails::Rack::Logger after a # request finishes. # -# source://activesupport//lib/active_support/log_subscriber.rb#64 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:64 class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber - # @return [LogSubscriber] a new instance of LogSubscriber - # - # source://activesupport//lib/active_support/log_subscriber.rb#133 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:133 def initialize; end - # source://activesupport//lib/active_support/log_subscriber.rb#146 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:146 def call(event); end - # source://activesupport//lib/active_support/log_subscriber.rb#83 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:83 def colorize_logging; end - # source://activesupport//lib/active_support/log_subscriber.rb#83 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:83 def colorize_logging=(val); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:162 def debug(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:162 def error(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#158 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:158 def event_levels=(_arg0); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:162 def fatal(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:162 def info(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#138 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:138 def logger; end - # source://activesupport//lib/active_support/log_subscriber.rb#152 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:152 def publish_event(event); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/log_subscriber.rb#142 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:142 def silenced?(event); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:162 def unknown(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#163 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:162 def warn(progname = T.unsafe(nil), &block); end private @@ -8200,119 +7659,113 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber # by specifying bold, italic, or underline options. Inspired by Highline, # this method will automatically clear formatting at the end of the returned String. # - # source://activesupport//lib/active_support/log_subscriber.rb#172 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:172 def color(text, color, mode_options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/log_subscriber.rb#186 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:186 def log_exception(name, e); end - # source://activesupport//lib/active_support/log_subscriber.rb#180 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:180 def mode_from(options); end class << self - # source://activesupport//lib/active_support/log_subscriber.rb#99 - def attach_to(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:99 + def attach_to(*, **, &); end - # source://activesupport//lib/active_support/log_subscriber.rb#83 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:83 def colorize_logging; end - # source://activesupport//lib/active_support/log_subscriber.rb#83 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:83 def colorize_logging=(val); end # Flush all log_subscribers' logger. # - # source://activesupport//lib/active_support/log_subscriber.rb#112 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:112 def flush_all!; end - # source://activesupport//lib/active_support/log_subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def log_levels; end - # source://activesupport//lib/active_support/log_subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def log_levels=(value); end - # source://activesupport//lib/active_support/log_subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def log_levels?; end - # source://activesupport//lib/active_support/log_subscriber.rb#107 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:107 def log_subscribers; end - # source://activesupport//lib/active_support/log_subscriber.rb#93 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:93 def logger; end - # Sets the attribute logger - # - # @param value the value to set the attribute logger to. - # - # source://activesupport//lib/active_support/log_subscriber.rb#105 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:105 def logger=(_arg0); end private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def __class_attr_log_levels; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:84 def __class_attr_log_levels=(new_value); end - # source://activesupport//lib/active_support/log_subscriber.rb#117 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:117 def fetch_public_methods(subscriber, inherit_all); end - # source://activesupport//lib/active_support/log_subscriber.rb#121 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:121 def set_event_levels; end - # source://activesupport//lib/active_support/log_subscriber.rb#127 + # pkg:gem/activesupport#lib/active_support/log_subscriber.rb:127 def subscribe_log_level(method, level); end end end # ANSI sequence colors # -# source://activesupport//lib/active_support/log_subscriber.rb#74 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:74 ActiveSupport::LogSubscriber::BLACK = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#78 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:78 ActiveSupport::LogSubscriber::BLUE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#80 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:80 ActiveSupport::LogSubscriber::CYAN = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#76 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:76 ActiveSupport::LogSubscriber::GREEN = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#86 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:86 ActiveSupport::LogSubscriber::LEVEL_CHECKS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/log_subscriber.rb#79 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:79 ActiveSupport::LogSubscriber::MAGENTA = T.let(T.unsafe(nil), String) # ANSI sequence modes # -# source://activesupport//lib/active_support/log_subscriber.rb#66 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:66 ActiveSupport::LogSubscriber::MODES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/log_subscriber.rb#75 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:75 ActiveSupport::LogSubscriber::RED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#81 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:81 ActiveSupport::LogSubscriber::WHITE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#77 +# pkg:gem/activesupport#lib/active_support/log_subscriber.rb:77 ActiveSupport::LogSubscriber::YELLOW = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/logger.rb#8 +# pkg:gem/activesupport#lib/active_support/logger.rb:8 class ActiveSupport::Logger < ::Logger include ::ActiveSupport::LoggerSilence include ::ActiveSupport::LoggerThreadSafeLevel - # @return [Logger] a new instance of Logger - # - # source://activesupport//lib/active_support/logger.rb#33 + # pkg:gem/activesupport#lib/active_support/logger.rb:33 def initialize(*args, **kwargs); end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # pkg:gem/activesupport#lib/active_support/logger.rb:9 def silencer; end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # pkg:gem/activesupport#lib/active_support/logger.rb:9 def silencer=(val); end class << self @@ -8326,69 +7779,65 @@ class ActiveSupport::Logger < ::Logger # ActiveSupport::Logger.logger_outputs_to?(logger, '/var/log/rails.log') # # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/logger.rb#20 + # pkg:gem/activesupport#lib/active_support/logger.rb:20 def logger_outputs_to?(logger, *sources); end - # source://activesupport//lib/active_support/logger.rb#47 + # pkg:gem/activesupport#lib/active_support/logger.rb:47 def normalize_sources(sources); end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # pkg:gem/activesupport#lib/active_support/logger.rb:9 def silencer; end - # source://activesupport//lib/active_support/logger_silence.rb#12 + # pkg:gem/activesupport#lib/active_support/logger.rb:9 def silencer=(val); end end end # Simple formatter which only displays the message. # -# source://activesupport//lib/active_support/logger.rb#39 +# pkg:gem/activesupport#lib/active_support/logger.rb:39 class ActiveSupport::Logger::SimpleFormatter < ::Logger::Formatter # This method is invoked when a log event occurs # - # source://activesupport//lib/active_support/logger.rb#41 + # pkg:gem/activesupport#lib/active_support/logger.rb:41 def call(severity, timestamp, progname, msg); end end -# source://activesupport//lib/active_support/logger_silence.rb#8 +# pkg:gem/activesupport#lib/active_support/logger_silence.rb:8 module ActiveSupport::LoggerSilence extend ::ActiveSupport::Concern include ::ActiveSupport::LoggerThreadSafeLevel # Silences the logger for the duration of the block. # - # source://activesupport//lib/active_support/logger_silence.rb#17 + # pkg:gem/activesupport#lib/active_support/logger_silence.rb:17 def silence(severity = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/logger_thread_safe_level.rb#7 +# pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:7 module ActiveSupport::LoggerThreadSafeLevel extend ::ActiveSupport::Concern - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#10 - def initialize(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:10 + def initialize(*, **, &); end - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#35 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:35 def level; end - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#15 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:15 def local_level; end - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#19 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:19 def local_level=(level); end # Change the thread-local level for the duration of the given block. # - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#40 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:40 def log_at(level); end private - # Returns the value of attribute local_level_key. - # - # source://activesupport//lib/active_support/logger_thread_safe_level.rb#48 + # pkg:gem/activesupport#lib/active_support/logger_thread_safe_level.rb:48 def local_level_key; end end @@ -8472,7 +7921,7 @@ end # # crypt.rotate old_secret, cipher: "aes-256-cbc" # -# source://activesupport//lib/active_support/message_encryptor.rb#90 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:90 class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec include ::ActiveSupport::Messages::Rotator @@ -8539,12 +7988,10 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # If you don't pass a truthy value, the default is set using # +config.active_support.use_message_serializer_for_metadata+. # - # @return [MessageEncryptor] a new instance of MessageEncryptor - # - # source://activesupport//lib/active_support/messages/rotator.rb#6 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:183 def initialize(*args, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/message_encryptor.rb#256 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:256 def create_message(value, **options); end # Decrypt and verify a message. We need to verify the message in order to @@ -8564,7 +8011,7 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # encryptor.decrypt_and_verify(message) # => "bye" # encryptor.decrypt_and_verify(message, purpose: "greeting") # => nil # - # source://activesupport//lib/active_support/message_encryptor.rb#241 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:241 def decrypt_and_verify(message, **options); end # Encrypt and sign a message. We need to sign the message in order to avoid @@ -8595,105 +8042,101 @@ class ActiveSupport::MessageEncryptor < ::ActiveSupport::Messages::Codec # specified when verifying the message; otherwise, verification will fail. # (See #decrypt_and_verify.) # - # source://activesupport//lib/active_support/message_encryptor.rb#220 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:220 def encrypt_and_sign(value, **options); end - # source://activesupport//lib/active_support/message_encryptor.rb#264 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:264 def inspect; end - # source://activesupport//lib/active_support/messages/rotator.rb#28 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:260 def read_message(message, on_rotation: T.unsafe(nil), **options); end private - # Returns the value of attribute aead_mode. - # - # source://activesupport//lib/active_support/message_encryptor.rb#371 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:371 def aead_mode; end - # Returns the value of attribute aead_mode. - # - # source://activesupport//lib/active_support/message_encryptor.rb#371 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:372 def aead_mode?; end - # source://activesupport//lib/active_support/message_encryptor.rb#295 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:295 def decrypt(encrypted_message); end - # source://activesupport//lib/active_support/message_encryptor.rb#277 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:277 def encrypt(data); end - # source://activesupport//lib/active_support/message_encryptor.rb#340 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:340 def extract_part(encrypted_message, rindex, length); end - # source://activesupport//lib/active_support/message_encryptor.rb#350 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:350 def extract_parts(encrypted_message); end - # source://activesupport//lib/active_support/message_encryptor.rb#336 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:336 def join_parts(parts); end - # source://activesupport//lib/active_support/message_encryptor.rb#320 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:320 def length_after_encode(length_before_encode); end - # source://activesupport//lib/active_support/message_encryptor.rb#332 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:332 def length_of_encoded_auth_tag; end - # source://activesupport//lib/active_support/message_encryptor.rb#328 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:328 def length_of_encoded_iv; end - # source://activesupport//lib/active_support/message_encryptor.rb#367 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:367 def new_cipher; end - # source://activesupport//lib/active_support/message_encryptor.rb#269 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:269 def sign(data); end - # source://activesupport//lib/active_support/message_encryptor.rb#273 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:273 def verify(data); end class << self - # source://activesupport//lib/active_support/message_encryptor.rb#96 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:96 def default_cipher; end # Given a cipher, returns the key length of the cipher to help generate the key of desired size # - # source://activesupport//lib/active_support/message_encryptor.rb#252 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:252 def key_len(cipher = T.unsafe(nil)); end - # source://activesupport//lib/active_support/message_encryptor.rb#93 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:93 def use_authenticated_message_encryption; end - # source://activesupport//lib/active_support/message_encryptor.rb#93 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:93 def use_authenticated_message_encryption=(val); end end end -# source://activesupport//lib/active_support/message_encryptor.rb#118 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:118 ActiveSupport::MessageEncryptor::AUTH_TAG_LENGTH = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/message_encryptor.rb#115 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:115 class ActiveSupport::MessageEncryptor::InvalidMessage < ::StandardError; end -# source://activesupport//lib/active_support/message_encryptor.rb#105 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:105 module ActiveSupport::MessageEncryptor::NullSerializer class << self - # source://activesupport//lib/active_support/message_encryptor.rb#110 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:110 def dump(value); end - # source://activesupport//lib/active_support/message_encryptor.rb#106 + # pkg:gem/activesupport#lib/active_support/message_encryptor.rb:106 def load(value); end end end -# source://activesupport//lib/active_support/message_encryptor.rb#116 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:116 ActiveSupport::MessageEncryptor::OpenSSLCipherError = OpenSSL::Cipher::CipherError -# source://activesupport//lib/active_support/message_encryptor.rb#119 +# pkg:gem/activesupport#lib/active_support/message_encryptor.rb:119 ActiveSupport::MessageEncryptor::SEPARATOR = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/message_encryptors.rb#6 +# pkg:gem/activesupport#lib/active_support/message_encryptors.rb:6 class ActiveSupport::MessageEncryptors < ::ActiveSupport::Messages::RotationCoordinator private - # source://activesupport//lib/active_support/message_encryptors.rb#135 + # pkg:gem/activesupport#lib/active_support/message_encryptors.rb:135 def build(salt, secret_generator:, secret_generator_options:, **options); end end @@ -8797,7 +8240,7 @@ end # # verifier.rotate(old_secret, digest: "SHA256", serializer: Marshal) # -# source://activesupport//lib/active_support/message_verifier.rb#110 +# pkg:gem/activesupport#lib/active_support/message_verifier.rb:110 class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec include ::ActiveSupport::Messages::Rotator @@ -8851,13 +8294,10 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # If you don't pass a truthy value, the default is set using # +config.active_support.use_message_serializer_for_metadata+. # - # @raise [ArgumentError] - # @return [MessageVerifier] a new instance of MessageVerifier - # - # source://activesupport//lib/active_support/messages/rotator.rb#6 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:167 def initialize(*args, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/message_verifier.rb#310 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:310 def create_message(value, **options); end # Generates a signed message for the provided value. @@ -8895,13 +8335,13 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # specified when verifying the message; otherwise, verification will fail. # (See #verified and #verify.) # - # source://activesupport//lib/active_support/message_verifier.rb#306 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:306 def generate(value, **options); end - # source://activesupport//lib/active_support/message_verifier.rb#318 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:318 def inspect; end - # source://activesupport//lib/active_support/messages/rotator.rb#28 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:314 def read_message(message, on_rotation: T.unsafe(nil), **options); end # Checks if a signed message could have been generated by signing an object @@ -8914,9 +8354,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # tampered_message = signed_message.chop # editing the message invalidates the signature # verifier.valid_message?(tampered_message) # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/message_verifier.rb#183 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:183 def valid_message?(message); end # Decodes the signed message using the +MessageVerifier+'s secret. @@ -8956,7 +8394,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # verifier.verified(message) # => "bye" # verifier.verified(message, purpose: "greeting") # => nil # - # source://activesupport//lib/active_support/message_verifier.rb#224 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:224 def verified(message, **options); end # Decodes the signed message using the +MessageVerifier+'s secret. @@ -8987,348 +8425,307 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec # verifier.verify(message) # => "bye" # verifier.verify(message, purpose: "greeting") # => raises InvalidSignature # - # source://activesupport//lib/active_support/message_verifier.rb#262 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:262 def verify(message, **options); end private - # source://activesupport//lib/active_support/message_verifier.rb#323 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:323 def decode(encoded, url_safe: T.unsafe(nil)); end - # source://activesupport//lib/active_support/message_verifier.rb#356 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:356 def digest_length_in_hex; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/message_verifier.rb#373 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:373 def digest_matches_data?(digest, data); end - # source://activesupport//lib/active_support/message_verifier.rb#335 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:335 def extract_encoded(signed); end - # source://activesupport//lib/active_support/message_verifier.rb#352 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:352 def generate_digest(data); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/message_verifier.rb#364 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:364 def separator_at?(signed_message, index); end - # source://activesupport//lib/active_support/message_verifier.rb#368 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:368 def separator_index_for(signed_message); end - # source://activesupport//lib/active_support/message_verifier.rb#330 + # pkg:gem/activesupport#lib/active_support/message_verifier.rb:330 def sign_encoded(encoded); end end -# source://activesupport//lib/active_support/message_verifier.rb#113 +# pkg:gem/activesupport#lib/active_support/message_verifier.rb:113 class ActiveSupport::MessageVerifier::InvalidSignature < ::StandardError; end -# source://activesupport//lib/active_support/message_verifier.rb#115 +# pkg:gem/activesupport#lib/active_support/message_verifier.rb:115 ActiveSupport::MessageVerifier::SEPARATOR = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/message_verifier.rb#116 +# pkg:gem/activesupport#lib/active_support/message_verifier.rb:116 ActiveSupport::MessageVerifier::SEPARATOR_LENGTH = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/message_verifiers.rb#6 +# pkg:gem/activesupport#lib/active_support/message_verifiers.rb:6 class ActiveSupport::MessageVerifiers < ::ActiveSupport::Messages::RotationCoordinator private - # source://activesupport//lib/active_support/message_verifiers.rb#133 + # pkg:gem/activesupport#lib/active_support/message_verifiers.rb:133 def build(salt, secret_generator:, secret_generator_options:, **options); end end -# source://activesupport//lib/active_support/messages/rotation_coordinator.rb#6 +# pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:6 module ActiveSupport::Messages; end -# source://activesupport//lib/active_support/messages/codec.rb#9 +# pkg:gem/activesupport#lib/active_support/messages/codec.rb:9 class ActiveSupport::Messages::Codec include ::ActiveSupport::Messages::Metadata - # @return [Codec] a new instance of Codec - # - # source://activesupport//lib/active_support/messages/codec.rb#15 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:15 def initialize(**options); end private - # source://activesupport//lib/active_support/messages/codec.rb#45 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:45 def catch_and_ignore(throwable, &block); end - # source://activesupport//lib/active_support/messages/codec.rb#52 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:52 def catch_and_raise(throwable, as: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/messages/codec.rb#29 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:29 def decode(encoded, url_safe: T.unsafe(nil)); end - # source://activesupport//lib/active_support/messages/codec.rb#39 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:39 def deserialize(serialized); end - # source://activesupport//lib/active_support/messages/codec.rb#25 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:25 def encode(data, url_safe: T.unsafe(nil)); end - # source://activesupport//lib/active_support/messages/codec.rb#35 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:35 def serialize(data); end - # Returns the value of attribute serializer. - # - # source://activesupport//lib/active_support/messages/codec.rb#23 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:23 def serializer; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/codec.rb#60 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:60 def use_message_serializer_for_metadata?; end class << self - # source://activesupport//lib/active_support/messages/codec.rb#12 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:12 def default_serializer; end - # source://activesupport//lib/active_support/messages/codec.rb#12 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:12 def default_serializer=(value); end private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:12 def __class_attr_default_serializer; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/messages/codec.rb:12 def __class_attr_default_serializer=(new_value); end end end -# source://activesupport//lib/active_support/messages/metadata.rb#9 +# pkg:gem/activesupport#lib/active_support/messages/metadata.rb:9 module ActiveSupport::Messages::Metadata private - # source://activesupport//lib/active_support/messages/metadata.rb#128 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:128 def deserialize_from_json(serialized); end - # source://activesupport//lib/active_support/messages/metadata.rb#141 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:141 def deserialize_from_json_safe_string(string); end - # source://activesupport//lib/active_support/messages/metadata.rb#43 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:43 def deserialize_with_metadata(message, **expected_metadata); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/metadata.rb#96 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:96 def dual_serialized_metadata_envelope_json?(string); end - # source://activesupport//lib/active_support/messages/metadata.rb#78 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:78 def extract_from_metadata_envelope(envelope, purpose: T.unsafe(nil)); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/metadata.rb#92 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:92 def metadata_envelope?(object); end - # source://activesupport//lib/active_support/messages/metadata.rb#114 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:114 def parse_expiry(expires_at); end - # source://activesupport//lib/active_support/messages/metadata.rb#100 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:100 def pick_expiry(expires_at, expires_in); end - # source://activesupport//lib/active_support/messages/metadata.rb#124 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:124 def serialize_to_json(data); end - # source://activesupport//lib/active_support/messages/metadata.rb#137 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:137 def serialize_to_json_safe_string(data); end - # source://activesupport//lib/active_support/messages/metadata.rb#30 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:30 def serialize_with_metadata(data, **metadata); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/metadata.rb#60 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:60 def use_message_serializer_for_metadata?; end - # source://activesupport//lib/active_support/messages/metadata.rb#64 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:64 def wrap_in_metadata_envelope(hash, expires_at: T.unsafe(nil), expires_in: T.unsafe(nil), purpose: T.unsafe(nil)); end - # source://activesupport//lib/active_support/messages/metadata.rb#71 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:71 def wrap_in_metadata_legacy_envelope(hash, expires_at: T.unsafe(nil), expires_in: T.unsafe(nil), purpose: T.unsafe(nil)); end class << self - # source://activesupport//lib/active_support/messages/metadata.rb#10 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:10 def use_message_serializer_for_metadata; end - # source://activesupport//lib/active_support/messages/metadata.rb#10 + # pkg:gem/activesupport#lib/active_support/messages/metadata.rb:10 def use_message_serializer_for_metadata=(_arg0); end end end -# source://activesupport//lib/active_support/messages/metadata.rb#12 +# pkg:gem/activesupport#lib/active_support/messages/metadata.rb:12 ActiveSupport::Messages::Metadata::ENVELOPE_SERIALIZERS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/messages/metadata.rb#19 +# pkg:gem/activesupport#lib/active_support/messages/metadata.rb:19 ActiveSupport::Messages::Metadata::TIMESTAMP_SERIALIZERS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/messages/rotation_configuration.rb#5 +# pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:5 class ActiveSupport::Messages::RotationConfiguration - # @return [RotationConfiguration] a new instance of RotationConfiguration - # - # source://activesupport//lib/active_support/messages/rotation_configuration.rb#8 + # pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:8 def initialize; end - # Returns the value of attribute encrypted. - # - # source://activesupport//lib/active_support/messages/rotation_configuration.rb#6 + # pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:6 def encrypted; end - # source://activesupport//lib/active_support/messages/rotation_configuration.rb#12 + # pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:12 def rotate(kind, *args, **options); end - # Returns the value of attribute signed. - # - # source://activesupport//lib/active_support/messages/rotation_configuration.rb#6 + # pkg:gem/activesupport#lib/active_support/messages/rotation_configuration.rb:6 def signed; end end -# source://activesupport//lib/active_support/messages/rotation_coordinator.rb#7 +# pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:7 class ActiveSupport::Messages::RotationCoordinator - # @raise [ArgumentError] - # @return [RotationCoordinator] a new instance of RotationCoordinator - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#10 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:10 def initialize(&secret_generator); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#18 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:18 def [](salt); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#22 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:22 def []=(salt, codec); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#39 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:39 def clear_rotations; end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#45 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:45 def on_rotation(&callback); end - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#26 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:26 def rotate(**options, &block); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#35 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:35 def rotate_defaults; end - # Returns the value of attribute transitional. - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#8 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:8 def transitional; end - # Sets the attribute transitional - # - # @param value the value to set the attribute transitional to. - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#8 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:8 def transitional=(_arg0); end private - # @raise [NotImplementedError] - # - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#88 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:88 def build(salt, secret_generator:, secret_generator_options:, **options); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#76 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:76 def build_with_rotations(salt); end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#51 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:51 def changing_configuration!; end - # source://activesupport//lib/active_support/messages/rotation_coordinator.rb#62 + # pkg:gem/activesupport#lib/active_support/messages/rotation_coordinator.rb:62 def normalize_options(options); end end -# source://activesupport//lib/active_support/messages/rotator.rb#5 +# pkg:gem/activesupport#lib/active_support/messages/rotator.rb:5 module ActiveSupport::Messages::Rotator - # source://activesupport//lib/active_support/messages/rotator.rb#6 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:6 def initialize(*args, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/messages/rotator.rb#23 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:23 def fall_back_to(fallback); end - # source://activesupport//lib/active_support/messages/rotator.rb#18 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:18 def on_rotation(&on_rotation); end - # source://activesupport//lib/active_support/messages/rotator.rb#28 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:28 def read_message(message, on_rotation: T.unsafe(nil), **options); end - # source://activesupport//lib/active_support/messages/rotator.rb#14 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:14 def rotate(*args, **options); end private - # source://activesupport//lib/active_support/messages/rotator.rb#49 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:49 def build_rotation(*args, **options); end - # source://activesupport//lib/active_support/messages/rotator.rb#53 + # pkg:gem/activesupport#lib/active_support/messages/rotator.rb:53 def catch_rotation_error(&block); end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#8 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:8 module ActiveSupport::Messages::SerializerWithFallback - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#17 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:17 def load(dumped); end private - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#33 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:33 def detect_format(dumped); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#44 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:44 def fallback?(format); end class << self - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#9 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:9 def [](format); end end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#48 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:48 module ActiveSupport::Messages::SerializerWithFallback::AllowMarshal private - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#50 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:50 def fallback?(format); end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#78 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:78 module ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback include ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#90 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:90 def _load(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#86 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:86 def dump(object); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#96 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:96 def dumped?(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#82 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:82 def format; end private - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#101 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:101 def detect_format(dumped); end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#94 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:94 ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback::JSON_START_WITH = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#107 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:107 module ActiveSupport::Messages::SerializerWithFallback::JsonWithFallbackAllowMarshal include ::ActiveSupport::Messages::SerializerWithFallback include ::ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback @@ -9339,59 +8736,53 @@ module ActiveSupport::Messages::SerializerWithFallback::JsonWithFallbackAllowMar extend ::ActiveSupport::Messages::SerializerWithFallback::JsonWithFallbackAllowMarshal end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#55 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:55 module ActiveSupport::Messages::SerializerWithFallback::MarshalWithFallback include ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback::MarshalWithFallback - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#67 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:67 def _load(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#63 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:63 def dump(object); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#73 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:73 def dumped?(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#59 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:59 def format; end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#71 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:71 ActiveSupport::Messages::SerializerWithFallback::MarshalWithFallback::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#113 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:113 module ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback include ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback extend ::ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#125 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:125 def _load(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#121 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:121 def dump(object); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#129 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:129 def dumped?(dumped); end - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#117 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:117 def format; end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#134 + # pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:134 def available?; end end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#143 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:143 module ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallbackAllowMarshal include ::ActiveSupport::Messages::SerializerWithFallback include ::ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback @@ -9402,15 +8793,15 @@ module ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallbackA extend ::ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallbackAllowMarshal end -# source://activesupport//lib/active_support/messages/serializer_with_fallback.rb#149 +# pkg:gem/activesupport#lib/active_support/messages/serializer_with_fallback.rb:149 ActiveSupport::Messages::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/multibyte.rb#4 +# pkg:gem/activesupport#lib/active_support/multibyte.rb:4 module ActiveSupport::Multibyte class << self # Returns the current proxy class. # - # source://activesupport//lib/active_support/multibyte.rb#19 + # pkg:gem/activesupport#lib/active_support/multibyte.rb:19 def proxy_class; end # The proxy class returned when calling mb_chars. You can use this accessor @@ -9420,7 +8811,7 @@ module ActiveSupport::Multibyte # # ActiveSupport::Multibyte.proxy_class = CharsForUTF32 # - # source://activesupport//lib/active_support/multibyte.rb#14 + # pkg:gem/activesupport#lib/active_support/multibyte.rb:14 def proxy_class=(klass); end end end @@ -9463,27 +8854,25 @@ end # # ActiveSupport::Multibyte.proxy_class = CharsForUTF32 # -# source://activesupport//lib/active_support/multibyte/chars.rb#47 +# pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:47 class ActiveSupport::Multibyte::Chars include ::Comparable # Creates a new Chars instance by wrapping _string_. # - # @return [Chars] a new instance of Chars - # - # source://activesupport//lib/active_support/multibyte/chars.rb#56 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:56 def initialize(string); end - # source://activesupport//lib/active_support/multibyte/chars.rb#53 - def <=>(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:53 + def <=>(*, **, &); end - # source://activesupport//lib/active_support/multibyte/chars.rb#53 - def =~(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:53 + def =~(*, **, &); end - # source://activesupport//lib/active_support/multibyte/chars.rb#53 - def acts_like_string?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:53 + def acts_like_string?(*, **, &); end - # source://activesupport//lib/active_support/multibyte/chars.rb#164 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:164 def as_json(options = T.unsafe(nil)); end # Performs composition on all the characters. @@ -9491,7 +8880,7 @@ class ActiveSupport::Multibyte::Chars # 'é'.length # => 1 # 'é'.mb_chars.compose.to_s.length # => 1 # - # source://activesupport//lib/active_support/multibyte/chars.rb#143 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:143 def compose; end # Performs canonical decomposition on all the characters. @@ -9499,7 +8888,7 @@ class ActiveSupport::Multibyte::Chars # 'é'.length # => 1 # 'é'.mb_chars.decompose.to_s.length # => 2 # - # source://activesupport//lib/active_support/multibyte/chars.rb#135 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:135 def decompose; end # Returns the number of grapheme clusters in the string. @@ -9507,7 +8896,7 @@ class ActiveSupport::Multibyte::Chars # 'क्षि'.mb_chars.length # => 4 # 'क्षि'.mb_chars.grapheme_length # => 2 # - # source://activesupport//lib/active_support/multibyte/chars.rb#151 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:151 def grapheme_length; end # Limits the byte size of the string to a number of bytes without breaking @@ -9516,25 +8905,25 @@ class ActiveSupport::Multibyte::Chars # # 'こんにちは'.mb_chars.limit(7).to_s # => "こん" # - # source://activesupport//lib/active_support/multibyte/chars.rb#118 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:118 def limit(limit); end - # source://activesupport//lib/active_support/multibyte/chars.rb#53 - def match?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:53 + def match?(*, **, &); end # Forward all undefined methods to the wrapped string. # - # source://activesupport//lib/active_support/multibyte/chars.rb#65 - def method_missing(method, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:65 + def method_missing(method, *, **, &); end # Reverses all characters in the string. # # 'Café'.mb_chars.reverse.to_s # => 'éfaC' # - # source://activesupport//lib/active_support/multibyte/chars.rb#109 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:109 def reverse; end - # source://activesupport//lib/active_support/multibyte/chars.rb#169 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:169 def reverse!(*args); end # Works like String#slice!, but returns an instance of @@ -9547,7 +8936,7 @@ class ActiveSupport::Multibyte::Chars # string.mb_chars.slice!(0..3) # => # # string # => 'me' # - # source://activesupport//lib/active_support/multibyte/chars.rb#99 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:99 def slice!(*args); end # Works just like String#split, with the exception that the items @@ -9556,7 +8945,7 @@ class ActiveSupport::Multibyte::Chars # # 'Café périferôl'.mb_chars.split(/é/).map { |part| part.upcase.to_s } # => ["CAF", " P", "RIFERÔL"] # - # source://activesupport//lib/active_support/multibyte/chars.rb#86 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:86 def split(*args); end # Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent @@ -9565,18 +8954,13 @@ class ActiveSupport::Multibyte::Chars # Passing +true+ will forcibly tidy all bytes, assuming that the string's # encoding is entirely CP1252 or ISO-8859-1. # - # source://activesupport//lib/active_support/multibyte/chars.rb#160 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:160 def tidy_bytes(force = T.unsafe(nil)); end - # source://activesupport//lib/active_support/multibyte/chars.rb#169 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:169 def tidy_bytes!(*args); end - # Capitalizes the first letter of every word, when possible. - # - # "ÉL QUE SE ENTERÓ".mb_chars.titleize.to_s # => "Él Que Se Enteró" - # "日本語".mb_chars.titleize.to_s # => "日本語" - # - # source://activesupport//lib/active_support/multibyte/chars.rb#126 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:129 def titlecase; end # Capitalizes the first letter of every word, when possible. @@ -9584,51 +8968,43 @@ class ActiveSupport::Multibyte::Chars # "ÉL QUE SE ENTERÓ".mb_chars.titleize.to_s # => "Él Que Se Enteró" # "日本語".mb_chars.titleize.to_s # => "日本語" # - # source://activesupport//lib/active_support/multibyte/chars.rb#126 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:126 def titleize; end - # Returns the value of attribute wrapped_string. - # - # source://activesupport//lib/active_support/multibyte/chars.rb#49 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:50 def to_s; end - # Returns the value of attribute wrapped_string. - # - # source://activesupport//lib/active_support/multibyte/chars.rb#49 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:51 def to_str; end - # Returns the value of attribute wrapped_string. - # - # source://activesupport//lib/active_support/multibyte/chars.rb#49 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:49 def wrapped_string; end private - # source://activesupport//lib/active_support/multibyte/chars.rb#176 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:176 def chars(string); end # Returns +true+ if _obj_ responds to the given method. Private methods # are included in the search only if the optional second parameter # evaluates to +true+. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/multibyte/chars.rb#77 + # pkg:gem/activesupport#lib/active_support/multibyte/chars.rb:77 def respond_to_missing?(method, include_private); end end -# source://activesupport//lib/active_support/multibyte/unicode.rb#5 +# pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:5 module ActiveSupport::Multibyte::Unicode extend ::ActiveSupport::Multibyte::Unicode # Compose decomposed characters to the composed form. # - # source://activesupport//lib/active_support/multibyte/unicode.rb#21 + # pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:21 def compose(codepoints); end # Decompose composed characters to the decomposed form. # - # source://activesupport//lib/active_support/multibyte/unicode.rb#12 + # pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:12 def decompose(type, codepoints); end # Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent @@ -9637,18 +9013,18 @@ module ActiveSupport::Multibyte::Unicode # Passing +true+ will forcibly tidy all bytes, assuming that the string's # encoding is entirely CP1252 or ISO-8859-1. # - # source://activesupport//lib/active_support/multibyte/unicode.rb#30 + # pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:30 def tidy_bytes(string, force = T.unsafe(nil)); end private - # source://activesupport//lib/active_support/multibyte/unicode.rb#37 + # pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:37 def recode_windows1252_chars(string); end end # The Unicode version that is supported by the implementation # -# source://activesupport//lib/active_support/multibyte/unicode.rb#9 +# pkg:gem/activesupport#lib/active_support/multibyte/unicode.rb:9 ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String) # = \Notifications @@ -9840,13 +9216,13 @@ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String # Notifications ships with a queue implementation that consumes and publishes events # to all log subscribers. You can use any queue implementation you want. # -# source://activesupport//lib/active_support/notifications/instrumenter.rb#7 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:7 module ActiveSupport::Notifications class << self - # source://activesupport//lib/active_support/notifications.rb#208 + # pkg:gem/activesupport#lib/active_support/notifications.rb:208 def instrument(name, payload = T.unsafe(nil)); end - # source://activesupport//lib/active_support/notifications.rb#269 + # pkg:gem/activesupport#lib/active_support/notifications.rb:269 def instrumenter; end # Performs the same functionality as #subscribe, but the +start+ and @@ -9856,25 +9232,19 @@ module ActiveSupport::Notifications # duration is important. For example, computing elapsed time between # two events. # - # source://activesupport//lib/active_support/notifications.rb#254 + # pkg:gem/activesupport#lib/active_support/notifications.rb:254 def monotonic_subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end - # Returns the value of attribute notifier. - # - # source://activesupport//lib/active_support/notifications.rb#198 + # pkg:gem/activesupport#lib/active_support/notifications.rb:198 def notifier; end - # Sets the attribute notifier - # - # @param value the value to set the attribute notifier to. - # - # source://activesupport//lib/active_support/notifications.rb#198 + # pkg:gem/activesupport#lib/active_support/notifications.rb:198 def notifier=(_arg0); end - # source://activesupport//lib/active_support/notifications.rb#200 + # pkg:gem/activesupport#lib/active_support/notifications.rb:200 def publish(name, *args); end - # source://activesupport//lib/active_support/notifications.rb#204 + # pkg:gem/activesupport#lib/active_support/notifications.rb:204 def publish_event(event); end # Subscribe to a given event name with the passed +block+. @@ -9905,39 +9275,37 @@ module ActiveSupport::Notifications # ActiveSupport::Notifications.subscribe(:render) {|event| ...} # #=> ArgumentError (pattern must be specified as a String, Regexp or empty) # - # source://activesupport//lib/active_support/notifications.rb#244 + # pkg:gem/activesupport#lib/active_support/notifications.rb:244 def subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/notifications.rb#258 + # pkg:gem/activesupport#lib/active_support/notifications.rb:258 def subscribed(callback, pattern = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/notifications.rb#265 + # pkg:gem/activesupport#lib/active_support/notifications.rb:265 def unsubscribe(subscriber_or_name); end private - # source://activesupport//lib/active_support/notifications.rb#274 + # pkg:gem/activesupport#lib/active_support/notifications.rb:274 def registry; end end end -# source://activesupport//lib/active_support/notifications/instrumenter.rb#106 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:106 class ActiveSupport::Notifications::Event - # @return [Event] a new instance of Event - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#110 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:110 def initialize(name, start, ending, transaction_id, payload); end # Returns the number of allocations made between the call to #start! and # the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#176 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:176 def allocations; end # Returns the CPU time (in milliseconds) passed between the call to # #start! and the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#163 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:163 def cpu_time; end # Returns the difference in milliseconds between when the execution of the @@ -9953,76 +9321,66 @@ class ActiveSupport::Notifications::Event # # @event.duration # => 1000.138 # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#198 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:198 def duration; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#128 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:128 def end; end # Record information at the time this event finishes # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#154 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:154 def finish!; end # Returns the time spent in GC (in milliseconds) between the call to #start! # and the call to #finish! # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#182 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:182 def gc_time; end # Returns the idle time (in milliseconds) passed between the call to # #start! and the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#169 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:169 def idle_time; end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#107 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:107 def name; end - # Returns the value of attribute payload. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#108 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:108 def payload; end - # Sets the attribute payload - # - # @param value the value to set the attribute payload to. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#108 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:108 def payload=(_arg0); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#132 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:132 def record; end # Record information at the time this event starts # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#146 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:146 def start!; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#124 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:124 def time; end - # Returns the value of attribute transaction_id. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#107 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:107 def transaction_id; end private - # source://activesupport//lib/active_support/notifications/instrumenter.rb#203 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:203 def now; end # Likely on JRuby, TruffleRuby # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#230 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:230 def now_allocations; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#210 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:210 def now_cpu; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#220 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:220 def now_gc; end end @@ -10031,104 +9389,98 @@ end # # This class is thread safe. All methods are reentrant. # -# source://activesupport//lib/active_support/notifications/fanout.rb#49 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:49 class ActiveSupport::Notifications::Fanout include ::ActiveSupport::Notifications::FanoutIteration - # @return [Fanout] a new instance of Fanout - # - # source://activesupport//lib/active_support/notifications/fanout.rb#50 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:50 def initialize; end - # source://activesupport//lib/active_support/notifications/fanout.rb#297 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:297 def all_listeners_for(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#272 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:272 def build_handle(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#101 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:101 def clear_cache(key = T.unsafe(nil)); end - # source://activesupport//lib/active_support/notifications/fanout.rb#283 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:283 def finish(name, id, payload, listeners = T.unsafe(nil)); end - # source://activesupport//lib/active_support/notifications/fanout.rb#187 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:187 def groups_for(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#59 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:59 def inspect; end - # source://activesupport//lib/active_support/notifications/fanout.rb#306 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:306 def listeners_for(name); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/notifications/fanout.rb#310 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:310 def listening?(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#289 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:289 def publish(name, *args); end - # source://activesupport//lib/active_support/notifications/fanout.rb#293 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:293 def publish_event(event); end - # source://activesupport//lib/active_support/notifications/fanout.rb#276 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:276 def start(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#64 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:64 def subscribe(pattern = T.unsafe(nil), callable = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/notifications/fanout.rb#81 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:81 def unsubscribe(subscriber_or_name); end # This is a sync queue, so there is no waiting. # - # source://activesupport//lib/active_support/notifications/fanout.rb#315 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:315 def wait; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#113 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:113 class ActiveSupport::Notifications::Fanout::BaseGroup include ::ActiveSupport::Notifications::FanoutIteration - # @return [BaseGroup] a new instance of BaseGroup - # - # source://activesupport//lib/active_support/notifications/fanout.rb#116 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:116 def initialize(listeners, name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#120 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:120 def each(&block); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#125 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:125 class ActiveSupport::Notifications::Fanout::BaseTimeGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup - # source://activesupport//lib/active_support/notifications/fanout.rb#130 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:130 def finish(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#126 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:126 def start(name, id, payload); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#166 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:166 class ActiveSupport::Notifications::Fanout::EventObjectGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup - # source://activesupport//lib/active_support/notifications/fanout.rb#172 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:172 def finish(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#167 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:167 def start(name, id, payload); end private - # source://activesupport//lib/active_support/notifications/fanout.rb#182 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:182 def build_event(name, id, payload); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#152 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:152 class ActiveSupport::Notifications::Fanout::EventedGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup - # source://activesupport//lib/active_support/notifications/fanout.rb#159 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:159 def finish(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#153 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:153 def start(name, id, payload); end end @@ -10147,189 +9499,163 @@ end # handle.finish # end # -# source://activesupport//lib/active_support/notifications/fanout.rb#227 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:227 class ActiveSupport::Notifications::Fanout::Handle include ::ActiveSupport::Notifications::FanoutIteration - # @return [Handle] a new instance of Handle - # - # source://activesupport//lib/active_support/notifications/fanout.rb#230 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:230 def initialize(notifier, name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#249 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:249 def finish; end - # source://activesupport//lib/active_support/notifications/fanout.rb#253 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:253 def finish_with_values(name, id, payload); end - # source://activesupport//lib/active_support/notifications/fanout.rb#240 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:240 def start; end private - # source://activesupport//lib/active_support/notifications/fanout.rb#263 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:263 def ensure_state!(expected); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#138 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:138 class ActiveSupport::Notifications::Fanout::MonotonicTimedGroup < ::ActiveSupport::Notifications::Fanout::BaseTimeGroup private - # source://activesupport//lib/active_support/notifications/fanout.rb#140 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:140 def now; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#318 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:318 module ActiveSupport::Notifications::Fanout::Subscribers class << self - # source://activesupport//lib/active_support/notifications/fanout.rb#319 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:319 def new(pattern, listener, monotonic); end end end -# source://activesupport//lib/active_support/notifications/fanout.rb#433 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:433 class ActiveSupport::Notifications::Fanout::Subscribers::EventObject < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented - # source://activesupport//lib/active_support/notifications/fanout.rb#434 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:434 def group_class; end - # source://activesupport//lib/active_support/notifications/fanout.rb#438 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:438 def publish_event(event); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#375 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:375 class ActiveSupport::Notifications::Fanout::Subscribers::Evented - # @return [Evented] a new instance of Evented - # - # source://activesupport//lib/active_support/notifications/fanout.rb#378 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:378 def initialize(pattern, delegate); end - # Returns the value of attribute delegate. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#376 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:376 def delegate; end - # source://activesupport//lib/active_support/notifications/fanout.rb#386 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:386 def group_class; end - # Returns the value of attribute pattern. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#376 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:376 def pattern; end - # source://activesupport//lib/active_support/notifications/fanout.rb#390 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:390 def publish(name, *args); end - # source://activesupport//lib/active_support/notifications/fanout.rb#396 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:396 def publish_event(event); end - # Returns the value of attribute silenceable. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#376 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:376 def silenceable; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/notifications/fanout.rb#404 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:404 def silenced?(name); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/notifications/fanout.rb#408 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:408 def subscribed_to?(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#412 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:412 def unsubscribe!(name); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#338 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:338 class ActiveSupport::Notifications::Fanout::Subscribers::Matcher - # @return [Matcher] a new instance of Matcher - # - # source://activesupport//lib/active_support/notifications/fanout.rb#351 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:351 def initialize(pattern); end - # source://activesupport//lib/active_support/notifications/fanout.rb#360 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:360 def ===(name); end - # Returns the value of attribute exclusions. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#339 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:339 def exclusions; end - # Returns the value of attribute pattern. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#339 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:339 def pattern; end - # source://activesupport//lib/active_support/notifications/fanout.rb#356 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:356 def unsubscribe!(name); end class << self - # source://activesupport//lib/active_support/notifications/fanout.rb#341 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:341 def wrap(pattern); end end end -# source://activesupport//lib/active_support/notifications/fanout.rb#364 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:364 class ActiveSupport::Notifications::Fanout::Subscribers::Matcher::AllMessages - # source://activesupport//lib/active_support/notifications/fanout.rb#365 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:365 def ===(name); end - # source://activesupport//lib/active_support/notifications/fanout.rb#369 - def unsubscribe!(*_arg0); end + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:369 + def unsubscribe!(*); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#427 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:427 class ActiveSupport::Notifications::Fanout::Subscribers::MonotonicTimed < ::ActiveSupport::Notifications::Fanout::Subscribers::Timed - # source://activesupport//lib/active_support/notifications/fanout.rb#428 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:428 def group_class; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#417 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:417 class ActiveSupport::Notifications::Fanout::Subscribers::Timed < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented - # source://activesupport//lib/active_support/notifications/fanout.rb#418 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:418 def group_class; end - # source://activesupport//lib/active_support/notifications/fanout.rb#422 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:422 def publish(name, *args); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#145 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:145 class ActiveSupport::Notifications::Fanout::TimedGroup < ::ActiveSupport::Notifications::Fanout::BaseTimeGroup private - # source://activesupport//lib/active_support/notifications/fanout.rb#147 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:147 def now; end end -# source://activesupport//lib/active_support/notifications/fanout.rb#18 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:18 module ActiveSupport::Notifications::FanoutIteration private - # source://activesupport//lib/active_support/notifications/fanout.rb#20 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:20 def iterate_guarding_exceptions(collection); end end -# source://activesupport//lib/active_support/notifications/fanout.rb#8 +# pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:8 class ActiveSupport::Notifications::InstrumentationSubscriberError < ::RuntimeError - # @return [InstrumentationSubscriberError] a new instance of InstrumentationSubscriberError - # - # source://activesupport//lib/active_support/notifications/fanout.rb#11 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:11 def initialize(exceptions); end - # Returns the value of attribute exceptions. - # - # source://activesupport//lib/active_support/notifications/fanout.rb#9 + # pkg:gem/activesupport#lib/active_support/notifications/fanout.rb:9 def exceptions; end end # Instrumenters are stored in a thread local. # -# source://activesupport//lib/active_support/notifications/instrumenter.rb#9 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:9 class ActiveSupport::Notifications::Instrumenter - # @return [Instrumenter] a new instance of Instrumenter - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#12 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:12 def initialize(notifier); end # Returns a "handle" for an event with the given +name+ and +payload+. @@ -10343,20 +9669,18 @@ class ActiveSupport::Notifications::Instrumenter # # See ActiveSupport::Notifications::Fanout::Handle. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#78 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:78 def build_handle(name, payload); end # Send a finish notification with +name+ and +payload+. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#92 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:92 def finish(name, payload); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#96 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:96 def finish_with_state(listeners_state, name, payload); end - # Returns the value of attribute id. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#10 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:10 def id; end # Given a block, instrument it by measuring the time taken to execute @@ -10364,52 +9688,48 @@ class ActiveSupport::Notifications::Instrumenter # notifier. Notice that events get sent even if an error occurs in the # passed-in block. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#54 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:54 def instrument(name, payload = T.unsafe(nil)); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#82 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:82 def new_event(name, payload = T.unsafe(nil)); end # Send a start notification with +name+ and +payload+. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#87 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:87 def start(name, payload); end private - # source://activesupport//lib/active_support/notifications/instrumenter.rb#101 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:101 def unique_id; end end -# source://activesupport//lib/active_support/notifications/instrumenter.rb#21 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:21 class ActiveSupport::Notifications::Instrumenter::LegacyHandle - # @return [LegacyHandle] a new instance of LegacyHandle - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#34 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:34 def initialize(notifier, name, id, payload); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#45 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:45 def finish; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#41 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:41 def start; end end -# source://activesupport//lib/active_support/notifications/instrumenter.rb#22 +# pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:22 class ActiveSupport::Notifications::Instrumenter::LegacyHandle::Wrapper - # @return [Wrapper] a new instance of Wrapper - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#23 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:23 def initialize(notifier); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#27 + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:27 def build_handle(name, id, payload); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#31 - def finish(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:31 + def finish(*, **, &); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#31 - def start(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/notifications/instrumenter.rb:31 + def start(*, **, &); end end # = Number Helper @@ -10435,7 +9755,7 @@ end # end # end # -# source://activesupport//lib/active_support/number_helper.rb#26 +# pkg:gem/activesupport#lib/active_support/number_helper.rb:26 module ActiveSupport::NumberHelper extend ::ActiveSupport::Autoload extend ::ActiveSupport::NumberHelper @@ -10509,7 +9829,7 @@ module ActiveSupport::NumberHelper # number_to_currency(1234567890.50, strip_insignificant_zeros: true) # # => "$1,234,567,890.5" # - # source://activesupport//lib/active_support/number_helper.rb#161 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:161 def number_to_currency(number, options = T.unsafe(nil)); end # Formats +number+ by grouping thousands with a delimiter. @@ -10549,7 +9869,7 @@ module ActiveSupport::NumberHelper # number_to_delimited("123456.78", delimiter_pattern: /(\d+?)(?=(\d\d)+(\d)(?!\d))/) # # => "1,23,456.78" # - # source://activesupport//lib/active_support/number_helper.rb#264 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:264 def number_to_delimited(number, options = T.unsafe(nil)); end # Formats +number+ into a more human-friendly representation. Useful for @@ -10650,7 +9970,7 @@ module ActiveSupport::NumberHelper # number_to_human(0.1, units: :distance) # => "10 centimeters" # number_to_human(0.01, units: :distance) # => "1 centimeter" # - # source://activesupport//lib/active_support/number_helper.rb#475 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:475 def number_to_human(number, options = T.unsafe(nil)); end # Formats +number+ as bytes into a more human-friendly representation. @@ -10702,7 +10022,7 @@ module ActiveSupport::NumberHelper # Whether to remove insignificant zeros after the decimal separator. # Defaults to true. # - # source://activesupport//lib/active_support/number_helper.rb#373 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:373 def number_to_human_size(number, options = T.unsafe(nil)); end # Formats +number+ as a percentage string. @@ -10763,7 +10083,7 @@ module ActiveSupport::NumberHelper # number_to_percentage(100, format: "%n %") # # => "100.000 %" # - # source://activesupport//lib/active_support/number_helper.rb#223 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:223 def number_to_percentage(number, options = T.unsafe(nil)); end # Formats +number+ into a phone number. @@ -10811,7 +10131,7 @@ module ActiveSupport::NumberHelper # number_to_phone(75561234567, pattern: /(\d{1,4})(\d{4})(\d{4})$/, area_code: true) # # => "(755) 6123-4567" # - # source://activesupport//lib/active_support/number_helper.rb#88 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:88 def number_to_phone(number, options = T.unsafe(nil)); end # Formats +number+ to a specific level of precision. @@ -10866,471 +10186,351 @@ module ActiveSupport::NumberHelper # number_to_rounded(12.34, strip_insignificant_zeros: true) # => "12.34" # number_to_rounded(12.3456, strip_insignificant_zeros: true) # => "12.346" # - # source://activesupport//lib/active_support/number_helper.rb#320 + # pkg:gem/activesupport#lib/active_support/number_helper.rb:320 def number_to_rounded(number, options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/number_helper/number_converter.rb#12 +# pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:12 class ActiveSupport::NumberHelper::NumberConverter - # @return [NumberConverter] a new instance of NumberConverter - # - # source://activesupport//lib/active_support/number_helper/number_converter.rb#124 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:124 def initialize(number, options); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#130 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:130 def execute; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace=(_arg0); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace?; end - # Returns the value of attribute number. - # - # source://activesupport//lib/active_support/number_helper/number_converter.rb#19 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:19 def number; end - # Returns the value of attribute opts. - # - # source://activesupport//lib/active_support/number_helper/number_converter.rb#19 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:19 def opts; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float=(_arg0); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float?; end private - # source://activesupport//lib/active_support/number_helper/number_converter.rb#149 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:149 def default_format_options; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#174 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:174 def default_value(key); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#145 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:145 def format_options; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#155 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:155 def i18n_format_options; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#141 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:141 def options; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#170 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:170 def translate_in_locale(key, **i18n_options); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#166 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:166 def translate_number_value_with_default(key, **i18n_options); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#178 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:178 def valid_bigdecimal; end class << self - # source://activesupport//lib/active_support/number_helper/number_converter.rb#120 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:120 def convert(number, options); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace=(value); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#14 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def namespace?; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float; end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float=(value); end - # source://activesupport//lib/active_support/number_helper/number_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def validate_float?; end private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def __class_attr_namespace; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:14 def __class_attr_namespace=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:17 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_converter.rb#21 +# pkg:gem/activesupport#lib/active_support/number_helper/number_converter.rb:21 ActiveSupport::NumberHelper::NumberConverter::DEFAULTS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:7 class ActiveSupport::NumberHelper::NumberToCurrencyConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#10 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:10 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#38 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:38 def i18n_opts; end - # source://activesupport//lib/active_support/number_helper/number_to_currency_converter.rb#29 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:29 def options; end class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:8 def __class_attr_namespace; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_currency_converter.rb:8 def __class_attr_namespace=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:7 class ActiveSupport::NumberHelper::NumberToDelimitedConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#12 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:12 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#40 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:40 def delimiter_pattern; end - # source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:17 def parts; end class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:8 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:8 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_delimited_converter.rb#10 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:10 ActiveSupport::NumberHelper::NumberToDelimitedConverter::DEFAULT_DELIMITER_REGEX = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:7 class ActiveSupport::NumberHelper::NumberToHumanConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:15 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#50 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:50 def calculate_exponent(units); end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#38 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:38 def determine_unit(units, exponent); end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#34 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:34 def format; end - # source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#55 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:55 def unit_exponents(units); end class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:12 def __class_attr_namespace; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:12 def __class_attr_namespace=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:13 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:13 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#8 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:8 ActiveSupport::NumberHelper::NumberToHumanConverter::DECIMAL_UNITS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/number_helper/number_to_human_converter.rb#10 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_converter.rb:10 ActiveSupport::NumberHelper::NumberToHumanConverter::INVERTED_DECIMAL_UNITS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:7 class ActiveSupport::NumberHelper::NumberToHumanSizeConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#13 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:13 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#55 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:55 def base; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#31 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:31 def conversion_format; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#44 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:44 def exponent; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#51 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:51 def smaller_than_base?; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#39 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:39 def storage_unit_key; end - # source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#35 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:35 def unit; end class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:10 def __class_attr_namespace; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:10 def __class_attr_namespace=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:11 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:11 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_human_size_converter.rb#8 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_human_size_converter.rb:8 ActiveSupport::NumberHelper::NumberToHumanSizeConverter::STORAGE_UNITS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_percentage_converter.rb:7 class ActiveSupport::NumberHelper::NumberToPercentageConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_percentage_converter.rb#10 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_percentage_converter.rb:10 def convert; end class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_percentage_converter.rb:8 def __class_attr_namespace; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_percentage_converter.rb:8 def __class_attr_namespace=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#8 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:8 class ActiveSupport::NumberHelper::NumberToPhoneConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#9 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:9 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#16 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:16 def convert_to_phone_number(number); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#24 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:24 def convert_with_area_code(number); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#31 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:31 def convert_without_area_code(number); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#47 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:47 def country_code(code); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#43 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:43 def delimiter; end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#51 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:51 def phone_ext(ext); end - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#55 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:55 def regexp_pattern(default_pattern); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/number_helper/number_to_phone_converter.rb#39 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_phone_converter.rb:39 def start_with_delimiter?(number); end end -# source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#7 +# pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:7 class ActiveSupport::NumberHelper::NumberToRoundedConverter < ::ActiveSupport::NumberHelper::NumberConverter - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#11 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:11 def convert; end private - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#49 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:49 def format_number(number); end - # source://activesupport//lib/active_support/number_helper/number_to_rounded_converter.rb#45 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:45 def strip_insignificant_zeros; end class << self private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:8 def __class_attr_namespace; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:8 def __class_attr_namespace=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:9 def __class_attr_validate_float; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_rounded_converter.rb:9 def __class_attr_validate_float=(new_value); end end end -# source://activesupport//lib/active_support/number_helper/rounding_helper.rb#5 +# pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:5 class ActiveSupport::NumberHelper::RoundingHelper - # @return [RoundingHelper] a new instance of RoundingHelper - # - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#8 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:8 def initialize(options); end - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#20 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:20 def digit_count(number); end - # Returns the value of attribute options. - # - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#6 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:6 def options; end - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#12 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:12 def round(number); end private - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#37 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:37 def absolute_precision(number); end - # source://activesupport//lib/active_support/number_helper/rounding_helper.rb#26 + # pkg:gem/activesupport#lib/active_support/number_helper/rounding_helper.rb:26 def convert_to_decimal(number); end end -# source://activesupport//lib/active_support/core_ext/numeric/conversions.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/conversions.rb:7 module ActiveSupport::NumericWithFormat - # \Numeric With Format - # - # Provides options for converting numbers into formatted strings. - # Options are provided for phone numbers, currency, percentage, - # precision, positional notation, file size, and pretty printing. - # - # This method is aliased to to_formatted_s. - # - # ==== Options - # - # For details on which formats use which options, see ActiveSupport::NumberHelper - # - # ==== Examples - # - # Phone Numbers: - # 5551234.to_fs(:phone) # => "555-1234" - # 1235551234.to_fs(:phone) # => "123-555-1234" - # 1235551234.to_fs(:phone, area_code: true) # => "(123) 555-1234" - # 1235551234.to_fs(:phone, delimiter: ' ') # => "123 555 1234" - # 1235551234.to_fs(:phone, area_code: true, extension: 555) # => "(123) 555-1234 x 555" - # 1235551234.to_fs(:phone, country_code: 1) # => "+1-123-555-1234" - # 1235551234.to_fs(:phone, country_code: 1, extension: 1343, delimiter: '.') - # # => "+1.123.555.1234 x 1343" - # - # Currency: - # 1234567890.50.to_fs(:currency) # => "$1,234,567,890.50" - # 1234567890.506.to_fs(:currency) # => "$1,234,567,890.51" - # 1234567890.506.to_fs(:currency, precision: 3) # => "$1,234,567,890.506" - # 1234567890.506.to_fs(:currency, round_mode: :down) # => "$1,234,567,890.50" - # 1234567890.506.to_fs(:currency, locale: :fr) # => "1 234 567 890,51 €" - # -1234567890.50.to_fs(:currency, negative_format: '(%u%n)') - # # => "($1,234,567,890.50)" - # 1234567890.50.to_fs(:currency, unit: '£', separator: ',', delimiter: '') - # # => "£1234567890,50" - # 1234567890.50.to_fs(:currency, unit: '£', separator: ',', delimiter: '', format: '%n %u') - # # => "1234567890,50 £" - # - # Percentage: - # 100.to_fs(:percentage) # => "100.000%" - # 100.to_fs(:percentage, precision: 0) # => "100%" - # 1000.to_fs(:percentage, delimiter: '.', separator: ',') # => "1.000,000%" - # 302.24398923423.to_fs(:percentage, precision: 5) # => "302.24399%" - # 302.24398923423.to_fs(:percentage, round_mode: :down) # => "302.243%" - # 1000.to_fs(:percentage, locale: :fr) # => "1 000,000%" - # 100.to_fs(:percentage, format: '%n %') # => "100.000 %" - # - # Delimited: - # 12345678.to_fs(:delimited) # => "12,345,678" - # 12345678.05.to_fs(:delimited) # => "12,345,678.05" - # 12345678.to_fs(:delimited, delimiter: '.') # => "12.345.678" - # 12345678.to_fs(:delimited, delimiter: ',') # => "12,345,678" - # 12345678.05.to_fs(:delimited, separator: ' ') # => "12,345,678 05" - # 12345678.05.to_fs(:delimited, locale: :fr) # => "12 345 678,05" - # 98765432.98.to_fs(:delimited, delimiter: ' ', separator: ',') - # # => "98 765 432,98" - # - # Rounded: - # 111.2345.to_fs(:rounded) # => "111.235" - # 111.2345.to_fs(:rounded, precision: 2) # => "111.23" - # 111.2345.to_fs(:rounded, precision: 2, round_mode: :up) # => "111.24" - # 13.to_fs(:rounded, precision: 5) # => "13.00000" - # 389.32314.to_fs(:rounded, precision: 0) # => "389" - # 111.2345.to_fs(:rounded, significant: true) # => "111" - # 111.2345.to_fs(:rounded, precision: 1, significant: true) # => "100" - # 13.to_fs(:rounded, precision: 5, significant: true) # => "13.000" - # 111.234.to_fs(:rounded, locale: :fr) # => "111,234" - # 13.to_fs(:rounded, precision: 5, significant: true, strip_insignificant_zeros: true) - # # => "13" - # 389.32314.to_fs(:rounded, precision: 4, significant: true) # => "389.3" - # 1111.2345.to_fs(:rounded, precision: 2, separator: ',', delimiter: '.') - # # => "1.111,23" - # - # Human-friendly size in Bytes: - # 123.to_fs(:human_size) # => "123 Bytes" - # 1234.to_fs(:human_size) # => "1.21 KB" - # 12345.to_fs(:human_size) # => "12.1 KB" - # 1234567.to_fs(:human_size) # => "1.18 MB" - # 1234567890.to_fs(:human_size) # => "1.15 GB" - # 1234567890123.to_fs(:human_size) # => "1.12 TB" - # 1234567890123456.to_fs(:human_size) # => "1.1 PB" - # 1234567890123456789.to_fs(:human_size) # => "1.07 EB" - # 1234567.to_fs(:human_size, precision: 2) # => "1.2 MB" - # 1234567.to_fs(:human_size, precision: 2, round_mode: :up) # => "1.3 MB" - # 483989.to_fs(:human_size, precision: 2) # => "470 KB" - # 1234567.to_fs(:human_size, precision: 2, separator: ',') # => "1,2 MB" - # 1234567890123.to_fs(:human_size, precision: 5) # => "1.1228 TB" - # 524288000.to_fs(:human_size, precision: 5) # => "500 MB" - # - # Human-friendly format: - # 123.to_fs(:human) # => "123" - # 1234.to_fs(:human) # => "1.23 Thousand" - # 12345.to_fs(:human) # => "12.3 Thousand" - # 1234567.to_fs(:human) # => "1.23 Million" - # 1234567890.to_fs(:human) # => "1.23 Billion" - # 1234567890123.to_fs(:human) # => "1.23 Trillion" - # 1234567890123456.to_fs(:human) # => "1.23 Quadrillion" - # 1234567890123456789.to_fs(:human) # => "1230 Quadrillion" - # 489939.to_fs(:human, precision: 2) # => "490 Thousand" - # 489939.to_fs(:human, precision: 2, round_mode: :down) # => "480 Thousand" - # 489939.to_fs(:human, precision: 4) # => "489.9 Thousand" - # 1234567.to_fs(:human, precision: 4, - # significant: false) # => "1.2346 Million" - # 1234567.to_fs(:human, precision: 1, - # separator: ',', - # significant: false) # => "1,2 Million" - # - # source://activesupport//lib/active_support/core_ext/numeric/conversions.rb#113 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/conversions.rb:139 def to_formatted_s(format = T.unsafe(nil), options = T.unsafe(nil)); end # \Numeric With Format @@ -11439,26 +10639,22 @@ module ActiveSupport::NumericWithFormat # separator: ',', # significant: false) # => "1,2 Million" # - # source://activesupport//lib/active_support/core_ext/numeric/conversions.rb#113 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/conversions.rb:113 def to_fs(format = T.unsafe(nil), options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/option_merger.rb#6 +# pkg:gem/activesupport#lib/active_support/option_merger.rb:6 class ActiveSupport::OptionMerger - # @return [OptionMerger] a new instance of OptionMerger - # - # source://activesupport//lib/active_support/option_merger.rb#11 + # pkg:gem/activesupport#lib/active_support/option_merger.rb:11 def initialize(context, options); end private - # source://activesupport//lib/active_support/option_merger.rb#16 + # pkg:gem/activesupport#lib/active_support/option_merger.rb:16 def method_missing(method, *arguments, &block); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/option_merger.rb#34 - def respond_to_missing?(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/option_merger.rb:34 + def respond_to_missing?(*, **, &); end end # DEPRECATED: +ActiveSupport::OrderedHash+ implements a hash that preserves @@ -11476,28 +10672,26 @@ end # +ActiveSupport::OrderedHash+ is namespaced to prevent conflicts # with other implementations. # -# source://activesupport//lib/active_support/ordered_hash.rb#24 +# pkg:gem/activesupport#lib/active_support/ordered_hash.rb:24 class ActiveSupport::OrderedHash < ::Hash - # source://activesupport//lib/active_support/ordered_hash.rb#29 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:29 def encode_with(coder); end # Returns true to make sure that this hash is extractable via Array#extract_options! # - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_hash.rb#46 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:46 def extractable_options?; end - # source://activesupport//lib/active_support/ordered_hash.rb#41 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:41 def nested_under_indifferent_access; end - # source://activesupport//lib/active_support/ordered_hash.rb#37 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:37 def reject(*args, &block); end - # source://activesupport//lib/active_support/ordered_hash.rb#33 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:33 def select(*args, &block); end - # source://activesupport//lib/active_support/ordered_hash.rb#25 + # pkg:gem/activesupport#lib/active_support/ordered_hash.rb:25 def to_yaml_type; end end @@ -11528,38 +10722,36 @@ end # # h.dog! # => raises KeyError: :dog is blank # -# source://activesupport//lib/active_support/ordered_options.rb#33 +# pkg:gem/activesupport#lib/active_support/ordered_options.rb:33 class ActiveSupport::OrderedOptions < ::Hash - # source://activesupport//lib/active_support/ordered_options.rb#41 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:41 def [](key); end - # source://activesupport//lib/active_support/ordered_options.rb#37 + # make it protected + # + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:37 def []=(key, value); end - # source://activesupport//lib/active_support/ordered_options.rb#45 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:45 def dig(key, *identifiers); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_options.rb#64 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:64 def extractable_options?; end - # source://activesupport//lib/active_support/ordered_options.rb#68 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:68 def inspect; end - # source://activesupport//lib/active_support/ordered_options.rb#49 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:49 def method_missing(method, *args); end protected - # preserve the original #[] method + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:34 def _get(_arg0); end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/ordered_options.rb#60 + # pkg:gem/activesupport#lib/active_support/ordered_options.rb:60 def respond_to_missing?(name, include_private); end end @@ -11595,7 +10787,7 @@ end # v.reverse! if /secret/i.match?(k) # end]) # -# source://activesupport//lib/active_support/parameter_filter.rb#39 +# pkg:gem/activesupport#lib/active_support/parameter_filter.rb:39 class ActiveSupport::ParameterFilter # Create instance with given filters. Supported type of filters are +String+, +Regexp+, and +Proc+. # Other types of filters are treated as +String+ using +to_s+. @@ -11605,30 +10797,28 @@ class ActiveSupport::ParameterFilter # # * :mask - A replaced object when filtered. Defaults to "[FILTERED]". # - # @return [ParameterFilter] a new instance of ParameterFilter - # - # source://activesupport//lib/active_support/parameter_filter.rb#77 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:77 def initialize(filters = T.unsafe(nil), mask: T.unsafe(nil)); end # Mask value of +params+ if key matches one of filters. # - # source://activesupport//lib/active_support/parameter_filter.rb#83 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:83 def filter(params); end # Returns filtered value for given key. For +Proc+ filters, third block argument is not populated. # - # source://activesupport//lib/active_support/parameter_filter.rb#88 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:88 def filter_param(key, value); end private - # source://activesupport//lib/active_support/parameter_filter.rb#125 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:125 def call(params, full_parent_key = T.unsafe(nil), original_params = T.unsafe(nil)); end - # source://activesupport//lib/active_support/parameter_filter.rb#93 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:93 def compile_filters!(filters); end - # source://activesupport//lib/active_support/parameter_filter.rb#135 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:135 def value_for_key(key, value, full_parent_key = T.unsafe(nil), original_params = T.unsafe(nil)); end class << self @@ -11645,44 +10835,22 @@ class ActiveSupport::ParameterFilter # # ActiveSupport::ParameterFilter.new(precompiled) # - # source://activesupport//lib/active_support/parameter_filter.rb#55 + # pkg:gem/activesupport#lib/active_support/parameter_filter.rb:55 def precompile_filters(filters); end end end -# source://activesupport//lib/active_support/parameter_filter.rb#40 +# pkg:gem/activesupport#lib/active_support/parameter_filter.rb:40 ActiveSupport::ParameterFilter::FILTERED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/railtie.rb#7 +# pkg:gem/activesupport#lib/active_support/railtie.rb:7 class ActiveSupport::Railtie < ::Rails::Railtie; end # = \Range With Format # -# source://activesupport//lib/active_support/core_ext/range/conversions.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/range/conversions.rb:5 module ActiveSupport::RangeWithFormat - # Convert range to a formatted string. See RANGE_FORMATS for predefined formats. - # - # This method is aliased to to_formatted_s. - # - # range = (1..100) # => 1..100 - # - # range.to_s # => "1..100" - # range.to_fs(:db) # => "BETWEEN '1' AND '100'" - # - # range = (1..) # => 1.. - # range.to_fs(:db) # => ">= '1'" - # - # range = (..100) # => ..100 - # range.to_fs(:db) # => "<= '100'" - # - # == Adding your own range formats to to_fs - # You can add your own formats to the Range::RANGE_FORMATS hash. - # Use the format name as the hash key and a Proc instance. - # - # # config/initializers/range_formats.rb - # Range::RANGE_FORMATS[:short] = ->(start, stop) { "Between #{start.to_fs(:db)} and #{stop.to_fs(:db)}" } - # - # source://activesupport//lib/active_support/core_ext/range/conversions.rb#51 + # pkg:gem/activesupport#lib/active_support/core_ext/range/conversions.rb:58 def to_formatted_s(format = T.unsafe(nil)); end # Convert range to a formatted string. See RANGE_FORMATS for predefined formats. @@ -11707,11 +10875,11 @@ module ActiveSupport::RangeWithFormat # # config/initializers/range_formats.rb # Range::RANGE_FORMATS[:short] = ->(start, stop) { "Between #{start.to_fs(:db)} and #{stop.to_fs(:db)}" } # - # source://activesupport//lib/active_support/core_ext/range/conversions.rb#51 + # pkg:gem/activesupport#lib/active_support/core_ext/range/conversions.rb:51 def to_fs(format = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/range/conversions.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/range/conversions.rb:6 ActiveSupport::RangeWithFormat::RANGE_FORMATS = T.let(T.unsafe(nil), Hash) # = Active Support \Reloader @@ -11735,149 +10903,147 @@ ActiveSupport::RangeWithFormat::RANGE_FORMATS = T.let(T.unsafe(nil), Hash) # after_class_unload -- Run immediately after the classes are # unloaded. # -# source://activesupport//lib/active_support/reloader.rb#28 +# pkg:gem/activesupport#lib/active_support/reloader.rb:28 class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper - # @return [Reloader] a new instance of Reloader - # - # source://activesupport//lib/active_support/reloader.rb#99 + # pkg:gem/activesupport#lib/active_support/reloader.rb:99 def initialize; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _class_unload_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _prepare_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#912 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _run_class_unload_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#912 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _run_prepare_callbacks(&block); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check; end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check=(_arg0); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check?; end - # source://activesupport//lib/active_support/reloader.rb#126 + # pkg:gem/activesupport#lib/active_support/reloader.rb:126 def class_unload!(&block); end - # source://activesupport//lib/active_support/reloader.rb#131 + # pkg:gem/activesupport#lib/active_support/reloader.rb:131 def complete!; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor=(_arg0); end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor?; end # Release the unload lock if it has been previously obtained # - # source://activesupport//lib/active_support/reloader.rb#114 + # pkg:gem/activesupport#lib/active_support/reloader.rb:114 def release_unload_lock!; end # Acquire the ActiveSupport::Dependencies::Interlock unload lock, # ensuring it will be released automatically # - # source://activesupport//lib/active_support/reloader.rb#106 + # pkg:gem/activesupport#lib/active_support/reloader.rb:106 def require_unload_lock!; end - # source://activesupport//lib/active_support/reloader.rb#121 + # pkg:gem/activesupport#lib/active_support/reloader.rb:121 def run!; end class << self - # source://activesupport//lib/active_support/callbacks.rb#916 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _class_unload_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # pkg:gem/activesupport#lib/active_support/reloader.rb:31 def _class_unload_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _prepare_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def _prepare_callbacks=(value); end # Registers a callback that will run immediately after the classes are unloaded. # - # source://activesupport//lib/active_support/reloader.rb#44 + # pkg:gem/activesupport#lib/active_support/reloader.rb:44 def after_class_unload(*args, &block); end # Registers a callback that will run immediately before the classes are unloaded. # - # source://activesupport//lib/active_support/reloader.rb#39 + # pkg:gem/activesupport#lib/active_support/reloader.rb:39 def before_class_unload(*args, &block); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check; end - # source://activesupport//lib/active_support/reloader.rb#87 + # pkg:gem/activesupport#lib/active_support/reloader.rb:87 def check!; end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check=(value); end - # source://activesupport//lib/active_support/reloader.rb#85 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def check?; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor; end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor=(value); end - # source://activesupport//lib/active_support/reloader.rb#84 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def executor?; end - # source://activesupport//lib/active_support/reloader.rb#95 + # pkg:gem/activesupport#lib/active_support/reloader.rb:95 def prepare!; end # Initiate a manual reload # - # source://activesupport//lib/active_support/reloader.rb#51 + # pkg:gem/activesupport#lib/active_support/reloader.rb:51 def reload!; end - # source://activesupport//lib/active_support/reloader.rb#91 + # pkg:gem/activesupport#lib/active_support/reloader.rb:91 def reloaded!; end - # source://activesupport//lib/active_support/reloader.rb#62 + # pkg:gem/activesupport#lib/active_support/reloader.rb:62 def run!(reset: T.unsafe(nil)); end # Registers a callback that will run once at application startup and every time the code is reloaded. # - # source://activesupport//lib/active_support/reloader.rb#34 + # pkg:gem/activesupport#lib/active_support/reloader.rb:34 def to_prepare(*args, &block); end # Run the supplied block as a work unit, reloading code as needed # - # source://activesupport//lib/active_support/reloader.rb#71 + # pkg:gem/activesupport#lib/active_support/reloader.rb:71 def wrap(**kwargs); end private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/reloader.rb:29 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def __class_attr_check; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/reloader.rb:85 def __class_attr_check=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def __class_attr_executor; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/reloader.rb:84 def __class_attr_executor=(new_value); end end end @@ -11886,7 +11052,7 @@ end # # Rescuable module adds support for easier exception handling. # -# source://activesupport//lib/active_support/rescuable.rb#11 +# pkg:gem/activesupport#lib/active_support/rescuable.rb:11 module ActiveSupport::Rescuable extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -11897,13 +11063,13 @@ module ActiveSupport::Rescuable # Internal handler lookup. Delegates to class method. Some libraries call # this directly, so keeping it around for compatibility. # - # source://activesupport//lib/active_support/rescuable.rb#172 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:172 def handler_for_rescue(exception); end # Delegates to the class method, but uses the instance as the subject for # rescue_from handlers (method calls, +instance_exec+ blocks). # - # source://activesupport//lib/active_support/rescuable.rb#166 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:166 def rescue_with_handler(exception); end module GeneratedClassMethods @@ -11919,9 +11085,9 @@ module ActiveSupport::Rescuable end end -# source://activesupport//lib/active_support/rescuable.rb#18 +# pkg:gem/activesupport#lib/active_support/rescuable.rb:18 module ActiveSupport::Rescuable::ClassMethods - # source://activesupport//lib/active_support/rescuable.rb#105 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:105 def handler_for_rescue(exception, object: T.unsafe(nil)); end # Registers exception classes with a handler to be called by rescue_with_handler. @@ -11959,7 +11125,7 @@ module ActiveSupport::Rescuable::ClassMethods # # Exceptions raised inside exception handlers are not propagated up. # - # source://activesupport//lib/active_support/rescuable.rb#53 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:53 def rescue_from(*klasses, with: T.unsafe(nil), &block); end # Matches an exception to a handler based on the exception class. @@ -11977,252 +11143,245 @@ module ActiveSupport::Rescuable::ClassMethods # # Returns the exception if it was handled and +nil+ if it was not. # - # source://activesupport//lib/active_support/rescuable.rb#90 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:90 def rescue_with_handler(exception, object: T.unsafe(nil), visited_exceptions: T.unsafe(nil)); end private - # source://activesupport//lib/active_support/rescuable.rb#139 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:139 def constantize_rescue_handler_class(class_or_name); end - # source://activesupport//lib/active_support/rescuable.rb#124 + # pkg:gem/activesupport#lib/active_support/rescuable.rb:124 def find_rescue_handler(exception); end end -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#19 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:19 class ActiveSupport::SafeBuffer < ::String - # @return [SafeBuffer] a new instance of SafeBuffer - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#70 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:70 def initialize(str = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#123 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:123 def %(args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#116 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:116 def *(_); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#112 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:112 def +(other); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#80 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:86 def <<(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#38 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:38 def [](*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#104 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:104 def []=(arg1, arg2, arg3 = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#88 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:88 def bytesplice(*args, value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def capitalize(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def capitalize!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def chomp(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def chomp!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def chop(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def chop!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#59 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:59 def chr; end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#80 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:80 def concat(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def delete(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def delete!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def delete_prefix(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def delete_prefix!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def delete_suffix(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def delete_suffix!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def downcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def downcase!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#148 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:148 def encode_with(coder); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#169 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:168 def gsub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#180 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:168 def gsub!(*args, &block); end - # Returns the value of attribute html_safe. - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#136 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:137 def html_safe?; end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#92 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:92 def insert(index, value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def lstrip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def lstrip!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def next(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def next!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#96 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:96 def prepend(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#100 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:100 def replace(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def reverse(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def reverse!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def rstrip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def rstrip!(*args); end - # @raise [SafeConcatError] - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#65 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:65 def safe_concat(value); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def scrub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def scrub!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#38 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:49 def slice(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#51 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:51 def slice!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def squeeze(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def squeeze!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def strip(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def strip!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#169 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:168 def sub(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#180 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:168 def sub!(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def succ(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def succ!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def swapcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def swapcase!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#144 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:144 def to_param; end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#140 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:140 def to_s; end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def tr(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def tr!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def tr_s(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def tr_s!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def unicode_normalize(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def unicode_normalize!(*args); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#155 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def upcase(*args, &block); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#159 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:154 def upcase!(*args); end private - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#195 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:195 def explicit_html_escape_interpolated_argument(arg); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#199 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:199 def implicit_html_escape_interpolated_argument(arg); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:75 def initialize_copy(other); end + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:28 def original_concat(*_arg0); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#207 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:207 def set_block_back_references(block, match_data); end - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#213 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:213 def string_into_safe_buffer(new_string, is_html_safe); end end # Raised when ActiveSupport::SafeBuffer#safe_concat is called on unsafe buffers. # -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#32 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:32 class ActiveSupport::SafeBuffer::SafeConcatError < ::StandardError - # @return [SafeConcatError] a new instance of SafeConcatError - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#33 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:33 def initialize; end end -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#20 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:20 ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#26 +# pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:26 ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS_WITH_BACKREF = T.let(T.unsafe(nil), Array) # = Secure Compare Rotator @@ -12251,32 +11410,28 @@ ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS_WITH_BACKREF = T.let(T.unsafe(n # end # end # -# source://activesupport//lib/active_support/secure_compare_rotator.rb#32 +# pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:32 class ActiveSupport::SecureCompareRotator include ::ActiveSupport::SecurityUtils - # @return [SecureCompareRotator] a new instance of SecureCompareRotator - # - # source://activesupport//lib/active_support/secure_compare_rotator.rb#37 + # pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:37 def initialize(value, on_rotation: T.unsafe(nil)); end - # source://activesupport//lib/active_support/secure_compare_rotator.rb#43 + # pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:43 def rotate(previous_value); end - # source://activesupport//lib/active_support/secure_compare_rotator.rb#47 + # pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:47 def secure_compare!(other_value, on_rotation: T.unsafe(nil)); end end -# source://activesupport//lib/active_support/secure_compare_rotator.rb#35 +# pkg:gem/activesupport#lib/active_support/secure_compare_rotator.rb:35 class ActiveSupport::SecureCompareRotator::InvalidMatch < ::StandardError; end -# source://activesupport//lib/active_support/security_utils.rb#4 +# pkg:gem/activesupport#lib/active_support/security_utils.rb:4 module ActiveSupport::SecurityUtils private - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/security_utils.rb#11 + # pkg:gem/activesupport#lib/active_support/security_utils.rb:11 def fixed_length_secure_compare(a, b); end # Secure string comparison for strings of variable length. @@ -12286,23 +11441,14 @@ module ActiveSupport::SecurityUtils # the secret length. This should be considered when using secure_compare # to compare weak, short secrets to user input. # - # source://activesupport//lib/active_support/security_utils.rb#33 + # pkg:gem/activesupport#lib/active_support/security_utils.rb:33 def secure_compare(a, b); end class << self - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/security_utils.rb#11 + # pkg:gem/activesupport#lib/active_support/security_utils.rb:25 def fixed_length_secure_compare(a, b); end - # Secure string comparison for strings of variable length. - # - # While a timing attack would not be able to discern the content of - # a secret compared via secure_compare, it is possible to determine - # the secret length. This should be considered when using secure_compare - # to compare weak, short secrets to user input. - # - # source://activesupport//lib/active_support/security_utils.rb#33 + # pkg:gem/activesupport#lib/active_support/security_utils.rb:36 def secure_compare(a, b); end end end @@ -12325,16 +11471,14 @@ end # vehicle.car? # => true # vehicle.bike? # => false # -# source://activesupport//lib/active_support/string_inquirer.rb#21 +# pkg:gem/activesupport#lib/active_support/string_inquirer.rb:21 class ActiveSupport::StringInquirer < ::String private - # source://activesupport//lib/active_support/string_inquirer.rb#27 - def method_missing(method_name, *_arg1, **_arg2, &_arg3); end + # pkg:gem/activesupport#lib/active_support/string_inquirer.rb:27 + def method_missing(method_name, *, **, &); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/string_inquirer.rb#23 + # pkg:gem/activesupport#lib/active_support/string_inquirer.rb:23 def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end end @@ -12365,81 +11509,69 @@ end # # ActiveRecord::StatsSubscriber.detach_from(:active_record) # -# source://activesupport//lib/active_support/subscriber.rb#32 +# pkg:gem/activesupport#lib/active_support/subscriber.rb:32 class ActiveSupport::Subscriber - # @return [Subscriber] a new instance of Subscriber - # - # source://activesupport//lib/active_support/subscriber.rb#131 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:70 def initialize; end - # source://activesupport//lib/active_support/subscriber.rb#136 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:70 def call(event); end - # source://activesupport//lib/active_support/subscriber.rb#129 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:70 def patterns; end - # source://activesupport//lib/active_support/subscriber.rb#141 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:70 def publish_event(event); end class << self # Attach the subscriber to a namespace. # - # source://activesupport//lib/active_support/subscriber.rb#35 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:35 def attach_to(namespace, subscriber = T.unsafe(nil), notifier = T.unsafe(nil), inherit_all: T.unsafe(nil)); end # Detach the subscriber from a namespace. # - # source://activesupport//lib/active_support/subscriber.rb#50 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:50 def detach_from(namespace, notifier = T.unsafe(nil)); end # Adds event subscribers for all new methods added to the class. # - # source://activesupport//lib/active_support/subscriber.rb#69 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:69 def method_added(event); end - # source://activesupport//lib/active_support/subscriber.rb#79 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:79 def subscribers; end private - # source://activesupport//lib/active_support/subscriber.rb#86 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:86 def add_event_subscriber(event); end - # source://activesupport//lib/active_support/subscriber.rb#124 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:124 def fetch_public_methods(subscriber, inherit_all); end - # source://activesupport//lib/active_support/subscriber.rb#108 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:108 def find_attached_subscriber; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/subscriber.rb#112 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:112 def invalid_event?(event); end - # Returns the value of attribute namespace. - # - # source://activesupport//lib/active_support/subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:84 def namespace; end - # Returns the value of attribute notifier. - # - # source://activesupport//lib/active_support/subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:84 def notifier; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/subscriber.rb#120 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:120 def pattern_subscribed?(pattern); end - # source://activesupport//lib/active_support/subscriber.rb#116 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:116 def prepare_pattern(event); end - # source://activesupport//lib/active_support/subscriber.rb#97 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:97 def remove_event_subscriber(event); end - # Returns the value of attribute subscriber. - # - # source://activesupport//lib/active_support/subscriber.rb#84 + # pkg:gem/activesupport#lib/active_support/subscriber.rb:84 def subscriber; end end end @@ -12449,37 +11581,35 @@ end # source location of the syntax error. That way we can display the error # source on error pages in development. # -# source://activesupport//lib/active_support/syntax_error_proxy.rb#10 +# pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:10 class ActiveSupport::SyntaxErrorProxy - # source://activesupport//lib/active_support/syntax_error_proxy.rb#11 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:11 def backtrace; end - # source://activesupport//lib/active_support/syntax_error_proxy.rb#34 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:34 def backtrace_locations; end private - # source://activesupport//lib/active_support/syntax_error_proxy.rb#47 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:47 def parse_message_for_trace; end end -# source://activesupport//lib/active_support/syntax_error_proxy.rb#15 +# pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:15 class ActiveSupport::SyntaxErrorProxy::BacktraceLocation < ::Struct - # source://activesupport//lib/active_support/syntax_error_proxy.rb#19 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:19 def label; end - # source://activesupport//lib/active_support/syntax_error_proxy.rb#16 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:16 def spot(_); end end -# source://activesupport//lib/active_support/syntax_error_proxy.rb#23 +# pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:23 class ActiveSupport::SyntaxErrorProxy::BacktraceLocationProxy - # @return [BacktraceLocationProxy] a new instance of BacktraceLocationProxy - # - # source://activesupport//lib/active_support/syntax_error_proxy.rb#24 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:24 def initialize(loc, ex); end - # source://activesupport//lib/active_support/syntax_error_proxy.rb#29 + # pkg:gem/activesupport#lib/active_support/syntax_error_proxy.rb:29 def spot(_); end end @@ -12505,43 +11635,39 @@ end # it easy to stamp log lines with subdomains, request ids, and anything else # to aid debugging of multi-user production applications. # -# source://activesupport//lib/active_support/tagged_logging.rb#29 +# pkg:gem/activesupport#lib/active_support/tagged_logging.rb:29 module ActiveSupport::TaggedLogging - # source://activesupport//lib/active_support/tagged_logging.rb#139 - def clear_tags!(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:139 + def clear_tags!(*, **, &); end - # source://activesupport//lib/active_support/tagged_logging.rb#152 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:152 def flush; end - # source://activesupport//lib/active_support/tagged_logging.rb#139 - def pop_tags(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:139 + def pop_tags(*, **, &); end - # source://activesupport//lib/active_support/tagged_logging.rb#139 - def push_tags(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:139 + def push_tags(*, **, &); end - # source://activesupport//lib/active_support/tagged_logging.rb#141 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:141 def tagged(*tags); end class << self - # source://logstruct/0.1.12/lib/log_struct/monkey_patches/active_support/tagged_logging/formatter.rb#20 - sig { returns(T::Array[T.any(::String, ::Symbol)]) } - def current_tags; end - # Returns an `ActiveSupport::Logger` that has already been wrapped with tagged logging concern. # - # source://activesupport//lib/active_support/tagged_logging.rb#117 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:117 def logger(*args, **kwargs); end - # source://activesupport//lib/active_support/tagged_logging.rb#121 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:121 def new(logger); end end end -# source://activesupport//lib/active_support/tagged_logging.rb#30 +# pkg:gem/activesupport#lib/active_support/tagged_logging.rb:30 module ActiveSupport::TaggedLogging::Formatter # This method is invoked when a log event occurs. # - # source://logstruct/0.1.12/lib/log_struct/monkey_patches/active_support/tagged_logging/formatter.rb#30 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:32 sig do params( severity: T.any(::String, ::Symbol), @@ -12552,76 +11678,64 @@ module ActiveSupport::TaggedLogging::Formatter end def call(severity, time, progname, data); end - # source://activesupport//lib/active_support/tagged_logging.rb#51 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:51 def clear_tags!; end - # source://activesupport//lib/active_support/tagged_logging.rb#61 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:61 def current_tags; end - # source://activesupport//lib/active_support/tagged_logging.rb#47 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:47 def pop_tags(count = T.unsafe(nil)); end - # source://activesupport//lib/active_support/tagged_logging.rb#43 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:43 def push_tags(*tags); end - # source://activesupport//lib/active_support/tagged_logging.rb#55 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:55 def tag_stack; end - # source://activesupport//lib/active_support/tagged_logging.rb#36 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:36 def tagged(*tags); end - # source://activesupport//lib/active_support/tagged_logging.rb#65 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:65 def tags_text; end end -# source://activesupport//lib/active_support/tagged_logging.rb#108 +# pkg:gem/activesupport#lib/active_support/tagged_logging.rb:108 module ActiveSupport::TaggedLogging::LocalTagStorage - # Returns the value of attribute tag_stack. - # - # source://activesupport//lib/active_support/tagged_logging.rb#109 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:109 def tag_stack; end - # Sets the attribute tag_stack - # - # @param value the value to set the attribute tag_stack to. - # - # source://activesupport//lib/active_support/tagged_logging.rb#109 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:109 def tag_stack=(_arg0); end class << self - # @private - # - # source://activesupport//lib/active_support/tagged_logging.rb#111 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:111 def extended(base); end end end -# source://activesupport//lib/active_support/tagged_logging.rb#70 +# pkg:gem/activesupport#lib/active_support/tagged_logging.rb:70 class ActiveSupport::TaggedLogging::TagStack - # @return [TagStack] a new instance of TagStack - # - # source://activesupport//lib/active_support/tagged_logging.rb#73 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:73 def initialize; end - # source://activesupport//lib/active_support/tagged_logging.rb#91 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:91 def clear; end - # source://activesupport//lib/active_support/tagged_logging.rb#96 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:96 def format_message(message); end - # source://activesupport//lib/active_support/tagged_logging.rb#86 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:86 def pop_tags(count); end - # source://activesupport//lib/active_support/tagged_logging.rb#78 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:78 def push_tags(tags); end - # Returns the value of attribute tags. - # - # source://activesupport//lib/active_support/tagged_logging.rb#71 + # pkg:gem/activesupport#lib/active_support/tagged_logging.rb:71 def tags; end end -# source://activesupport//lib/active_support/test_case.rb#21 +# pkg:gem/activesupport#lib/active_support/test_case.rb:21 class ActiveSupport::TestCase < ::Minitest::Test include ::ActiveSupport::Testing::SetupAndTeardown include ::ActiveSupport::Testing::TestsWithoutAssertions @@ -12638,98 +11752,98 @@ class ActiveSupport::TestCase < ::Minitest::Test extend ::ActiveSupport::Testing::SetupAndTeardown::ClassMethods extend ::ActiveSupport::Testing::Declarative - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#912 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def _run_setup_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#912 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def _run_teardown_callbacks(&block); end - # source://activesupport//lib/active_support/callbacks.rb#924 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def _setup_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#924 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def _teardown_callbacks; end - # source://minitest/5.25.4/lib/minitest/assertions.rb#731 + # pkg:gem/activesupport#lib/active_support/test_case.rb:247 def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#660 + # pkg:gem/activesupport#lib/active_support/test_case.rb:170 def assert_not_empty(obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#671 + # pkg:gem/activesupport#lib/active_support/test_case.rb:181 def assert_not_equal(exp, act, msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#683 + # pkg:gem/activesupport#lib/active_support/test_case.rb:192 def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#695 - def assert_not_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end + # pkg:gem/activesupport#lib/active_support/test_case.rb:203 + def assert_not_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#702 + # pkg:gem/activesupport#lib/active_support/test_case.rb:214 def assert_not_includes(collection, obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#713 + # pkg:gem/activesupport#lib/active_support/test_case.rb:225 def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#723 + # pkg:gem/activesupport#lib/active_support/test_case.rb:236 def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#741 + # pkg:gem/activesupport#lib/active_support/test_case.rb:258 def assert_not_nil(obj, msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#776 + # pkg:gem/activesupport#lib/active_support/test_case.rb:269 def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#799 + # pkg:gem/activesupport#lib/active_support/test_case.rb:280 def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#808 + # pkg:gem/activesupport#lib/active_support/test_case.rb:291 def assert_not_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end - # source://minitest/5.25.4/lib/minitest/assertions.rb#817 + # pkg:gem/activesupport#lib/active_support/test_case.rb:302 def assert_not_same(exp, act, msg = T.unsafe(nil)); end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # pkg:gem/activesupport#lib/active_support/test_case.rb:158 def file_fixture_path; end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # pkg:gem/activesupport#lib/active_support/test_case.rb:158 def file_fixture_path?; end - # source://activesupport//lib/active_support/test_case.rb#306 + # pkg:gem/activesupport#lib/active_support/test_case.rb:306 def inspect; end - # source://minitest/5.25.4/lib/minitest.rb#376 + # pkg:gem/activesupport#lib/active_support/test_case.rb:148 def method_name; end class << self - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def __callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#69 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def __callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def _setup_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def _setup_callbacks=(value); end - # source://activesupport//lib/active_support/callbacks.rb#916 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def _teardown_callbacks; end - # source://activesupport//lib/active_support/callbacks.rb#920 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def _teardown_callbacks=(value); end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # pkg:gem/activesupport#lib/active_support/test_case.rb:158 def file_fixture_path; end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # pkg:gem/activesupport#lib/active_support/test_case.rb:158 def file_fixture_path=(value); end - # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 + # pkg:gem/activesupport#lib/active_support/test_case.rb:158 def file_fixture_path?; end # Parallelizes the test suite. @@ -12766,7 +11880,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # number of tests to run is above the +threshold+ param. The default value is # 50, and it's configurable via +config.active_support.test_parallelization_threshold+. # - # source://activesupport//lib/active_support/test_case.rb#87 + # pkg:gem/activesupport#lib/active_support/test_case.rb:87 def parallelize(workers: T.unsafe(nil), with: T.unsafe(nil), threshold: T.unsafe(nil)); end # Set up hook for parallel testing. This can be used if you have multiple @@ -12783,7 +11897,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # end # end # - # source://activesupport//lib/active_support/test_case.rb#107 + # pkg:gem/activesupport#lib/active_support/test_case.rb:107 def parallelize_setup(&block); end # Clean up hook for parallel testing. This can be used to drop databases @@ -12800,7 +11914,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # end # end # - # source://activesupport//lib/active_support/test_case.rb#124 + # pkg:gem/activesupport#lib/active_support/test_case.rb:124 def parallelize_teardown(&block); end # Returns the order in which test cases are run. @@ -12810,7 +11924,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # Possible values are +:random+, +:parallel+, +:alpha+, +:sorted+. # Defaults to +:random+. # - # source://activesupport//lib/active_support/test_case.rb#44 + # pkg:gem/activesupport#lib/active_support/test_case.rb:44 def test_order; end # Sets the order in which test cases are run. @@ -12823,32 +11937,32 @@ class ActiveSupport::TestCase < ::Minitest::Test # * +:sorted+ (to run tests alphabetically by method name) # * +:alpha+ (equivalent to +:sorted+) # - # source://activesupport//lib/active_support/test_case.rb#34 + # pkg:gem/activesupport#lib/active_support/test_case.rb:34 def test_order=(new_order); end private - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def __class_attr___callbacks; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/test_case.rb:151 def __class_attr___callbacks=(new_value); end - # source://activesupport//lib/active_support/class_attribute.rb#15 + # pkg:gem/activesupport#lib/active_support/test_case.rb:158 def __class_attr_file_fixture_path; end - # source://activesupport//lib/active_support/class_attribute.rb#17 + # pkg:gem/activesupport#lib/active_support/test_case.rb:158 def __class_attr_file_fixture_path=(new_value); end end end -# source://activesupport//lib/active_support/test_case.rb#22 +# pkg:gem/activesupport#lib/active_support/test_case.rb:22 ActiveSupport::TestCase::Assertion = Minitest::Assertion -# source://activesupport//lib/active_support/testing/tagged_logging.rb#4 +# pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:4 module ActiveSupport::Testing; end -# source://activesupport//lib/active_support/testing/assertions.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/assertions.rb:7 module ActiveSupport::Testing::Assertions # Assertion that the result of evaluating an expression is changed before # and after invoking the passed in block. @@ -12885,7 +11999,7 @@ module ActiveSupport::Testing::Assertions # post :create, params: { status: { incident: true } } # end # - # source://activesupport//lib/active_support/testing/assertions.rb#196 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:196 def assert_changes(expression, message = T.unsafe(nil), from: T.unsafe(nil), to: T.unsafe(nil), &block); end # Test numeric difference between the return value of an expression as a @@ -12936,7 +12050,7 @@ module ActiveSupport::Testing::Assertions # post :delete, params: { id: ... } # end # - # source://activesupport//lib/active_support/testing/assertions.rb#101 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:101 def assert_difference(expression, *args, &block); end # Assertion that the result of evaluating an expression is not changed before @@ -12959,7 +12073,7 @@ module ActiveSupport::Testing::Assertions # post :create, params: { status: { ok: false } } # end # - # source://activesupport//lib/active_support/testing/assertions.rb#253 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:253 def assert_no_changes(expression, message = T.unsafe(nil), from: T.unsafe(nil), &block); end # Assertion that the numeric result of evaluating an expression is not @@ -12987,7 +12101,7 @@ module ActiveSupport::Testing::Assertions # post :create, params: { article: invalid_attributes } # end # - # source://activesupport//lib/active_support/testing/assertions.rb#158 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:158 def assert_no_difference(expression, message = T.unsafe(nil), &block); end # Asserts that an expression is not truthy. Passes if +object+ is +nil+ or @@ -13002,7 +12116,7 @@ module ActiveSupport::Testing::Assertions # # assert_not foo, 'foo should be false' # - # source://activesupport//lib/active_support/testing/assertions.rb#21 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:21 def assert_not(object, message = T.unsafe(nil)); end # Assertion that the block should not raise an exception. @@ -13013,18 +12127,10 @@ module ActiveSupport::Testing::Assertions # perform_service(param: 'no_exception') # end # - # source://activesupport//lib/active_support/testing/assertions.rb#48 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:48 def assert_nothing_raised; end - # Asserts that a block raises one of +exp+. This is an enhancement of the - # standard Minitest assertion method with the ability to test error - # messages. - # - # assert_raises(ArgumentError, match: /incorrect param/i) do - # perform_service(param: 'exception') - # end - # - # source://activesupport//lib/active_support/testing/assertions.rb#34 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:39 def assert_raise(*exp, match: T.unsafe(nil), &block); end # Asserts that a block raises one of +exp+. This is an enhancement of the @@ -13035,19 +12141,19 @@ module ActiveSupport::Testing::Assertions # perform_service(param: 'exception') # end # - # source://activesupport//lib/active_support/testing/assertions.rb#34 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:34 def assert_raises(*exp, match: T.unsafe(nil), &block); end private - # source://activesupport//lib/active_support/testing/assertions.rb#288 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:288 def _assert_nothing_raised_or_warn(assertion, &block); end - # source://activesupport//lib/active_support/testing/assertions.rb#303 + # pkg:gem/activesupport#lib/active_support/testing/assertions.rb:303 def _callable_to_source_string(callable); end end -# source://activesupport//lib/active_support/testing/assertions.rb#8 +# pkg:gem/activesupport#lib/active_support/testing/assertions.rb:8 ActiveSupport::Testing::Assertions::UNTRACKED = T.let(T.unsafe(nil), Object) # Resolves a constant from a minitest spec name. @@ -13075,20 +12181,20 @@ ActiveSupport::Testing::Assertions::UNTRACKED = T.let(T.unsafe(nil), Object) # Class === constant && constant < ::ActionController::Metal # end # -# source://activesupport//lib/active_support/testing/constant_lookup.rb#32 +# pkg:gem/activesupport#lib/active_support/testing/constant_lookup.rb:32 module ActiveSupport::Testing::ConstantLookup extend ::ActiveSupport::Concern mixes_in_class_methods ::ActiveSupport::Testing::ConstantLookup::ClassMethods end -# source://activesupport//lib/active_support/testing/constant_lookup.rb#35 +# pkg:gem/activesupport#lib/active_support/testing/constant_lookup.rb:35 module ActiveSupport::Testing::ConstantLookup::ClassMethods - # source://activesupport//lib/active_support/testing/constant_lookup.rb#36 + # pkg:gem/activesupport#lib/active_support/testing/constant_lookup.rb:36 def determine_constant_from_test_name(test_name); end end -# source://activesupport//lib/active_support/testing/constant_stubbing.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/constant_stubbing.rb:5 module ActiveSupport::Testing::ConstantStubbing # Changes the value of a constant for the duration of a block. Example: # @@ -13113,11 +12219,11 @@ module ActiveSupport::Testing::ConstantStubbing # (like separate test suites running in parallel) that all depend on the same constant, it's possible # divergent stubbing will trample on each other. # - # source://activesupport//lib/active_support/testing/constant_stubbing.rb#28 + # pkg:gem/activesupport#lib/active_support/testing/constant_stubbing.rb:28 def stub_const(mod, constant, new_value, exists: T.unsafe(nil)); end end -# source://activesupport//lib/active_support/testing/declarative.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/declarative.rb:5 module ActiveSupport::Testing::Declarative # Helper to define a test method using a String. Under the hood, it replaces # spaces with underscores and defines the test method. @@ -13126,11 +12232,11 @@ module ActiveSupport::Testing::Declarative # ... # end # - # source://activesupport//lib/active_support/testing/declarative.rb#13 + # pkg:gem/activesupport#lib/active_support/testing/declarative.rb:13 def test(name, &block); end end -# source://activesupport//lib/active_support/testing/deprecation.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/deprecation.rb:7 module ActiveSupport::Testing::Deprecation # :call-seq: # assert_deprecated(deprecator, &block) @@ -13154,7 +12260,7 @@ module ActiveSupport::Testing::Deprecation # CustomDeprecator.warn "foo should no longer be used" # end # - # source://activesupport//lib/active_support/testing/deprecation.rb#30 + # pkg:gem/activesupport#lib/active_support/testing/deprecation.rb:30 def assert_deprecated(match = T.unsafe(nil), deprecator = T.unsafe(nil), &block); end # Asserts that no deprecation warnings are emitted by the given deprecator during the execution of the yielded block. @@ -13167,7 +12273,7 @@ module ActiveSupport::Testing::Deprecation # CustomDeprecator.warn "message" # passes assertion, different deprecator # end # - # source://activesupport//lib/active_support/testing/deprecation.rb#55 + # pkg:gem/activesupport#lib/active_support/testing/deprecation.rb:55 def assert_not_deprecated(deprecator, &block); end # Returns the return value of the block and an array of all the deprecation warnings emitted by the given @@ -13179,11 +12285,11 @@ module ActiveSupport::Testing::Deprecation # :result # end # => [:result, ["message"]] # - # source://activesupport//lib/active_support/testing/deprecation.rb#69 + # pkg:gem/activesupport#lib/active_support/testing/deprecation.rb:69 def collect_deprecations(deprecator); end end -# source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:5 module ActiveSupport::Testing::ErrorReporterAssertions # Assertion that the block should cause at least one exception to be reported # to +Rails.error+. @@ -13205,7 +12311,7 @@ module ActiveSupport::Testing::ErrorReporterAssertions # assert_equal :warning, report.severity # assert_predicate report, :handled? # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#88 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:88 def assert_error_reported(error_class = T.unsafe(nil), &block); end # Assertion that the block should not cause an exception to be reported @@ -13217,93 +12323,75 @@ module ActiveSupport::Testing::ErrorReporterAssertions # perform_service(param: 'no_exception') # end # - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#62 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:62 def assert_no_error_reported(&block); end end -# source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#6 +# pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:6 module ActiveSupport::Testing::ErrorReporterAssertions::ErrorCollector class << self - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#16 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:16 def record; end - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#29 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:29 def report(error, **kwargs); end private - # source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#38 + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:38 def subscribe; end end end -# source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#10 +# pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 class ActiveSupport::Testing::ErrorReporterAssertions::ErrorCollector::Report < ::Struct - # Returns the value of attribute context - # - # @return [Object] the current value of context + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def context; end - # Sets the attribute context - # - # @param value [Object] the value to set the attribute context to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def context=(_); end - # Returns the value of attribute error - # - # @return [Object] the current value of error + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def error; end - # Sets the attribute error - # - # @param value [Object] the value to set the attribute error to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def error=(_); end - # Returns the value of attribute handled - # - # @return [Object] the current value of handled + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def handled; end - # Sets the attribute handled - # - # @param value [Object] the value to set the attribute handled to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def handled=(_); end - # Returns the value of attribute handled - # - # @return [Object] the current value of handled + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:12 def handled?; end - # Returns the value of attribute severity - # - # @return [Object] the current value of severity + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def severity; end - # Sets the attribute severity - # - # @param value [Object] the value to set the attribute severity to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def severity=(_); end - # Returns the value of attribute source - # - # @return [Object] the current value of source + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def source; end - # Sets the attribute source - # - # @param value [Object] the value to set the attribute source to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def source=(_); end class << self + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def [](*_arg0); end + + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def inspect; end + + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def keyword_init?; end + + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def members; end + + # pkg:gem/activesupport#lib/active_support/testing/error_reporter_assertions.rb:10 def new(*_arg0); end end end @@ -13318,7 +12406,7 @@ end # file_fixture("example.txt").read # get the file's content # file_fixture("example.mp3").size # get the file size # -# source://activesupport//lib/active_support/testing/file_fixtures.rb#16 +# pkg:gem/activesupport#lib/active_support/testing/file_fixtures.rb:16 module ActiveSupport::Testing::FileFixtures extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -13329,7 +12417,7 @@ module ActiveSupport::Testing::FileFixtures # # Raises +ArgumentError+ if +fixture_name+ can't be found. # - # source://activesupport//lib/active_support/testing/file_fixtures.rb#26 + # pkg:gem/activesupport#lib/active_support/testing/file_fixtures.rb:26 def file_fixture(fixture_name); end module GeneratedClassMethods @@ -13344,246 +12432,224 @@ module ActiveSupport::Testing::FileFixtures end end -# source://activesupport//lib/active_support/testing/isolation.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:7 module ActiveSupport::Testing::Isolation include ::ActiveSupport::Testing::Isolation::Forking - # source://activesupport//lib/active_support/testing/isolation.rb#20 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:20 def run; end class << self - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/isolation.rb#16 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:16 def forking_env?; end - # source://activesupport//lib/active_support/testing/isolation.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:10 def included(klass); end end end -# source://activesupport//lib/active_support/testing/isolation.rb#35 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:35 module ActiveSupport::Testing::Isolation::Forking - # source://activesupport//lib/active_support/testing/isolation.rb#36 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:36 def run_in_isolation(&blk); end end -# source://activesupport//lib/active_support/testing/isolation.rb#73 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:73 module ActiveSupport::Testing::Isolation::Subprocess # Complicated H4X to get this working in Windows / JRuby with # no forking. # - # source://activesupport//lib/active_support/testing/isolation.rb#78 + # pkg:gem/activesupport#lib/active_support/testing/isolation.rb:78 def run_in_isolation(&blk); end end -# source://activesupport//lib/active_support/testing/isolation.rb#74 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:74 ActiveSupport::Testing::Isolation::Subprocess::ORIG_ARGV = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/testing/isolation.rb#8 +# pkg:gem/activesupport#lib/active_support/testing/isolation.rb:8 class ActiveSupport::Testing::Isolation::SubprocessCrashed < ::StandardError; end -# source://activesupport//lib/active_support/testing/parallelization/server.rb#8 +# pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:8 class ActiveSupport::Testing::Parallelization - # @return [Parallelization] a new instance of Parallelization - # - # source://activesupport//lib/active_support/testing/parallelization.rb#28 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:28 def initialize(worker_count); end - # source://activesupport//lib/active_support/testing/parallelization.rb#41 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:41 def <<(work); end - # source://activesupport//lib/active_support/testing/parallelization.rb#18 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:18 def after_fork_hooks; end - # source://activesupport//lib/active_support/testing/parallelization.rb#26 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:26 def run_cleanup_hooks; end - # source://activesupport//lib/active_support/testing/parallelization.rb#49 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:49 def shutdown; end - # source://activesupport//lib/active_support/testing/parallelization.rb#45 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:45 def size; end - # source://activesupport//lib/active_support/testing/parallelization.rb#35 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:35 def start; end class << self - # source://activesupport//lib/active_support/testing/parallelization.rb#14 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:14 def after_fork_hook(&blk); end - # source://activesupport//lib/active_support/testing/parallelization.rb#18 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:18 def after_fork_hooks; end - # source://activesupport//lib/active_support/testing/parallelization.rb#22 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:22 def run_cleanup_hook(&blk); end - # source://activesupport//lib/active_support/testing/parallelization.rb#26 + # pkg:gem/activesupport#lib/active_support/testing/parallelization.rb:26 def run_cleanup_hooks; end end end -# source://activesupport//lib/active_support/testing/parallelization/server.rb#9 +# pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 class ActiveSupport::Testing::Parallelization::PrerecordResultClass < ::Struct - # Returns the value of attribute name - # - # @return [Object] the current value of name + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def name; end - # Sets the attribute name - # - # @param value [Object] the value to set the attribute name to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def name=(_); end class << self + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def [](*_arg0); end + + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def inspect; end + + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def keyword_init?; end + + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def members; end + + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:9 def new(*_arg0); end end end -# source://activesupport//lib/active_support/testing/parallelization/server.rb#11 +# pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:11 class ActiveSupport::Testing::Parallelization::Server include ::DRb::DRbUndumped - # @return [Server] a new instance of Server - # - # source://activesupport//lib/active_support/testing/parallelization/server.rb#14 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:14 def initialize; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#32 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:32 def <<(o); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/parallelization/server.rb#64 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:64 def active_workers?; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#68 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:68 def interrupt; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#37 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:37 def pop; end - # @raise [DRb::DRbConnError] - # - # source://activesupport//lib/active_support/testing/parallelization/server.rb#21 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:21 def record(reporter, result); end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#54 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:54 def remove_dead_workers(dead_pids); end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#72 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:72 def shutdown; end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#44 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:44 def start_worker(worker_id, worker_pid); end - # source://activesupport//lib/active_support/testing/parallelization/server.rb#49 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/server.rb:49 def stop_worker(worker_id, worker_pid); end end -# source://activesupport//lib/active_support/testing/parallelization/worker.rb#6 +# pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:6 class ActiveSupport::Testing::Parallelization::Worker - # @return [Worker] a new instance of Worker - # - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#7 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:7 def initialize(number, url); end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#84 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:84 def after_fork; end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#42 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:42 def perform_job(job); end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#90 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:90 def run_cleanup; end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#60 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:60 def safe_record(reporter, result); end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#14 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:14 def start; end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#36 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:36 def work_from_queue; end private - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#97 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:97 def add_setup_exception(result); end - # source://activesupport//lib/active_support/testing/parallelization/worker.rb#101 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:101 def set_process_title(status); end end -# source://activesupport//lib/active_support/testing/parallelize_executor.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:5 class ActiveSupport::Testing::ParallelizeExecutor - # @return [ParallelizeExecutor] a new instance of ParallelizeExecutor - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#8 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:8 def initialize(size:, with:, threshold: T.unsafe(nil)); end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#22 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:22 def <<(work); end - # Returns the value of attribute parallelize_with. - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#6 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:6 def parallelize_with; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#26 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:26 def shutdown; end - # Returns the value of attribute size. - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#6 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:6 def size; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#15 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:15 def start; end - # Returns the value of attribute threshold. - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#6 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:6 def threshold; end private - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#35 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:35 def build_parallel_executor; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#72 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:72 def execution_info; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#60 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:60 def many_workers?; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#31 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:31 def parallel_executor; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#47 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:47 def parallelize; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#52 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:52 def parallelized?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#56 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:56 def should_parallelize?; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#68 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:68 def show_execution_info; end - # source://activesupport//lib/active_support/testing/parallelize_executor.rb#64 + # pkg:gem/activesupport#lib/active_support/testing/parallelize_executor.rb:64 def tests_count; end end @@ -13601,40 +12667,38 @@ end # end # end # -# source://activesupport//lib/active_support/testing/setup_and_teardown.rb#20 +# pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:20 module ActiveSupport::Testing::SetupAndTeardown - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#44 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:44 def after_teardown; end - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#39 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:39 def before_setup; end class << self - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#21 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:21 def prepended(klass); end end end -# source://activesupport//lib/active_support/testing/setup_and_teardown.rb#27 +# pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:27 module ActiveSupport::Testing::SetupAndTeardown::ClassMethods # Add a callback, which runs before TestCase#setup. # - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#29 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:29 def setup(*args, &block); end # Add a callback, which runs after TestCase#teardown. # - # source://activesupport//lib/active_support/testing/setup_and_teardown.rb#34 + # pkg:gem/activesupport#lib/active_support/testing/setup_and_teardown.rb:34 def teardown(*args, &block); end end # Manages stubs for TimeHelpers # -# source://activesupport//lib/active_support/testing/time_helpers.rb#9 +# pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:9 class ActiveSupport::Testing::SimpleStubs - # @return [SimpleStubs] a new instance of SimpleStubs - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#12 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:12 def initialize; end # Stubs object.method_name with the given block @@ -13645,107 +12709,99 @@ class ActiveSupport::Testing::SimpleStubs # simple_stubs.stub_object(Time, :now) { at(target.to_i) } # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#23 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:23 def stub_object(object, method_name, &block); end # Returns true if any stubs are set, false if there are none # - # @return [Boolean] - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#53 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:53 def stubbed?; end # Returns the Stub for object#method_name # (nil if it is not stubbed) # - # source://activesupport//lib/active_support/testing/time_helpers.rb#48 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:48 def stubbing(object, method_name); end # Remove all object-method stubs held by this instance # - # source://activesupport//lib/active_support/testing/time_helpers.rb#37 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:37 def unstub_all!; end private # Restores the original object.method described by the Stub # - # source://activesupport//lib/active_support/testing/time_helpers.rb#59 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:59 def unstub_object(stub); end end -# source://activesupport//lib/active_support/testing/time_helpers.rb#10 +# pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 class ActiveSupport::Testing::SimpleStubs::Stub < ::Struct - # Returns the value of attribute method_name - # - # @return [Object] the current value of method_name + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def method_name; end - # Sets the attribute method_name - # - # @param value [Object] the value to set the attribute method_name to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def method_name=(_); end - # Returns the value of attribute object - # - # @return [Object] the current value of object + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def object; end - # Sets the attribute object - # - # @param value [Object] the value to set the attribute object to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def object=(_); end - # Returns the value of attribute original_method - # - # @return [Object] the current value of original_method + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def original_method; end - # Sets the attribute original_method - # - # @param value [Object] the value to set the attribute original_method to. - # @return [Object] the newly set value + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def original_method=(_); end class << self + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def [](*_arg0); end + + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def inspect; end + + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def keyword_init?; end + + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def members; end + + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:10 def new(*_arg0); end end end -# source://activesupport//lib/active_support/testing/stream.rb#5 +# pkg:gem/activesupport#lib/active_support/testing/stream.rb:5 module ActiveSupport::Testing::Stream private - # source://activesupport//lib/active_support/testing/stream.rb#23 + # pkg:gem/activesupport#lib/active_support/testing/stream.rb:23 def capture(stream); end - # source://activesupport//lib/active_support/testing/stream.rb#17 + # pkg:gem/activesupport#lib/active_support/testing/stream.rb:17 def quietly(&block); end - # source://activesupport//lib/active_support/testing/stream.rb#7 + # pkg:gem/activesupport#lib/active_support/testing/stream.rb:7 def silence_stream(stream); end end # Logs a "PostsControllerTest: test name" heading before each test to # make test.log easier to search and follow along with. # -# source://activesupport//lib/active_support/testing/tagged_logging.rb#7 +# pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:7 module ActiveSupport::Testing::TaggedLogging - # source://activesupport//lib/active_support/testing/tagged_logging.rb#10 + # pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:10 def before_setup; end - # source://activesupport//lib/active_support/testing/tagged_logging.rb#8 + # pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:8 def tagged_logger=(_arg0); end private - # source://activesupport//lib/active_support/testing/tagged_logging.rb#22 + # pkg:gem/activesupport#lib/active_support/testing/tagged_logging.rb:22 def tagged_logger; end end @@ -13753,17 +12809,17 @@ end # # This is helpful in detecting broken tests that do not perform intended assertions. # -# source://activesupport//lib/active_support/testing/tests_without_assertions.rb#8 +# pkg:gem/activesupport#lib/active_support/testing/tests_without_assertions.rb:8 module ActiveSupport::Testing::TestsWithoutAssertions - # source://activesupport//lib/active_support/testing/tests_without_assertions.rb#9 + # pkg:gem/activesupport#lib/active_support/testing/tests_without_assertions.rb:9 def after_teardown; end end # Contains helpers that help you test passage of time. # -# source://activesupport//lib/active_support/testing/time_helpers.rb#68 +# pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:68 module ActiveSupport::Testing::TimeHelpers - # source://activesupport//lib/active_support/testing/time_helpers.rb#69 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:69 def after_teardown; end # Calls +travel_to+ with +Time.now+. Forwards optional with_usec argument. @@ -13783,7 +12839,7 @@ module ActiveSupport::Testing::TimeHelpers # end # Time.current # => Sun, 09 Jul 2017 15:34:50 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#257 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:257 def freeze_time(with_usec: T.unsafe(nil), &block); end # Changes current time to the time in the future or in the past by a given time difference by @@ -13810,7 +12866,7 @@ module ActiveSupport::Testing::TimeHelpers # end # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#97 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:97 def travel(duration, with_usec: T.unsafe(nil), &block); end # Returns the current time back to its original state, by removing the stubs added by @@ -13837,7 +12893,7 @@ module ActiveSupport::Testing::TimeHelpers # # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#231 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:231 def travel_back; end # Changes current time to the given time by stubbing +Time.now+, +Time.new+, @@ -13873,51 +12929,21 @@ module ActiveSupport::Testing::TimeHelpers # end # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 # - # source://activesupport//lib/active_support/testing/time_helpers.rb#133 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:133 def travel_to(date_or_time, with_usec: T.unsafe(nil)); end - # Returns the current time back to its original state, by removing the stubs added by - # +travel+, +travel_to+, and +freeze_time+. - # - # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 - # - # travel_to Time.zone.local(2004, 11, 24, 1, 4, 44) - # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 - # - # travel_back - # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 - # - # This method also accepts a block, which brings the stubs back at the end of the block: - # - # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 - # - # travel_to Time.zone.local(2004, 11, 24, 1, 4, 44) - # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 - # - # travel_back do - # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 - # end - # - # Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00 - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#231 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:239 def unfreeze_time; end private - # Returns the value of attribute in_block. - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#266 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:266 def in_block; end - # Sets the attribute in_block - # - # @param value the value to set the attribute in_block to. - # - # source://activesupport//lib/active_support/testing/time_helpers.rb#266 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:266 def in_block=(_arg0); end - # source://activesupport//lib/active_support/testing/time_helpers.rb#262 + # pkg:gem/activesupport#lib/active_support/testing/time_helpers.rb:262 def simple_stubs; end end @@ -13955,14 +12981,12 @@ end # t.is_a?(Time) # => true # t.is_a?(ActiveSupport::TimeWithZone) # => true # -# source://activesupport//lib/active_support/time_with_zone.rb#44 +# pkg:gem/activesupport#lib/active_support/time_with_zone.rb:44 class ActiveSupport::TimeWithZone include ::DateAndTime::Compatibility include ::Comparable - # @return [TimeWithZone] a new instance of TimeWithZone - # - # source://activesupport//lib/active_support/time_with_zone.rb#51 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:51 def initialize(utc_time, time_zone, local_time = T.unsafe(nil), period = T.unsafe(nil)); end # Adds an interval of time to the current object's time and returns that @@ -13982,7 +13006,7 @@ class ActiveSupport::TimeWithZone # now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00 # now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00 # - # source://activesupport//lib/active_support/time_with_zone.rb#298 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:298 def +(other); end # Subtracts an interval of time and returns a new TimeWithZone object unless @@ -14008,19 +13032,17 @@ class ActiveSupport::TimeWithZone # # Time.zone.now - 1.day.ago # => 86399.999967 # - # source://activesupport//lib/active_support/time_with_zone.rb#341 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:341 def -(other); end # Use the time in UTC for comparisons. # - # source://activesupport//lib/active_support/time_with_zone.rb#231 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:231 def <=>(other); end # So that +self+ acts_like?(:time). # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#504 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:504 def acts_like_time?; end # Uses Date to provide precise Time calculations for years, months, and days @@ -14045,9 +13067,10 @@ class ActiveSupport::TimeWithZone # now.advance(months: 1) # => Tue, 02 Dec 2014 01:26:28.558049687 EST -05:00 # now.advance(years: 1) # => Mon, 02 Nov 2015 01:26:28.558049687 EST -05:00 # - # source://activesupport//lib/active_support/time_with_zone.rb#430 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:430 def advance(options); end + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:235 def after?(_arg0); end # Subtracts an interval of time from the current object's time and returns @@ -14068,7 +13091,7 @@ class ActiveSupport::TimeWithZone # now.ago(24.hours) # => Sun, 02 Nov 2014 01:26:28.725182881 EDT -04:00 # now.ago(1.day) # => Sun, 02 Nov 2014 00:26:28.725182881 EDT -04:00 # - # source://activesupport//lib/active_support/time_with_zone.rb#369 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:369 def ago(other); end # Coerces time to a string for JSON encoding. The default format is ISO 8601. @@ -14084,24 +13107,21 @@ class ActiveSupport::TimeWithZone # Time.utc(2005,2,1,15,15,10).in_time_zone("Hawaii").as_json # # => "2005/02/01 05:15:10 -1000" # - # source://activesupport//lib/active_support/time_with_zone.rb#166 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:166 def as_json(options = T.unsafe(nil)); end + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:234 def before?(_arg0); end # Returns true if the current object's time is within the specified # +min+ and +max+ time. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#239 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:239 def between?(min, max); end # An instance of ActiveSupport::TimeWithZone is never blank # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#515 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:515 def blank?; end # Returns a new +ActiveSupport::TimeWithZone+ where one or more of the elements have @@ -14122,15 +13142,13 @@ class ActiveSupport::TimeWithZone # t.change(offset: "-10:00") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00 # t.change(zone: "Hawaii") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00 # - # source://activesupport//lib/active_support/time_with_zone.rb#390 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:390 def change(options); end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#63 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:66 def comparable_time; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def day; end # Returns true if the current time is within Daylight Savings \Time for the @@ -14140,19 +13158,15 @@ class ActiveSupport::TimeWithZone # Time.zone.parse("2012-5-30").dst? # => true # Time.zone.parse("2012-11-30").dst? # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#94 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:94 def dst?; end - # source://activesupport//lib/active_support/time_with_zone.rb#178 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:178 def encode_with(coder); end # Returns +true+ if +other+ is equal to current object. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#274 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:274 def eql?(other); end # Returns a formatted string of the offset from UTC, or an alternative @@ -14164,65 +13178,42 @@ class ActiveSupport::TimeWithZone # Time.zone = 'UTC' # => "UTC" # Time.zone.now.formatted_offset(true, "0") # => "0" # - # source://activesupport//lib/active_support/time_with_zone.rb#125 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:125 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#523 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:523 def freeze; end # Returns true if the current object's time is in the future. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#269 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:269 def future?; end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#63 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:67 def getgm; end - # Returns a Time instance of the simultaneous time in the system timezone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#83 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:86 def getlocal(utc_offset = T.unsafe(nil)); end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#63 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:68 def getutc; end - # Returns true if the current time zone is set to UTC. - # - # Time.zone = 'UTC' # => 'UTC' - # Time.zone.now.utc? # => true - # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' - # Time.zone.now.utc? # => false - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#105 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:108 def gmt?; end - # Returns the offset from current time to UTC time in seconds. - # - # source://activesupport//lib/active_support/time_with_zone.rb#111 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:114 def gmt_offset; end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#63 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:69 def gmtime; end - # Returns the offset from current time to UTC time in seconds. - # - # source://activesupport//lib/active_support/time_with_zone.rb#111 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:115 def gmtoff; end - # source://activesupport//lib/active_support/time_with_zone.rb#278 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:278 def hash; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def hour; end # Returns a string of the object's date and time in the format used by @@ -14230,149 +13221,96 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.httpdate # => "Tue, 01 Jan 2013 04:39:43 GMT" # - # source://activesupport//lib/active_support/time_with_zone.rb#186 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:186 def httpdate; end - # Adds an interval of time to the current object's time and returns that - # value as a new TimeWithZone object. - # - # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' - # now = Time.zone.now # => Sun, 02 Nov 2014 01:26:28.725182881 EDT -04:00 - # now + 1000 # => Sun, 02 Nov 2014 01:43:08.725182881 EDT -04:00 - # - # If we're adding a Duration of variable length (i.e., years, months, days), - # move forward from #time, otherwise move forward from #utc, for accuracy - # when moving across DST boundaries. - # - # For instance, a time + 24.hours will advance exactly 24 hours, while a - # time + 1.day will advance 23-25 hours, depending on the day. - # - # now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00 - # now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00 - # - # source://activesupport//lib/active_support/time_with_zone.rb#298 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:316 def in(other); end # Returns the simultaneous time in Time.zone, or the specified zone. # - # source://activesupport//lib/active_support/time_with_zone.rb#77 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:77 def in_time_zone(new_zone = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#174 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:174 def init_with(coder); end # Returns a string of the object's date, time, zone, and offset from UTC. # # Time.zone.now.inspect # => "2024-11-13 07:00:10.528054960 UTC +00:00" # - # source://activesupport//lib/active_support/time_with_zone.rb#140 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:140 def inspect; end # Say we're a Time to thwart type checking. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#509 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:509 def is_a?(klass); end - # Returns true if the current time is within Daylight Savings \Time for the - # specified time zone. - # - # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' - # Time.zone.parse("2012-5-30").dst? # => true - # Time.zone.parse("2012-11-30").dst? # => false - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#94 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:97 def isdst; end - # Returns a string of the object's date and time in the ISO 8601 standard - # format. - # - # Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00" - # - # source://activesupport//lib/active_support/time_with_zone.rb#148 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:151 def iso8601(fraction_digits = T.unsafe(nil)); end - # Say we're a Time to thwart type checking. - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#509 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:512 def kind_of?(klass); end # Returns a Time instance of the simultaneous time in the system timezone. # - # source://activesupport//lib/active_support/time_with_zone.rb#83 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:83 def localtime(utc_offset = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#529 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:529 def marshal_dump; end - # source://activesupport//lib/active_support/time_with_zone.rb#533 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:533 def marshal_load(variables); end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def mday; end # Send the missing method to +time+ instance, and wrap result in a new # TimeWithZone with the existing +time_zone+. # - # source://activesupport//lib/active_support/time_with_zone.rb#553 - def method_missing(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:553 + def method_missing(*, **, &); end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def min; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def mon; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def month; end - # Returns true if the current object's time falls within - # the next day (tomorrow). - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#256 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:259 def next_day?; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def nsec; end # Returns true if the current object's time is in the past. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#244 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:244 def past?; end # Returns the underlying +TZInfo::TimezonePeriod+. # - # source://activesupport//lib/active_support/time_with_zone.rb#72 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:72 def period; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#519 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:519 def present?; end - # Returns true if the current object's time falls within - # the previous day (yesterday). - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#263 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:266 def prev_day?; end # respond_to_missing? is not called in some cases, such as when type conversion is # performed with Kernel#String # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#539 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:539 def respond_to?(sym, include_priv = T.unsafe(nil)); end # Returns a string of the object's date and time in the RFC 2822 standard @@ -14380,62 +13318,33 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.rfc2822 # => "Tue, 01 Jan 2013 04:51:39 +0000" # - # source://activesupport//lib/active_support/time_with_zone.rb#194 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:194 def rfc2822; end - # Returns a string of the object's date and time in the ISO 8601 standard - # format. - # - # Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00" - # - # source://activesupport//lib/active_support/time_with_zone.rb#148 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:152 def rfc3339(fraction_digits = T.unsafe(nil)); end - # Returns a string of the object's date and time in the RFC 2822 standard - # format. - # - # Time.zone.now.rfc2822 # => "Tue, 01 Jan 2013 04:51:39 +0000" - # - # source://activesupport//lib/active_support/time_with_zone.rb#194 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:197 def rfc822; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def sec; end - # Adds an interval of time to the current object's time and returns that - # value as a new TimeWithZone object. - # - # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' - # now = Time.zone.now # => Sun, 02 Nov 2014 01:26:28.725182881 EDT -04:00 - # now + 1000 # => Sun, 02 Nov 2014 01:43:08.725182881 EDT -04:00 - # - # If we're adding a Duration of variable length (i.e., years, months, days), - # move forward from #time, otherwise move forward from #utc, for accuracy - # when moving across DST boundaries. - # - # For instance, a time + 24.hours will advance exactly 24 hours, while a - # time + 1.day will advance 23-25 hours, depending on the day. - # - # now + 24.hours # => Mon, 03 Nov 2014 00:26:28.725182881 EST -05:00 - # now + 1.day # => Mon, 03 Nov 2014 01:26:28.725182881 EST -05:00 - # - # source://activesupport//lib/active_support/time_with_zone.rb#298 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:315 def since(other); end # Replaces %Z directive with +zone before passing to Time#strftime, # so that zone information is correct. # - # source://activesupport//lib/active_support/time_with_zone.rb#225 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:225 def strftime(format); end # Returns a Time instance that represents the time in +time_zone+. # - # source://activesupport//lib/active_support/time_with_zone.rb#58 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:58 def time; end - # Returns the value of attribute time_zone. - # - # source://activesupport//lib/active_support/time_with_zone.rb#49 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:49 def time_zone; end # Returns Array of parts of Time in sequence of @@ -14444,10 +13353,10 @@ class ActiveSupport::TimeWithZone # now = Time.zone.now # => Tue, 18 Aug 2015 02:29:27.485278555 UTC +00:00 # now.to_a # => [27, 29, 2, 18, 8, 2015, 2, 230, false, "UTC"] # - # source://activesupport//lib/active_support/time_with_zone.rb#453 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:453 def to_a; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def to_date; end # Returns an instance of DateTime with the timezone's UTC offset @@ -14455,7 +13364,7 @@ class ActiveSupport::TimeWithZone # Time.zone.now.to_datetime # => Tue, 18 Aug 2015 02:32:20 +0000 # Time.current.in_time_zone('Hawaii').to_datetime # => Mon, 17 Aug 2015 16:32:20 -1000 # - # source://activesupport//lib/active_support/time_with_zone.rb#486 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:486 def to_datetime; end # Returns the object's date and time as a floating-point number of seconds @@ -14463,19 +13372,10 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.to_f # => 1417709320.285418 # - # source://activesupport//lib/active_support/time_with_zone.rb#461 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:461 def to_f; end - # Returns a string of the object's date and time. - # - # This method is aliased to to_formatted_s. - # - # Accepts an optional format: - # * :default - default value, mimics Ruby Time#to_s format. - # * :db - format outputs time in UTC :db time. See Time#to_fs(:db). - # * Any key in +Time::DATE_FORMATS+ can be used. See active_support/core_ext/time/conversions.rb. - # - # source://activesupport//lib/active_support/time_with_zone.rb#212 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:221 def to_formatted_s(format = T.unsafe(nil)); end # Returns a string of the object's date and time. @@ -14487,7 +13387,7 @@ class ActiveSupport::TimeWithZone # * :db - format outputs time in UTC :db time. See Time#to_fs(:db). # * Any key in +Time::DATE_FORMATS+ can be used. See active_support/core_ext/time/conversions.rb. # - # source://activesupport//lib/active_support/time_with_zone.rb#212 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:212 def to_fs(format = T.unsafe(nil)); end # Returns the object's date and time as an integer number of seconds @@ -14495,7 +13395,7 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.to_i # => 1417709320 # - # source://activesupport//lib/active_support/time_with_zone.rb#469 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:469 def to_i; end # Returns the object's date and time as a rational number of seconds @@ -14503,51 +13403,42 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.to_r # => (708854548642709/500000) # - # source://activesupport//lib/active_support/time_with_zone.rb#478 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:478 def to_r; end # Returns a string of the object's date and time. # - # source://activesupport//lib/active_support/time_with_zone.rb#200 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:200 def to_s; end # Returns an instance of +Time+, either with the same timezone as +self+, # with the same UTC offset as +self+ or in the local system timezone # depending on the setting of +ActiveSupport.to_time_preserves_timezone+. # - # source://activesupport//lib/active_support/time_with_zone.rb#493 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:493 def to_time; end # Returns true if the current object's time falls within # the current day. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#250 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:250 def today?; end # Returns true if the current object's time falls within # the next day (tomorrow). # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#256 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:256 def tomorrow?; end - # Returns the object's date and time as an integer number of seconds - # since the Epoch (January 1, 1970 00:00 UTC). - # - # Time.zone.now.to_i # => 1417709320 - # - # source://activesupport//lib/active_support/time_with_zone.rb#469 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:472 def tv_sec; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def usec; end # Returns a Time instance of the simultaneous time in the UTC timezone. # - # source://activesupport//lib/active_support/time_with_zone.rb#63 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:63 def utc; end # Returns true if the current time zone is set to UTC. @@ -14557,17 +13448,15 @@ class ActiveSupport::TimeWithZone # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' # Time.zone.now.utc? # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#105 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:105 def utc?; end # Returns the offset from current time to UTC time in seconds. # - # source://activesupport//lib/active_support/time_with_zone.rb#111 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:111 def utc_offset; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def wday; end # Returns a string of the object's date and time in the ISO 8601 standard @@ -14575,21 +13464,19 @@ class ActiveSupport::TimeWithZone # # Time.zone.now.xmlschema # => "2014-12-04T11:02:37-05:00" # - # source://activesupport//lib/active_support/time_with_zone.rb#148 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:148 def xmlschema(fraction_digits = T.unsafe(nil)); end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def yday; end - # source://activesupport//lib/active_support/time_with_zone.rb#442 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:441 def year; end # Returns true if the current object's time falls within # the previous day (yesterday). # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#263 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:263 def yesterday?; end # Returns the time zone abbreviation. @@ -14597,41 +13484,37 @@ class ActiveSupport::TimeWithZone # Time.zone = 'Eastern Time (US & Canada)' # => "Eastern Time (US & Canada)" # Time.zone.now.zone # => "EST" # - # source://activesupport//lib/active_support/time_with_zone.rb#133 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:133 def zone; end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#589 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:589 def duration_of_variable_length?(obj); end - # source://activesupport//lib/active_support/time_with_zone.rb#570 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:570 def get_period_and_ensure_valid_local_time(period); end - # source://activesupport//lib/active_support/time_with_zone.rb#562 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:562 def incorporate_utc_offset(time, offset); end # Ensure proxy class responds to all methods that underlying time instance # responds to. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/time_with_zone.rb#547 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:547 def respond_to_missing?(sym, include_priv); end - # source://activesupport//lib/active_support/time_with_zone.rb#583 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:583 def transfer_time_values_to_utc_constructor(time); end - # source://activesupport//lib/active_support/time_with_zone.rb#593 + # pkg:gem/activesupport#lib/active_support/time_with_zone.rb:593 def wrap_with_time_zone(time); end end -# source://activesupport//lib/active_support/time_with_zone.rb#45 +# pkg:gem/activesupport#lib/active_support/time_with_zone.rb:45 ActiveSupport::TimeWithZone::PRECISIONS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/time_with_zone.rb#560 +# pkg:gem/activesupport#lib/active_support/time_with_zone.rb:560 ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer) # = Active Support \Time Zone @@ -14659,30 +13542,28 @@ ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer) # Time.zone.name # => "Eastern Time (US & Canada)" # Time.zone.now # => Sun, 18 May 2008 14:30:44 EDT -04:00 # -# source://activesupport//lib/active_support/values/time_zone.rb#31 +# pkg:gem/activesupport#lib/active_support/values/time_zone.rb:31 class ActiveSupport::TimeZone include ::Comparable # :stopdoc: # - # @return [TimeZone] a new instance of TimeZone - # - # source://activesupport//lib/active_support/values/time_zone.rb#309 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:309 def initialize(name, utc_offset = T.unsafe(nil), tzinfo = T.unsafe(nil)); end # Compare this time zone to the parameter. The two are compared first on # their offsets, and then by name. # - # source://activesupport//lib/active_support/values/time_zone.rb#333 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:333 def <=>(zone); end # Compare #name and TZInfo identifier to a supplied regexp, returning +true+ # if a match is found. # - # source://activesupport//lib/active_support/values/time_zone.rb#342 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:342 def =~(re); end - # source://activesupport//lib/active_support/values/time_zone.rb#567 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:567 def abbr(time); end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14697,15 +13578,13 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.at(946684800, 123456.789).nsec # => 123456789 # - # source://activesupport//lib/active_support/values/time_zone.rb#379 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:379 def at(*args); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/values/time_zone.rb#571 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:571 def dst?(time); end - # source://activesupport//lib/active_support/values/time_zone.rb#579 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:579 def encode_with(coder); end # Returns a formatted string of the offset from UTC, or an alternative @@ -14715,10 +13594,10 @@ class ActiveSupport::TimeZone # zone.formatted_offset # => "-06:00" # zone.formatted_offset(false) # => "-0600" # - # source://activesupport//lib/active_support/values/time_zone.rb#327 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:327 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # source://activesupport//lib/active_support/values/time_zone.rb#575 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:575 def init_with(coder); end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14735,7 +13614,7 @@ class ActiveSupport::TimeZone # If the string is invalid then an +ArgumentError+ will be raised unlike +parse+ # which usually returns +nil+ when given an invalid date string. # - # source://activesupport//lib/active_support/values/time_zone.rb#396 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:396 def iso8601(str); end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14744,26 +13623,22 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.zone.local(2007, 2, 1, 15, 30, 45) # => Thu, 01 Feb 2007 15:30:45 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#363 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:363 def local(*args); end # Adjust the given time to the simultaneous time in UTC. Returns a # Time.utc() instance. # - # source://activesupport//lib/active_support/values/time_zone.rb#551 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:551 def local_to_utc(time, dst = T.unsafe(nil)); end # Compare #name and TZInfo identifier to a supplied regexp, returning +true+ # if a match is found. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/values/time_zone.rb#348 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:348 def match?(re); end - # Returns the value of attribute name. - # - # source://activesupport//lib/active_support/values/time_zone.rb#296 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:296 def name; end # Returns an ActiveSupport::TimeWithZone instance representing the current @@ -14772,7 +13647,7 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.zone.now # => Wed, 23 Jan 2008 20:24:27 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#516 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:516 def now; end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14794,16 +13669,16 @@ class ActiveSupport::TimeZone # # If the string is invalid then an +ArgumentError+ could be raised. # - # source://activesupport//lib/active_support/values/time_zone.rb#453 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:453 def parse(str, now = T.unsafe(nil)); end - # source://activesupport//lib/active_support/values/time_zone.rb#559 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:559 def period_for_local(time, dst = T.unsafe(nil)); end - # source://activesupport//lib/active_support/values/time_zone.rb#555 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:555 def period_for_utc(time); end - # source://activesupport//lib/active_support/values/time_zone.rb#563 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:563 def periods_for_local(time); end # \Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14819,9 +13694,7 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.zone.rfc3339('1999-12-31') # => ArgumentError: invalid date # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/values/time_zone.rb#469 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:469 def rfc3339(str); end # Parses +str+ according to +format+ and returns an ActiveSupport::TimeWithZone. @@ -14845,32 +13718,30 @@ class ActiveSupport::TimeZone # # Time.zone.strptime('Mar 2000', '%b %Y') # => Wed, 01 Mar 2000 00:00:00 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#507 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:507 def strptime(str, format, now = T.unsafe(nil)); end # Returns a textual representation of this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#354 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:354 def to_s; end # Returns the current date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#521 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:521 def today; end # Returns the next date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#526 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:526 def tomorrow; end - # Returns the value of attribute tzinfo. - # - # source://activesupport//lib/active_support/values/time_zone.rb#297 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:297 def tzinfo; end # Returns the offset of this time zone from UTC in seconds. # - # source://activesupport//lib/active_support/values/time_zone.rb#317 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:317 def utc_offset; end # Adjust the given time to the simultaneous time in the time zone @@ -14881,22 +13752,20 @@ class ActiveSupport::TimeZone # As of tzinfo 2, utc_to_local returns a Time with a non-zero utc_offset. # See the +utc_to_local_returns_utc_offset_times+ config for more info. # - # source://activesupport//lib/active_support/values/time_zone.rb#542 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:542 def utc_to_local(time); end # Returns the previous date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#531 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:531 def yesterday; end private - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/values/time_zone.rb#585 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:585 def parts_to_time(parts, now); end - # source://activesupport//lib/active_support/values/time_zone.rb#610 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:610 def time_now; end class << self @@ -14906,35 +13775,36 @@ class ActiveSupport::TimeZone # timezone to find. (The first one with that offset will be returned.) # Returns +nil+ if no such time zone is known to the system. # - # source://activesupport//lib/active_support/values/time_zone.rb#232 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:232 def [](arg); end # Returns an array of all TimeZone objects. There are multiple # TimeZone objects per time zone, in many cases, to make it easier # for users to find their own time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#223 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:223 def all; end - # source://activesupport//lib/active_support/values/time_zone.rb#265 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:265 def clear; end # A convenience method for returning a collection of TimeZone objects # for time zones in the country specified by its ISO 3166-1 Alpha2 code. # - # source://activesupport//lib/active_support/values/time_zone.rb#260 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:260 def country_zones(country_code); end + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:211 def create(*_arg0); end - # source://activesupport//lib/active_support/values/time_zone.rb#207 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:207 def find_tzinfo(name); end # Returns a TimeZone instance with the given name, or +nil+ if no # such TimeZone instance exists. (This exists to support the use of # this class with the +composed_of+ macro.) # - # source://activesupport//lib/active_support/values/time_zone.rb#216 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:216 def new(name); end # Assumes self represents an offset from UTC in seconds (as returned from @@ -14942,138 +13812,122 @@ class ActiveSupport::TimeZone # # ActiveSupport::TimeZone.seconds_to_utc_offset(-21_600) # => "-06:00" # - # source://activesupport//lib/active_support/values/time_zone.rb#199 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:199 def seconds_to_utc_offset(seconds, colon = T.unsafe(nil)); end # A convenience method for returning a collection of TimeZone objects # for time zones in the USA. # - # source://activesupport//lib/active_support/values/time_zone.rb#254 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:254 def us_zones; end private - # source://activesupport//lib/active_support/values/time_zone.rb#273 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:273 def load_country_zones(code); end - # source://activesupport//lib/active_support/values/time_zone.rb#287 + # pkg:gem/activesupport#lib/active_support/values/time_zone.rb:287 def zones_map; end end end # Keys are \Rails TimeZone names, values are TZInfo identifiers. # -# source://activesupport//lib/active_support/values/time_zone.rb#33 +# pkg:gem/activesupport#lib/active_support/values/time_zone.rb:33 ActiveSupport::TimeZone::MAPPING = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/values/time_zone.rb#188 +# pkg:gem/activesupport#lib/active_support/values/time_zone.rb:188 ActiveSupport::TimeZone::UTC_OFFSET_WITHOUT_COLON = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/values/time_zone.rb#187 +# pkg:gem/activesupport#lib/active_support/values/time_zone.rb:187 ActiveSupport::TimeZone::UTC_OFFSET_WITH_COLON = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/object/json.rb#35 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:35 module ActiveSupport::ToJsonWithActiveSupportEncoder - # source://activesupport//lib/active_support/core_ext/object/json.rb#36 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:36 def to_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/try.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:6 module ActiveSupport::Tryable - # source://activesupport//lib/active_support/core_ext/object/try.rb#7 - def try(*args, **_arg1, &block); end + # pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:7 + def try(*args, **, &block); end - # source://activesupport//lib/active_support/core_ext/object/try.rb#20 - def try!(*args, **_arg1, &block); end + # pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:20 + def try!(*args, **, &block); end end -# source://activesupport//lib/active_support/gem_version.rb#9 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:9 module ActiveSupport::VERSION; end -# source://activesupport//lib/active_support/gem_version.rb#10 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:10 ActiveSupport::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/gem_version.rb#11 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:11 ActiveSupport::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/gem_version.rb#13 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:13 ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/gem_version.rb#15 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:15 ActiveSupport::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/gem_version.rb#12 +# pkg:gem/activesupport#lib/active_support/gem_version.rb:12 ActiveSupport::VERSION::TINY = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/hash/conversions.rb#140 +# pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:140 class ActiveSupport::XMLConverter - # @return [XMLConverter] a new instance of XMLConverter - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#151 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:151 def initialize(xml, disallowed_types = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#156 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:156 def to_h; end private - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#222 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:222 def become_array?(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#218 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:218 def become_content?(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#226 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:226 def become_empty_string?(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#232 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:232 def become_hash?(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#172 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:172 def deep_to_h(value); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#241 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:241 def garbage?(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#161 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:161 def normalize_keys(params); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#236 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:236 def nothing?(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#257 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:257 def process_array(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#248 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:248 def process_content(value); end - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#185 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:185 def process_hash(value); end end -# source://activesupport//lib/active_support/core_ext/hash/conversions.rb#149 +# pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:149 ActiveSupport::XMLConverter::DISALLOWED_TYPES = T.let(T.unsafe(nil), Array) # Raised if the XML contains attributes with type="yaml" or # type="symbol". Read Hash#from_xml for more details. # -# source://activesupport//lib/active_support/core_ext/hash/conversions.rb#143 +# pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:143 class ActiveSupport::XMLConverter::DisallowedType < ::StandardError - # @return [DisallowedType] a new instance of DisallowedType - # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#144 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:144 def initialize(type); end end @@ -15083,95 +13937,89 @@ end # gem "libxml-ruby" # XmlMini.backend = 'LibXML' # -# source://activesupport//lib/active_support/xml_mini.rb#17 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:17 module ActiveSupport::XmlMini extend ::ActiveSupport::XmlMini - # source://activesupport//lib/active_support/xml_mini.rb#103 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:103 def backend; end - # source://activesupport//lib/active_support/xml_mini.rb#107 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:107 def backend=(name); end - # Returns the value of attribute depth. - # - # source://activesupport//lib/active_support/xml_mini.rb#98 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:98 def depth; end - # Sets the attribute depth - # - # @param value the value to set the attribute depth to. - # - # source://activesupport//lib/active_support/xml_mini.rb#98 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:98 def depth=(_arg0); end - # source://activesupport//lib/active_support/xml_mini.rb#101 - def parse(*_arg0, **_arg1, &_arg2); end + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:101 + def parse(*, **, &); end - # source://activesupport//lib/active_support/xml_mini.rb#154 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:154 def rename_key(key, options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/xml_mini.rb#121 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:121 def to_tag(key, value, options); end - # source://activesupport//lib/active_support/xml_mini.rb#113 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:113 def with_backend(name); end private - # source://activesupport//lib/active_support/xml_mini.rb#165 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:165 def _dasherize(key); end - # source://activesupport//lib/active_support/xml_mini.rb#171 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:171 def _parse_binary(bin, entity); end - # source://activesupport//lib/active_support/xml_mini.rb#182 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:182 def _parse_file(file, entity); end - # source://activesupport//lib/active_support/xml_mini.rb#190 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:190 def _parse_hex_binary(bin); end - # source://activesupport//lib/active_support/xml_mini.rb#202 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:202 def cast_backend_name_to_module(name); end - # source://activesupport//lib/active_support/xml_mini.rb#194 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:194 def current_thread_backend; end - # source://activesupport//lib/active_support/xml_mini.rb#198 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:198 def current_thread_backend=(name); end end -# source://activesupport//lib/active_support/xml_mini.rb#34 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:34 ActiveSupport::XmlMini::DEFAULT_ENCODINGS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/xml_mini.rb#56 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:56 ActiveSupport::XmlMini::FORMATTING = T.let(T.unsafe(nil), Hash) # This module decorates files deserialized using Hash.from_xml with # the original_filename and content_type methods. # -# source://activesupport//lib/active_support/xml_mini.rb#22 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:22 module ActiveSupport::XmlMini::FileLike - # source://activesupport//lib/active_support/xml_mini.rb#29 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:29 def content_type; end - # source://activesupport//lib/active_support/xml_mini.rb#23 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:23 def content_type=(_arg0); end - # source://activesupport//lib/active_support/xml_mini.rb#25 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:25 def original_filename; end - # source://activesupport//lib/active_support/xml_mini.rb#23 + # pkg:gem/activesupport#lib/active_support/xml_mini.rb:23 def original_filename=(_arg0); end end -# source://activesupport//lib/active_support/xml_mini.rb#67 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:67 ActiveSupport::XmlMini::PARSING = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/xml_mini.rb#39 +# pkg:gem/activesupport#lib/active_support/xml_mini.rb:39 ActiveSupport::XmlMini::TYPE_NAMES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/xml_mini/rexml.rb#8 +# pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:8 module ActiveSupport::XmlMini_REXML extend ::ActiveSupport::XmlMini_REXML @@ -15183,7 +14031,7 @@ module ActiveSupport::XmlMini_REXML # data:: # XML Document string or IO to parse # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#20 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:20 def parse(data); end private @@ -15193,7 +14041,7 @@ module ActiveSupport::XmlMini_REXML # element:: # The document element to be collapsed. # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#63 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:63 def collapse(element, depth); end # Determines if a document element has text content @@ -15201,9 +14049,7 @@ module ActiveSupport::XmlMini_REXML # element:: # XML element to be checked. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#133 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:133 def empty_content?(element); end # Converts the attributes array of an XML element into a hash. @@ -15212,7 +14058,7 @@ module ActiveSupport::XmlMini_REXML # element:: # XML element to extract attributes from. # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#123 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:123 def get_attributes(element); end # Adds a new key/value pair to an existing Hash. If the key to be added @@ -15227,7 +14073,7 @@ module ActiveSupport::XmlMini_REXML # value:: # Value to be associated with key. # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#103 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:103 def merge!(hash, key, value); end # Convert an XML element and merge into the hash @@ -15237,9 +14083,7 @@ module ActiveSupport::XmlMini_REXML # element:: # XML element to merge into hash # - # @raise [REXML::ParseException] - # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#54 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:54 def merge_element!(hash, element, depth); end # Merge all the texts of an element into the hash @@ -15249,23 +14093,33 @@ module ActiveSupport::XmlMini_REXML # element:: # XML element whose texts are to me merged into the hash # - # source://activesupport//lib/active_support/xml_mini/rexml.rb#81 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:81 def merge_texts!(hash, element); end - # source://activesupport//lib/active_support/xml_mini/rexml.rb#41 + # pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:41 def require_rexml; end end -# source://activesupport//lib/active_support/xml_mini/rexml.rb#11 +# pkg:gem/activesupport#lib/active_support/xml_mini/rexml.rb:11 ActiveSupport::XmlMini_REXML::CONTENT_KEY = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/object/blank.rb#95 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:95 class Array include ::Enumerable - # source://activesupport//lib/active_support/core_ext/object/json.rb#164 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:164 def as_json(options = T.unsafe(nil)); end + # An array is blank if it's empty: + # + # [].blank? # => true + # [1,2,3].blank? # => false + # + # @return [true, false] + # + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:102 + def blank?; end + # Removes all blank elements from the +Array+ in place and returns self. # Uses Object#blank? for determining if an item is blank. # @@ -15273,7 +14127,7 @@ class Array # a.compact_blank! # # => [1, 2, true] # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#275 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:275 def compact_blank!; end # Returns a deep copy of array. @@ -15285,7 +14139,7 @@ class Array # array[1][2] # => nil # dup[1][2] # => 4 # - # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/object/deep_dup.rb:29 def deep_dup; end # Returns a copy of the Array excluding the specified elements. @@ -15296,7 +14150,7 @@ class Array # Note: This is an optimization of Enumerable#excluding that uses Array#- # instead of Array#reject for performance reasons. # - # source://activesupport//lib/active_support/core_ext/array/access.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:47 def excluding(*elements); end # Removes and returns the elements for which the block returns a true value. @@ -15306,7 +14160,7 @@ class Array # odd_numbers = numbers.extract! { |number| number.odd? } # => [1, 3, 5, 7, 9] # numbers # => [0, 2, 4, 6, 8] # - # source://activesupport//lib/active_support/core_ext/array/extract.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/array/extract.rb:10 def extract!; end # Extracts options from a set of arguments. Removes and returns the last @@ -15319,28 +14173,28 @@ class Array # options(1, 2) # => {} # options(1, 2, a: :b) # => {:a=>:b} # - # source://activesupport//lib/active_support/core_ext/array/extract_options.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/array/extract_options.rb:24 def extract_options!; end # Equal to self[4]. # # %w( a b c d e ).fifth # => "e" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#76 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:76 def fifth; end # Equal to self[41]. Also known as accessing "the reddit". # # (1..42).to_a.forty_two # => 42 # - # source://activesupport//lib/active_support/core_ext/array/access.rb#83 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:83 def forty_two; end # Equal to self[3]. # # %w( a b c d e ).fourth # => "d" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:69 def fourth; end # Returns the tail of the array from +position+. @@ -15352,7 +14206,7 @@ class Array # %w( a b c d ).from(-2) # => ["c", "d"] # %w( a b c ).from(-10) # => [] # - # source://activesupport//lib/active_support/core_ext/array/access.rb#12 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:12 def from(position); end # Splits or iterates over the array in +number+ of groups, padding any @@ -15373,7 +14227,7 @@ class Array # ["4", "5"] # ["6", "7"] # - # source://activesupport//lib/active_support/core_ext/array/grouping.rb#62 + # pkg:gem/activesupport#lib/active_support/core_ext/array/grouping.rb:62 def in_groups(number, fill_with = T.unsafe(nil), &block); end # Splits or iterates over the array in groups of size +number+, @@ -15395,7 +14249,7 @@ class Array # ["3", "4"] # ["5"] # - # source://activesupport//lib/active_support/core_ext/array/grouping.rb#22 + # pkg:gem/activesupport#lib/active_support/core_ext/array/grouping.rb:22 def in_groups_of(number, fill_with = T.unsafe(nil), &block); end # Returns a new array that includes the passed elements. @@ -15403,7 +14257,7 @@ class Array # [ 1, 2, 3 ].including(4, 5) # => [ 1, 2, 3, 4, 5 ] # [ [ 0, 1 ] ].including([ [ 1, 0 ] ]) # => [ [ 0, 1 ], [ 1, 0 ] ] # - # source://activesupport//lib/active_support/core_ext/array/access.rb#36 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:36 def including(*elements); end # Wraps the array in an ActiveSupport::ArrayInquirer object, which gives a @@ -15417,26 +14271,24 @@ class Array # pets.any?(:cat, :ferret) # => true # pets.any?(:ferret, :alligator) # => false # - # source://activesupport//lib/active_support/core_ext/array/inquiry.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/array/inquiry.rb:16 def inquiry; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#104 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:104 def present?; end # Equal to self[1]. # # %w( a b c d e ).second # => "b" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:55 def second; end # Equal to self[-2]. # # %w( a b c d e ).second_to_last # => "d" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#97 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:97 def second_to_last; end # Divides the array into one or more subarrays based on a delimiting +value+ @@ -15445,21 +14297,21 @@ class Array # [1, 2, 3, 4, 5].split(3) # => [[1, 2], [4, 5]] # (1..10).to_a.split { |i| i % 3 == 0 } # => [[1, 2], [4, 5], [7, 8], [10]] # - # source://activesupport//lib/active_support/core_ext/array/grouping.rb#93 + # pkg:gem/activesupport#lib/active_support/core_ext/array/grouping.rb:93 def split(value = T.unsafe(nil), &block); end # Equal to self[2]. # # %w( a b c d e ).third # => "c" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#62 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:62 def third; end # Equal to self[-3]. # # %w( a b c d e ).third_to_last # => "c" # - # source://activesupport//lib/active_support/core_ext/array/access.rb#90 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:90 def third_to_last; end # Returns the beginning of the array up to +position+. @@ -15471,19 +14323,10 @@ class Array # %w( a b c d ).to(-2) # => ["a", "b", "c"] # %w( a b c ).to(-10) # => [] # - # source://activesupport//lib/active_support/core_ext/array/access.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:24 def to(position); end - # Extends Array#to_s to convert a collection of elements into a - # comma separated id list if :db argument is given as the format. - # - # This method is aliased to to_formatted_s. - # - # Blog.all.to_fs(:db) # => "1,2,3" - # Blog.none.to_fs(:db) # => "null" - # [1,2].to_fs # => "[1, 2]" - # - # source://activesupport//lib/active_support/core_ext/array/conversions.rb#94 + # pkg:gem/activesupport#lib/active_support/core_ext/array/conversions.rb:106 def to_formatted_s(format = T.unsafe(nil)); end # Extends Array#to_s to convert a collection of elements into a @@ -15495,13 +14338,13 @@ class Array # Blog.none.to_fs(:db) # => "null" # [1,2].to_fs # => "[1, 2]" # - # source://activesupport//lib/active_support/core_ext/array/conversions.rb#94 + # pkg:gem/activesupport#lib/active_support/core_ext/array/conversions.rb:94 def to_fs(format = T.unsafe(nil)); end # Calls to_param on all its elements and joins the result with # slashes. This is used by url_for in Action Pack. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#43 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:43 def to_param; end # Converts an array into a string suitable for use as a URL query string, @@ -15509,7 +14352,7 @@ class Array # # ['Rails', 'coding'].to_query('hobbies') # => "hobbies%5B%5D=Rails&hobbies%5B%5D=coding" # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#51 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:51 def to_query(key); end # Converts the array to a comma-separated sentence where the last element is @@ -15564,7 +14407,7 @@ class Array # ['uno', 'dos', 'tres'].to_sentence(locale: :es) # # => "uno o dos o al menos tres" # - # source://activesupport//lib/active_support/core_ext/array/conversions.rb#60 + # pkg:gem/activesupport#lib/active_support/core_ext/array/conversions.rb:60 def to_sentence(options = T.unsafe(nil)); end # Returns a string that represents the array in XML by invoking +to_xml+ @@ -15642,18 +14485,10 @@ class Array # # # - # source://activesupport//lib/active_support/core_ext/array/conversions.rb#183 + # pkg:gem/activesupport#lib/active_support/core_ext/array/conversions.rb:183 def to_xml(options = T.unsafe(nil)); end - # Returns a copy of the Array excluding the specified elements. - # - # ["David", "Rafael", "Aaron", "Todd"].excluding("Aaron", "Todd") # => ["David", "Rafael"] - # [ [ 0, 1 ], [ 1, 0 ] ].excluding([ [ 1, 0 ] ]) # => [ [ 0, 1 ] ] - # - # Note: This is an optimization of Enumerable#excluding that uses Array#- - # instead of Array#reject for performance reasons. - # - # source://activesupport//lib/active_support/core_ext/array/access.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/array/access.rb:50 def without(*elements); end class << self @@ -15693,12 +14528,12 @@ class Array # The differences with Kernel#Array explained above # apply to the rest of objects. # - # source://activesupport//lib/active_support/core_ext/array/wrap.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/array/wrap.rb:39 def wrap(object); end end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#124 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:124 class BigDecimal < ::Numeric include ::ActiveSupport::BigDecimalWithDefaultFormat include ::ActiveSupport::NumericWithFormat @@ -15713,14 +14548,11 @@ class BigDecimal < ::Numeric # BigDecimal, it still has the chance to post-process the string and get the # real value. # - # source://activesupport//lib/active_support/core_ext/object/json.rb#134 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:134 def as_json(options = T.unsafe(nil)); end - - # source://activesupport//lib/active_support/core_ext/big_decimal/conversions.rb#8 - def to_s(format = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/class/attribute.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/class/attribute.rb:6 class Class < ::Module include ::ActiveSupport::DescendantsTracker::ReloadedClassesFiltering @@ -15804,7 +14636,7 @@ class Class < ::Module # # class_attribute :settings, default: {} # - # source://activesupport//lib/active_support/core_ext/class/attribute.rb#86 + # pkg:gem/activesupport#lib/active_support/core_ext/class/attribute.rb:86 def class_attribute(*attrs, instance_accessor: T.unsafe(nil), instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_predicate: T.unsafe(nil), default: T.unsafe(nil)); end # Returns an array with all classes that are < than its receiver. @@ -15821,41 +14653,37 @@ class Class < ::Module # class D < C; end # C.descendants # => [B, A, D] # - # source://activesupport//lib/active_support/descendants_tracker.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/class/subclasses.rb:19 def descendants; end - # source://activesupport//lib/active_support/descendants_tracker.rb#59 + # pkg:gem/activesupport#lib/active_support/descendants_tracker.rb:59 def subclasses; end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#68 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:68 class Data - # source://activesupport//lib/active_support/core_ext/object/json.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:69 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/date/zones.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/date/zones.rb:6 class Date include ::Comparable include ::DateAndTime::Zones include ::DateAndTime::Calculations - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#90 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:98 def +(other); end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#100 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:108 def -(other); end - # Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there. - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#152 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:160 def <=>(other); end # Duck-types as a Date-like class. See Object#acts_like?. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date/acts_like.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/date/acts_like.rb:7 def acts_like_date?; end # Provides precise Date calculations for years, months, and days. The +options+ parameter takes a hash with @@ -15875,51 +14703,39 @@ class Date # Date.new(2004, 9, 30).advance(days: 1).advance(months: 1) # # => Mon, 01 Nov 2004 # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#127 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:127 def advance(options); end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) # and then subtracts the specified number of seconds. # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:55 def ago(seconds); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#211 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:211 def as_json(options = T.unsafe(nil)); end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#67 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:72 def at_beginning_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#85 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:88 def at_end_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:80 def at_midday; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:82 def at_middle_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#67 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:71 def at_midnight; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:81 def at_noon; end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#67 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:67 def beginning_of_day; end # No Date is blank: @@ -15928,7 +14744,7 @@ class Date # # @return [false] # - # source://activesupport//lib/active_support/core_ext/date/blank.rb#11 + # pkg:gem/activesupport#lib/active_support/core_ext/date/blank.rb:11 def blank?; end # Returns a new Date where one or more of the elements have been changed according to the +options+ parameter. @@ -15937,99 +14753,72 @@ class Date # Date.new(2007, 5, 12).change(day: 1) # => Date.new(2007, 5, 1) # Date.new(2007, 5, 12).change(year: 2005, month: 1) # => Date.new(2005, 1, 12) # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#143 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:143 def change(options); end # Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there. # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#152 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:152 def compare_with_coercion(other); end + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:159 + def compare_without_coercion(_arg0); end + + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:66 + def default_inspect; end + # Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59) # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#85 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:85 def end_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) - # and then adds the specified number of seconds - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#61 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:64 def in(seconds); end - # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005" - # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:67 def inspect; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:78 def midday; end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:75 def middle_of_day; end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#67 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:70 def midnight; end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#100 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:100 def minus_with_duration(other); end - # Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:107 + def minus_without_duration(_arg0); end + + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:79 def noon; end - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#90 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:90 def plus_with_duration(other); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date/blank.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:97 + def plus_without_duration(_arg0); end + + # pkg:gem/activesupport#lib/active_support/core_ext/date/blank.rb:15 def present?; end # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005" # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:63 def readable_inspect; end # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) # and then adds the specified number of seconds # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#61 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:61 def since(seconds); end - # Convert to a formatted string. See DATE_FORMATS for predefined formats. - # - # This method is aliased to to_formatted_s. - # - # date = Date.new(2007, 11, 10) # => Sat, 10 Nov 2007 - # - # date.to_fs(:db) # => "2007-11-10" - # date.to_formatted_s(:db) # => "2007-11-10" - # - # date.to_fs(:short) # => "10 Nov" - # date.to_fs(:number) # => "20071110" - # date.to_fs(:long) # => "November 10, 2007" - # date.to_fs(:long_ordinal) # => "November 10th, 2007" - # date.to_fs(:rfc822) # => "10 Nov 2007" - # date.to_fs(:rfc2822) # => "10 Nov 2007" - # date.to_fs(:iso8601) # => "2007-11-10" - # - # == Adding your own date formats to to_fs - # You can add your own formats to the Date::DATE_FORMATS hash. - # Use the format name as the hash key and either a strftime string - # or Proc instance that takes a date argument as the value. - # - # # config/initializers/date_formats.rb - # Date::DATE_FORMATS[:month_and_year] = '%B %Y' - # Date::DATE_FORMATS[:short_ordinal] = ->(date) { date.strftime("%B #{date.day.ordinalize}") } - # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#49 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:60 def to_formatted_s(format = T.unsafe(nil)); end # Convert to a formatted string. See DATE_FORMATS for predefined formats. @@ -16058,7 +14847,7 @@ class Date # Date::DATE_FORMATS[:month_and_year] = '%B %Y' # Date::DATE_FORMATS[:short_ordinal] = ->(date) { date.strftime("%B #{date.day.ordinalize}") } # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#49 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:49 def to_fs(format = T.unsafe(nil)); end # Converts a Date instance to a Time, where the time is set to the beginning of the day. @@ -16074,9 +14863,7 @@ class Date # NOTE: The +:local+ timezone is Ruby's *process* timezone, i.e. ENV['TZ']. # If the application's timezone is needed, then use +in_time_zone+ instead. # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#83 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:69 def to_time(form = T.unsafe(nil)); end # Returns a string which represents the time in used time zone as DateTime @@ -16085,7 +14872,7 @@ class Date # date = Date.new(2015, 05, 23) # => Sat, 23 May 2015 # date.xmlschema # => "2015-05-23T00:00:00+04:00" # - # source://activesupport//lib/active_support/core_ext/date/conversions.rb#95 + # pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:88 def xmlschema; end class << self @@ -16093,7 +14880,7 @@ class Date # If Date.beginning_of_week has not been set for the current request, returns the week start specified in config.beginning_of_week. # If no +config.beginning_of_week+ was specified, returns +:monday+. # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#19 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:19 def beginning_of_week; end # Sets Date.beginning_of_week to a week start (e.g. +:monday+) for current request/thread. @@ -16101,86 +14888,105 @@ class Date # This method accepts any of the following day symbols: # +:monday+, +:tuesday+, +:wednesday+, +:thursday+, +:friday+, +:saturday+, +:sunday+ # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#27 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:27 def beginning_of_week=(week_start); end - # Returns the value of attribute beginning_of_week_default. - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:14 def beginning_of_week_default; end - # Sets the attribute beginning_of_week_default - # - # @param value the value to set the attribute beginning_of_week_default to. - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:14 def beginning_of_week_default=(_arg0); end # Returns Time.zone.today when Time.zone or config.time_zone are set, otherwise just returns Date.today. # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#48 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:48 def current; end # Returns week start day symbol (e.g. +:monday+), or raises an +ArgumentError+ for invalid day symbol. # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:32 def find_beginning_of_week!(week_start); end # Returns a new Date representing the date 1 day after today (i.e. tomorrow's date). # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#43 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:43 def tomorrow; end # Returns a new Date representing the date 1 day ago (i.e. yesterday's date). # - # source://activesupport//lib/active_support/core_ext/date/calculations.rb#38 + # pkg:gem/activesupport#lib/active_support/core_ext/date/calculations.rb:38 def yesterday; end end end -# source://activesupport//lib/active_support/core_ext/date/conversions.rb#9 +# pkg:gem/activesupport#lib/active_support/core_ext/date/conversions.rb:9 Date::DATE_FORMATS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:6 module DateAndTime; end -# source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:7 module DateAndTime::Calculations # Returns true if the date/time falls after date_or_time. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#72 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:72 def after?(date_or_time); end # Returns a Range representing the whole day of the current date/time. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#310 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:310 def all_day; end # Returns a Range representing the whole month of the current date/time. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#321 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:321 def all_month; end # Returns a Range representing the whole quarter of the current date/time. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#326 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:326 def all_quarter; end # Returns a Range representing the whole week of the current date/time. # Week starts on start_day, default is Date.beginning_of_week or config.beginning_of_week when set. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#316 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:316 def all_week(start_day = T.unsafe(nil)); end # Returns a Range representing the whole year of the current date/time. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#331 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:331 def all_year; end + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:128 + def at_beginning_of_month; end + + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:143 + def at_beginning_of_quarter; end + + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:271 + def at_beginning_of_week(start_day = T.unsafe(nil)); end + + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:182 + def at_beginning_of_year; end + + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:300 + def at_end_of_month; end + + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:158 + def at_end_of_quarter; end + + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:286 + def at_end_of_week(start_day = T.unsafe(nil)); end + + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:307 + def at_end_of_year; end + + # Returns true if the date/time falls before date_or_time. + # + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:67 + def before?(date_or_time); end + # Returns a new date/time at the start of the month. # # today = Date.today # => Thu, 18 Jun 2015 @@ -16191,8 +14997,8 @@ module DateAndTime::Calculations # now = DateTime.current # => Thu, 18 Jun 2015 15:23:13 +0000 # now.beginning_of_month # => Mon, 01 Jun 2015 00:00:00 +0000 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#125 - def at_beginning_of_month; end + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:125 + def beginning_of_month; end # Returns a new date/time at the start of the quarter. # @@ -16204,16 +15010,16 @@ module DateAndTime::Calculations # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 # now.beginning_of_quarter # => Wed, 01 Jul 2015 00:00:00 +0000 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#139 - def at_beginning_of_quarter; end + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:139 + def beginning_of_quarter; end # Returns a new date/time representing the start of this week on the given day. # Week is assumed to start on +start_day+, default is # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. # +DateTime+ objects have their time set to 0:00. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#267 - def at_beginning_of_week(start_day = T.unsafe(nil)); end + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:267 + def beginning_of_week(start_day = T.unsafe(nil)); end # Returns a new date/time at the beginning of the year. # @@ -16225,117 +15031,30 @@ module DateAndTime::Calculations # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 # now.beginning_of_year # => Thu, 01 Jan 2015 00:00:00 +0000 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#179 - def at_beginning_of_year; end + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:179 + def beginning_of_year; end - # Returns a new date/time representing the end of the month. - # DateTime objects will have a time set to 23:59:59. + # Returns a new date/time the specified number of days ago. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#296 - def at_end_of_month; end + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:77 + def days_ago(days); end - # Returns a new date/time at the end of the quarter. + # Returns a new date/time the specified number of days in the future. # - # today = Date.today # => Fri, 10 Jul 2015 - # today.end_of_quarter # => Wed, 30 Sep 2015 - # - # +DateTime+ objects will have a time set to 23:59:59. - # - # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 - # now.end_of_quarter # => Wed, 30 Sep 2015 23:59:59 +0000 - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#154 - def at_end_of_quarter; end - - # Returns a new date/time representing the end of this week on the given day. - # Week is assumed to start on +start_day+, default is - # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. - # DateTime objects have their time set to 23:59:59. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#283 - def at_end_of_week(start_day = T.unsafe(nil)); end - - # Returns a new date/time representing the end of the year. - # DateTime objects will have a time set to 23:59:59. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#304 - def at_end_of_year; end - - # Returns true if the date/time falls before date_or_time. - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#67 - def before?(date_or_time); end - - # Returns a new date/time at the start of the month. - # - # today = Date.today # => Thu, 18 Jun 2015 - # today.beginning_of_month # => Mon, 01 Jun 2015 - # - # +DateTime+ objects will have a time set to 0:00. - # - # now = DateTime.current # => Thu, 18 Jun 2015 15:23:13 +0000 - # now.beginning_of_month # => Mon, 01 Jun 2015 00:00:00 +0000 - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#125 - def beginning_of_month; end - - # Returns a new date/time at the start of the quarter. - # - # today = Date.today # => Fri, 10 Jul 2015 - # today.beginning_of_quarter # => Wed, 01 Jul 2015 - # - # +DateTime+ objects will have a time set to 0:00. - # - # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 - # now.beginning_of_quarter # => Wed, 01 Jul 2015 00:00:00 +0000 - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#139 - def beginning_of_quarter; end - - # Returns a new date/time representing the start of this week on the given day. - # Week is assumed to start on +start_day+, default is - # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. - # +DateTime+ objects have their time set to 0:00. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#267 - def beginning_of_week(start_day = T.unsafe(nil)); end - - # Returns a new date/time at the beginning of the year. - # - # today = Date.today # => Fri, 10 Jul 2015 - # today.beginning_of_year # => Thu, 01 Jan 2015 - # - # +DateTime+ objects will have a time set to 0:00. - # - # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 - # now.beginning_of_year # => Thu, 01 Jan 2015 00:00:00 +0000 - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#179 - def beginning_of_year; end - - # Returns a new date/time the specified number of days ago. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#77 - def days_ago(days); end - - # Returns a new date/time the specified number of days in the future. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#82 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:82 def days_since(days); end # Returns the number of days to the start of the week on the given day. # Week is assumed to start on +start_day+, default is # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#258 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:258 def days_to_week_start(start_day = T.unsafe(nil)); end # Returns a new date/time representing the end of the month. # DateTime objects will have a time set to 23:59:59. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#296 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:296 def end_of_month; end # Returns a new date/time at the end of the quarter. @@ -16348,7 +15067,7 @@ module DateAndTime::Calculations # now = DateTime.current # => Fri, 10 Jul 2015 18:41:29 +0000 # now.end_of_quarter # => Wed, 30 Sep 2015 23:59:59 +0000 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#154 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:154 def end_of_quarter; end # Returns a new date/time representing the end of this week on the given day. @@ -16356,71 +15075,56 @@ module DateAndTime::Calculations # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. # DateTime objects have their time set to 23:59:59. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#283 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:283 def end_of_week(start_day = T.unsafe(nil)); end # Returns a new date/time representing the end of the year. # DateTime objects will have a time set to 23:59:59. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#304 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:304 def end_of_year; end # Returns true if the date/time is in the future. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#52 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:52 def future?; end # Short-hand for months_ago(1). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#240 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:240 def last_month; end - # Short-hand for months_ago(3). - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#245 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:248 def last_quarter; end - # Returns a new date/time representing the given day in the previous week. - # Week is assumed to start on +start_day+, default is - # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. - # DateTime objects have their time set to 0:00 unless +same_time+ is true. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#223 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:227 def last_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end - # Returns a new date/time representing the previous weekday. - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#230 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:237 def last_weekday; end # Short-hand for years_ago(1). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#251 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:251 def last_year; end # Returns Monday of this week assuming that week starts on Monday. # +DateTime+ objects have their time set to 0:00. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#275 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:275 def monday; end # Returns a new date/time the specified number of months ago. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#97 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:97 def months_ago(months); end # Returns a new date/time the specified number of months in the future. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#102 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:102 def months_since(months); end - # Returns true if the date/time is tomorrow. - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#35 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:38 def next_day?; end # Returns a new date/time representing the next occurrence of the specified day of week. @@ -16429,12 +15133,12 @@ module DateAndTime::Calculations # today.next_occurring(:monday) # => Mon, 18 Dec 2017 # today.next_occurring(:thursday) # => Thu, 21 Dec 2017 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#340 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:340 def next_occurring(day_of_week); end # Short-hand for months_since(3). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#215 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:215 def next_quarter; end # Returns a new date/time representing the given day in the next week. @@ -16454,40 +15158,30 @@ module DateAndTime::Calculations # now = DateTime.current # => Thu, 07 May 2015 13:31:16 +0000 # now.next_week # => Mon, 11 May 2015 00:00:00 +0000 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#200 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:200 def next_week(given_day_in_next_week = T.unsafe(nil), same_time: T.unsafe(nil)); end # Returns a new date/time representing the next weekday. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#206 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:206 def next_weekday; end # Returns true if the date/time does not fall on a Saturday or Sunday. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#62 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:62 def on_weekday?; end # Returns true if the date/time falls on a Saturday or Sunday. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#57 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:57 def on_weekend?; end # Returns true if the date/time is in the past. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:47 def past?; end - # Returns true if the date/time is yesterday. - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:44 def prev_day?; end # Returns a new date/time representing the previous occurrence of the specified day of week. @@ -16496,12 +15190,12 @@ module DateAndTime::Calculations # today.prev_occurring(:monday) # => Mon, 11 Dec 2017 # today.prev_occurring(:thursday) # => Thu, 07 Dec 2017 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#351 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:351 def prev_occurring(day_of_week); end # Short-hand for months_ago(3). # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#245 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:245 def prev_quarter; end # Returns a new date/time representing the given day in the previous week. @@ -16509,12 +15203,12 @@ module DateAndTime::Calculations # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. # DateTime objects have their time set to 0:00 unless +same_time+ is true. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#223 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:223 def prev_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end # Returns a new date/time representing the previous weekday. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#230 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:230 def prev_weekday; end # Returns the quarter for a date/time. @@ -16524,93 +15218,87 @@ module DateAndTime::Calculations # Date.new(2010, 9, 15).quarter # => 3 # Date.new(2010, 12, 25).quarter # => 4 # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#166 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:166 def quarter; end # Returns Sunday of this week assuming that week starts on Monday. # +DateTime+ objects have their time set to 23:59:59. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#290 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:290 def sunday; end # Returns true if the date/time is today. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#30 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:30 def today?; end # Returns a new date/time representing tomorrow. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:25 def tomorrow; end # Returns true if the date/time is tomorrow. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#35 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:35 def tomorrow?; end # Returns a new date/time the specified number of weeks ago. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#87 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:87 def weeks_ago(weeks); end # Returns a new date/time the specified number of weeks in the future. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#92 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:92 def weeks_since(weeks); end # Returns a new date/time the specified number of years ago. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#107 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:107 def years_ago(years); end # Returns a new date/time the specified number of years in the future. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#112 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:112 def years_since(years); end # Returns a new date/time representing yesterday. # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:20 def yesterday; end # Returns true if the date/time is yesterday. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:41 def yesterday?; end private - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#370 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:370 def copy_time_to(other); end - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#366 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:366 def days_span(day); end - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#358 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:358 def first_hour(date_or_time); end - # source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#362 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:362 def last_hour(date_or_time); end end -# source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#8 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:8 DateAndTime::Calculations::DAYS_INTO_WEEK = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#17 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/calculations.rb:17 DateAndTime::Calculations::WEEKEND_DAYS = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:7 module DateAndTime::Compatibility - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:39 def preserve_timezone; end - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:56 def utc_to_local_returns_utc_offset_times; end class << self @@ -16620,21 +15308,27 @@ module DateAndTime::Compatibility # is in turn included in several places. This will all go away in # Rails 8.0 anyway. # - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:15 def preserve_timezone; end - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#15 + # -- + # This re-implements the behaviour of the mattr_reader, instead + # of prepending on to it, to avoid overcomplicating a module that + # is in turn included in several places. This will all go away in + # Rails 8.0 anyway. + # + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:15 def preserve_timezone=(val); end - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:56 def utc_to_local_returns_utc_offset_times; end - # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/compatibility.rb:56 def utc_to_local_returns_utc_offset_times=(val); end end end -# source://activesupport//lib/active_support/core_ext/date_and_time/zones.rb#4 +# pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/zones.rb:4 module DateAndTime::Zones # Returns the simultaneous time in Time.zone if a zone is given or # if Time.zone_default is set. Otherwise, it returns the current time. @@ -16652,37 +15346,33 @@ module DateAndTime::Zones # Time.utc(2000).in_time_zone('Alaska') # => Fri, 31 Dec 1999 15:00:00 AKST -09:00 # Date.new(2000).in_time_zone('Alaska') # => Sat, 01 Jan 2000 00:00:00 AKST -09:00 # - # source://activesupport//lib/active_support/core_ext/date_and_time/zones.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/zones.rb:20 def in_time_zone(zone = T.unsafe(nil)); end private - # source://activesupport//lib/active_support/core_ext/date_and_time/zones.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/date_and_time/zones.rb:32 def time_with_zone(time, zone); end end -# source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:5 class DateTime < ::Date include ::DateAndTime::Compatibility # Layers additional behavior on DateTime#<=> so that Time and # ActiveSupport::TimeWithZone instances can be compared with a DateTime. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#208 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:208 def <=>(other); end # Duck-types as a Date-like class. See Object#acts_like?. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_time/acts_like.rb#8 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/acts_like.rb:8 def acts_like_date?; end # Duck-types as a Time-like class. See Object#acts_like?. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_time/acts_like.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/acts_like.rb:13 def acts_like_time?; end # Uses Date to provide precise Time calculations for years, months, and days. @@ -16694,81 +15384,61 @@ class DateTime < ::Date # largest to smallest. This order can affect the result around the end of a # month. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#82 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:82 def advance(options); end # Returns a new DateTime representing the time a number of seconds ago. # Do not use this method in combination with x.months, use months_ago instead! # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#109 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:109 def ago(seconds); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#221 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:221 def as_json(options = T.unsafe(nil)); end - # Returns a new DateTime representing the start of the day (0:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:127 def at_beginning_of_day; end - # Returns a new DateTime representing the start of the hour (hh:00:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#146 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:149 def at_beginning_of_hour; end - # Returns a new DateTime representing the start of the minute (hh:mm:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#158 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:161 def at_beginning_of_minute; end - # Returns a new DateTime representing the end of the day (23:59:59). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#140 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:143 def at_end_of_day; end - # Returns a new DateTime representing the end of the hour (hh:59:59). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#152 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:155 def at_end_of_hour; end - # Returns a new DateTime representing the end of the minute (hh:mm:59). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#164 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:167 def at_end_of_minute; end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:135 def at_midday; end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:137 def at_middle_of_day; end - # Returns a new DateTime representing the start of the day (0:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:126 def at_midnight; end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:136 def at_noon; end # Returns a new DateTime representing the start of the day (0:00). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:122 def beginning_of_day; end # Returns a new DateTime representing the start of the hour (hh:00:00). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#146 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:146 def beginning_of_hour; end # Returns a new DateTime representing the start of the minute (hh:mm:00). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#158 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:158 def beginning_of_minute; end # No DateTime is ever blank: @@ -16777,7 +15447,7 @@ class DateTime < ::Date # # @return [false] # - # source://activesupport//lib/active_support/core_ext/date_time/blank.rb#11 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/blank.rb:11 def blank?; end # Returns a new DateTime where one or more of the elements have been changed @@ -16792,24 +15462,25 @@ class DateTime < ::Date # DateTime.new(2012, 8, 29, 22, 35, 0).change(year: 1981, day: 1) # => DateTime.new(1981, 8, 1, 22, 35, 0) # DateTime.new(2012, 8, 29, 22, 35, 0).change(year: 1981, hour: 0) # => DateTime.new(1981, 8, 29, 0, 0, 0) # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#51 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:51 def change(options); end + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:61 + def default_inspect; end + # Returns a new DateTime representing the end of the day (23:59:59). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#140 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:140 def end_of_day; end # Returns a new DateTime representing the end of the hour (hh:59:59). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#152 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:152 def end_of_hour; end # Returns a new DateTime representing the end of the minute (hh:mm:59). # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#164 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:164 def end_of_minute; end # Returns a formatted string of the offset from UTC, or an alternative @@ -16819,88 +15490,57 @@ class DateTime < ::Date # datetime.formatted_offset # => "-06:00" # datetime.formatted_offset(false) # => "-0600" # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#53 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:53 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:192 def getgm; end - # Returns a Time instance of the simultaneous time in the system timezone. - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#170 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:178 def getlocal(utc_offset = T.unsafe(nil)); end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:193 def getutc; end - # Returns a Time instance of the simultaneous time in the UTC timezone. - # - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 - # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:194 def gmtime; end - # Returns a new DateTime representing the time a number of seconds since the - # instance time. Do not use this method in combination with x.months, use - # months_since instead! - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#116 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:119 def in(seconds); end - # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000". - # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#58 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:62 def inspect; end # Returns a Time instance of the simultaneous time in the system timezone. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#170 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:170 def localtime(utc_offset = T.unsafe(nil)); end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:133 def midday; end # Returns a new DateTime representing the middle of the day (12:00) # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:130 def middle_of_day; end - # Returns a new DateTime representing the start of the day (0:00). - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#122 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:125 def midnight; end - # Returns a new DateTime representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#130 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:134 def noon; end # Returns the fraction of a second as nanoseconds # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#96 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:96 def nsec; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_time/blank.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/blank.rb:15 def present?; end # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000". # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#58 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:58 def readable_inspect; end # Returns the number of seconds since 00:00:00. @@ -16909,7 +15549,7 @@ class DateTime < ::Date # DateTime.new(2012, 8, 29, 12, 34, 56).seconds_since_midnight # => 45296 # DateTime.new(2012, 8, 29, 23, 59, 59).seconds_since_midnight # => 86399 # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:20 def seconds_since_midnight; end # Returns the number of seconds until 23:59:59. @@ -16918,57 +15558,29 @@ class DateTime < ::Date # DateTime.new(2012, 8, 29, 12, 34, 56).seconds_until_end_of_day # => 41103 # DateTime.new(2012, 8, 29, 23, 59, 59).seconds_until_end_of_day # => 0 # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:29 def seconds_until_end_of_day; end # Returns a new DateTime representing the time a number of seconds since the # instance time. Do not use this method in combination with x.months, use # months_since instead! # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#116 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:116 def since(seconds); end # Returns the fraction of a second as a +Rational+ # # DateTime.new(2012, 8, 29, 0, 0, 0.5).subsec # => (1/2) # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#36 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:36 def subsec; end # Converts +self+ to a floating-point number of seconds, including fractional microseconds, since the Unix epoch. # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#81 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:81 def to_f; end - # Convert to a formatted string. See Time::DATE_FORMATS for predefined formats. - # - # This method is aliased to to_formatted_s. - # - # ==== Examples - # - # datetime = DateTime.civil(2007, 12, 4, 0, 0, 0, 0) # => Tue, 04 Dec 2007 00:00:00 +0000 - # - # datetime.to_fs(:db) # => "2007-12-04 00:00:00" - # datetime.to_formatted_s(:db) # => "2007-12-04 00:00:00" - # datetime.to_fs(:number) # => "20071204000000" - # datetime.to_fs(:short) # => "04 Dec 00:00" - # datetime.to_fs(:long) # => "December 04, 2007 00:00" - # datetime.to_fs(:long_ordinal) # => "December 4th, 2007 00:00" - # datetime.to_fs(:rfc822) # => "Tue, 04 Dec 2007 00:00:00 +0000" - # datetime.to_fs(:iso8601) # => "2007-12-04T00:00:00+00:00" - # - # ==== Adding your own datetime formats to +to_fs+ - # - # DateTime formats are shared with Time. You can add your own to the - # Time::DATE_FORMATS hash. Use the format name as the hash key and - # either a strftime string or Proc instance that takes a time or - # datetime argument as the value. - # - # # config/initializers/time_formats.rb - # Time::DATE_FORMATS[:month_and_year] = '%B %Y' - # Time::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") } - # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#37 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:44 def to_formatted_s(format = T.unsafe(nil)); end # Convert to a formatted string. See Time::DATE_FORMATS for predefined formats. @@ -16999,12 +15611,12 @@ class DateTime < ::Date # Time::DATE_FORMATS[:month_and_year] = '%B %Y' # Time::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") } # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#37 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:37 def to_fs(format = T.unsafe(nil)); end # Converts +self+ to an integer number of seconds since the Unix epoch. # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#86 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:86 def to_i; end # Either return an instance of +Time+ with the same UTC offset @@ -17012,12 +15624,12 @@ class DateTime < ::Date # in the local system timezone depending on the setting of # on the setting of +ActiveSupport.to_time_preserves_timezone+. # - # source://activesupport//lib/active_support/core_ext/date_time/compatibility.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/compatibility.rb:9 def to_time; end # Returns the fraction of a second as microseconds # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#91 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:91 def usec; end # Returns a Time instance of the simultaneous time in the UTC timezone. @@ -17025,27 +15637,25 @@ class DateTime < ::Date # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600 # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 UTC # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#184 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:184 def utc; end # Returns +true+ if offset == 0. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#197 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:197 def utc?; end # Returns the offset value in seconds. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#202 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:202 def utc_offset; end private - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:101 def offset_in_seconds; end - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#105 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:105 def seconds_since_unix_epoch; end class << self @@ -17057,30 +15667,30 @@ class DateTime < ::Date # DateTime.civil_from_format :local, 2012, 12, 17 # # => Mon, 17 Dec 2012 00:00:00 +0000 # - # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#71 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/conversions.rb:71 def civil_from_format(utc_or_local, year, month = T.unsafe(nil), day = T.unsafe(nil), hour = T.unsafe(nil), min = T.unsafe(nil), sec = T.unsafe(nil)); end # Returns Time.zone.now.to_datetime when Time.zone or # config.time_zone are set, otherwise returns # Time.now.to_datetime. # - # source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/date_time/calculations.rb:10 def current; end end end -# source://activesupport//lib/active_support/core_ext/object/try.rb#117 +# pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:117 class Delegator < ::BasicObject include ::ActiveSupport::Tryable end -# source://activesupport//lib/active_support/core_ext/digest/uuid.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:7 module Digest::UUID class << self # Returns the nil UUID. This is a special form of UUID that is specified to # have all 128 bits set to zero. # - # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#58 + # pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:58 def nil_uuid; end # Generates a v5 non-random UUID (Universally Unique IDentifier). @@ -17090,54 +15700,44 @@ module Digest::UUID # # See RFC 4122 for details of UUID at: https://www.ietf.org/rfc/rfc4122.txt # - # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#19 + # pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:19 def uuid_from_hash(hash_class, namespace, name); end # Convenience method for uuid_from_hash using OpenSSL::Digest::MD5. # - # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#42 + # pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:42 def uuid_v3(uuid_namespace, name); end # Convenience method for SecureRandom.uuid. # - # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#52 + # pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:52 def uuid_v4; end # Convenience method for uuid_from_hash using OpenSSL::Digest::SHA1. # - # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:47 def uuid_v5(uuid_namespace, name); end private - # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#62 + # pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:62 def pack_uuid_namespace(namespace); end end end -# source://activesupport//lib/active_support/core_ext/digest/uuid.rb#8 +# pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:8 Digest::UUID::DNS_NAMESPACE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/digest/uuid.rb#10 +# pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:10 Digest::UUID::OID_NAMESPACE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/digest/uuid.rb#9 +# pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:9 Digest::UUID::URL_NAMESPACE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/digest/uuid.rb#11 +# pkg:gem/activesupport#lib/active_support/core_ext/digest/uuid.rb:11 Digest::UUID::X500_NAMESPACE = T.let(T.unsafe(nil), String) -module ERB::Escape - private - - def html_escape(_arg0); end - - class << self - def html_escape(_arg0); end - end -end - -# source://activesupport//lib/active_support/core_ext/erb/util.rb#39 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:39 module ERB::Util include ::ActiveSupport::CoreExt::ERBUtil include ::ActiveSupport::CoreExt::ERBUtilPrivate @@ -17153,7 +15753,7 @@ module ERB::Util # html_escape_once('<< Accept & Checkout') # # => "<< Accept & Checkout" # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:63 def html_escape_once(s); end # A utility method for escaping HTML entities in JSON strings. Specifically, the @@ -17212,7 +15812,7 @@ module ERB::Util # JSON gem, do not provide this kind of protection by default; also some gems # might override +to_json+ to bypass Active Support's encoder). # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#124 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:124 def json_escape(s); end # A utility method for escaping XML names of tags and names of attributes. @@ -17222,139 +15822,62 @@ module ERB::Util # # It follows the requirements of the specification: https://www.w3.org/TR/REC-xml/#NT-Name # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#142 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:142 def xml_name_escape(name); end class << self - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 - def h(s); end - - # source://activesupport//lib/active_support/core_ext/erb/util.rb#25 - def html_escape(s); end - - # A utility method for escaping HTML without affecting existing escaped entities. - # - # html_escape_once('1 < 2 & 3') - # # => "1 < 2 & 3" - # - # html_escape_once('<< Accept & Checkout') - # # => "<< Accept & Checkout" - # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:67 def html_escape_once(s); end - # A utility method for escaping HTML entities in JSON strings. Specifically, the - # &, > and < characters are replaced with their equivalent unicode escaped form - - # \u0026, \u003e, and \u003c. The Unicode sequences \u2028 and \u2029 are also - # escaped as they are treated as newline characters in some JavaScript engines. - # These sequences have identical meaning as the original characters inside the - # context of a JSON string, so assuming the input is a valid and well-formed - # JSON value, the output will have equivalent meaning when parsed: - # - # json = JSON.generate({ name: ""}) - # # => "{\"name\":\"\"}" - # - # json_escape(json) - # # => "{\"name\":\"\\u003C/script\\u003E\\u003Cscript\\u003Ealert('PWNED!!!')\\u003C/script\\u003E\"}" - # - # JSON.parse(json) == JSON.parse(json_escape(json)) - # # => true - # - # The intended use case for this method is to escape JSON strings before including - # them inside a script tag to avoid XSS vulnerability: - # - # - # - # It is necessary to +raw+ the result of +json_escape+, so that quotation marks - # don't get converted to " entities. +json_escape+ doesn't - # automatically flag the result as HTML safe, since the raw value is unsafe to - # use inside HTML attributes. - # - # If your JSON is being used downstream for insertion into the DOM, be aware of - # whether or not it is being inserted via html(). Most jQuery plugins do this. - # If that is the case, be sure to +html_escape+ or +sanitize+ any user-generated - # content returned by your JSON. - # - # If you need to output JSON elsewhere in your HTML, you can just do something - # like this, as any unsafe characters (including quotation marks) will be - # automatically escaped for you: - # - #
...
- # - # WARNING: this helper only works with valid JSON. Using this on non-JSON values - # will open up serious XSS vulnerabilities. For example, if you replace the - # +current_user.to_json+ in the example above with user input instead, the browser - # will happily eval() that string as JavaScript. - # - # The escaping performed in this method is identical to those performed in the - # Active Support JSON encoder when +ActiveSupport.escape_html_entities_in_json+ is - # set to true. Because this transformation is idempotent, this helper can be - # applied even if +ActiveSupport.escape_html_entities_in_json+ is already true. - # - # Therefore, when you are unsure if +ActiveSupport.escape_html_entities_in_json+ - # is enabled, or if you are unsure where your JSON string originated from, it - # is recommended that you always apply this helper (other libraries, such as the - # JSON gem, do not provide this kind of protection by default; also some gems - # might override +to_json+ to bypass Active Support's encoder). - # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#124 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:134 def json_escape(s); end # Tokenizes a line of ERB. This is really just for error reporting and # nobody should use it. # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#161 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:161 def tokenize(source); end - # source://activesupport//lib/active_support/core_ext/erb/util.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:10 def unwrapped_html_escape(s); end - # A utility method for escaping XML names of tags and names of attributes. - # - # xml_name_escape('1 < 2 & 3') - # # => "1___2___3" - # - # It follows the requirements of the specification: https://www.w3.org/TR/REC-xml/#NT-Name - # - # source://activesupport//lib/active_support/core_ext/erb/util.rb#142 + # pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:157 def xml_name_escape(name); end end end -# source://activesupport//lib/active_support/core_ext/erb/util.rb#40 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:40 ERB::Util::HTML_ESCAPE = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#41 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:41 ERB::Util::HTML_ESCAPE_ONCE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#49 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:49 ERB::Util::INVALID_TAG_NAME_FOLLOWING_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#47 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:47 ERB::Util::INVALID_TAG_NAME_START_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#50 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:50 ERB::Util::SAFE_XML_TAG_NAME_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#48 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:48 ERB::Util::TAG_NAME_FOLLOWING_CODEPOINTS = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/erb/util.rb#51 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:51 ERB::Util::TAG_NAME_REPLACEMENT_CHAR = T.let(T.unsafe(nil), String) # Following XML requirements: https://www.w3.org/TR/REC-xml/#NT-Name # -# source://activesupport//lib/active_support/core_ext/erb/util.rb#44 +# pkg:gem/activesupport#lib/active_support/core_ext/erb/util.rb:44 ERB::Util::TAG_NAME_START_CODEPOINTS = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/object/json.rb#145 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:145 module Enumerable include ::ActiveSupport::ToJsonWithActiveSupportEncoder extend ::ActiveSupport::EnumerableCoreExt::Constants - # source://activesupport//lib/active_support/core_ext/object/json.rb#146 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:146 def as_json(options = T.unsafe(nil)); end # Returns a new +Array+ without the blank items. @@ -17371,15 +15894,13 @@ module Enumerable # { a: "", b: 1, c: nil, d: [], e: false, f: true }.compact_blank # # => { b: 1, f: true } # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#184 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:184 def compact_blank; end # The negative of the Enumerable#include?. Returns +true+ if the # collection does not include the object. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#118 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:118 def exclude?(object); end # Returns a copy of the enumerable excluding the specified elements. @@ -17393,7 +15914,7 @@ module Enumerable # {foo: 1, bar: 2, baz: 3}.excluding :bar # # => {foo: 1, baz: 3} # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#132 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:132 def excluding(*elements); end # Returns a new +Array+ where the order has been set to that provided in the +series+, based on the +key+ of the @@ -17406,7 +15927,7 @@ module Enumerable # If the Enumerable has additional elements that aren't named in the +series+, these are not included in the result, unless # the +filter+ option is set to +false+. # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#197 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:197 def in_order_of(key, series, filter: T.unsafe(nil)); end # Returns a new array that includes the passed elements. @@ -17417,7 +15938,7 @@ module Enumerable # ["David", "Rafael"].including %w[ Aaron Todd ] # # => ["David", "Rafael", "Aaron", "Todd"] # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#112 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:112 def including(*elements); end # Convert an enumerable to a hash, using the block result as the key and the @@ -17429,7 +15950,7 @@ module Enumerable # people.index_by { |person| "#{person.first_name} #{person.last_name}" } # # => { "Chade- Fowlersburg-e" => , "David Heinemeier Hansson" => , ...} # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#52 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:52 def index_by; end # Convert an enumerable to a hash, using the element as the key and the block @@ -17446,7 +15967,7 @@ module Enumerable # %i( created_at updated_at ).index_with(Time.now) # # => { created_at: 2020-03-09 22:31:47, updated_at: 2020-03-09 22:31:47 } # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:75 def index_with(default = T.unsafe(nil)); end # Returns +true+ if the enumerable has more than 1 element. Functionally @@ -17454,9 +15975,7 @@ module Enumerable # much like any?, so people.many? { |p| p.age > 26 } returns +true+ # if more than one person is over 26. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#93 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:93 def many?; end # Calculates the maximum from the extracted elements. @@ -17464,7 +15983,7 @@ module Enumerable # payments = [Payment.new(5), Payment.new(15), Payment.new(10)] # payments.maximum(:price) # => 15 # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:40 def maximum(key); end # Calculates the minimum from the extracted elements. @@ -17472,7 +15991,7 @@ module Enumerable # payments = [Payment.new(5), Payment.new(15), Payment.new(10)] # payments.minimum(:price) # => 5 # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:32 def minimum(key); end # Extract the given key from the first element in the enumerable. @@ -17483,7 +16002,7 @@ module Enumerable # [{ id: 1, name: "David" }, { id: 2, name: "Rafael" }].pick(:id, :name) # # => [1, "David"] # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#161 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:161 def pick(*keys); end # Extract the given key from each element in the enumerable. @@ -17494,7 +16013,7 @@ module Enumerable # [{ id: 1, name: "David" }, { id: 2, name: "Rafael" }].pluck(:id, :name) # # => [[1, "David"], [2, "Rafael"]] # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#145 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:145 def pluck(*keys); end # Returns the sole item in the enumerable. If there are no items, or more @@ -17504,39 +16023,28 @@ module Enumerable # Set.new.sole # => Enumerable::SoleItemExpectedError: no item found # { a: 1, b: 2 }.sole # => Enumerable::SoleItemExpectedError: multiple items found # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#211 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:211 def sole; end - # Returns a copy of the enumerable excluding the specified elements. - # - # ["David", "Rafael", "Aaron", "Todd"].excluding "Aaron", "Todd" - # # => ["David", "Rafael"] - # - # ["David", "Rafael", "Aaron", "Todd"].excluding %w[ Aaron Todd ] - # # => ["David", "Rafael"] - # - # {foo: 1, bar: 2, baz: 3}.excluding :bar - # # => {foo: 1, baz: 3} - # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#132 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:136 def without(*elements); end end # Error generated by +sole+ when called on an enumerable that doesn't have # exactly one item. # -# source://activesupport//lib/active_support/core_ext/enumerable.rb#21 +# pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:21 class Enumerable::SoleItemExpectedError < ::StandardError; end -# source://activesupport//lib/active_support/core_ext/object/json.rb#256 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:256 class Exception - # source://activesupport//lib/active_support/core_ext/object/json.rb#257 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:257 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/blank.rb#65 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:65 class FalseClass - # source://activesupport//lib/active_support/core_ext/object/json.rb#87 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:87 def as_json(options = T.unsafe(nil)); end # +false+ is blank: @@ -17545,21 +16053,19 @@ class FalseClass # # @return [true] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#71 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:71 def blank?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:75 def present?; end # Returns +self+. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#35 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:35 def to_param; end end -# source://activesupport//lib/active_support/core_ext/file/atomic.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/file/atomic.rb:5 class File < ::IO class << self # Write to a file atomically. Useful for situations where you don't @@ -17578,33 +16084,33 @@ class File < ::IO # file.write('hello') # end # - # source://activesupport//lib/active_support/core_ext/file/atomic.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/file/atomic.rb:21 def atomic_write(file_name, temp_dir = T.unsafe(nil)); end # Private utility method. # - # source://activesupport//lib/active_support/core_ext/file/atomic.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/file/atomic.rb:56 def probe_stat_in(dir); end end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#116 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:116 class Float < ::Numeric include ::ActiveSupport::NumericWithFormat # Encoding Infinity or NaN to JSON should return "null". The default returns # "Infinity" or "NaN" which are not valid JSON. # - # source://activesupport//lib/active_support/core_ext/object/json.rb#119 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:119 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/blank.rb#109 +# pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:3 class Hash include ::Enumerable include ::ActiveSupport::DeepMergeable - # source://activesupport//lib/active_support/core_ext/object/json.rb#175 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:175 def as_json(options = T.unsafe(nil)); end # Validates all keys in a hash match *valid_keys, raising @@ -17617,12 +16123,22 @@ class Hash # { name: 'Rob', age: '28' }.assert_valid_keys('name', 'age') # => raises "ArgumentError: Unknown key: :name. Valid keys are: 'name', 'age'" # { name: 'Rob', age: '28' }.assert_valid_keys(:name, :age) # => passes, raises nothing # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#48 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:48 def assert_valid_keys(*valid_keys); end + # A hash is blank if it's empty: + # + # {}.blank? # => true + # { key: 'value' }.blank? # => false + # + # @return [true, false] + # + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:116 + def blank?; end + # Hash#reject has its own definition, so this needs one too. # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#234 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:234 def compact_blank; end # Removes all blank values from the +Hash+ in place and returns self. @@ -17632,7 +16148,7 @@ class Hash # h.compact_blank! # # => { b: 1, f: true } # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#244 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:244 def compact_blank!; end # Returns a deep copy of hash. @@ -17644,12 +16160,10 @@ class Hash # hash[:a][:c] # => nil # dup[:a][:c] # => "c" # - # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#43 + # pkg:gem/activesupport#lib/active_support/core_ext/object/deep_dup.rb:43 def deep_dup; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/hash/deep_merge.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/deep_merge.rb:40 def deep_merge?(other); end # Returns a new hash with all keys converted to strings. @@ -17661,14 +16175,14 @@ class Hash # hash.deep_stringify_keys # # => {"person"=>{"name"=>"Rob", "age"=>"28"}} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#84 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:84 def deep_stringify_keys; end # Destructively converts all keys to strings. # This includes the keys from the root hash and from all # nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#91 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:91 def deep_stringify_keys!; end # Returns a new hash with all keys converted to symbols, as long as @@ -17680,14 +16194,14 @@ class Hash # hash.deep_symbolize_keys # # => {:person=>{:name=>"Rob", :age=>"28"}} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#103 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:103 def deep_symbolize_keys; end # Destructively converts all keys to symbols, as long as they respond # to +to_sym+. This includes the keys from the root hash and from all # nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#110 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:110 def deep_symbolize_keys!; end # Returns a new hash with all keys converted by the block operation. @@ -17699,14 +16213,14 @@ class Hash # hash.deep_transform_keys{ |key| key.to_s.upcase } # # => {"PERSON"=>{"NAME"=>"Rob", "AGE"=>"28"}} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#65 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:65 def deep_transform_keys(&block); end # Destructively converts all keys by using the block operation. # This includes the keys from the root hash and from all # nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#72 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:72 def deep_transform_keys!(&block); end # Returns a new hash with all values converted by the block operation. @@ -17718,14 +16232,14 @@ class Hash # hash.deep_transform_values{ |value| value.to_s.upcase } # # => {person: {name: "ROB", age: "28"}} # - # source://activesupport//lib/active_support/core_ext/hash/deep_transform_values.rb#12 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/deep_transform_values.rb:12 def deep_transform_values(&block); end # Destructively converts all values by using the block operation. # This includes the values from the root hash and from all # nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/deep_transform_values.rb#19 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/deep_transform_values.rb:19 def deep_transform_values!(&block); end # Removes the given keys from hash and returns it. @@ -17733,7 +16247,7 @@ class Hash # hash.except!(:c) # => { a: true, b: false } # hash # => { a: true, b: false } # - # source://activesupport//lib/active_support/core_ext/hash/except.rb#8 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/except.rb:8 def except!(*keys); end # Removes and returns the key/value pairs matching the given keys. @@ -17742,7 +16256,7 @@ class Hash # hash.extract!(:a, :b) # => {:a=>1, :b=>2} # hash # => {:c=>3, :d=>4} # - # source://activesupport//lib/active_support/core_ext/hash/slice.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/slice.rb:24 def extract!(*keys); end # By default, only instances of Hash itself are extractable. @@ -17751,14 +16265,9 @@ class Hash # is extractable, Array#extract_options! pops it from # the Array when it is the last element of the Array. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/array/extract_options.rb#9 + # pkg:gem/activesupport#lib/active_support/core_ext/array/extract_options.rb:9 def extractable_options?; end - # Returns an ActiveSupport::HashWithIndifferentAccess out of its receiver: - # - # { a: 1 }.with_indifferent_access['a'] # => 1 # Called when object is nested under an object that receives # #with_indifferent_access. This method will be called on the current object # by the enclosing object and is aliased to #with_indifferent_access by @@ -17770,12 +16279,10 @@ class Hash # { a: b }.with_indifferent_access['a'] # calls b.nested_under_indifferent_access # # => {"b"=>1} # - # source://activesupport//lib/active_support/core_ext/hash/indifferent_access.rb#9 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/indifferent_access.rb:23 def nested_under_indifferent_access; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#118 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:118 def present?; end # Merges the caller into +other_hash+. For example, @@ -17789,17 +16296,15 @@ class Hash # This is particularly useful for initializing an options hash # with default values. # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:14 def reverse_merge(other_hash); end # Destructive +reverse_merge+. # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:20 def reverse_merge!(other_hash); end - # Destructive +reverse_merge+. - # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:23 def reverse_update(other_hash); end # Replaces the hash with only the given keys. @@ -17809,7 +16314,7 @@ class Hash # hash.slice!(:a, :b) # => {:c=>3, :d=>4} # hash # => {:a=>1, :b=>2} # - # source://activesupport//lib/active_support/core_ext/hash/slice.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/slice.rb:10 def slice!(*keys); end # Returns a new hash with all keys converted to strings. @@ -17819,13 +16324,13 @@ class Hash # hash.stringify_keys # # => {"name"=>"Rob", "age"=>"28"} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:10 def stringify_keys; end # Destructively converts all keys to strings. Same as # +stringify_keys+, but modifies +self+. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:16 def stringify_keys!; end # Returns a new hash with all keys converted to symbols, as long as @@ -17836,32 +16341,24 @@ class Hash # hash.symbolize_keys # # => {:name=>"Rob", :age=>"28"} # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#27 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:27 def symbolize_keys; end # Destructively converts all keys to symbols, as long as they respond # to +to_sym+. Same as +symbolize_keys+, but modifies +self+. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#34 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:34 def symbolize_keys!; end - # Returns a new hash with all keys converted to symbols, as long as - # they respond to +to_sym+. - # - # hash = { 'name' => 'Rob', 'age' => '28' } - # - # hash.symbolize_keys - # # => {:name=>"Rob", :age=>"28"} - # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#27 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:30 def to_options; end - # Destructively converts all keys to symbols, as long as they respond - # to +to_sym+. Same as +symbolize_keys+, but modifies +self+. - # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#34 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:37 def to_options!; end + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:87 + def to_param(namespace = T.unsafe(nil)); end + # Returns a string representation of the receiver suitable for use as a URL # query string: # @@ -17876,24 +16373,7 @@ class Hash # The string pairs "key=value" that conform the query string # are sorted lexicographically in ascending order. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#76 - def to_param(namespace = T.unsafe(nil)); end - - # Returns a string representation of the receiver suitable for use as a URL - # query string: - # - # {name: 'David', nationality: 'Danish'}.to_query - # # => "name=David&nationality=Danish" - # - # An optional namespace can be passed to enclose key names: - # - # {name: 'David', nationality: 'Danish'}.to_query('user') - # # => "user%5Bname%5D=David&user%5Bnationality%5D=Danish" - # - # The string pairs "key=value" that conform the query string - # are sorted lexicographically in ascending order. - # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#76 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:76 def to_query(namespace = T.unsafe(nil)); end # Returns a string containing an XML representation of its receiver: @@ -17959,57 +16439,44 @@ class Hash # configure your own builder with the :builder option. The method also accepts # options like :dasherize and friends, they are forwarded to the builder. # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#74 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:74 def to_xml(options = T.unsafe(nil)); end - # Merges the caller into +other_hash+. For example, - # - # options = options.reverse_merge(size: 25, velocity: 10) - # - # is equivalent to - # - # options = { size: 25, velocity: 10 }.merge(options) - # - # This is particularly useful for initializing an options hash - # with default values. - # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:17 def with_defaults(other_hash); end - # Destructive +reverse_merge+. - # - # source://activesupport//lib/active_support/core_ext/hash/reverse_merge.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/reverse_merge.rb:24 def with_defaults!(other_hash); end # Returns an ActiveSupport::HashWithIndifferentAccess out of its receiver: # # { a: 1 }.with_indifferent_access['a'] # => 1 # - # source://activesupport//lib/active_support/core_ext/hash/indifferent_access.rb#9 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/indifferent_access.rb:9 def with_indifferent_access; end private # Support methods for deep transforming nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#116 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:116 def _deep_transform_keys_in_object(object, &block); end - # source://activesupport//lib/active_support/core_ext/hash/keys.rb#129 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/keys.rb:129 def _deep_transform_keys_in_object!(object, &block); end # Support methods for deep transforming nested hashes and arrays. # - # source://activesupport//lib/active_support/core_ext/hash/deep_transform_values.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/deep_transform_values.rb:25 def _deep_transform_values_in_object(object, &block); end - # source://activesupport//lib/active_support/core_ext/hash/deep_transform_values.rb#36 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/deep_transform_values.rb:36 def _deep_transform_values_in_object!(object, &block); end class << self # Builds a Hash from XML just like Hash.from_xml, but also allows Symbol and YAML. # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#133 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:133 def from_trusted_xml(xml); end # Returns a Hash containing a collection of pairs when the key is the node name and the value is @@ -18047,96 +16514,52 @@ class Hash # Note that passing custom disallowed types will override the default types, # which are Symbol and YAML. # - # source://activesupport//lib/active_support/core_ext/hash/conversions.rb#128 + # pkg:gem/activesupport#lib/active_support/core_ext/hash/conversions.rb:128 def from_xml(xml, disallowed_types = T.unsafe(nil)); end end end # :stopdoc: # -# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#444 +# pkg:gem/activesupport#lib/active_support/hash_with_indifferent_access.rb:444 HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess # :enddoc: # -# source://activesupport//lib/active_support/i18n_railtie.rb#8 -module I18n - class << self - # source://i18n/1.14.7/lib/i18n/backend/cache.rb#64 - def cache_key_digest; end - - # source://i18n/1.14.7/lib/i18n/backend/cache.rb#68 - def cache_key_digest=(key_digest); end - - # source://i18n/1.14.7/lib/i18n/backend/cache.rb#56 - def cache_namespace; end - - # source://i18n/1.14.7/lib/i18n/backend/cache.rb#60 - def cache_namespace=(namespace); end +# pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:8 +module I18n; end - # source://i18n/1.14.7/lib/i18n/backend/cache.rb#48 - def cache_store; end - - # source://i18n/1.14.7/lib/i18n/backend/cache.rb#52 - def cache_store=(store); end - - # source://i18n/1.14.7/lib/i18n/backend/fallbacks.rb#17 - def fallbacks; end - - # source://i18n/1.14.7/lib/i18n/backend/fallbacks.rb#23 - def fallbacks=(fallbacks); end - - # source://i18n/1.14.7/lib/i18n/interpolate/ruby.rb#23 - def interpolate(string, values); end - - # source://i18n/1.14.7/lib/i18n/interpolate/ruby.rb#29 - def interpolate_hash(string, values); end - - # source://i18n/1.14.7/lib/i18n.rb#38 - def new_double_nested_cache; end - - # source://i18n/1.14.7/lib/i18n/backend/cache.rb#72 - def perform_caching?; end - - # source://i18n/1.14.7/lib/i18n.rb#46 - def reserve_key(key); end - - # source://i18n/1.14.7/lib/i18n.rb#51 - def reserved_keys_pattern; end - end -end - -# source://activesupport//lib/active_support/i18n_railtie.rb#9 +# pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:9 class I18n::Railtie < ::Rails::Railtie class << self - # source://activesupport//lib/active_support/i18n_railtie.rb#103 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:103 def include_fallbacks_module; end - # source://activesupport//lib/active_support/i18n_railtie.rb#107 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:107 def init_fallbacks(fallbacks); end # Setup i18n configuration. # - # source://activesupport//lib/active_support/i18n_railtie.rb#35 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:35 def initialize_i18n(app); end - # source://activesupport//lib/active_support/i18n_railtie.rb#84 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:84 def setup_raise_on_missing_translations_config(app, strict); end - # source://activesupport//lib/active_support/i18n_railtie.rb#123 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:123 def validate_fallbacks(fallbacks); end - # source://activesupport//lib/active_support/i18n_railtie.rb#134 + # pkg:gem/activesupport#lib/active_support/i18n_railtie.rb:134 def watched_dirs_with_extensions(paths); end end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#151 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:151 class IO include ::Enumerable include ::File::Constants - # source://activesupport//lib/active_support/core_ext/object/json.rb#152 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:152 def as_json(options = T.unsafe(nil)); end end @@ -18220,16 +16643,6 @@ IO::Buffer::PRIVATE = T.let(T.unsafe(nil), Integer) IO::Buffer::READONLY = T.let(T.unsafe(nil), Integer) IO::Buffer::SHARED = T.let(T.unsafe(nil), Integer) -class IO::ConsoleMode - def echo=(_arg0); end - def raw(*_arg0); end - def raw!(*_arg0); end - - private - - def initialize_copy(_arg0); end -end - class IO::EAGAINWaitReadable < ::Errno::EAGAIN include ::IO::WaitReadable end @@ -18250,25 +16663,20 @@ IO::EWOULDBLOCKWaitReadable = IO::EAGAINWaitReadable IO::EWOULDBLOCKWaitWritable = IO::EAGAINWaitWritable IO::PRIORITY = T.let(T.unsafe(nil), Integer) IO::READABLE = T.let(T.unsafe(nil), Integer) -class IO::TimeoutError < ::IOError; end IO::WRITABLE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/integer/time.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/integer/multiple.rb:3 class Integer < ::Numeric include ::ActiveSupport::NumericWithFormat - # Returns a Duration instance matching the number of months provided. - # - # 2.months # => 2 months - # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:13 def month; end # Returns a Duration instance matching the number of months provided. # # 2.months # => 2 months # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:10 def months; end # Check whether the integer is evenly divisible by the argument. @@ -18277,9 +16685,7 @@ class Integer < ::Numeric # 6.multiple_of?(5) # => false # 10.multiple_of?(2) # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/integer/multiple.rb#9 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/multiple.rb:9 def multiple_of?(number); end # Ordinal returns the suffix used to denote the position @@ -18292,7 +16698,7 @@ class Integer < ::Numeric # -11.ordinal # => "th" # -1001.ordinal # => "st" # - # source://activesupport//lib/active_support/core_ext/integer/inflections.rb#28 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/inflections.rb:28 def ordinal; end # Ordinalize turns a number into an ordinal string used to denote the @@ -18305,31 +16711,27 @@ class Integer < ::Numeric # -11.ordinalize # => "-11th" # -1001.ordinalize # => "-1001st" # - # source://activesupport//lib/active_support/core_ext/integer/inflections.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/inflections.rb:15 def ordinalize; end - # Returns a Duration instance matching the number of years provided. - # - # 2.years # => 2 years - # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:21 def year; end # Returns a Duration instance matching the number of years provided. # # 2.years # => 2 years # - # source://activesupport//lib/active_support/core_ext/integer/time.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/integer/time.rb:18 def years; end end Integer::GMP_VERSION = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:3 module Kernel # class_eval on an object acts like +singleton_class.class_eval+. # - # source://activesupport//lib/active_support/core_ext/kernel/singleton_class.rb#5 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/singleton_class.rb:5 def class_eval(*args, &block); end private @@ -18338,13 +16740,13 @@ module Kernel # # See Module::Concerning for more. # - # source://activesupport//lib/active_support/core_ext/kernel/concern.rb#11 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/concern.rb:11 def concern(topic, &module_definition); end # Sets $VERBOSE to +true+ for the duration of the block and back to its # original value afterwards. # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:20 def enable_warnings(&block); end # Sets $VERBOSE to +nil+ for the duration of the block and back to its original @@ -18356,7 +16758,7 @@ module Kernel # # noisy_call # warning voiced # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:14 def silence_warnings(&block); end # Blocks and ignores any exception passed as argument if raised within the block. @@ -18368,13 +16770,13 @@ module Kernel # # puts 'This code gets executed and nothing related to ZeroDivisionError was seen' # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:41 def suppress(*exception_classes); end # Sets $VERBOSE for the duration of the block and back to its original # value afterwards. # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:26 def with_warnings(flag); end class << self @@ -18382,13 +16784,13 @@ module Kernel # # See Module::Concerning for more. # - # source://activesupport//lib/active_support/core_ext/kernel/concern.rb#11 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/concern.rb:11 def concern(topic, &module_definition); end # Sets $VERBOSE to +true+ for the duration of the block and back to its # original value afterwards. # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:20 def enable_warnings(&block); end # Sets $VERBOSE to +nil+ for the duration of the block and back to its original @@ -18400,7 +16802,7 @@ module Kernel # # noisy_call # warning voiced # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:14 def silence_warnings(&block); end # Blocks and ignores any exception passed as argument if raised within the block. @@ -18412,30 +16814,33 @@ module Kernel # # puts 'This code gets executed and nothing related to ZeroDivisionError was seen' # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:41 def suppress(*exception_classes); end # Sets $VERBOSE for the duration of the block and back to its original # value afterwards. # - # source://activesupport//lib/active_support/core_ext/kernel/reporting.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:26 def with_warnings(flag); end end end -# source://activesupport//lib/active_support/core_ext/load_error.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/load_error.rb:3 class LoadError < ::ScriptError include ::DidYouMean::Correctable # Returns true if the given path name (except perhaps for the ".rb" # extension) is the missing file which caused the exception to be raised. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/load_error.rb#6 + # pkg:gem/activesupport#lib/active_support/core_ext/load_error.rb:6 def is_missing?(location); end end +# == Attribute Accessors +# +# Extends the module object with class/module and instance accessors for +# class/module attributes, just like the native attr* accessors for instance +# attributes. # == Attribute Accessors per Thread # # Extends the module object with class/module and instance accessors for @@ -18448,7 +16853,7 @@ end # Note that it can also be scoped per-fiber if +Rails.application.config.active_support.isolation_level+ # is set to +:fiber+. # -# source://activesupport//lib/active_support/core_ext/module/delegation.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/module/delegation.rb:3 class Module include ::Module::Concerning @@ -18470,7 +16875,7 @@ class Module # e.subject = "Megastars" # e.title # => "Megastars" # - # source://activesupport//lib/active_support/core_ext/module/aliasing.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/module/aliasing.rb:21 def alias_attribute(new_name, old_name); end # A module may or may not have a name. @@ -18497,206 +16902,38 @@ class Module # m.name # => "M" # m.anonymous? # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/module/anonymous.rb#27 + # pkg:gem/activesupport#lib/active_support/core_ext/module/anonymous.rb:27 def anonymous?; end - # source://activesupport//lib/active_support/core_ext/object/json.rb#53 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:53 def as_json(options = T.unsafe(nil)); end - # Declares an attribute reader and writer backed by an internally-named instance - # variable. - # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:20 def attr_internal(*attrs); end # Declares an attribute reader and writer backed by an internally-named instance # variable. # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:16 def attr_internal_accessor(*attrs); end # Declares an attribute reader backed by an internally-named instance variable. # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#5 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:5 def attr_internal_reader(*attrs); end # Declares an attribute writer backed by an internally-named instance variable. # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:10 def attr_internal_writer(*attrs); end - # Defines both class and instance accessors for class attributes. - # All class and instance methods created will be public, even if - # this method is called with a private or protected access modifier. - # - # module HairColors - # mattr_accessor :hair_colors - # end - # - # class Person - # include HairColors - # end - # - # HairColors.hair_colors = [:brown, :black, :blonde, :red] - # HairColors.hair_colors # => [:brown, :black, :blonde, :red] - # Person.new.hair_colors # => [:brown, :black, :blonde, :red] - # - # If a subclass changes the value then that would also change the value for - # parent class. Similarly if parent class changes the value then that would - # change the value of subclasses too. - # - # class Citizen < Person - # end - # - # Citizen.new.hair_colors << :blue - # Person.new.hair_colors # => [:brown, :black, :blonde, :red, :blue] - # - # To omit the instance writer method, pass instance_writer: false. - # To omit the instance reader method, pass instance_reader: false. - # - # module HairColors - # mattr_accessor :hair_colors, instance_writer: false, instance_reader: false - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors = [:brown] # => NoMethodError - # Person.new.hair_colors # => NoMethodError - # - # Or pass instance_accessor: false, to omit both instance methods. - # - # module HairColors - # mattr_accessor :hair_colors, instance_accessor: false - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors = [:brown] # => NoMethodError - # Person.new.hair_colors # => NoMethodError - # - # You can set a default value for the attribute. - # - # module HairColors - # mattr_accessor :hair_colors, default: [:brown, :black, :blonde, :red] - # mattr_accessor(:hair_styles) { [:long, :short] } - # end - # - # class Person - # include HairColors - # end - # - # Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red] - # Person.class_variable_get("@@hair_styles") # => [:long, :short] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#208 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:213 def cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), &blk); end - # Defines a class attribute and creates a class and instance reader methods. - # The underlying class variable is set to +nil+, if it is not previously - # defined. All class and instance methods created will be public, even if - # this method is called with a private or protected access modifier. - # - # module HairColors - # mattr_reader :hair_colors - # end - # - # HairColors.hair_colors # => nil - # HairColors.class_variable_set("@@hair_colors", [:brown, :black]) - # HairColors.hair_colors # => [:brown, :black] - # - # The attribute name must be a valid method name in Ruby. - # - # module Foo - # mattr_reader :"1_Badname" - # end - # # => NameError: invalid attribute name: 1_Badname - # - # To omit the instance reader method, pass - # instance_reader: false or instance_accessor: false. - # - # module HairColors - # mattr_reader :hair_colors, instance_reader: false - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors # => NoMethodError - # - # You can set a default value for the attribute. - # - # module HairColors - # mattr_reader :hair_colors, default: [:brown, :black, :blonde, :red] - # mattr_reader(:hair_styles) { [:long, :short] } - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors # => [:brown, :black, :blonde, :red] - # Person.new.hair_styles # => [:long, :short] - # - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:75 def cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end - # Defines a class attribute and creates a class and instance writer methods to - # allow assignment to the attribute. All class and instance methods created - # will be public, even if this method is called with a private or protected - # access modifier. - # - # module HairColors - # mattr_writer :hair_colors - # end - # - # class Person - # include HairColors - # end - # - # HairColors.hair_colors = [:brown, :black] - # Person.class_variable_get("@@hair_colors") # => [:brown, :black] - # Person.new.hair_colors = [:blonde, :red] - # HairColors.class_variable_get("@@hair_colors") # => [:blonde, :red] - # - # To omit the instance writer method, pass - # instance_writer: false or instance_accessor: false. - # - # module HairColors - # mattr_writer :hair_colors, instance_writer: false - # end - # - # class Person - # include HairColors - # end - # - # Person.new.hair_colors = [:blonde, :red] # => NoMethodError - # - # You can set a default value for the attribute. - # - # module HairColors - # mattr_writer :hair_colors, default: [:brown, :black, :blonde, :red] - # mattr_writer(:hair_styles) { [:long, :short] } - # end - # - # class Person - # include HairColors - # end - # - # Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red] - # Person.class_variable_get("@@hair_styles") # => [:long, :short] - # - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#121 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:140 def cattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end # Returns a copy of module or class if it's anonymous. If it's @@ -18706,7 +16943,7 @@ class Module # klass = Class.new # klass.deep_dup == klass # => false # - # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#64 + # pkg:gem/activesupport#lib/active_support/core_ext/object/deep_dup.rb:64 def deep_dup; end # Provides a +delegate+ class method to easily expose contained objects' @@ -18863,7 +17100,7 @@ class Module # # The target method must be public, otherwise it will raise +NoMethodError+. # - # source://activesupport//lib/active_support/core_ext/module/delegation.rb#160 + # pkg:gem/activesupport#lib/active_support/core_ext/module/delegation.rb:160 def delegate(*methods, to: T.unsafe(nil), prefix: T.unsafe(nil), allow_nil: T.unsafe(nil), private: T.unsafe(nil)); end # When building decorators, a common pattern may emerge: @@ -18913,10 +17150,10 @@ class Module # Marshal.dump(object), should the delegation target method # of object add or remove instance variables. # - # source://activesupport//lib/active_support/core_ext/module/delegation.rb#218 + # pkg:gem/activesupport#lib/active_support/core_ext/module/delegation.rb:218 def delegate_missing_to(target, allow_nil: T.unsafe(nil)); end - # deprecate :foo, deprecator: MyLib.deprecator + # deprecate :foo, deprecator: MyLib.deprecator # deprecate :foo, bar: "warning!", deprecator: MyLib.deprecator # # A deprecator is typically an instance of ActiveSupport::Deprecation, but you can also pass any object that responds @@ -18930,7 +17167,7 @@ class Module # end # end # - # source://activesupport//lib/active_support/core_ext/module/deprecation.rb#17 + # pkg:gem/activesupport#lib/active_support/core_ext/module/deprecation.rb:17 def deprecate(*method_names, deprecator:, **options); end # Defines both class and instance accessors for class attributes. @@ -19000,7 +17237,7 @@ class Module # Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red] # Person.class_variable_get("@@hair_styles") # => [:long, :short] # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#208 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:208 def mattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), &blk); end # Defines a class attribute and creates a class and instance reader methods. @@ -19050,9 +17287,7 @@ class Module # Person.new.hair_colors # => [:brown, :black, :blonde, :red] # Person.new.hair_styles # => [:long, :short] # - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:55 def mattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end # Defines a class attribute and creates a class and instance writer methods to @@ -19100,12 +17335,10 @@ class Module # Person.class_variable_get("@@hair_colors") # => [:brown, :black, :blonde, :red] # Person.class_variable_get("@@hair_styles") # => [:long, :short] # - # @raise [TypeError] - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors.rb#121 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors.rb:121 def mattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil), location: T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/module/redefine_method.rb#30 + # pkg:gem/activesupport#lib/active_support/core_ext/module/redefine_method.rb:30 def method_visibility(method); end # Returns the module which contains this one according to its name. @@ -19124,160 +17357,68 @@ class Module # M.module_parent # => Object # Module.new.module_parent # => Object # - # source://activesupport//lib/active_support/core_ext/module/introspection.rb#37 - def module_parent; end - - # Returns the name of the module containing this one. - # - # M::N.module_parent_name # => "M" - # - # source://activesupport//lib/active_support/core_ext/module/introspection.rb#9 - def module_parent_name; end - - # Returns all the parents of this module according to its name, ordered from - # nested outwards. The receiver is not contained within the result. - # - # module M - # module N - # end - # end - # X = M::N - # - # M.module_parents # => [Object] - # M::N.module_parents # => [M, Object] - # X.module_parents # => [M, Object] - # - # source://activesupport//lib/active_support/core_ext/module/introspection.rb#53 - def module_parents; end - - # Replaces the existing method definition, if there is one, with the passed - # block as its body. - # - # source://activesupport//lib/active_support/core_ext/module/redefine_method.rb#17 - def redefine_method(method, &block); end - - # Replaces the existing singleton method definition, if there is one, with - # the passed block as its body. - # - # source://activesupport//lib/active_support/core_ext/module/redefine_method.rb#26 - def redefine_singleton_method(method, &block); end - - # Removes the named method, if it exists. - # - # source://activesupport//lib/active_support/core_ext/module/remove_method.rb#7 - def remove_possible_method(method); end - - # Removes the named singleton method, if it exists. - # - # source://activesupport//lib/active_support/core_ext/module/remove_method.rb#14 - def remove_possible_singleton_method(method); end - - # Marks the named method as intended to be redefined, if it exists. - # Suppresses the Ruby method redefinition warning. Prefer - # #redefine_method where possible. - # - # source://activesupport//lib/active_support/core_ext/module/redefine_method.rb#7 - def silence_redefinition_of_method(method); end - - # Defines both class and instance accessors for class attributes. - # - # class Account - # thread_mattr_accessor :user - # end - # - # Account.user = "DHH" - # Account.user # => "DHH" - # Account.new.user # => "DHH" - # - # Unlike +mattr_accessor+, values are *not* shared with subclasses or parent classes. - # If a subclass changes the value, the parent class' value is not changed. - # If the parent class changes the value, the value of subclasses is not changed. - # - # class Customer < Account - # end - # - # Account.user # => "DHH" - # Customer.user # => nil - # Customer.user = "Rafael" - # Customer.user # => "Rafael" - # Account.user # => "DHH" - # - # To omit the instance writer method, pass instance_writer: false. - # To omit the instance reader method, pass instance_reader: false. - # - # class Current - # thread_mattr_accessor :user, instance_writer: false, instance_reader: false - # end - # - # Current.new.user = "DHH" # => NoMethodError - # Current.new.user # => NoMethodError - # - # Or pass instance_accessor: false, to omit both instance methods. - # - # class Current - # thread_mattr_accessor :user, instance_accessor: false - # end - # - # Current.new.user = "DHH" # => NoMethodError - # Current.new.user # => NoMethodError - # - # A default value may be specified using the +:default+ option. Because - # multiple threads can access the default value, non-frozen default values - # will be duped and frozen. - # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#170 - def thread_cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end - - # Defines a per-thread class attribute and creates class and instance reader methods. - # The underlying per-thread class variable is set to +nil+, if it is not previously defined. - # - # module Current - # thread_mattr_reader :user - # end - # - # Current.user = "DHH" - # Current.user # => "DHH" - # Thread.new { Current.user }.value # => nil - # - # The attribute name must be a valid method name in Ruby. + # pkg:gem/activesupport#lib/active_support/core_ext/module/introspection.rb:37 + def module_parent; end + + # Returns the name of the module containing this one. # - # module Foo - # thread_mattr_reader :"1_Badname" - # end - # # => NameError: invalid attribute name: 1_Badname + # M::N.module_parent_name # => "M" # - # To omit the instance reader method, pass - # instance_reader: false or instance_accessor: false. + # pkg:gem/activesupport#lib/active_support/core_ext/module/introspection.rb:9 + def module_parent_name; end + + # Returns all the parents of this module according to its name, ordered from + # nested outwards. The receiver is not contained within the result. # - # class Current - # thread_mattr_reader :user, instance_reader: false + # module M + # module N + # end # end + # X = M::N # - # Current.new.user # => NoMethodError + # M.module_parents # => [Object] + # M::N.module_parents # => [M, Object] + # X.module_parents # => [M, Object] # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#41 - def thread_cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end + # pkg:gem/activesupport#lib/active_support/core_ext/module/introspection.rb:53 + def module_parents; end - # Defines a per-thread class attribute and creates a class and instance writer methods to - # allow assignment to the attribute. - # - # module Current - # thread_mattr_writer :user - # end + # Replaces the existing method definition, if there is one, with the passed + # block as its body. # - # Current.user = "DHH" - # Thread.current[:attr_Current_user] # => "DHH" + # pkg:gem/activesupport#lib/active_support/core_ext/module/redefine_method.rb:17 + def redefine_method(method, &block); end + + # Replaces the existing singleton method definition, if there is one, with + # the passed block as its body. # - # To omit the instance writer method, pass - # instance_writer: false or instance_accessor: false. + # pkg:gem/activesupport#lib/active_support/core_ext/module/redefine_method.rb:26 + def redefine_singleton_method(method, &block); end + + # Removes the named method, if it exists. # - # class Current - # thread_mattr_writer :user, instance_writer: false - # end + # pkg:gem/activesupport#lib/active_support/core_ext/module/remove_method.rb:7 + def remove_possible_method(method); end + + # Removes the named singleton method, if it exists. # - # Current.new.user = "DHH" # => NoMethodError + # pkg:gem/activesupport#lib/active_support/core_ext/module/remove_method.rb:14 + def remove_possible_singleton_method(method); end + + # Marks the named method as intended to be redefined, if it exists. + # Suppresses the Ruby method redefinition warning. Prefer + # #redefine_method where possible. # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/module/redefine_method.rb:7 + def silence_redefinition_of_method(method); end + + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:174 + def thread_cattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end + + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:81 + def thread_cattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end + + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:123 def thread_cattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil)); end # Defines both class and instance accessors for class attributes. @@ -19326,7 +17467,7 @@ class Module # multiple threads can access the default value, non-frozen default values # will be duped and frozen. # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#170 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:170 def thread_mattr_accessor(*syms, instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end # Defines a per-thread class attribute and creates class and instance reader methods. @@ -19356,7 +17497,7 @@ class Module # # Current.new.user # => NoMethodError # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:41 def thread_mattr_reader(*syms, instance_reader: T.unsafe(nil), instance_accessor: T.unsafe(nil), default: T.unsafe(nil)); end # Defines a per-thread class attribute and creates a class and instance writer methods to @@ -19378,21 +17519,19 @@ class Module # # Current.new.user = "DHH" # => NoMethodError # - # source://activesupport//lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attribute_accessors_per_thread.rb:101 def thread_mattr_writer(*syms, instance_writer: T.unsafe(nil), instance_accessor: T.unsafe(nil)); end private - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:40 def attr_internal_define(attr_name, type); end class << self - # Returns the value of attribute attr_internal_naming_format. - # - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#23 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:23 def attr_internal_naming_format; end - # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/module/attr_internal.rb:25 def attr_internal_naming_format=(format); end end end @@ -19504,7 +17643,7 @@ end # concerning supports a prepend: true argument which will prepend the # concern instead of using include for it. # -# source://activesupport//lib/active_support/core_ext/module/concerning.rb#112 +# pkg:gem/activesupport#lib/active_support/core_ext/module/concerning.rb:112 module Module::Concerning # A low-cruft shortcut to define a concern. # @@ -19520,19 +17659,19 @@ module Module::Concerning # ... # end # - # source://activesupport//lib/active_support/core_ext/module/concerning.rb#132 + # pkg:gem/activesupport#lib/active_support/core_ext/module/concerning.rb:132 def concern(topic, &module_definition); end # Define a new concern and mix it in. # - # source://activesupport//lib/active_support/core_ext/module/concerning.rb#114 + # pkg:gem/activesupport#lib/active_support/core_ext/module/concerning.rb:114 def concerning(topic, prepend: T.unsafe(nil), &block); end end -# source://activesupport//lib/active_support/core_ext/module/delegation.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/module/delegation.rb:5 Module::DelegationError = ActiveSupport::DelegationError -# source://activesupport//lib/active_support/core_ext/name_error.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:3 class NameError < ::StandardError include ::ErrorHighlight::CoreExt include ::DidYouMean::Correctable @@ -19546,7 +17685,7 @@ class NameError < ::StandardError # end # # => "HelloWorld" # - # source://activesupport//lib/active_support/core_ext/name_error.rb#12 + # pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:12 def missing_name; end # Was this exception raised because the given name was missing? @@ -19558,23 +17697,21 @@ class NameError < ::StandardError # end # # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/name_error.rb#44 + # pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:44 def missing_name?(name); end private - # source://activesupport//lib/active_support/core_ext/name_error.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:56 def real_mod_name(mod); end end -# source://activesupport//lib/active_support/core_ext/name_error.rb#53 +# pkg:gem/activesupport#lib/active_support/core_ext/name_error.rb:53 NameError::UNBOUND_METHOD_MODULE_NAME = T.let(T.unsafe(nil), UnboundMethod) -# source://activesupport//lib/active_support/core_ext/object/try.rb#137 +# pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:137 class NilClass - # source://activesupport//lib/active_support/core_ext/object/json.rb#93 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:93 def as_json(options = T.unsafe(nil)); end # +nil+ is blank: @@ -19583,17 +17720,15 @@ class NilClass # # @return [true] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#56 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:56 def blank?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#60 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:60 def present?; end # Returns +self+. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:21 def to_param; end # Calling +try+ on +nil+ always returns +nil+. @@ -19607,22 +17742,22 @@ class NilClass # With +try+ # @person.try(:children).try(:first).try(:name) # - # source://activesupport//lib/active_support/core_ext/object/try.rb#148 - def try(*_arg0, &_arg1); end + # pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:148 + def try(*, &); end # Calling +try!+ on +nil+ always returns +nil+. # # nil.try!(:name) # => nil # - # source://activesupport//lib/active_support/core_ext/object/try.rb#155 - def try!(*_arg0, &_arg1); end + # pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:155 + def try!(*, &); end end -# source://activesupport//lib/active_support/core_ext/object/blank.rb#170 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:170 class Numeric include ::Comparable - # source://activesupport//lib/active_support/core_ext/object/json.rb#111 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:111 def as_json(options = T.unsafe(nil)); end # No number is blank: @@ -19632,96 +17767,70 @@ class Numeric # # @return [false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#177 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:177 def blank?; end - # Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes - # - # 2.bytes # => 2 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:18 def byte; end # Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes # # 2.bytes # => 2 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:15 def bytes; end - # Returns a Duration instance matching the number of days provided. - # - # 2.days # => 2 days - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#37 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:40 def day; end # Returns a Duration instance matching the number of days provided. # # 2.days # => 2 days # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#37 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:37 def days; end - # Returns the number of bytes equivalent to the exabytes provided. - # - # 2.exabytes # => 2_305_843_009_213_693_952 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:66 def exabyte; end # Returns the number of bytes equivalent to the exabytes provided. # # 2.exabytes # => 2_305_843_009_213_693_952 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:63 def exabytes; end - # Returns a Duration instance matching the number of fortnights provided. - # - # 2.fortnights # => 4 weeks - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#53 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:56 def fortnight; end # Returns a Duration instance matching the number of fortnights provided. # # 2.fortnights # => 4 weeks # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#53 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:53 def fortnights; end - # Returns the number of bytes equivalent to the gigabytes provided. - # - # 2.gigabytes # => 2_147_483_648 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:42 def gigabyte; end # Returns the number of bytes equivalent to the gigabytes provided. # # 2.gigabytes # => 2_147_483_648 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:39 def gigabytes; end - # Returns a Duration instance matching the number of hours provided. - # - # 2.hours # => 2 hours - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:32 def hour; end # Returns a Duration instance matching the number of hours provided. # # 2.hours # => 2 hours # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:29 def hours; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:13 def html_safe?; end # Returns the number of milliseconds equivalent to the seconds provided. @@ -19730,146 +17839,112 @@ class Numeric # 2.in_milliseconds # => 2000 # 1.hour.in_milliseconds # => 3600000 # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:63 def in_milliseconds; end - # Returns the number of bytes equivalent to the kilobytes provided. - # - # 2.kilobytes # => 2048 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#23 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:26 def kilobyte; end # Returns the number of bytes equivalent to the kilobytes provided. # # 2.kilobytes # => 2048 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#23 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:23 def kilobytes; end - # Returns the number of bytes equivalent to the megabytes provided. - # - # 2.megabytes # => 2_097_152 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#31 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:34 def megabyte; end # Returns the number of bytes equivalent to the megabytes provided. # # 2.megabytes # => 2_097_152 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#31 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:31 def megabytes; end - # Returns a Duration instance matching the number of minutes provided. - # - # 2.minutes # => 2 minutes - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:24 def minute; end # Returns a Duration instance matching the number of minutes provided. # # 2.minutes # => 2 minutes # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:21 def minutes; end - # Returns the number of bytes equivalent to the petabytes provided. - # - # 2.petabytes # => 2_251_799_813_685_248 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:58 def petabyte; end # Returns the number of bytes equivalent to the petabytes provided. # # 2.petabytes # => 2_251_799_813_685_248 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:55 def petabytes; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#181 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:181 def present?; end - # Returns a Duration instance matching the number of seconds provided. - # - # 2.seconds # => 2 seconds - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:16 def second; end # Returns a Duration instance matching the number of seconds provided. # # 2.seconds # => 2 seconds # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:13 def seconds; end - # Returns the number of bytes equivalent to the terabytes provided. - # - # 2.terabytes # => 2_199_023_255_552 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:50 def terabyte; end # Returns the number of bytes equivalent to the terabytes provided. # # 2.terabytes # => 2_199_023_255_552 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:47 def terabytes; end - # Returns a Duration instance matching the number of weeks provided. - # - # 2.weeks # => 2 weeks - # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#45 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:48 def week; end # Returns a Duration instance matching the number of weeks provided. # # 2.weeks # => 2 weeks # - # source://activesupport//lib/active_support/core_ext/numeric/time.rb#45 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/time.rb:45 def weeks; end - # Returns the number of bytes equivalent to the zettabytes provided. - # - # 2.zettabytes # => 2_361_183_241_434_822_606_848 - # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#71 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:74 def zettabyte; end # Returns the number of bytes equivalent to the zettabytes provided. # # 2.zettabytes # => 2_361_183_241_434_822_606_848 # - # source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#71 + # pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:71 def zettabytes; end end -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#9 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:9 Numeric::EXABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:6 Numeric::GIGABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#4 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:4 Numeric::KILOBYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:5 Numeric::MEGABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#8 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:8 Numeric::PETABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:7 Numeric::TERABYTE = T.let(T.unsafe(nil), Integer) -# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#10 +# pkg:gem/activesupport#lib/active_support/core_ext/numeric/bytes.rb:10 Numeric::ZETTABYTE = T.let(T.unsafe(nil), Integer) # -- @@ -19891,7 +17966,7 @@ Numeric::ZETTABYTE = T.let(T.unsafe(nil), Integer) # using that rescue idiom. # ++ # -# source://activesupport//lib/active_support/core_ext/object/try.rb#35 +# pkg:gem/activesupport#lib/active_support/core_ext/object/try.rb:35 class Object < ::BasicObject include ::ActiveSupport::Dependencies::RequireDependency include ::Kernel @@ -19928,12 +18003,10 @@ class Object < ::BasicObject # # Stringish.new.acts_like?(:string) # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/acts_like.rb#33 + # pkg:gem/activesupport#lib/active_support/core_ext/object/acts_like.rb:33 def acts_like?(duck); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#59 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:59 def as_json(options = T.unsafe(nil)); end # An object is blank if it's false, empty, or a whitespace string. @@ -19949,7 +18022,7 @@ class Object < ::BasicObject # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:18 def blank?; end # Returns a deep copy of object if it's duplicable. If it's @@ -19962,7 +18035,7 @@ class Object < ::BasicObject # object.instance_variable_defined?(:@a) # => false # dup.instance_variable_defined?(:@a) # => true # - # source://activesupport//lib/active_support/core_ext/object/deep_dup.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/object/deep_dup.rb:15 def deep_dup; end # Can you safely dup this object? @@ -19970,14 +18043,10 @@ class Object < ::BasicObject # False for method objects; # true otherwise. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/object/duplicable.rb:26 def duplicable?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:7 def html_safe?; end # Returns true if this object is included in the argument. @@ -19992,9 +18061,7 @@ class Object < ::BasicObject # For non +Range+ arguments, this will throw an +ArgumentError+ if the argument # doesn't respond to +#include?+. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/inclusion.rb#15 + # pkg:gem/activesupport#lib/active_support/core_ext/object/inclusion.rb:15 def in?(another_object); end # Returns a hash with string keys that maps instance variable names without "@" to their @@ -20008,7 +18075,7 @@ class Object < ::BasicObject # # C.new(0, 1).instance_values # => {"x" => 0, "y" => 1} # - # source://activesupport//lib/active_support/core_ext/object/instance_variables.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/object/instance_variables.rb:14 def instance_values; end # Returns an array of instance variable names as strings including "@". @@ -20021,7 +18088,7 @@ class Object < ::BasicObject # # C.new(0, 1).instance_variable_names # => ["@y", "@x"] # - # source://activesupport//lib/active_support/core_ext/object/instance_variables.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/object/instance_variables.rb:29 def instance_variable_names; end # Returns the receiver if it's present otherwise returns +nil+. @@ -20041,7 +18108,7 @@ class Object < ::BasicObject # # @return [Object] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#45 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:45 def presence; end # Returns the receiver if it's included in the argument otherwise returns +nil+. @@ -20053,25 +18120,25 @@ class Object < ::BasicObject # # @return [Object] # - # source://activesupport//lib/active_support/core_ext/object/inclusion.rb#34 + # pkg:gem/activesupport#lib/active_support/core_ext/object/inclusion.rb:34 def presence_in(another_object); end # An object is present if it's not blank. # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#25 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:25 def present?; end # Alias of to_s. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#8 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:8 def to_param; end # Converts an object into a string suitable for use as a URL query string, # using the given key as the param name. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:14 def to_query(key); end # Set and restore public attributes around a block. @@ -20097,7 +18164,7 @@ class Object < ::BasicObject # It can be used on any object as long as both the reader and writer methods # are public. # - # source://activesupport//lib/active_support/core_ext/object/with.rb#26 + # pkg:gem/activesupport#lib/active_support/core_ext/object/with.rb:26 def with(**attributes); end # An elegant way to factor duplication out of options passed to a series of @@ -20186,13 +18253,13 @@ class Object < ::BasicObject # styled.button_tag "I'm red too!" # # => # - # source://activesupport//lib/active_support/core_ext/object/with_options.rb#92 + # pkg:gem/activesupport#lib/active_support/core_ext/object/with_options.rb:92 def with_options(options, &block); end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#236 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:236 class Pathname - # source://activesupport//lib/active_support/core_ext/object/json.rb#237 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:237 def as_json(options = T.unsafe(nil)); end # An Pathname is blank if it's empty: @@ -20203,7 +18270,7 @@ class Pathname # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/pathname/blank.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/pathname/blank.rb:13 def blank?; end # Returns the receiver if the named file exists otherwise returns +nil+. @@ -20221,12 +18288,10 @@ class Pathname # # @return [Pathname] # - # source://activesupport//lib/active_support/core_ext/pathname/existence.rb#20 + # pkg:gem/activesupport#lib/active_support/core_ext/pathname/existence.rb:20 def existence; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/pathname/blank.rb#17 + # pkg:gem/activesupport#lib/active_support/core_ext/pathname/blank.rb:17 def present?; end end @@ -20234,40 +18299,42 @@ module Process extend ::ConnectionPool::ForkTracker extend ::RedisClient::PIDCache::CoreExt extend ::Dalli::PIDCache::CoreExt - extend ::FFI::ModernForkTracking extend ::ActiveSupport::ForkTracker::CoreExt class << self - # source://activesupport//lib/active_support/fork_tracker.rb#6 + # pkg:gem/activesupport#lib/active_support/fork_tracker.rb:6 def _fork; end end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#250 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:250 class Process::Status - # source://activesupport//lib/active_support/core_ext/object/json.rb#251 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:251 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#157 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:157 class Range include ::ActiveSupport::RangeWithFormat include ::ActiveSupport::CompareWithRange include ::ActiveSupport::EachTimeWithZone include ::Enumerable - # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#16 + # pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:16 def ===(value); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#158 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:158 def as_json(options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/range/each.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/range/each.rb:7 def each(&block); end - # source://activesupport//lib/active_support/core_ext/range/compare_range.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/range/compare_range.rb:41 def include?(value); end + # pkg:gem/activesupport#lib/active_support/core_ext/range/overlap.rb:39 + def overlaps?(_arg0); end + # Returns the sole item in the range. If there are no items, or more # than one item, raises Enumerable::SoleItemExpectedError. # @@ -20275,22 +18342,22 @@ class Range # (2..1).sole # => Enumerable::SoleItemExpectedError: no item found # (..1).sole # => Enumerable::SoleItemExpectedError: infinite range cannot represent a sole item # - # source://activesupport//lib/active_support/core_ext/range/sole.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/range/sole.rb:10 def sole; end - # source://activesupport//lib/active_support/core_ext/range/each.rb#12 + # pkg:gem/activesupport#lib/active_support/core_ext/range/each.rb:12 def step(n = T.unsafe(nil), &block); end # Optimize range sum to use arithmetic progression if a block is not given and # we have a range of numeric values. # - # source://activesupport//lib/active_support/core_ext/enumerable.rb#253 + # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:253 def sum(initial_value = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#139 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:139 class Regexp - # source://activesupport//lib/active_support/core_ext/object/json.rb#140 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:140 def as_json(options = T.unsafe(nil)); end # Returns +true+ if the regexp has the multiline flag set. @@ -20301,30 +18368,32 @@ class Regexp # Regexp.new(".").multiline? # => false # Regexp.new(".", Regexp::MULTILINE).multiline? # => true # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/regexp.rb#11 + # pkg:gem/activesupport#lib/active_support/core_ext/regexp.rb:11 def multiline?; end end -# source://activesupport//lib/active_support/core_ext/securerandom.rb#5 +# pkg:gem/activesupport#lib/active_support/core_ext/securerandom.rb:5 module SecureRandom class << self - # source://activesupport//lib/active_support/core_ext/securerandom.rb#45 + # Remove check when Ruby 3.3 is the minimum supported version + # + # pkg:gem/activesupport#lib/active_support/core_ext/securerandom.rb:45 def base36(n = T.unsafe(nil)); end - # source://activesupport//lib/active_support/core_ext/securerandom.rb#20 + # Remove check when Ruby 3.3 is the minimum supported version + # + # pkg:gem/activesupport#lib/active_support/core_ext/securerandom.rb:20 def base58(n = T.unsafe(nil)); end end end -# source://activesupport//lib/active_support/core_ext/securerandom.rb#7 +# pkg:gem/activesupport#lib/active_support/core_ext/securerandom.rb:7 SecureRandom::BASE36_ALPHABET = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/securerandom.rb#6 +# pkg:gem/activesupport#lib/active_support/core_ext/securerandom.rb:6 SecureRandom::BASE58_ALPHABET = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#62 +# pkg:gem/activesupport#lib/active_support/core_ext/object/duplicable.rb:62 module Singleton mixes_in_class_methods ::Singleton::SingletonClassMethods @@ -20332,9 +18401,7 @@ module Singleton # # Class.new.include(Singleton).instance.dup # TypeError (can't dup instance of singleton # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#66 + # pkg:gem/activesupport#lib/active_support/core_ext/object/duplicable.rb:66 def duplicable?; end end @@ -20343,18 +18410,16 @@ end # # 'ScaleScore'.tableize # => "scale_scores" # -# source://activesupport//lib/active_support/core_ext/object/blank.rb#135 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:135 class String include ::Comparable # Enables more predictable duck-typing on String-like classes. See Object#acts_like?. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/behavior.rb#5 + # pkg:gem/activesupport#lib/active_support/core_ext/string/behavior.rb:5 def acts_like_string?; end - # source://activesupport//lib/active_support/core_ext/object/json.rb#99 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:99 def as_json(options = T.unsafe(nil)); end # If you pass a single integer, returns a substring of one character at that @@ -20383,7 +18448,7 @@ class String # str.at("lo") # => "lo" # str.at("ol") # => nil # - # source://activesupport//lib/active_support/core_ext/string/access.rb#29 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:29 def at(position); end # A string is blank if it's empty or contains whitespaces only: @@ -20399,22 +18464,10 @@ class String # # @return [true, false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#153 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:153 def blank?; end - # By default, +camelize+ converts strings to UpperCamelCase. If the argument to camelize - # is set to :lower then camelize produces lowerCamelCase. - # - # +camelize+ will also convert '/' to '::' which is useful for converting paths to namespaces. - # - # 'active_record'.camelize # => "ActiveRecord" - # 'active_record'.camelize(:lower) # => "activeRecord" - # 'active_record/errors'.camelize # => "ActiveRecord::Errors" - # 'active_record/errors'.camelize(:lower) # => "activeRecord::Errors" - # - # See ActiveSupport::Inflector.camelize. - # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:111 def camelcase(first_letter = T.unsafe(nil)); end # By default, +camelize+ converts strings to UpperCamelCase. If the argument to camelize @@ -20429,7 +18482,7 @@ class String # # See ActiveSupport::Inflector.camelize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:101 def camelize(first_letter = T.unsafe(nil)); end # Creates a class name from a plural table name like \Rails does for table names to models. @@ -20441,7 +18494,7 @@ class String # # See ActiveSupport::Inflector.classify. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#239 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:239 def classify; end # +constantize+ tries to find a declared constant with the name specified @@ -20454,7 +18507,7 @@ class String # # See ActiveSupport::Inflector.constantize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#73 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:73 def constantize; end # Replaces underscores with dashes in the string. @@ -20463,7 +18516,7 @@ class String # # See ActiveSupport::Inflector.dasherize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#148 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:148 def dasherize; end # Removes the rightmost segment from the constant expression in the string. @@ -20478,7 +18531,7 @@ class String # # See also +demodulize+. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#177 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:177 def deconstantize; end # Removes the module part from the constant expression in the string. @@ -20492,7 +18545,7 @@ class String # # See also +deconstantize+. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#162 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:162 def demodulize; end # Converts the first character to lowercase. @@ -20503,9 +18556,12 @@ class String # # See ActiveSupport::Inflector.downcase_first. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#284 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:284 def downcase_first; end + # pkg:gem/activesupport#lib/active_support/core_ext/string/starts_ends_with.rb:5 + def ends_with?(*_arg0); end + # The inverse of String#include?. Returns true if the string # does not include the other string. # @@ -20513,9 +18569,7 @@ class String # "hello".exclude? "ol" # => true # "hello".exclude? ?h # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/exclude.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/string/exclude.rb:10 def exclude?(string); end # Returns the first character. If a limit is supplied, returns a substring @@ -20529,7 +18583,7 @@ class String # str.first(0) # => "" # str.first(6) # => "hello" # - # source://activesupport//lib/active_support/core_ext/string/access.rb#78 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:78 def first(limit = T.unsafe(nil)); end # Creates a foreign key name from a class name. @@ -20542,7 +18596,7 @@ class String # # See ActiveSupport::Inflector.foreign_key. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#297 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:297 def foreign_key(separate_class_name_and_id_with_underscore = T.unsafe(nil)); end # Returns a substring from the given position to the end of the string. @@ -20559,7 +18613,7 @@ class String # str.from(0).to(-1) # => "hello" # str.from(1).to(-2) # => "ell" # - # source://activesupport//lib/active_support/core_ext/string/access.rb#46 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:46 def from(position); end # Marks a string as trusted safe. It will be inserted into HTML with no @@ -20568,7 +18622,7 @@ class String # +raw+ helper in views. It is recommended that you use +sanitize+ instead of # this method. It should never be called on user input. # - # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#227 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:227 def html_safe; end # Capitalizes the first word, turns underscores into spaces, and (by default) strips a @@ -20591,13 +18645,13 @@ class String # # See ActiveSupport::Inflector.humanize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#262 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:262 def humanize(capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end # Converts String to a TimeWithZone in the current zone if Time.zone or Time.zone_default # is set, otherwise converts String to a Time via String#to_time # - # source://activesupport//lib/active_support/core_ext/string/zones.rb#9 + # pkg:gem/activesupport#lib/active_support/core_ext/string/zones.rb:9 def in_time_zone(zone = T.unsafe(nil)); end # Indents the lines in the receiver: @@ -20629,14 +18683,14 @@ class String # "foo\n\nbar".indent(2) # => " foo\n\n bar" # "foo\n\nbar".indent(2, nil, true) # => " foo\n \n bar" # - # source://activesupport//lib/active_support/core_ext/string/indent.rb#42 + # pkg:gem/activesupport#lib/active_support/core_ext/string/indent.rb:42 def indent(amount, indent_string = T.unsafe(nil), indent_empty_lines = T.unsafe(nil)); end # Same as +indent+, except it indents the receiver in-place. # # Returns the indented string, or +nil+ if there was nothing to indent. # - # source://activesupport//lib/active_support/core_ext/string/indent.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/string/indent.rb:7 def indent!(amount, indent_string = T.unsafe(nil), indent_empty_lines = T.unsafe(nil)); end # Wraps the current string in the ActiveSupport::StringInquirer class, @@ -20646,7 +18700,7 @@ class String # env.production? # => true # env.development? # => false # - # source://activesupport//lib/active_support/core_ext/string/inquiry.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inquiry.rb:13 def inquiry; end # Returns +true+ if string has utf_8 encoding. @@ -20657,9 +18711,7 @@ class String # utf_8_str.is_utf8? # => true # iso_str.is_utf8? # => false # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/string/multibyte.rb#48 + # pkg:gem/activesupport#lib/active_support/core_ext/string/multibyte.rb:48 def is_utf8?; end # Returns the last character of the string. If a limit is supplied, returns a substring @@ -20673,7 +18725,7 @@ class String # str.last(0) # => "" # str.last(6) # => "hello" # - # source://activesupport//lib/active_support/core_ext/string/access.rb#92 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:92 def last(limit = T.unsafe(nil)); end # == Multibyte proxy @@ -20708,7 +18760,7 @@ class String # For more information about the methods defined on the Chars proxy see ActiveSupport::Multibyte::Chars. For # information about how to change the default Multibyte behavior see ActiveSupport::Multibyte. # - # source://activesupport//lib/active_support/core_ext/string/multibyte.rb#37 + # pkg:gem/activesupport#lib/active_support/core_ext/string/multibyte.rb:37 def mb_chars; end # Replaces special characters in a string so that it may be used as part of a 'pretty' URL. @@ -20746,7 +18798,7 @@ class String # # See ActiveSupport::Inflector.parameterize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#215 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:215 def parameterize(separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end # Returns the plural form of the word in the string. @@ -20773,12 +18825,10 @@ class String # # See ActiveSupport::Inflector.pluralize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#35 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:35 def pluralize(count = T.unsafe(nil), locale = T.unsafe(nil)); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#165 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:165 def present?; end # Returns a new string with all occurrences of the patterns removed. @@ -20787,7 +18837,7 @@ class String # str.remove(" test", /bar/) # => "foo " # str # => "foo bar test" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:32 def remove(*patterns); end # Alters the string by removing all occurrences of the patterns. @@ -20795,7 +18845,7 @@ class String # str.remove!(" test", /bar/) # => "foo " # str # => "foo " # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#40 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:40 def remove!(*patterns); end # +safe_constantize+ tries to find a declared constant with the name specified @@ -20808,7 +18858,7 @@ class String # # See ActiveSupport::Inflector.safe_constantize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#86 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:86 def safe_constantize; end # The reverse of +pluralize+, returns the singular form of a word in a string. @@ -20828,7 +18878,7 @@ class String # # See ActiveSupport::Inflector.singularize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#60 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:60 def singularize(locale = T.unsafe(nil)); end # Returns the string, first removing all whitespace on both ends of @@ -20841,7 +18891,7 @@ class String # string }.squish # => "Multi-line string" # " foo bar \n \t boo".squish # => "foo bar boo" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:13 def squish; end # Performs a destructive squish. See String#squish. @@ -20849,9 +18899,12 @@ class String # str.squish! # => "foo bar boo" # str # => "foo bar boo" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#21 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:21 def squish!; end + # pkg:gem/activesupport#lib/active_support/core_ext/string/starts_ends_with.rb:4 + def starts_with?(*_arg0); end + # Strips indentation in heredocs. # # For example in @@ -20871,7 +18924,7 @@ class String # Technically, it looks for the least indented non-empty line # in the whole string, and removes that amount of leading whitespace. # - # source://activesupport//lib/active_support/core_ext/string/strip.rb#22 + # pkg:gem/activesupport#lib/active_support/core_ext/string/strip.rb:22 def strip_heredoc; end # Creates the name of a table like \Rails does for models to table names. This method @@ -20883,24 +18936,10 @@ class String # # See ActiveSupport::Inflector.tableize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#227 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:227 def tableize; end - # Capitalizes all the words and replaces some characters in the string to create - # a nicer looking title. +titleize+ is meant for creating pretty output. It is not - # used in the \Rails internals. - # - # The trailing '_id','Id'.. can be kept and capitalized by setting the - # optional parameter +keep_id_suffix+ to true. - # By default, this parameter is false. - # - # 'man from the boondocks'.titleize # => "Man From The Boondocks" - # 'x-men: the last stand'.titleize # => "X Men: The Last Stand" - # 'string_ending_with_id'.titleize(keep_id_suffix: true) # => "String Ending With Id" - # - # See ActiveSupport::Inflector.titleize. - # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#126 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:129 def titlecase(keep_id_suffix: T.unsafe(nil)); end # Capitalizes all the words and replaces some characters in the string to create @@ -20917,7 +18956,7 @@ class String # # See ActiveSupport::Inflector.titleize. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#126 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:126 def titleize(keep_id_suffix: T.unsafe(nil)); end # Returns a substring from the beginning of the string to the given position. @@ -20934,7 +18973,7 @@ class String # str.from(0).to(-1) # => "hello" # str.from(1).to(-2) # => "ell" # - # source://activesupport//lib/active_support/core_ext/string/access.rb#63 + # pkg:gem/activesupport#lib/active_support/core_ext/string/access.rb:63 def to(position); end # Converts a string to a Date value. @@ -20944,7 +18983,7 @@ class String # "2012-12-13".to_date # => Thu, 13 Dec 2012 # "12/13/2012".to_date # => ArgumentError: invalid date # - # source://activesupport//lib/active_support/core_ext/string/conversions.rb#47 + # pkg:gem/activesupport#lib/active_support/core_ext/string/conversions.rb:47 def to_date; end # Converts a string to a DateTime value. @@ -20954,7 +18993,7 @@ class String # "2012-12-13 12:50".to_datetime # => Thu, 13 Dec 2012 12:50:00 +0000 # "12/13/2012".to_datetime # => ArgumentError: invalid date # - # source://activesupport//lib/active_support/core_ext/string/conversions.rb#57 + # pkg:gem/activesupport#lib/active_support/core_ext/string/conversions.rb:57 def to_datetime; end # Converts a string to a Time value. @@ -20973,7 +19012,7 @@ class String # "12/13/2012".to_time # => ArgumentError: argument out of range # "1604326192".to_time # => ArgumentError: argument out of range # - # source://activesupport//lib/active_support/core_ext/string/conversions.rb#22 + # pkg:gem/activesupport#lib/active_support/core_ext/string/conversions.rb:22 def to_time(form = T.unsafe(nil)); end # Truncates a given +text+ to length truncate_to if +text+ is longer than truncate_to: @@ -20999,7 +19038,7 @@ class String # 'And they found that many people were sleeping better.'.truncate(4, omission: '... (continued)') # # => "... (continued)" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#70 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:70 def truncate(truncate_to, options = T.unsafe(nil)); end # Truncates +text+ to at most truncate_to bytes in length without @@ -21019,7 +19058,7 @@ class String # # Raises +ArgumentError+ when the bytesize of :omission exceeds truncate_to. # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#101 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:101 def truncate_bytes(truncate_to, omission: T.unsafe(nil)); end # Truncates a given +text+ after a given number of words (words_count): @@ -21037,7 +19076,7 @@ class String # 'And they found that many people were sleeping better.'.truncate_words(5, omission: '... (continued)') # # => "And they found that many... (continued)" # - # source://activesupport//lib/active_support/core_ext/string/filters.rb#142 + # pkg:gem/activesupport#lib/active_support/core_ext/string/filters.rb:142 def truncate_words(words_count, options = T.unsafe(nil)); end # The reverse of +camelize+. Makes an underscored, lowercase form from the expression in the string. @@ -21049,7 +19088,7 @@ class String # # See ActiveSupport::Inflector.underscore. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#139 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:139 def underscore; end # Converts the first character to uppercase. @@ -21060,79 +19099,82 @@ class String # # See ActiveSupport::Inflector.upcase_first. # - # source://activesupport//lib/active_support/core_ext/string/inflections.rb#273 + # pkg:gem/activesupport#lib/active_support/core_ext/string/inflections.rb:273 def upcase_first; end end -# source://activesupport//lib/active_support/core_ext/object/blank.rb#136 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:136 String::BLANK_RE = T.let(T.unsafe(nil), Regexp) -# source://activesupport//lib/active_support/core_ext/object/blank.rb#137 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:137 String::ENCODED_BLANKS = T.let(T.unsafe(nil), Concurrent::Map) -# source://activesupport//lib/active_support/core_ext/object/json.rb#74 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:74 class Struct include ::Enumerable - # source://activesupport//lib/active_support/core_ext/object/json.rb#75 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:75 def as_json(options = T.unsafe(nil)); end end -# source://activesupport//lib/active_support/core_ext/object/blank.rb#123 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:123 class Symbol include ::Comparable - # source://activesupport//lib/active_support/core_ext/object/json.rb#105 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:105 def as_json(options = T.unsafe(nil)); end - # @return [Boolean] + # A Symbol is blank if it's empty: + # + # :''.blank? # => true + # :symbol.blank? # => false # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#130 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:128 + def blank?; end + + # pkg:gem/activesupport#lib/active_support/core_ext/symbol/starts_ends_with.rb:5 + def ends_with?(*_arg0); end + + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:130 def present?; end + + # pkg:gem/activesupport#lib/active_support/core_ext/symbol/starts_ends_with.rb:4 + def starts_with?(*_arg0); end end class Thread - # source://activesupport//lib/active_support/isolated_execution_state.rb#7 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:7 def active_support_execution_state; end - # source://activesupport//lib/active_support/isolated_execution_state.rb#7 + # pkg:gem/activesupport#lib/active_support/isolated_execution_state.rb:7 def active_support_execution_state=(_arg0); end end -# source://activesupport//lib/active_support/core_ext/thread/backtrace/location.rb#3 +# pkg:gem/activesupport#lib/active_support/core_ext/thread/backtrace/location.rb:3 class Thread::Backtrace::Location - # source://activesupport//lib/active_support/core_ext/thread/backtrace/location.rb#4 + # pkg:gem/activesupport#lib/active_support/core_ext/thread/backtrace/location.rb:4 def spot(ex); end end -# source://activesupport//lib/active_support/core_ext/object/blank.rb#186 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:186 class Time include ::Comparable include ::DateAndTime::Zones include ::DateAndTime::Calculations include ::DateAndTime::Compatibility - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#297 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:305 def +(other); end - # Time#- can also be used to determine the number of seconds between two Time instances. - # We're layering on additional behavior so that ActiveSupport::TimeWithZone instances - # are coerced into values that Time#- will recognize - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#320 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:315 def -(other); end - # Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances - # can be chronologically compared with a Time - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#329 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:345 def <=>(other); end # Duck-types as a Time-like class. See Object#acts_like?. # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/time/acts_like.rb#7 + # pkg:gem/activesupport#lib/active_support/core_ext/time/acts_like.rb:7 def acts_like_time?; end # Uses Date to provide precise Time calculations for years, months, and days @@ -21151,80 +19193,60 @@ class Time # largest to smallest. This order can affect the result around the end of a # month. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#194 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:194 def advance(options); end # Returns a new Time representing the time a number of seconds ago, this is basically a wrapper around the Numeric extension # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#220 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:220 def ago(seconds); end - # source://activesupport//lib/active_support/core_ext/object/json.rb#201 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:201 def as_json(options = T.unsafe(nil)); end - # Returns a new Time representing the start of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:243 def at_beginning_of_day; end - # Returns a new Time representing the start of the hour (x:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#267 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:270 def at_beginning_of_hour; end - # Returns a new Time representing the start of the minute (x:xx:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#283 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:286 def at_beginning_of_minute; end - # Returns a new Time representing the end of the day, 23:59:59.999999 - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#256 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:264 def at_end_of_day; end - # Returns a new Time representing the end of the hour, x:59:59.999999 - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#273 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:280 def at_end_of_hour; end - # Returns a new Time representing the end of the minute, x:xx:59.999999 - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#289 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:295 def at_end_of_minute; end - # Returns a new Time representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:251 def at_midday; end - # Returns a new Time representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:253 def at_middle_of_day; end - # Returns a new Time representing the start of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:242 def at_midnight; end - # Returns a new Time representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:252 def at_noon; end # Returns a new Time representing the start of the day (0:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:238 def beginning_of_day; end # Returns a new Time representing the start of the hour (x:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#267 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:267 def beginning_of_hour; end # Returns a new Time representing the start of the minute (x:xx:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#283 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:283 def beginning_of_minute; end # No Time is blank: @@ -21233,7 +19255,7 @@ class Time # # @return [false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#192 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:192 def blank?; end # Returns a new Time where one or more of the elements have been changed according @@ -21249,137 +19271,139 @@ class Time # Time.new(2012, 8, 29, 22, 35, 0).change(year: 1981, day: 1) # => Time.new(1981, 8, 1, 22, 35, 0) # Time.new(2012, 8, 29, 22, 35, 0).change(year: 1981, hour: 0) # => Time.new(1981, 8, 29, 0, 0, 0) # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#123 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:123 def change(options); end # Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances # can be chronologically compared with a Time # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#329 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:329 def compare_with_coercion(other); end + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:344 + def compare_without_coercion(_arg0); end + # Returns a new Time representing the end of the day, 23:59:59.999999 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#256 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:256 def end_of_day; end # Returns a new Time representing the end of the hour, x:59:59.999999 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#273 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:273 def end_of_hour; end # Returns a new Time representing the end of the minute, x:xx:59.999999 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#289 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:289 def end_of_minute; end - # Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances - # can be eql? to an equivalent Time - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#349 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:355 def eql?(other); end # Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances # can be eql? to an equivalent Time # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#349 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:349 def eql_with_coercion(other); end + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:354 + def eql_without_coercion(_arg0); end + # Returns a formatted string of the offset from UTC, or an alternative # string if the time zone is already UTC. # # Time.local(2000).formatted_offset # => "-06:00" # Time.local(2000).formatted_offset(false) # => "-0600" # - # source://activesupport//lib/active_support/core_ext/time/conversions.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:69 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # Returns a new Time representing the time a number of seconds since the instance time - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#225 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:235 def in(seconds); end - # Returns a new Time representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:249 def midday; end # Returns a new Time representing the middle of the day (12:00) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:246 def middle_of_day; end - # Returns a new Time representing the start of the day (0:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#238 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:241 def midnight; end # Time#- can also be used to determine the number of seconds between two Time instances. # We're layering on additional behavior so that ActiveSupport::TimeWithZone instances # are coerced into values that Time#- will recognize # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#320 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:320 def minus_with_coercion(other); end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#307 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:307 def minus_with_duration(other); end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#307 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:324 def minus_without_coercion(other); end + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:314 + def minus_without_duration(_arg0); end + # Returns a new time the specified number of days in the future. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#363 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:363 def next_day(days = T.unsafe(nil)); end # Returns a new time the specified number of months in the future. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#373 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:373 def next_month(months = T.unsafe(nil)); end # Returns a new time the specified number of years in the future. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#383 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:383 def next_year(years = T.unsafe(nil)); end - # Returns a new Time representing the middle of the day (12:00) - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#246 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:250 def noon; end - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#297 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:297 def plus_with_duration(other); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#196 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:304 + def plus_without_duration(_arg0); end + + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:196 def present?; end - # source://activesupport//lib/active_support/core_ext/time/compatibility.rb#17 + # pkg:gem/activesupport#lib/active_support/core_ext/time/compatibility.rb:17 def preserve_timezone; end # Returns a new time the specified number of days ago. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#358 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:358 def prev_day(days = T.unsafe(nil)); end # Returns a new time the specified number of months ago. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#368 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:368 def prev_month(months = T.unsafe(nil)); end # Returns a new time the specified number of years ago. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#378 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:378 def prev_year(years = T.unsafe(nil)); end + # Aliased to +xmlschema+ for compatibility with +DateTime+ + # + # pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:74 + def rfc3339(*_arg0); end + # Returns the fraction of a second as a +Rational+ # # Time.new(2012, 8, 29, 0, 0, 0.5).sec_fraction # => (1/2) # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#107 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:107 def sec_fraction; end # Returns the number of seconds since 00:00:00. @@ -21388,7 +19412,7 @@ class Time # Time.new(2012, 8, 29, 12, 34, 56).seconds_since_midnight # => 45296.0 # Time.new(2012, 8, 29, 23, 59, 59).seconds_since_midnight # => 86399.0 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#91 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:91 def seconds_since_midnight; end # Returns the number of seconds until 23:59:59. @@ -21397,42 +19421,15 @@ class Time # Time.new(2012, 8, 29, 12, 34, 56).seconds_until_end_of_day # => 41103 # Time.new(2012, 8, 29, 23, 59, 59).seconds_until_end_of_day # => 0 # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#100 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:100 def seconds_until_end_of_day; end # Returns a new Time representing the time a number of seconds since the instance time # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#225 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:225 def since(seconds); end - # Converts to a formatted string. See DATE_FORMATS for built-in formats. - # - # This method is aliased to to_formatted_s. - # - # time = Time.now # => 2007-01-18 06:10:17 -06:00 - # - # time.to_fs(:time) # => "06:10" - # time.to_formatted_s(:time) # => "06:10" - # - # time.to_fs(:db) # => "2007-01-18 06:10:17" - # time.to_fs(:number) # => "20070118061017" - # time.to_fs(:short) # => "18 Jan 06:10" - # time.to_fs(:long) # => "January 18, 2007 06:10" - # time.to_fs(:long_ordinal) # => "January 18th, 2007 06:10" - # time.to_fs(:rfc822) # => "Thu, 18 Jan 2007 06:10:17 -0600" - # time.to_fs(:rfc2822) # => "Thu, 18 Jan 2007 06:10:17 -0600" - # time.to_fs(:iso8601) # => "2007-01-18T06:10:17-06:00" - # - # == Adding your own time formats to +to_fs+ - # You can add your own formats to the Time::DATE_FORMATS hash. - # Use the format name as the hash key and either a strftime string - # or Proc instance that takes a time argument as the value. - # - # # config/initializers/time_formats.rb - # Time::DATE_FORMATS[:month_and_year] = '%B %Y' - # Time::DATE_FORMATS[:short_ordinal] = ->(time) { time.strftime("%B #{time.day.ordinalize}") } - # - # source://activesupport//lib/active_support/core_ext/time/conversions.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:62 def to_formatted_s(format = T.unsafe(nil)); end # Converts to a formatted string. See DATE_FORMATS for built-in formats. @@ -21462,58 +19459,56 @@ class Time # Time::DATE_FORMATS[:month_and_year] = '%B %Y' # Time::DATE_FORMATS[:short_ordinal] = ->(time) { time.strftime("%B #{time.day.ordinalize}") } # - # source://activesupport//lib/active_support/core_ext/time/conversions.rb#55 + # pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:55 def to_fs(format = T.unsafe(nil)); end # Either return +self+ or the time in the local system timezone depending # on the setting of +ActiveSupport.to_time_preserves_timezone+. # - # source://activesupport//lib/active_support/core_ext/time/compatibility.rb#13 + # pkg:gem/activesupport#lib/active_support/core_ext/time/compatibility.rb:9 def to_time; end private - # source://activesupport//lib/active_support/core_ext/time/compatibility.rb#32 + # pkg:gem/activesupport#lib/active_support/core_ext/time/compatibility.rb:32 def active_support_local_zone; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/time/compatibility.rb#22 + # pkg:gem/activesupport#lib/active_support/core_ext/time/compatibility.rb:22 def system_local_time?; end class << self # Overriding case equality method so that it returns true for ActiveSupport::TimeWithZone instances # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#18 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:18 def ===(other); end - # Layers additional behavior on Time.at so that ActiveSupport::TimeWithZone and DateTime - # instances can be used when called with a single argument - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#45 - def at(time_or_number, *args, **_arg2); end + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:60 + def at(time_or_number, *args, **); end # Layers additional behavior on Time.at so that ActiveSupport::TimeWithZone and DateTime # instances can be used when called with a single argument # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#45 - def at_with_coercion(time_or_number, *args, **_arg2); end + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:45 + def at_with_coercion(time_or_number, *args, **); end + + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:59 + def at_without_coercion(time, subsec = T.unsafe(nil), unit = T.unsafe(nil), in: T.unsafe(nil)); end # Returns Time.zone.now when Time.zone or config.time_zone are set, otherwise just returns Time.now. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#39 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:39 def current; end # Returns the number of days in the given month. # If no year is specified, it will use the current year. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#24 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:24 def days_in_month(month, year = T.unsafe(nil)); end # Returns the number of days in the given year. # If no year is specified, it will use the current year. # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#34 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:34 def days_in_year(year = T.unsafe(nil)); end # Returns a TimeZone instance matching the time zone provided. @@ -21523,7 +19518,7 @@ class Time # Time.find_zone "America/New_York" # => # # Time.find_zone "NOT-A-TIMEZONE" # => nil # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#93 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:93 def find_zone(time_zone); end # Returns a TimeZone instance matching the time zone provided. @@ -21537,7 +19532,7 @@ class Time # Time.find_zone! false # => false # Time.find_zone! "NOT-A-TIMEZONE" # => ArgumentError: Invalid Timezone: NOT-A-TIMEZONE # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#81 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:81 def find_zone!(time_zone); end # Creates a +Time+ instance from an RFC 3339 string. @@ -21548,9 +19543,7 @@ class Time # # Time.rfc3339('1999-12-31') # => ArgumentError: invalid date # - # @raise [ArgumentError] - # - # source://activesupport//lib/active_support/core_ext/time/calculations.rb#69 + # pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:69 def rfc3339(str); end # Allows override of Time.zone locally inside supplied block; @@ -21570,13 +19563,13 @@ class Time # attributes that have been read before the block will remain in # the application's default timezone. # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#61 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:61 def use_zone(time_zone); end # Returns the TimeZone for the current request, if this has been set (via Time.zone=). # If Time.zone has not been set for the current request, returns the TimeZone specified in config.time_zone. # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#14 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:14 def zone; end # Sets Time.zone to a TimeZone object for the current request/thread. @@ -21603,32 +19596,26 @@ class Time # end # end # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#41 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:41 def zone=(time_zone); end - # Returns the value of attribute zone_default. - # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:10 def zone_default; end - # Sets the attribute zone_default - # - # @param value the value to set the attribute zone_default to. - # - # source://activesupport//lib/active_support/core_ext/time/zones.rb#10 + # pkg:gem/activesupport#lib/active_support/core_ext/time/zones.rb:10 def zone_default=(_arg0); end end end -# source://activesupport//lib/active_support/core_ext/time/calculations.rb#14 +# pkg:gem/activesupport#lib/active_support/core_ext/time/calculations.rb:14 Time::COMMON_YEAR_DAYS_IN_MONTH = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/time/conversions.rb#8 +# pkg:gem/activesupport#lib/active_support/core_ext/time/conversions.rb:8 Time::DATE_FORMATS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/core_ext/object/blank.rb#80 +# pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:80 class TrueClass - # source://activesupport//lib/active_support/core_ext/object/json.rb#81 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:81 def as_json(options = T.unsafe(nil)); end # +true+ is not blank: @@ -21637,22 +19624,20 @@ class TrueClass # # @return [false] # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#86 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:86 def blank?; end - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/blank.rb#90 + # pkg:gem/activesupport#lib/active_support/core_ext/object/blank.rb:90 def present?; end # Returns +self+. # - # source://activesupport//lib/active_support/core_ext/object/to_query.rb#28 + # pkg:gem/activesupport#lib/active_support/core_ext/object/to_query.rb:28 def to_param; end end -# source://activesupport//lib/active_support/core_ext/object/json.rb#230 +# pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:230 class URI::Generic - # source://activesupport//lib/active_support/core_ext/object/json.rb#231 + # pkg:gem/activesupport#lib/active_support/core_ext/object/json.rb:231 def as_json(options = T.unsafe(nil)); end end diff --git a/sorbet/rbi/gems/addressable@2.9.0.rbi b/sorbet/rbi/gems/addressable@2.9.2.rbi similarity index 59% rename from sorbet/rbi/gems/addressable@2.9.0.rbi rename to sorbet/rbi/gems/addressable@2.9.2.rbi index cae90bba..9695f43f 100644 --- a/sorbet/rbi/gems/addressable@2.9.0.rbi +++ b/sorbet/rbi/gems/addressable@2.9.2.rbi @@ -7,78 +7,77 @@ # Addressable is a library for processing links and URIs. # -# source://addressable//lib/addressable/version.rb#22 +# pkg:gem/addressable#lib/addressable/version.rb:22 module Addressable; end -# source://addressable//lib/addressable/idna/pure.rb#21 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:21 module Addressable::IDNA class << self - # source://addressable//lib/addressable/idna/pure.rb#112 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:170 def _deprecated_unicode_normalize_kc(value); end # Converts from a Unicode internationalized domain name to an ASCII # domain name as described in RFC 3490. # - # source://addressable//lib/addressable/idna/pure.rb#62 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:101 def to_ascii(input); end # Converts from an ASCII domain name to a Unicode internationalized # domain name as described in RFC 3490. # - # source://addressable//lib/addressable/idna/pure.rb#88 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:127 def to_unicode(input); end # @deprecated Use {String#unicode_normalize(:nfkc)} instead - def unicode_normalize_kc(*args, **_arg1, &block); end + # + # pkg:gem/addressable#lib/addressable/idna/pure.rb:165 + def unicode_normalize_kc(*args, **, &block); end private - # source://addressable//lib/addressable/idna/pure.rb#135 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:188 def lookup_unicode_lowercase(codepoint); end # Bias adaptation method # - # source://addressable//lib/addressable/idna/pure.rb#4693 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:4742 def punycode_adapt(delta, numpoints, firsttime); end - # @return [Boolean] - # - # source://addressable//lib/addressable/idna/pure.rb#4661 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:4710 def punycode_basic?(codepoint); end - # source://addressable//lib/addressable/idna/pure.rb#4539 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:4588 def punycode_decode(punycode); end # Returns the numeric value of a basic codepoint # (for use in representing integers) in the range 0 to # base - 1, or PUNYCODE_BASE if codepoint does not represent a value. # - # source://addressable//lib/addressable/idna/pure.rb#4679 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:4728 def punycode_decode_digit(codepoint); end - # @return [Boolean] - # - # source://addressable//lib/addressable/idna/pure.rb#4666 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:4715 def punycode_delimiter?(codepoint); end - # source://addressable//lib/addressable/idna/pure.rb#4418 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:4471 def punycode_encode(unicode); end - # source://addressable//lib/addressable/idna/pure.rb#4671 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:4720 def punycode_encode_digit(d); end # Unicode aware downcase method. # # @api private - # @param input [String] The input string. + # @param [String] input + # The input string. # @return [String] The downcased result. # - # source://addressable//lib/addressable/idna/pure.rb#127 + # pkg:gem/addressable#lib/addressable/idna/pure.rb:180 def unicode_downcase(input); end end end -# source://addressable//lib/addressable/idna/pure.rb#4388 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4441 Addressable::IDNA::ACE_MAX_LENGTH = T.let(T.unsafe(nil), Integer) # This module is loosely based on idn_actionmailer by Mick Staugaard, @@ -94,124 +93,154 @@ Addressable::IDNA::ACE_MAX_LENGTH = T.let(T.unsafe(nil), Integer) # http://www.yoshidam.net/Ruby.html#unicode # http://rubyforge.org/frs/?group_id=2550 # -# source://addressable//lib/addressable/idna/pure.rb#35 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:35 Addressable::IDNA::ACE_PREFIX = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/idna/pure.rb#4390 +# Characters that change how a label displays without being visible +# themselves: controls, format characters such as bidi overrides and +# isolates, and default ignorable code points. libidn rejects most of +# them, but not those added to Unicode after the version it checks +# against, such as U+2066 to U+2069. Format characters that are also +# default ignorable are left out of the second set, since Ruby warns about +# a duplicated range in a character class. +# Characters that change how a label displays without being visible +# themselves: controls, format characters such as bidi overrides and +# isolates, and default ignorable code points, including those added to +# Unicode after the version nameprep is based on. Format characters that +# are also default ignorable are left out of the second set, since Ruby +# warns about a duplicated range in a character class. +# +# pkg:gem/addressable#lib/addressable/idna/pure.rb:95 +Addressable::IDNA::DISPLAY_CHANGING = T.let(T.unsafe(nil), Regexp) + +# Characters that nameprep doesn't allow in a label (Section 5 of +# RFC 3491), or that it maps to nothing, so they can't be in a label that +# toASCII produces. Some code points are in more than one table; they're +# listed only under the first, since Ruby warns about a duplicated range +# in a character class. +# +# pkg:gem/addressable#lib/addressable/idna/pure.rb:63 +Addressable::IDNA::NAMEPREP_PROHIBITED = T.let(T.unsafe(nil), Regexp) + +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4443 Addressable::IDNA::PUNYCODE_BASE = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4394 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4447 Addressable::IDNA::PUNYCODE_DAMP = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4397 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4450 Addressable::IDNA::PUNYCODE_DELIMITER = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4395 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4448 Addressable::IDNA::PUNYCODE_INITIAL_BIAS = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4396 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4449 Addressable::IDNA::PUNYCODE_INITIAL_N = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4399 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4452 Addressable::IDNA::PUNYCODE_MAXINT = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4401 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4454 Addressable::IDNA::PUNYCODE_PRINT_ASCII = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/idna/pure.rb#4393 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4446 Addressable::IDNA::PUNYCODE_SKEW = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4392 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4445 Addressable::IDNA::PUNYCODE_TMAX = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4391 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4444 Addressable::IDNA::PUNYCODE_TMIN = T.let(T.unsafe(nil), Integer) # Input is invalid. # -# source://addressable//lib/addressable/idna/pure.rb#4412 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4465 class Addressable::IDNA::PunycodeBadInput < ::StandardError; end # Output would exceed the space provided. # -# source://addressable//lib/addressable/idna/pure.rb#4414 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4467 class Addressable::IDNA::PunycodeBigOutput < ::StandardError; end # Input needs wider integers to process. # -# source://addressable//lib/addressable/idna/pure.rb#4416 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4469 class Addressable::IDNA::PunycodeOverflow < ::StandardError; end -# source://addressable//lib/addressable/idna/pure.rb#151 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:204 Addressable::IDNA::UNICODE_DATA = T.let(T.unsafe(nil), Hash) -# source://addressable//lib/addressable/idna/pure.rb#145 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:198 Addressable::IDNA::UNICODE_DATA_CANONICAL = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#143 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:196 Addressable::IDNA::UNICODE_DATA_COMBINING_CLASS = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#146 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:199 Addressable::IDNA::UNICODE_DATA_COMPATIBILITY = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#144 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:197 Addressable::IDNA::UNICODE_DATA_EXCLUSION = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#148 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:201 Addressable::IDNA::UNICODE_DATA_LOWERCASE = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#149 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:202 Addressable::IDNA::UNICODE_DATA_TITLECASE = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#147 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:200 Addressable::IDNA::UNICODE_DATA_UPPERCASE = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#4387 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:4440 Addressable::IDNA::UNICODE_MAX_LENGTH = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/idna/pure.rb#37 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:37 Addressable::IDNA::UTF8_REGEX = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/idna/pure.rb#48 +# pkg:gem/addressable#lib/addressable/idna/pure.rb:48 Addressable::IDNA::UTF8_REGEX_MULTIBYTE = T.let(T.unsafe(nil), Regexp) # This is an implementation of a URI template based on # RFC 6570 (http://tools.ietf.org/html/rfc6570). # -# source://addressable//lib/addressable/template.rb#27 +# pkg:gem/addressable#lib/addressable/template.rb:27 class Addressable::Template # Creates a new Addressable::Template object. # - # @param pattern [#to_str] The URI Template pattern. + # @param [#to_str] pattern The URI Template pattern. + # # @return [Addressable::Template] The initialized Template object. # - # source://addressable//lib/addressable/template.rb#236 + # pkg:gem/addressable#lib/addressable/template.rb:236 def initialize(pattern); end # Returns true if the Template objects are equal. This method # does NOT normalize either Template before doing the comparison. # - # @param template [Object] The Template to compare. - # @return [TrueClass, FalseClass] true if the Templates are equivalent, false + # @param [Object] template The Template to compare. + # + # @return [TrueClass, FalseClass] + # true if the Templates are equivalent, false # otherwise. # - # source://addressable//lib/addressable/template.rb#276 + # pkg:gem/addressable#lib/addressable/template.rb:276 def ==(template); end - # Returns true if the Template objects are equal. This method - # does NOT normalize either Template before doing the comparison. # Addressable::Template makes no distinction between `==` and `eql?`. # - # @param template [Object] The Template to compare. - # @return [TrueClass, FalseClass] true if the Templates are equivalent, false - # otherwise. # @see #== # - # source://addressable//lib/addressable/template.rb#276 + # pkg:gem/addressable#lib/addressable/template.rb:285 def eql?(template); end # Expands a URI template into a full URI. # + # @param [Hash] mapping The mapping that corresponds to the pattern. + # @param [#validate, #transform] processor + # An optional processor object may be supplied. + # @param [Boolean] normalize_values + # Optional flag to enable/disable unicode normalization. Default: true + # # The object should respond to either the validate or # transform messages or both. Both the validate and # transform methods should take two parameters: name and @@ -224,147 +253,166 @@ class Addressable::Template # encoded automatically. Unicode normalization will be performed both # before and after sending the value to the transform method. # + # @return [Addressable::URI] The expanded URI template. + # # @example # class ExampleProcessor - # def self.validate(name, value) - # return !!(value =~ /^[\w ]+$/) if name == "query" - # return true - # end - # - # def self.transform(name, value) - # return value.gsub(/ /, "+") if name == "query" - # return value - # end + # def self.validate(name, value) + # return !!(value =~ /^[\w ]+$/) if name == "query" + # return true + # end + # + # def self.transform(name, value) + # return value.gsub(/ /, "+") if name == "query" + # return value + # end # end # # Addressable::Template.new( - # "http://example.com/search/{query}/" + # "http://example.com/search/{query}/" # ).expand( - # {"query" => "an example search query"}, - # ExampleProcessor + # {"query" => "an example search query"}, + # ExampleProcessor # ).to_str # #=> "http://example.com/search/an+example+search+query/" # # Addressable::Template.new( - # "http://example.com/search/{query}/" + # "http://example.com/search/{query}/" # ).expand( - # {"query" => "an example search query"} + # {"query" => "an example search query"} # ).to_str # #=> "http://example.com/search/an%20example%20search%20query/" # # Addressable::Template.new( - # "http://example.com/search/{query}/" + # "http://example.com/search/{query}/" # ).expand( - # {"query" => "bogus!"}, - # ExampleProcessor + # {"query" => "bogus!"}, + # ExampleProcessor # ).to_str # #=> Addressable::Template::InvalidTemplateValueError - # @param mapping [Hash] The mapping that corresponds to the pattern. - # @param processor [#validate, #transform] An optional processor object may be supplied. - # @param normalize_values [Boolean] Optional flag to enable/disable unicode normalization. Default: true - # @return [Addressable::URI] The expanded URI template. # - # source://addressable//lib/addressable/template.rb#593 + # pkg:gem/addressable#lib/addressable/template.rb:603 def expand(mapping, processor = T.unsafe(nil), normalize_values = T.unsafe(nil)); end # Extracts a mapping from the URI using a URI Template pattern. # + # @param [Addressable::URI, #to_str] uri + # The URI to extract from. + # + # @param [#restore, #match] processor + # A template processor object may optionally be supplied. + # + # The object should respond to either the restore or + # match messages or both. The restore method should + # take two parameters: `[String] name` and `[String] value`. + # The restore method should reverse any transformations that + # have been performed on the value to ensure a valid URI. + # The match method should take a single + # parameter: `[String] name`. The match method should return + # a String containing a regular expression capture group for + # matching on that particular variable. The default value is `".*?"`. + # The match method has no effect on multivariate operator + # expansions. + # + # @return [Hash, NilClass] + # The Hash mapping that was extracted from the URI, or + # nil if the URI didn't match the template. + # # @example # class ExampleProcessor - # def self.restore(name, value) - # return value.gsub(/\+/, " ") if name == "query" - # return value - # end - # - # def self.match(name) - # return ".*?" if name == "first" - # return ".*" - # end + # def self.restore(name, value) + # return value.gsub(/\+/, " ") if name == "query" + # return value + # end + # + # def self.match(name) + # return ".*?" if name == "first" + # return ".*" + # end # end # # uri = Addressable::URI.parse( - # "http://example.com/search/an+example+search+query/" + # "http://example.com/search/an+example+search+query/" # ) # Addressable::Template.new( - # "http://example.com/search/{query}/" + # "http://example.com/search/{query}/" # ).extract(uri, ExampleProcessor) # #=> {"query" => "an example search query"} # # uri = Addressable::URI.parse("http://example.com/a/b/c/") # Addressable::Template.new( - # "http://example.com/{first}/{second}/" + # "http://example.com/{first}/{second}/" # ).extract(uri, ExampleProcessor) # #=> {"first" => "a", "second" => "b/c"} # # uri = Addressable::URI.parse("http://example.com/a/b/c/") # Addressable::Template.new( - # "http://example.com/{first}/{-list|/|second}/" + # "http://example.com/{first}/{-list|/|second}/" # ).extract(uri) # #=> {"first" => "a", "second" => ["b", "c"]} - # @param uri [Addressable::URI, #to_str] The URI to extract from. - # @param processor [#restore, #match] A template processor object may optionally be supplied. - # - # The object should respond to either the restore or - # match messages or both. The restore method should - # take two parameters: `[String] name` and `[String] value`. - # The restore method should reverse any transformations that - # have been performed on the value to ensure a valid URI. - # The match method should take a single - # parameter: `[String] name`. The match method should return - # a String containing a regular expression capture group for - # matching on that particular variable. The default value is `".*?"`. - # The match method has no effect on multivariate operator - # expansions. - # @return [Hash, NilClass] The Hash mapping that was extracted from the URI, or - # nil if the URI didn't match the template. # - # source://addressable//lib/addressable/template.rb#344 + # pkg:gem/addressable#lib/addressable/template.rb:344 def extract(uri, processor = T.unsafe(nil)); end # Freeze URI, initializing instance variables. # # @return [Addressable::URI] The frozen URI object. # - # source://addressable//lib/addressable/template.rb#247 + # pkg:gem/addressable#lib/addressable/template.rb:247 def freeze; end # Returns a String representation of the Template object's state. # # @return [String] The Template object's state, as a String. # - # source://addressable//lib/addressable/template.rb#262 + # pkg:gem/addressable#lib/addressable/template.rb:262 def inspect; end - # Returns an Array of variables used within the template pattern. - # The variables are listed in the Array in the order they appear within - # the pattern. Multiple occurrences of a variable within a pattern are - # not represented in this Array. - # - # @return [Array] The variables present in the template's pattern. - # - # source://addressable//lib/addressable/template.rb#609 + # pkg:gem/addressable#lib/addressable/template.rb:622 def keys; end # Extracts match data from the URI using a URI Template pattern. # + # @param [Addressable::URI, #to_str] uri + # The URI to extract from. + # + # @param [#restore, #match] processor + # A template processor object may optionally be supplied. + # + # The object should respond to either the restore or + # match messages or both. The restore method should + # take two parameters: `[String] name` and `[String] value`. + # The restore method should reverse any transformations that + # have been performed on the value to ensure a valid URI. + # The match method should take a single + # parameter: `[String] name`. The match method should return + # a String containing a regular expression capture group for + # matching on that particular variable. The default value is `".*?"`. + # The match method has no effect on multivariate operator + # expansions. + # + # @return [Hash, NilClass] + # The Hash mapping that was extracted from the URI, or + # nil if the URI didn't match the template. + # # @example # class ExampleProcessor - # def self.restore(name, value) - # return value.gsub(/\+/, " ") if name == "query" - # return value - # end - # - # def self.match(name) - # return ".*?" if name == "first" - # return ".*" - # end + # def self.restore(name, value) + # return value.gsub(/\+/, " ") if name == "query" + # return value + # end + # + # def self.match(name) + # return ".*?" if name == "first" + # return ".*" + # end # end # # uri = Addressable::URI.parse( - # "http://example.com/search/an+example+search+query/" + # "http://example.com/search/an+example+search+query/" # ) # match = Addressable::Template.new( - # "http://example.com/search/{query}/" + # "http://example.com/search/{query}/" # ).match(uri, ExampleProcessor) # match.variables # #=> ["query"] @@ -373,7 +421,7 @@ class Addressable::Template # # uri = Addressable::URI.parse("http://example.com/a/b/c/") # match = Addressable::Template.new( - # "http://example.com/{first}/{+second}/" + # "http://example.com/{first}/{+second}/" # ).match(uri, ExampleProcessor) # match.variables # #=> ["first", "second"] @@ -382,52 +430,36 @@ class Addressable::Template # # uri = Addressable::URI.parse("http://example.com/a/b/c/") # match = Addressable::Template.new( - # "http://example.com/{first}{/second*}/" + # "http://example.com/{first}{/second*}/" # ).match(uri) # match.variables # #=> ["first", "second"] # match.captures # #=> ["a", ["b", "c"]] - # @param uri [Addressable::URI, #to_str] The URI to extract from. - # @param processor [#restore, #match] A template processor object may optionally be supplied. - # - # The object should respond to either the restore or - # match messages or both. The restore method should - # take two parameters: `[String] name` and `[String] value`. - # The restore method should reverse any transformations that - # have been performed on the value to ensure a valid URI. - # The match method should take a single - # parameter: `[String] name`. The match method should return - # a String containing a regular expression capture group for - # matching on that particular variable. The default value is `".*?"`. - # The match method has no effect on multivariate operator - # expansions. - # @return [Hash, NilClass] The Hash mapping that was extracted from the URI, or - # nil if the URI didn't match the template. # - # source://addressable//lib/addressable/template.rb#415 + # pkg:gem/addressable#lib/addressable/template.rb:415 def match(uri, processor = T.unsafe(nil)); end # Returns the named captures of the coerced `Regexp`. # - # @api private # @return [Hash] The named captures of the `Regexp` given by {#to_regexp}. # - # source://addressable//lib/addressable/template.rb#653 + # @api private + # + # pkg:gem/addressable#lib/addressable/template.rb:663 def named_captures; end - # Returns an Array of variables used within the template pattern. - # The variables are listed in the Array in the order they appear within - # the pattern. Multiple occurrences of a variable within a pattern are - # not represented in this Array. - # - # @return [Array] The variables present in the template's pattern. - # - # source://addressable//lib/addressable/template.rb#609 + # pkg:gem/addressable#lib/addressable/template.rb:623 def names; end # Expands a URI template into another URI template. # + # @param [Hash] mapping The mapping that corresponds to the pattern. + # @param [#validate, #transform] processor + # An optional processor object may be supplied. + # @param [Boolean] normalize_values + # Optional flag to enable/disable unicode normalization. Default: true + # # The object should respond to either the validate or # transform messages or both. Both the validate and # transform methods should take two parameters: name and @@ -440,40 +472,39 @@ class Addressable::Template # encoded automatically. Unicode normalization will be performed both # before and after sending the value to the transform method. # + # @return [Addressable::Template] The partially expanded URI template. + # # @example # Addressable::Template.new( - # "http://example.com/{one}/{two}/" + # "http://example.com/{one}/{two}/" # ).partial_expand({"one" => "1"}).pattern # #=> "http://example.com/1/{two}/" # # Addressable::Template.new( - # "http://example.com/{?one,two}/" + # "http://example.com/{?one,two}/" # ).partial_expand({"one" => "1"}).pattern # #=> "http://example.com/?one=1{&two}/" # # Addressable::Template.new( - # "http://example.com/{?one,two,three}/" + # "http://example.com/{?one,two,three}/" # ).partial_expand({"one" => "1", "three" => 3}).pattern # #=> "http://example.com/?one=1{&two}&three=3" - # @param mapping [Hash] The mapping that corresponds to the pattern. - # @param processor [#validate, #transform] An optional processor object may be supplied. - # @param normalize_values [Boolean] Optional flag to enable/disable unicode normalization. Default: true - # @return [Addressable::Template] The partially expanded URI template. # - # source://addressable//lib/addressable/template.rb#526 + # pkg:gem/addressable#lib/addressable/template.rb:536 def partial_expand(mapping, processor = T.unsafe(nil), normalize_values = T.unsafe(nil)); end # @return [String] The Template object's pattern. # - # source://addressable//lib/addressable/template.rb#256 + # pkg:gem/addressable#lib/addressable/template.rb:256 def pattern; end # Returns the source of the coerced `Regexp`. # - # @api private # @return [String] The source of the `Regexp` given by {#to_regexp}. # - # source://addressable//lib/addressable/template.rb#643 + # @api private + # + # pkg:gem/addressable#lib/addressable/template.rb:653 def source; end # Coerces a template into a `Regexp` object. This regular expression will @@ -483,7 +514,7 @@ class Addressable::Template # # @return [Regexp] A regular expression which should match the template. # - # source://addressable//lib/addressable/template.rb#632 + # pkg:gem/addressable#lib/addressable/template.rb:642 def to_regexp; end # Returns a mapping of variables to their default values specified @@ -491,7 +522,7 @@ class Addressable::Template # # @return [Hash] Mapping of template variables to their defaults # - # source://addressable//lib/addressable/template.rb#620 + # pkg:gem/addressable#lib/addressable/template.rb:630 def variable_defaults; end # Returns an Array of variables used within the template pattern. @@ -501,67 +532,119 @@ class Addressable::Template # # @return [Array] The variables present in the template's pattern. # - # source://addressable//lib/addressable/template.rb#609 + # pkg:gem/addressable#lib/addressable/template.rb:619 def variables; end private + # Whether an expression, followed directly by another one, could only + # match characters that the other one could also match, in any amount. + # + # @param [MatchData] following The expression that follows. + # @param [String, nil] operator The operator of the first expression. + # @param [Array] varspecs The varspecs of the first expression. + # + # @return [TrueClass, FalseClass] + # + # pkg:gem/addressable#lib/addressable/template.rb:1019 + def absorbed_by?(following, operator, varspecs); end + + # Describes what follows each expression in a template pattern. + # + # @param [String] escaped_pattern The escaped URI template pattern. + # + # @return [Array] For each expression, the MatchData of + # the expression directly after it (or nil), and whether the + # text after it could start with a comma. + # + # pkg:gem/addressable#lib/addressable/template.rb:979 + def expression_followers(escaped_pattern); end + # Takes a set of values, and joins them together based on the # operator. # - # @param operator [String, Nil] One of the operators from the set + # @param [String, Nil] operator One of the operators from the set # (?,&,+,#,;,/,.), or nil if there wasn't one. - # @param return_value [Array] The set of return values (as [variable_name, value] tuples) that will + # @param [Array] return_value + # The set of return values (as [variable_name, value] tuples) that will # be joined together. + # # @return [String] The transformed mapped value # - # source://addressable//lib/addressable/template.rb#863 + # pkg:gem/addressable#lib/addressable/template.rb:873 def join_values(operator, return_value); end + # Whether an expression could match a string that starts with a comma. + # + # @param [String, nil] operator The expression's operator. + # @param [String] varlist The expression's variable list. + # + # @return [TrueClass, FalseClass] + # + # pkg:gem/addressable#lib/addressable/template.rb:1005 + def may_start_with_comma?(operator, varlist); end + # Generates a hash with string keys # - # @param mapping [Hash] A mapping hash to normalize - # @return [Hash] A hash with stringified keys + # @param [Hash] mapping A mapping hash to normalize + # + # @return [Hash] + # A hash with stringified keys # - # source://addressable//lib/addressable/template.rb#926 + # pkg:gem/addressable#lib/addressable/template.rb:936 def normalize_keys(mapping); end # Takes a set of values, and joins them together based on the # operator. # - # @param value [Hash, Array, String] Normalizes unicode keys and values with String#unicode_normalize (NFC) + # @param [Hash, Array, String] value + # Normalizes unicode keys and values with String#unicode_normalize (NFC) + # # @return [Hash, Array, String] The normalized values # - # source://addressable//lib/addressable/template.rb#900 + # pkg:gem/addressable#lib/addressable/template.rb:910 def normalize_value(value); end - # source://addressable//lib/addressable/template.rb#658 + # pkg:gem/addressable#lib/addressable/template.rb:668 def ordered_variable_defaults; end # Generates the Regexp that parses a template pattern. # - # @param pattern [String] The URI template pattern. - # @param processor [#match] The template processor to use. - # @return [Array, Regexp] An array of expansion variables nad a regular expression which may be + # @param [String] pattern The URI template pattern. + # @param [#match] processor The template processor to use. + # + # @return [Array, Regexp] + # An array of expansion variables nad a regular expression which may be # used to parse a template pattern # - # source://addressable//lib/addressable/template.rb#970 + # pkg:gem/addressable#lib/addressable/template.rb:1051 def parse_new_template_pattern(pattern, processor = T.unsafe(nil)); end # Generates the Regexp that parses a template pattern. Memoizes the # value if template processor not set (processors may not be deterministic) # - # @param pattern [String] The URI template pattern. - # @param processor [#match] The template processor to use. - # @return [Array, Regexp] An array of expansion variables nad a regular expression which may be + # @param [String] pattern The URI template pattern. + # @param [#match] processor The template processor to use. + # + # @return [Array, Regexp] + # An array of expansion variables nad a regular expression which may be # used to parse a template pattern # - # source://addressable//lib/addressable/template.rb#952 + # pkg:gem/addressable#lib/addressable/template.rb:962 def parse_template_pattern(pattern, processor = T.unsafe(nil)); end # Transforms a mapped value so that values can be substituted into the # template. # + # @param [Hash] mapping The mapping to replace captures + # @param [String] capture + # The expression to replace + # @param [#validate, #transform] processor + # An optional processor object may be supplied. + # @param [Boolean] normalize_values + # Optional flag to enable/disable unicode normalization. Default: true + # + # # The object should respond to either the validate or # transform messages or both. Both the validate and # transform methods should take two parameters: name and @@ -574,17 +657,22 @@ class Addressable::Template # automatically. Unicode normalization will be performed both before and # after sending the value to the transform method. # - # @param mapping [Hash] The mapping to replace captures - # @param capture [String] The expression to replace - # @param processor [#validate, #transform] An optional processor object may be supplied. - # @param normalize_values [Boolean] Optional flag to enable/disable unicode normalization. Default: true # @return [String] The expanded expression # - # source://addressable//lib/addressable/template.rb#755 + # pkg:gem/addressable#lib/addressable/template.rb:765 def transform_capture(mapping, capture, processor = T.unsafe(nil), normalize_values = T.unsafe(nil)); end # Loops through each capture and expands any values available in mapping # + # @param [Hash] mapping + # Set of keys to expand + # @param [String] capture + # The expression to expand + # @param [#validate, #transform] processor + # An optional processor object may be supplied. + # @param [Boolean] normalize_values + # Optional flag to enable/disable unicode normalization. Default: true + # # The object should respond to either the validate or # transform messages or both. Both the validate and # transform methods should take two parameters: name and @@ -597,248 +685,246 @@ class Addressable::Template # automatically. Unicode normalization will be performed both before and # after sending the value to the transform method. # - # @param mapping [Hash] Set of keys to expand - # @param capture [String] The expression to expand - # @param processor [#validate, #transform] An optional processor object may be supplied. - # @param normalize_values [Boolean] Optional flag to enable/disable unicode normalization. Default: true # @return [String] The expanded expression # - # source://addressable//lib/addressable/template.rb#696 + # pkg:gem/addressable#lib/addressable/template.rb:706 def transform_partial_capture(mapping, capture, processor = T.unsafe(nil), normalize_values = T.unsafe(nil)); end end -# source://addressable//lib/addressable/template.rb#60 +# pkg:gem/addressable#lib/addressable/template.rb:60 Addressable::Template::EXPRESSION = T.let(T.unsafe(nil), Regexp) # Raised if an invalid template operator is used in a pattern. # -# source://addressable//lib/addressable/template.rb#87 +# pkg:gem/addressable#lib/addressable/template.rb:87 class Addressable::Template::InvalidTemplateOperatorError < ::StandardError; end # Raised if an invalid template value is supplied. # -# source://addressable//lib/addressable/template.rb#82 +# pkg:gem/addressable#lib/addressable/template.rb:82 class Addressable::Template::InvalidTemplateValueError < ::StandardError; end -# source://addressable//lib/addressable/template.rb#72 +# pkg:gem/addressable#lib/addressable/template.rb:72 Addressable::Template::JOINERS = T.let(T.unsafe(nil), Hash) -# source://addressable//lib/addressable/template.rb#64 +# pkg:gem/addressable#lib/addressable/template.rb:64 Addressable::Template::LEADERS = T.let(T.unsafe(nil), Hash) # This class represents the data that is extracted when a Template # is matched against a URI. # -# source://addressable//lib/addressable/template.rb#98 +# pkg:gem/addressable#lib/addressable/template.rb:98 class Addressable::Template::MatchData # Creates a new MatchData object. # MatchData objects should never be instantiated directly. # - # @param uri [Addressable::URI] The URI that the template was matched against. - # @return [MatchData] a new instance of MatchData + # @param [Addressable::URI] uri + # The URI that the template was matched against. # - # source://addressable//lib/addressable/template.rb#105 + # pkg:gem/addressable#lib/addressable/template.rb:105 def initialize(uri, template, mapping); end # Accesses captured values by name or by index. # - # @param key [String, Symbol, Fixnum] Capture index or name. Note that when accessing by with index + # @param [String, Symbol, Fixnum] key + # Capture index or name. Note that when accessing by with index # of 0, the full URI will be returned. The intention is to mimic # the ::MatchData#[] behavior. - # @param len [#to_int, nil] If provided, an array of values will be returned with the given + # + # @param [#to_int, nil] len + # If provided, an array of values will be returned with the given # parameter used as length. - # @return [Array, String, nil] The captured value corresponding to the index or name. If the + # + # @return [Array, String, nil] + # The captured value corresponding to the index or name. If the # value was not provided or the key is unknown, nil will be # returned. # # If the second parameter is provided, an array of that length will # be returned instead. # - # source://addressable//lib/addressable/template.rb#172 + # pkg:gem/addressable#lib/addressable/template.rb:172 def [](key, len = T.unsafe(nil)); end - # @return [Array] The list of values that were captured by the Template. - # Note that this list will include nils for any variables which - # were in the Template, but did not appear in the URI. - # - # source://addressable//lib/addressable/template.rb#145 + # pkg:gem/addressable#lib/addressable/template.rb:151 def captures; end # Returns a String representation of the MatchData's state. # # @return [String] The MatchData's state, as a String. # - # source://addressable//lib/addressable/template.rb#215 + # pkg:gem/addressable#lib/addressable/template.rb:215 def inspect; end - # @return [Array] The list of variables that were present in the Template. - # Note that this list will include variables which do not appear - # in the mapping because they were not present in URI. - # - # source://addressable//lib/addressable/template.rb#134 + # pkg:gem/addressable#lib/addressable/template.rb:137 def keys; end - # @return [Hash] The mapping that resulted from the match. + # @return [Hash] + # The mapping that resulted from the match. # Note that this mapping does not include keys or values for # variables that appear in the Template, but are not present # in the URI. # - # source://addressable//lib/addressable/template.rb#127 + # pkg:gem/addressable#lib/addressable/template.rb:127 def mapping; end - # @return [Array] The list of variables that were present in the Template. - # Note that this list will include variables which do not appear - # in the mapping because they were not present in URI. - # - # source://addressable//lib/addressable/template.rb#134 + # pkg:gem/addressable#lib/addressable/template.rb:138 def names; end - # Dummy method for code expecting a ::MatchData instance - # - # @return [String] An empty string. - # - # source://addressable//lib/addressable/template.rb#224 + # pkg:gem/addressable#lib/addressable/template.rb:227 def post_match; end # Dummy method for code expecting a ::MatchData instance # # @return [String] An empty string. # - # source://addressable//lib/addressable/template.rb#224 + # pkg:gem/addressable#lib/addressable/template.rb:224 def pre_match; end - # @return [String] The matched URI as String. - # - # source://addressable//lib/addressable/template.rb#193 + # pkg:gem/addressable#lib/addressable/template.rb:196 def string; end - # @return [Addressable::Template] The Template used for the match. + # @return [Addressable::Template] + # The Template used for the match. # - # source://addressable//lib/addressable/template.rb#119 + # pkg:gem/addressable#lib/addressable/template.rb:119 def template; end - # @return [Array] Array with the matched URI as first element followed by the captured + # @return [Array] + # Array with the matched URI as first element followed by the captured # values. # - # source://addressable//lib/addressable/template.rb#186 + # pkg:gem/addressable#lib/addressable/template.rb:186 def to_a; end - # @return [String] The matched URI as String. + # @return [String] + # The matched URI as String. # - # source://addressable//lib/addressable/template.rb#193 + # pkg:gem/addressable#lib/addressable/template.rb:193 def to_s; end - # @return [Addressable::URI] The URI that the Template was matched against. + # @return [Addressable::URI] + # The URI that the Template was matched against. # - # source://addressable//lib/addressable/template.rb#114 + # pkg:gem/addressable#lib/addressable/template.rb:114 def uri; end - # @return [Array] The list of values that were captured by the Template. + # @return [Array] + # The list of values that were captured by the Template. # Note that this list will include nils for any variables which # were in the Template, but did not appear in the URI. # - # source://addressable//lib/addressable/template.rb#145 + # pkg:gem/addressable#lib/addressable/template.rb:145 def values; end # Returns multiple captured values at once. # - # @param *indexes [String, Symbol, Fixnum] Indices of the captures to be returned - # @return [Array] Values corresponding to given indices. + # @param [String, Symbol, Fixnum] *indexes + # Indices of the captures to be returned + # + # @return [Array] + # Values corresponding to given indices. + # # @see Addressable::Template::MatchData#[] # - # source://addressable//lib/addressable/template.rb#207 + # pkg:gem/addressable#lib/addressable/template.rb:207 def values_at(*indexes); end - # @return [Array] The list of variables that were present in the Template. + # @return [Array] + # The list of variables that were present in the Template. # Note that this list will include variables which do not appear # in the mapping because they were not present in URI. # - # source://addressable//lib/addressable/template.rb#134 + # pkg:gem/addressable#lib/addressable/template.rb:134 def variables; end end -# source://addressable//lib/addressable/template.rb#40 +# pkg:gem/addressable#lib/addressable/template.rb:40 Addressable::Template::RESERVED = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/template.rb#42 +# pkg:gem/addressable#lib/addressable/template.rb:42 Addressable::Template::RESERVED_NO_COMMA = T.let(T.unsafe(nil), String) # Raised if an invalid template operator is used in a pattern. # -# source://addressable//lib/addressable/template.rb#92 +# pkg:gem/addressable#lib/addressable/template.rb:92 class Addressable::Template::TemplateOperatorAbortedError < ::StandardError; end -# source://addressable//lib/addressable/template.rb#44 +# pkg:gem/addressable#lib/addressable/template.rb:44 Addressable::Template::UNRESERVED = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/template.rb#56 +# pkg:gem/addressable#lib/addressable/template.rb:56 Addressable::Template::VARIABLE_LIST = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/template.rb#52 +# pkg:gem/addressable#lib/addressable/template.rb:52 Addressable::Template::VARNAME = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/template.rb#54 +# pkg:gem/addressable#lib/addressable/template.rb:54 Addressable::Template::VARSPEC = T.let(T.unsafe(nil), Regexp) # This is an implementation of a URI parser based on # RFC 3986, # RFC 3987. # -# source://addressable//lib/addressable/uri.rb#31 +# pkg:gem/addressable#lib/addressable/uri.rb:31 class Addressable::URI # Creates a new uri object from component parts. # - # @option [String, - # @option [String, - # @option [String, - # @option [String, - # @option [String, - # @option [String, - # @option [String, - # @option [String, - # @option [String, - # @option [String, - # @param [String, [Hash] a customizable set of options + # @option [String, #to_str] scheme The scheme component. + # @option [String, #to_str] user The user component. + # @option [String, #to_str] password The password component. + # @option [String, #to_str] userinfo + # The userinfo component. If this is supplied, the user and password + # components must be omitted. + # @option [String, #to_str] host The host component. + # @option [String, #to_str] port The port component. + # @option [String, #to_str] authority + # The authority component. If this is supplied, the user, password, + # userinfo, host, and port components must be omitted. + # @option [String, #to_str] path The path component. + # @option [String, #to_str] query The query component. + # @option [String, #to_str] fragment The fragment component. + # # @return [Addressable::URI] The constructed URI object. # - # source://addressable//lib/addressable/uri.rb#830 + # pkg:gem/addressable#lib/addressable/uri.rb:830 def initialize(options = T.unsafe(nil)); end - # Joins two URIs together. - # - # @param The [String, Addressable::URI, #to_str] URI to join with. - # @return [Addressable::URI] The joined URI. - # - # source://addressable//lib/addressable/uri.rb#1889 + # pkg:gem/addressable#lib/addressable/uri.rb:1991 def +(uri); end # Returns true if the URI objects are equal. This method # normalizes both URIs before doing the comparison. # - # @param uri [Object] The URI to compare. - # @return [TrueClass, FalseClass] true if the URIs are equivalent, false + # @param [Object] uri The URI to compare. + # + # @return [TrueClass, FalseClass] + # true if the URIs are equivalent, false # otherwise. # - # source://addressable//lib/addressable/uri.rb#2239 + # pkg:gem/addressable#lib/addressable/uri.rb:2253 def ==(uri); end # Returns true if the URI objects are equal. This method # normalizes both URIs before doing the comparison, and allows comparison # against Strings. # - # @param uri [Object] The URI to compare. - # @return [TrueClass, FalseClass] true if the URIs are equivalent, false + # @param [Object] uri The URI to compare. + # + # @return [TrueClass, FalseClass] + # true if the URIs are equivalent, false # otherwise. # - # source://addressable//lib/addressable/uri.rb#2217 + # pkg:gem/addressable#lib/addressable/uri.rb:2231 def ===(uri); end # Determines if the URI is absolute. # - # @return [TrueClass, FalseClass] true if the URI is absolute. false + # @return [TrueClass, FalseClass] + # true if the URI is absolute. false # otherwise. # - # source://addressable//lib/addressable/uri.rb#1879 + # pkg:gem/addressable#lib/addressable/uri.rb:1888 def absolute?; end # The authority component for this URI. @@ -846,21 +932,21 @@ class Addressable::URI # # @return [String] The authority component. # - # source://addressable//lib/addressable/uri.rb#1234 + # pkg:gem/addressable#lib/addressable/uri.rb:1241 def authority; end # Sets the authority component for this URI. # - # @param new_authority [String, #to_str] The new authority component. + # @param [String, #to_str] new_authority The new authority component. # - # source://addressable//lib/addressable/uri.rb#1274 + # pkg:gem/addressable#lib/addressable/uri.rb:1281 def authority=(new_authority); end # The basename, if any, of the file in the path component. # # @return [String] The path's basename. # - # source://addressable//lib/addressable/uri.rb#1588 + # pkg:gem/addressable#lib/addressable/uri.rb:1599 def basename; end # The default port for this URI's scheme. @@ -869,7 +955,7 @@ class Addressable::URI # # @return [Integer] The default port. # - # source://addressable//lib/addressable/uri.rb#1454 + # pkg:gem/addressable#lib/addressable/uri.rb:1465 def default_port; end # This method allows you to make several changes to a URI simultaneously, @@ -877,9 +963,10 @@ class Addressable::URI # are valid. The URI will be revalidated as soon as the entire block has # been executed. # - # @param block [Proc] A set of operations to perform on a given URI. + # @param [Proc] block + # A set of operations to perform on a given URI. # - # source://addressable//lib/addressable/uri.rb#2396 + # pkg:gem/addressable#lib/addressable/uri.rb:2410 def defer_validation; end # Creates a URI suitable for display to users. If semantic attacks are @@ -889,7 +976,7 @@ class Addressable::URI # # @return [Addressable::URI] A URI suitable for display purposes. # - # source://addressable//lib/addressable/uri.rb#2201 + # pkg:gem/addressable#lib/addressable/uri.rb:2215 def display_uri; end # Returns the public suffix domain for this host. @@ -897,34 +984,37 @@ class Addressable::URI # @example # Addressable::URI.parse("http://www.example.co.uk").domain # => "example.co.uk" # - # source://addressable//lib/addressable/uri.rb#1225 + # pkg:gem/addressable#lib/addressable/uri.rb:1232 def domain; end # Clones the URI object. # # @return [Addressable::URI] The cloned URI. # - # source://addressable//lib/addressable/uri.rb#2271 + # pkg:gem/addressable#lib/addressable/uri.rb:2285 def dup; end # Determines if the URI is an empty string. # - # @return [TrueClass, FalseClass] Returns true if empty, false otherwise. + # @return [TrueClass, FalseClass] + # Returns true if empty, false otherwise. # - # source://addressable//lib/addressable/uri.rb#2333 + # pkg:gem/addressable#lib/addressable/uri.rb:2347 def empty?; end - # source://addressable//lib/addressable/uri.rb#2406 + # pkg:gem/addressable#lib/addressable/uri.rb:2422 def encode_with(coder); end # Returns true if the URI objects are equal. This method # does NOT normalize either URI before doing the comparison. # - # @param uri [Object] The URI to compare. - # @return [TrueClass, FalseClass] true if the URIs are equivalent, false + # @param [Object] uri The URI to compare. + # + # @return [TrueClass, FalseClass] + # true if the URIs are equivalent, false # otherwise. # - # source://addressable//lib/addressable/uri.rb#2253 + # pkg:gem/addressable#lib/addressable/uri.rb:2267 def eql?(uri); end # The extname, if any, of the file in the path component. @@ -932,28 +1022,28 @@ class Addressable::URI # # @return [String] The path's extname. # - # source://addressable//lib/addressable/uri.rb#1598 + # pkg:gem/addressable#lib/addressable/uri.rb:1609 def extname; end # The fragment component for this URI. # # @return [String] The fragment component. # - # source://addressable//lib/addressable/uri.rb#1810 + # pkg:gem/addressable#lib/addressable/uri.rb:1819 def fragment; end # Sets the fragment component for this URI. # - # @param new_fragment [String, #to_str] The new fragment component. + # @param [String, #to_str] new_fragment The new fragment component. # - # source://addressable//lib/addressable/uri.rb#1835 + # pkg:gem/addressable#lib/addressable/uri.rb:1844 def fragment=(new_fragment); end # Freeze URI, initializing instance variables. # # @return [Addressable::URI] The frozen URI object. # - # source://addressable//lib/addressable/uri.rb#870 + # pkg:gem/addressable#lib/addressable/uri.rb:870 def freeze; end # A hash value that will make a URI equivalent to its normalized @@ -961,39 +1051,41 @@ class Addressable::URI # # @return [Integer] A hash of the URI. # - # source://addressable//lib/addressable/uri.rb#2263 + # pkg:gem/addressable#lib/addressable/uri.rb:2277 def hash; end # The host component for this URI. # # @return [String] The host component. # - # source://addressable//lib/addressable/uri.rb#1120 + # pkg:gem/addressable#lib/addressable/uri.rb:1127 def host; end # Sets the host component for this URI. # - # @param new_host [String, #to_str] The new host component. + # @param [String, #to_str] new_host The new host component. # - # source://addressable//lib/addressable/uri.rb#1156 + # pkg:gem/addressable#lib/addressable/uri.rb:1163 def host=(new_host); end # This method is same as URI::Generic#host except # brackets for IPv6 (and 'IPvFuture') addresses are removed. # - # @return [String] The hostname for this URI. # @see Addressable::URI#host # - # source://addressable//lib/addressable/uri.rb#1178 + # @return [String] The hostname for this URI. + # + # pkg:gem/addressable#lib/addressable/uri.rb:1185 def hostname; end # This method is same as URI::Generic#host= except # the argument can be a bare IPv6 address (or 'IPvFuture'). # - # @param new_hostname [String, #to_str] The new hostname for this URI. # @see Addressable::URI#host= # - # source://addressable//lib/addressable/uri.rb#1190 + # @param [String, #to_str] new_hostname The new hostname for this URI. + # + # pkg:gem/addressable#lib/addressable/uri.rb:1197 def hostname=(new_hostname); end # The inferred port component for this URI. @@ -1002,42 +1094,46 @@ class Addressable::URI # # @return [Integer] The inferred port component. # - # source://addressable//lib/addressable/uri.rb#1440 + # pkg:gem/addressable#lib/addressable/uri.rb:1451 def inferred_port; end - # source://addressable//lib/addressable/uri.rb#2417 + # pkg:gem/addressable#lib/addressable/uri.rb:2433 def init_with(coder); end # Returns a String representation of the URI object's state. # # @return [String] The URI object's state, as a String. # - # source://addressable//lib/addressable/uri.rb#2384 + # pkg:gem/addressable#lib/addressable/uri.rb:2398 def inspect; end # Determines if the scheme indicates an IP-based protocol. # - # @return [TrueClass, FalseClass] true if the scheme indicates an IP-based protocol. + # @return [TrueClass, FalseClass] + # true if the scheme indicates an IP-based protocol. # false otherwise. # - # source://addressable//lib/addressable/uri.rb#1855 + # pkg:gem/addressable#lib/addressable/uri.rb:1864 def ip_based?; end # Joins two URIs together. # - # @param The [String, Addressable::URI, #to_str] URI to join with. + # @param [String, Addressable::URI, #to_str] The URI to join with. + # # @return [Addressable::URI] The joined URI. # - # source://addressable//lib/addressable/uri.rb#1889 + # pkg:gem/addressable#lib/addressable/uri.rb:1898 def join(uri); end # Destructive form of join. # - # @param The [String, Addressable::URI, #to_str] URI to join with. + # @param [String, Addressable::URI, #to_str] The URI to join with. + # # @return [Addressable::URI] The joined URI. + # # @see Addressable::URI#join # - # source://addressable//lib/addressable/uri.rb#1992 + # pkg:gem/addressable#lib/addressable/uri.rb:2001 def join!(uri); end # Merges a URI with a Hash of components. @@ -1045,20 +1141,24 @@ class Addressable::URI # components present in the hash parameter will override the # original components. The path component is not treated specially. # - # @param The [Hash, Addressable::URI, #to_hash] components to merge with. + # @param [Hash, Addressable::URI, #to_hash] The components to merge with. + # # @return [Addressable::URI] The merged URI. + # # @see Hash#merge # - # source://addressable//lib/addressable/uri.rb#2007 + # pkg:gem/addressable#lib/addressable/uri.rb:2016 def merge(hash); end # Destructive form of merge. # - # @param The [Hash, Addressable::URI, #to_hash] components to merge with. + # @param [Hash, Addressable::URI, #to_hash] The components to merge with. + # # @return [Addressable::URI] The merged URI. + # # @see Addressable::URI#merge # - # source://addressable//lib/addressable/uri.rb#2072 + # pkg:gem/addressable#lib/addressable/uri.rb:2081 def merge!(uri); end # Returns a normalized URI object. @@ -1071,71 +1171,72 @@ class Addressable::URI # # @return [Addressable::URI] The normalized URI. # - # source://addressable//lib/addressable/uri.rb#2164 + # pkg:gem/addressable#lib/addressable/uri.rb:2178 def normalize; end # Destructively normalizes this URI object. # # @return [Addressable::URI] The normalized URI. + # # @see Addressable::URI#normalize # - # source://addressable//lib/addressable/uri.rb#2190 + # pkg:gem/addressable#lib/addressable/uri.rb:2204 def normalize!; end # The authority component for this URI, normalized. # # @return [String] The authority component, normalized. # - # source://addressable//lib/addressable/uri.rb#1252 + # pkg:gem/addressable#lib/addressable/uri.rb:1259 def normalized_authority; end # The fragment component for this URI, normalized. # # @return [String] The fragment component, normalized. # - # source://addressable//lib/addressable/uri.rb#1816 + # pkg:gem/addressable#lib/addressable/uri.rb:1825 def normalized_fragment; end # The host component for this URI, normalized. # # @return [String] The host component, normalized. # - # source://addressable//lib/addressable/uri.rb#1126 + # pkg:gem/addressable#lib/addressable/uri.rb:1133 def normalized_host; end # The password component for this URI, normalized. # # @return [String] The password component, normalized. # - # source://addressable//lib/addressable/uri.rb#1002 + # pkg:gem/addressable#lib/addressable/uri.rb:1008 def normalized_password; end # The path component for this URI, normalized. # # @return [String] The path component, normalized. # - # source://addressable//lib/addressable/uri.rb#1535 + # pkg:gem/addressable#lib/addressable/uri.rb:1546 def normalized_path; end # The port component for this URI, normalized. # # @return [Integer] The port component, normalized. # - # source://addressable//lib/addressable/uri.rb#1392 + # pkg:gem/addressable#lib/addressable/uri.rb:1403 def normalized_port; end # The query component for this URI, normalized. # # @return [String] The query component, normalized. # - # source://addressable//lib/addressable/uri.rb#1613 + # pkg:gem/addressable#lib/addressable/uri.rb:1624 def normalized_query(*flags); end # The scheme component for this URI, normalized. # # @return [String] The scheme component, normalized. # - # source://addressable//lib/addressable/uri.rb#896 + # pkg:gem/addressable#lib/addressable/uri.rb:896 def normalized_scheme; end # The normalized combination of components that represent a site. @@ -1147,43 +1248,47 @@ class Addressable::URI # # @return [String] The normalized components that identify a site. # - # source://addressable//lib/addressable/uri.rb#1485 + # pkg:gem/addressable#lib/addressable/uri.rb:1496 def normalized_site; end # The user component for this URI, normalized. # # @return [String] The user component, normalized. # - # source://addressable//lib/addressable/uri.rb#947 + # pkg:gem/addressable#lib/addressable/uri.rb:952 def normalized_user; end # The userinfo component for this URI, normalized. # # @return [String] The userinfo component, normalized. # - # source://addressable//lib/addressable/uri.rb#1068 + # pkg:gem/addressable#lib/addressable/uri.rb:1075 def normalized_userinfo; end # Omits components from a URI. # + # @param [Symbol] *components The components to be omitted. + # + # @return [Addressable::URI] The URI with components omitted. + # # @example # uri = Addressable::URI.parse("http://example.com/path?query") # #=> # # uri.omit(:scheme, :authority) # #=> # - # @param *components [Symbol] The components to be omitted. - # @return [Addressable::URI] The URI with components omitted. # - # source://addressable//lib/addressable/uri.rb#2297 + # pkg:gem/addressable#lib/addressable/uri.rb:2311 def omit(*components); end # Destructive form of omit. # - # @param *components [Symbol] The components to be omitted. + # @param [Symbol] *components The components to be omitted. + # # @return [Addressable::URI] The URI with components omitted. + # # @see Addressable::URI#omit # - # source://addressable//lib/addressable/uri.rb#2324 + # pkg:gem/addressable#lib/addressable/uri.rb:2338 def omit!(*components); end # The origin for this URI, serialized to ASCII, as per @@ -1191,44 +1296,44 @@ class Addressable::URI # # @return [String] The serialized origin. # - # source://addressable//lib/addressable/uri.rb#1314 + # pkg:gem/addressable#lib/addressable/uri.rb:1321 def origin; end # Sets the origin for this URI, serialized to ASCII, as per # RFC 6454, section 6.2. This assignment will reset the `userinfo` # component. # - # @param new_origin [String, #to_str] The new origin component. + # @param [String, #to_str] new_origin The new origin component. # - # source://addressable//lib/addressable/uri.rb#1333 + # pkg:gem/addressable#lib/addressable/uri.rb:1340 def origin=(new_origin); end # The password component for this URI. # # @return [String] The password component. # - # source://addressable//lib/addressable/uri.rb#996 + # pkg:gem/addressable#lib/addressable/uri.rb:1002 def password; end # Sets the password component for this URI. # - # @param new_password [String, #to_str] The new password component. + # @param [String, #to_str] new_password The new password component. # - # source://addressable//lib/addressable/uri.rb#1025 + # pkg:gem/addressable#lib/addressable/uri.rb:1031 def password=(new_password); end # The path component for this URI. # # @return [String] The path component. # - # source://addressable//lib/addressable/uri.rb#1528 + # pkg:gem/addressable#lib/addressable/uri.rb:1539 def path; end # Sets the path component for this URI. # - # @param new_path [String, #to_str] The new path component. + # @param [String, #to_str] new_path The new path component. # - # source://addressable//lib/addressable/uri.rb#1567 + # pkg:gem/addressable#lib/addressable/uri.rb:1578 def path=(new_path); end # The port component for this URI. @@ -1237,32 +1342,38 @@ class Addressable::URI # # @return [Integer] The port component. # - # source://addressable//lib/addressable/uri.rb#1386 + # pkg:gem/addressable#lib/addressable/uri.rb:1397 def port; end # Sets the port component for this URI. # - # @param new_port [String, Integer, #to_s] The new port component. + # @param [String, Integer, #to_s] new_port The new port component. # - # source://addressable//lib/addressable/uri.rb#1408 + # pkg:gem/addressable#lib/addressable/uri.rb:1419 def port=(new_port); end # The query component for this URI. # # @return [String] The query component. # - # source://addressable//lib/addressable/uri.rb#1607 + # pkg:gem/addressable#lib/addressable/uri.rb:1618 def query; end # Sets the query component for this URI. # - # @param new_query [String, #to_str] The new query component. + # @param [String, #to_str] new_query The new query component. # - # source://addressable//lib/addressable/uri.rb#1641 + # pkg:gem/addressable#lib/addressable/uri.rb:1650 def query=(new_query); end # Converts the query component to a Hash value. # + # @param [Class] return_type The return type desired. Value must be either + # `Hash` or `Array`. + # + # @return [Hash, Array, nil] The query string parsed as a Hash or Array + # or nil if the query string is blank. + # # @example # Addressable::URI.parse("?one=1&two=2&three=3").query_values # #=> {"one" => "1", "two" => "2", "three" => "3"} @@ -1274,17 +1385,15 @@ class Addressable::URI # #=> {} # Addressable::URI.parse("").query_values # #=> nil - # @param return_type [Class] The return type desired. Value must be either - # `Hash` or `Array`. - # @return [Hash, Array, nil] The query string parsed as a Hash or Array - # or nil if the query string is blank. # - # source://addressable//lib/addressable/uri.rb#1672 + # pkg:gem/addressable#lib/addressable/uri.rb:1681 def query_values(return_type = T.unsafe(nil)); end # Sets the query component for this URI from a Hash object. # An empty Hash or Array will result in an empty query string. # + # @param [Hash, #to_hash, Array] new_query_values The new query values. + # # @example # uri.query_values = {:a => "a", :b => ["c", "d", "e"]} # uri.query @@ -1298,17 +1407,17 @@ class Addressable::URI # uri.query_values = [['flag'], ['key', 'value']] # uri.query # # => "flag&key=value" - # @param new_query_values [Hash, #to_hash, Array] The new query values. # - # source://addressable//lib/addressable/uri.rb#1723 + # pkg:gem/addressable#lib/addressable/uri.rb:1732 def query_values=(new_query_values); end # Determines if the URI is relative. # - # @return [TrueClass, FalseClass] true if the URI is relative. false + # @return [TrueClass, FalseClass] + # true if the URI is relative. false # otherwise. # - # source://addressable//lib/addressable/uri.rb#1869 + # pkg:gem/addressable#lib/addressable/uri.rb:1878 def relative?; end # The HTTP request URI for this URI. This is the path and the @@ -1316,48 +1425,52 @@ class Addressable::URI # # @return [String] The request URI required for an HTTP request. # - # source://addressable//lib/addressable/uri.rb#1774 + # pkg:gem/addressable#lib/addressable/uri.rb:1783 def request_uri; end # Sets the HTTP request URI for this URI. # - # @param new_request_uri [String, #to_str] The new HTTP request URI. + # @param [String, #to_str] new_request_uri The new HTTP request URI. # - # source://addressable//lib/addressable/uri.rb#1786 + # pkg:gem/addressable#lib/addressable/uri.rb:1795 def request_uri=(new_request_uri); end # Returns the shortest normalized relative form of this URI that uses the # supplied URI as a base for resolution. Returns an absolute URI if # necessary. This is effectively the opposite of route_to. # - # @param uri [String, Addressable::URI, #to_str] The URI to route from. - # @return [Addressable::URI] The normalized relative URI that is equivalent to the original URI. + # @param [String, Addressable::URI, #to_str] uri The URI to route from. + # + # @return [Addressable::URI] + # The normalized relative URI that is equivalent to the original URI. # - # source://addressable//lib/addressable/uri.rb#2085 + # pkg:gem/addressable#lib/addressable/uri.rb:2094 def route_from(uri); end # Returns the shortest normalized relative form of the supplied URI that # uses this URI as a base for resolution. Returns an absolute URI if # necessary. This is effectively the opposite of route_from. # - # @param uri [String, Addressable::URI, #to_str] The URI to route to. - # @return [Addressable::URI] The normalized relative URI that is equivalent to the supplied URI. + # @param [String, Addressable::URI, #to_str] uri The URI to route to. # - # source://addressable//lib/addressable/uri.rb#2150 + # @return [Addressable::URI] + # The normalized relative URI that is equivalent to the supplied URI. + # + # pkg:gem/addressable#lib/addressable/uri.rb:2164 def route_to(uri); end # The scheme component for this URI. # # @return [String] The scheme component. # - # source://addressable//lib/addressable/uri.rb#890 + # pkg:gem/addressable#lib/addressable/uri.rb:890 def scheme; end # Sets the scheme component for this URI. # - # @param new_scheme [String, #to_str] The new scheme component. + # @param [String, #to_str] new_scheme The new scheme component. # - # source://addressable//lib/addressable/uri.rb#917 + # pkg:gem/addressable#lib/addressable/uri.rb:917 def scheme=(new_scheme); end # The combination of components that represent a site. @@ -1369,14 +1482,14 @@ class Addressable::URI # # @return [String] The components that identify a site. # - # source://addressable//lib/addressable/uri.rb#1467 + # pkg:gem/addressable#lib/addressable/uri.rb:1478 def site; end # Sets the site value for this URI. # - # @param new_site [String, #to_str] The new site value. + # @param [String, #to_str] new_site The new site value. # - # source://addressable//lib/addressable/uri.rb#1506 + # pkg:gem/addressable#lib/addressable/uri.rb:1517 def site=(new_site); end # Returns the top-level domain for this host. @@ -1384,50 +1497,47 @@ class Addressable::URI # @example # Addressable::URI.parse("http://www.example.co.uk").tld # => "co.uk" # - # source://addressable//lib/addressable/uri.rb#1207 + # pkg:gem/addressable#lib/addressable/uri.rb:1214 def tld; end # Sets the top-level domain for this URI. # - # @param new_tld [String, #to_str] The new top-level domain. + # @param [String, #to_str] new_tld The new top-level domain. # - # source://addressable//lib/addressable/uri.rb#1215 + # pkg:gem/addressable#lib/addressable/uri.rb:1222 def tld=(new_tld); end # Returns a Hash of the URI components. # # @return [Hash] The URI as a Hash of components. # - # source://addressable//lib/addressable/uri.rb#2367 + # pkg:gem/addressable#lib/addressable/uri.rb:2381 def to_hash; end # Converts the URI to a String. # # @return [String] The URI's String representation. # - # source://addressable//lib/addressable/uri.rb#2341 + # pkg:gem/addressable#lib/addressable/uri.rb:2355 def to_s; end - # Converts the URI to a String. # URI's are glorified Strings. Allow implicit conversion. # - # @return [String] The URI's String representation. - # - # source://addressable//lib/addressable/uri.rb#2341 + # pkg:gem/addressable#lib/addressable/uri.rb:2375 def to_str; end # The user component for this URI. # # @return [String] The user component. # - # source://addressable//lib/addressable/uri.rb#941 + # pkg:gem/addressable#lib/addressable/uri.rb:946 def user; end # Sets the user component for this URI. # - # @param new_user [String, #to_str] The new user component. + # @param [String, #to_str] new_user The new user component. # - # source://addressable//lib/addressable/uri.rb#970 + # pkg:gem/addressable#lib/addressable/uri.rb:975 def user=(new_user); end # The userinfo component for this URI. @@ -1435,14 +1545,14 @@ class Addressable::URI # # @return [String] The userinfo component. # - # source://addressable//lib/addressable/uri.rb#1052 + # pkg:gem/addressable#lib/addressable/uri.rb:1059 def userinfo; end # Sets the userinfo component for this URI. # - # @param new_userinfo [String, #to_str] The new userinfo component. + # @param [String, #to_str] new_userinfo The new userinfo component. # - # source://addressable//lib/addressable/uri.rb#1091 + # pkg:gem/addressable#lib/addressable/uri.rb:1098 def userinfo=(new_userinfo); end protected @@ -1451,47 +1561,52 @@ class Addressable::URI # # @api private # - # source://addressable//lib/addressable/uri.rb#2561 + # pkg:gem/addressable#lib/addressable/uri.rb:2599 def force_utf8_encoding_if_needed(str); end # Resets composite values for the entire URI # # @api private # - # source://addressable//lib/addressable/uri.rb#2552 + # pkg:gem/addressable#lib/addressable/uri.rb:2587 def remove_composite_values; end # Replaces the internal state of self with the specified URI's state. # Used in destructive operations to avoid massive code repetition. # - # @param uri [Addressable::URI] The URI to replace self with. + # @param [Addressable::URI] uri The URI to replace self with. + # # @return [Addressable::URI] self. # - # source://addressable//lib/addressable/uri.rb#2519 + # pkg:gem/addressable#lib/addressable/uri.rb:2554 def replace_self(uri); end # Splits path string with "/" (slash). # It is considered that there is empty string after last slash when # path ends with slash. # - # @param path [String] The path to split. + # @param [String] path The path to split. + # # @return [Array] An array of parts of path. # - # source://addressable//lib/addressable/uri.rb#2542 + # pkg:gem/addressable#lib/addressable/uri.rb:2577 def split_path(path); end # Ensures that the URI is valid. # - # source://addressable//lib/addressable/uri.rb#2476 + # pkg:gem/addressable#lib/addressable/uri.rb:2511 def validate; end private + # pkg:gem/addressable#lib/addressable/uri.rb:2607 + def initialize_copy(other); end + # Resets instance variables # # @api private # - # source://addressable//lib/addressable/uri.rb#2573 + # pkg:gem/addressable#lib/addressable/uri.rb:2619 def reset_ivs; end class << self @@ -1501,6 +1616,15 @@ class Addressable::URI # parsed with Addressable::URI.parse. Handles all of the # various Microsoft-specific formats for specifying paths. # + # @param [String, Addressable::URI, #to_str] path + # Typically a String path to a file or directory, but + # will return a sensible return value if an absolute URI is supplied + # instead. + # + # @return [Addressable::URI] + # The parsed file scheme URI or the original URI if some other URI + # scheme was provided. + # # @example # base = Addressable::URI.convert_path("/absolute/path/") # uri = Addressable::URI.convert_path("relative/path") @@ -1508,84 +1632,45 @@ class Addressable::URI # #=> "file:///absolute/path/relative/path" # # Addressable::URI.convert_path( - # "c:\\windows\\My Documents 100%20\\foo.txt" + # "c:\\windows\\My Documents 100%20\\foo.txt" # ).to_s # #=> "file:///c:/windows/My%20Documents%20100%20/foo.txt" # # Addressable::URI.convert_path("http://example.com/").to_s # #=> "http://example.com/" - # @param path [String, Addressable::URI, #to_str] Typically a String path to a file or directory, but - # will return a sensible return value if an absolute URI is supplied - # instead. - # @return [Addressable::URI] The parsed file scheme URI or the original URI if some other URI - # scheme was provided. # - # source://addressable//lib/addressable/uri.rb#292 + # pkg:gem/addressable#lib/addressable/uri.rb:292 def convert_path(path); end # Percent encodes any special characters in the URI. # - # @param uri [String, Addressable::URI, #to_str] The URI to encode. - # @param return_type [Class] The type of object to return. + # @param [String, Addressable::URI, #to_str] uri + # The URI to encode. + # + # @param [Class] return_type + # The type of object to return. # This value may only be set to String or # Addressable::URI. All other values are invalid. Defaults # to String. - # @return [String, Addressable::URI] The encoded URI. + # + # @return [String, Addressable::URI] + # The encoded URI. # The return type is determined by the return_type # parameter. # - # source://addressable//lib/addressable/uri.rb#616 + # pkg:gem/addressable#lib/addressable/uri.rb:616 def encode(uri, return_type = T.unsafe(nil)); end # Percent encodes a URI component. # - # '9' to be percent encoded. If a Regexp is passed, the - # value /[^b-zB-Z0-9]/ would have the same effect. A set of - # useful String values may be found in the - # Addressable::URI::CharacterClasses module. The default - # value is the reserved plus unreserved character classes specified in - # RFC 3986. + # @param [String, #to_str] component The URI component to encode. # - # @example - # Addressable::URI.encode_component("simple/example", "b-zB-Z0-9") - # => "simple%2Fex%61mple" - # Addressable::URI.encode_component("simple/example", /[^b-zB-Z0-9]/) - # => "simple%2Fex%61mple" - # Addressable::URI.encode_component( - # "simple/example", Addressable::URI::CharacterClasses::UNRESERVED - # ) - # => "simple%2Fexample" - # @param component [String, #to_str] The URI component to encode. - # @param character_class [String, Regexp] The characters which are not percent encoded. If a String + # @param [String, Regexp] character_class + # The characters which are not percent encoded. If a String # is passed, the String must be formatted as a regular # expression character class. (Do not include the surrounding square # brackets.) For example, "b-zB-Z0-9" would cause # everything but the letters 'b' through 'z' and the numbers '0' through - # @param upcase_encoded [Regexp] A string of characters that may already be percent encoded, and whose - # encodings should be upcased. This allows normalization of percent - # encodings for characters not included in the - # character_class. - # @return [String] The encoded component. - # - # source://addressable//lib/addressable/uri.rb#403 - def encode_component(component, character_class = T.unsafe(nil), upcase_encoded = T.unsafe(nil)); end - - # Percent encodes any special characters in the URI. - # - # @param uri [String, Addressable::URI, #to_str] The URI to encode. - # @param return_type [Class] The type of object to return. - # This value may only be set to String or - # Addressable::URI. All other values are invalid. Defaults - # to String. - # @return [String, Addressable::URI] The encoded URI. - # The return type is determined by the return_type - # parameter. - # - # source://addressable//lib/addressable/uri.rb#616 - def escape(uri, return_type = T.unsafe(nil)); end - - # Percent encodes a URI component. - # # '9' to be percent encoded. If a Regexp is passed, the # value /[^b-zB-Z0-9]/ would have the same effect. A set of # useful String values may be found in the @@ -1593,108 +1678,109 @@ class Addressable::URI # value is the reserved plus unreserved character classes specified in # RFC 3986. # + # @param [Regexp] upcase_encoded + # A string of characters that may already be percent encoded, and whose + # encodings should be upcased. This allows normalization of percent + # encodings for characters not included in the + # character_class. + # + # @return [String] The encoded component. + # # @example # Addressable::URI.encode_component("simple/example", "b-zB-Z0-9") # => "simple%2Fex%61mple" # Addressable::URI.encode_component("simple/example", /[^b-zB-Z0-9]/) # => "simple%2Fex%61mple" # Addressable::URI.encode_component( - # "simple/example", Addressable::URI::CharacterClasses::UNRESERVED + # "simple/example", Addressable::URI::CharacterClasses::UNRESERVED # ) # => "simple%2Fexample" - # @param component [String, #to_str] The URI component to encode. - # @param character_class [String, Regexp] The characters which are not percent encoded. If a String - # is passed, the String must be formatted as a regular - # expression character class. (Do not include the surrounding square - # brackets.) For example, "b-zB-Z0-9" would cause - # everything but the letters 'b' through 'z' and the numbers '0' through - # @param upcase_encoded [Regexp] A string of characters that may already be percent encoded, and whose - # encodings should be upcased. This allows normalization of percent - # encodings for characters not included in the - # character_class. - # @return [String] The encoded component. # - # source://addressable//lib/addressable/uri.rb#403 + # pkg:gem/addressable#lib/addressable/uri.rb:403 + def encode_component(component, character_class = T.unsafe(nil), upcase_encoded = T.unsafe(nil)); end + + # pkg:gem/addressable#lib/addressable/uri.rb:651 + def escape(uri, return_type = T.unsafe(nil)); end + + # pkg:gem/addressable#lib/addressable/uri.rb:446 def escape_component(component, character_class = T.unsafe(nil), upcase_encoded = T.unsafe(nil)); end # Encodes a set of key/value pairs according to the rules for the # application/x-www-form-urlencoded MIME type. # - # @param form_values [#to_hash, #to_ary] The form values to encode. - # @param sort [TrueClass, FalseClass] Sort the key/value pairs prior to encoding. + # @param [#to_hash, #to_ary] form_values + # The form values to encode. + # + # @param [TrueClass, FalseClass] sort + # Sort the key/value pairs prior to encoding. # Defaults to false. - # @return [String] The encoded value. # - # source://addressable//lib/addressable/uri.rb#740 + # @return [String] + # The encoded value. + # + # pkg:gem/addressable#lib/addressable/uri.rb:740 def form_encode(form_values, sort = T.unsafe(nil)); end # Decodes a String according to the rules for the # application/x-www-form-urlencoded MIME type. # - # @param encoded_value [String, #to_str] The form values to decode. - # @return [Array] The decoded values. + # @param [String, #to_str] encoded_value + # The form values to decode. + # + # @return [Array] + # The decoded values. # This is not a Hash because of the possibility for # duplicate keys. # - # source://addressable//lib/addressable/uri.rb#793 + # pkg:gem/addressable#lib/addressable/uri.rb:793 def form_unencode(encoded_value); end # Converts an input to a URI. The input does not have to be a valid # URI — the method will use heuristics to guess what URI was intended. # This is not standards-compliant, merely user-friendly. # - # @param uri [String, Addressable::URI, #to_str] The URI string to parse. + # @param [String, Addressable::URI, #to_str] uri + # The URI string to parse. # No parsing is performed if the object is already an # Addressable::URI. - # @param hints [Hash] A Hash of hints to the heuristic parser. + # @param [Hash] hints + # A Hash of hints to the heuristic parser. # Defaults to {:scheme => "http"}. + # # @return [Addressable::URI] The parsed URI. # - # source://addressable//lib/addressable/uri.rb#191 + # pkg:gem/addressable#lib/addressable/uri.rb:191 def heuristic_parse(uri, hints = T.unsafe(nil)); end # Returns an array of known ip-based schemes. These schemes typically # use a similar URI form: # //:@:/ # - # source://addressable//lib/addressable/uri.rb#1369 + # pkg:gem/addressable#lib/addressable/uri.rb:1380 def ip_based_schemes; end # Joins several URIs together. # + # @param [String, Addressable::URI, #to_str] *uris + # The URIs to join. + # + # @return [Addressable::URI] The joined URI. + # # @example # base = "http://example.com/" # uri = Addressable::URI.parse("relative/path") # Addressable::URI.join(base, uri) # #=> # - # @param *uris [String, Addressable::URI, #to_str] The URIs to join. - # @return [Addressable::URI] The joined URI. # - # source://addressable//lib/addressable/uri.rb#343 + # pkg:gem/addressable#lib/addressable/uri.rb:343 def join(*uris); end # Normalizes the encoding of a URI component. # - # @example - # Addressable::URI.normalize_component("simpl%65/%65xampl%65", "b-zB-Z") - # => "simple%2Fex%61mple" - # Addressable::URI.normalize_component( - # "simpl%65/%65xampl%65", /[^b-zB-Z]/ - # ) - # => "simple%2Fex%61mple" - # Addressable::URI.normalize_component( - # "simpl%65/%65xampl%65", - # Addressable::URI::CharacterClasses::UNRESERVED - # ) - # => "simple%2Fexample" - # Addressable::URI.normalize_component( - # "one%20two%2fthree%26four", - # "0-9a-zA-Z &/", - # "/" - # ) - # => "one two%2Fthree&four" - # @param component [String, #to_str] The URI component to encode. - # @param character_class [String, Regexp] The characters which are not percent encoded. If a String + # @param [String, #to_str] component The URI component to encode. + # + # @param [String, Regexp] character_class + # The characters which are not percent encoded. If a String # is passed, the String must be formatted as a regular # expression character class. (Do not include the surrounding square # brackets.) For example, "b-zB-Z0-9" would cause @@ -1705,54 +1791,84 @@ class Addressable::URI # Addressable::URI::CharacterClasses module. The default # value is the reserved plus unreserved character classes specified in # RFC 3986. - # @param leave_encoded [String] When character_class is a String then + # + # @param [String] leave_encoded + # When character_class is a String then # leave_encoded is a string of characters that should remain # percent encoded while normalizing the component; if they appear percent # encoded in the original component, then they will be upcased ("%2f" # normalized to "%2F") but otherwise left alone. + # # @return [String] The normalized component. # - # source://addressable//lib/addressable/uri.rb#552 + # @example + # Addressable::URI.normalize_component("simpl%65/%65xampl%65", "b-zB-Z") + # => "simple%2Fex%61mple" + # Addressable::URI.normalize_component( + # "simpl%65/%65xampl%65", /[^b-zB-Z]/ + # ) + # => "simple%2Fex%61mple" + # Addressable::URI.normalize_component( + # "simpl%65/%65xampl%65", + # Addressable::URI::CharacterClasses::UNRESERVED + # ) + # => "simple%2Fexample" + # Addressable::URI.normalize_component( + # "one%20two%2fthree%26four", + # "0-9a-zA-Z &/", + # "/" + # ) + # => "one two%2Fthree&four" + # + # pkg:gem/addressable#lib/addressable/uri.rb:552 def normalize_component(component, character_class = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end # Resolves paths to their simplest form. # - # @param path [String] The path to normalize. + # @param [String] path The path to normalize. + # # @return [String] The normalized path. # - # source://addressable//lib/addressable/uri.rb#2440 + # pkg:gem/addressable#lib/addressable/uri.rb:2460 def normalize_path(path); end # Normalizes the encoding of a URI. Characters within a hostname are # not percent encoded to allow for internationalized domain names. # - # @param uri [String, Addressable::URI, #to_str] The URI to encode. - # @param return_type [Class] The type of object to return. + # @param [String, Addressable::URI, #to_str] uri + # The URI to encode. + # + # @param [Class] return_type + # The type of object to return. # This value may only be set to String or # Addressable::URI. All other values are invalid. Defaults # to String. - # @return [String, Addressable::URI] The encoded URI. + # + # @return [String, Addressable::URI] + # The encoded URI. # The return type is determined by the return_type # parameter. # - # source://addressable//lib/addressable/uri.rb#671 + # pkg:gem/addressable#lib/addressable/uri.rb:671 def normalized_encode(uri, return_type = T.unsafe(nil)); end # Returns a URI object based on the parsed string. # - # @param uri [String, Addressable::URI, #to_str] The URI string to parse. + # @param [String, Addressable::URI, #to_str] uri + # The URI string to parse. # No parsing is performed if the object is already an # Addressable::URI. + # # @return [Addressable::URI] The parsed URI. # - # source://addressable//lib/addressable/uri.rb#114 + # pkg:gem/addressable#lib/addressable/uri.rb:114 def parse(uri); end # Returns a hash of common IP-based schemes and their default port # numbers. Adding new schemes to this hash, as necessary, will allow # for better URI normalization. # - # source://addressable//lib/addressable/uri.rb#1376 + # pkg:gem/addressable#lib/addressable/uri.rb:1387 def port_mapping; end # Unencodes any percent encoded characters within a URI component. @@ -1760,75 +1876,34 @@ class Addressable::URI # however, it is recommended to use the unencode_component # alias when unencoding components. # - # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode. - # @param return_type [Class] The type of object to return. + # @param [String, Addressable::URI, #to_str] uri + # The URI or component to unencode. + # + # @param [Class] return_type + # The type of object to return. # This value may only be set to String or # Addressable::URI. All other values are invalid. Defaults # to String. - # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character + # + # @param [String] leave_encoded + # A string of characters to leave encoded. If a percent encoded character # in this list is encountered then it will remain percent encoded. - # @return [String, Addressable::URI] The unencoded component or URI. + # + # @return [String, Addressable::URI] + # The unencoded component or URI. # The return type is determined by the return_type # parameter. # - # source://addressable//lib/addressable/uri.rb#472 + # pkg:gem/addressable#lib/addressable/uri.rb:472 def unencode(uri, return_type = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end - # Unencodes any percent encoded characters within a URI component. - # This method may be used for unencoding either components or full URIs, - # however, it is recommended to use the unencode_component - # alias when unencoding components. - # - # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode. - # @param return_type [Class] The type of object to return. - # This value may only be set to String or - # Addressable::URI. All other values are invalid. Defaults - # to String. - # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character - # in this list is encountered then it will remain percent encoded. - # @return [String, Addressable::URI] The unencoded component or URI. - # The return type is determined by the return_type - # parameter. - # - # source://addressable//lib/addressable/uri.rb#472 + # pkg:gem/addressable#lib/addressable/uri.rb:502 def unencode_component(uri, return_type = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end - # Unencodes any percent encoded characters within a URI component. - # This method may be used for unencoding either components or full URIs, - # however, it is recommended to use the unencode_component - # alias when unencoding components. - # - # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode. - # @param return_type [Class] The type of object to return. - # This value may only be set to String or - # Addressable::URI. All other values are invalid. Defaults - # to String. - # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character - # in this list is encountered then it will remain percent encoded. - # @return [String, Addressable::URI] The unencoded component or URI. - # The return type is determined by the return_type - # parameter. - # - # source://addressable//lib/addressable/uri.rb#472 + # pkg:gem/addressable#lib/addressable/uri.rb:501 def unescape(uri, return_type = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end - # Unencodes any percent encoded characters within a URI component. - # This method may be used for unencoding either components or full URIs, - # however, it is recommended to use the unencode_component - # alias when unencoding components. - # - # @param uri [String, Addressable::URI, #to_str] The URI or component to unencode. - # @param return_type [Class] The type of object to return. - # This value may only be set to String or - # Addressable::URI. All other values are invalid. Defaults - # to String. - # @param leave_encoded [String] A string of characters to leave encoded. If a percent encoded character - # in this list is encountered then it will remain percent encoded. - # @return [String, Addressable::URI] The unencoded component or URI. - # The return type is determined by the return_type - # parameter. - # - # source://addressable//lib/addressable/uri.rb#472 + # pkg:gem/addressable#lib/addressable/uri.rb:503 def unescape_component(uri, return_type = T.unsafe(nil), leave_encoded = T.unsafe(nil)); end end end @@ -1842,163 +1917,165 @@ end # Interpolated `String`s *were* frozen this way before Ruby 3.0: # https://bugs.ruby-lang.org/issues/17104 # -# source://addressable//lib/addressable/uri.rb#46 +# pkg:gem/addressable#lib/addressable/uri.rb:46 module Addressable::URI::CharacterClasses; end -# source://addressable//lib/addressable/uri.rb#47 +# pkg:gem/addressable#lib/addressable/uri.rb:47 Addressable::URI::CharacterClasses::ALPHA = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#57 +# pkg:gem/addressable#lib/addressable/uri.rb:57 Addressable::URI::CharacterClasses::AUTHORITY = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#48 +# pkg:gem/addressable#lib/addressable/uri.rb:48 Addressable::URI::CharacterClasses::DIGIT = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#60 +# pkg:gem/addressable#lib/addressable/uri.rb:60 Addressable::URI::CharacterClasses::FRAGMENT = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#49 +# pkg:gem/addressable#lib/addressable/uri.rb:49 Addressable::URI::CharacterClasses::GEN_DELIMS = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#56 +# pkg:gem/addressable#lib/addressable/uri.rb:56 Addressable::URI::CharacterClasses::HOST = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#58 +# pkg:gem/addressable#lib/addressable/uri.rb:58 Addressable::URI::CharacterClasses::PATH = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#54 +# pkg:gem/addressable#lib/addressable/uri.rb:54 Addressable::URI::CharacterClasses::PCHAR = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#59 +# pkg:gem/addressable#lib/addressable/uri.rb:59 Addressable::URI::CharacterClasses::QUERY = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#51 +# pkg:gem/addressable#lib/addressable/uri.rb:51 Addressable::URI::CharacterClasses::RESERVED = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#53 +# pkg:gem/addressable#lib/addressable/uri.rb:53 Addressable::URI::CharacterClasses::RESERVED_AND_UNRESERVED = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#55 +# pkg:gem/addressable#lib/addressable/uri.rb:55 Addressable::URI::CharacterClasses::SCHEME = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#50 +# pkg:gem/addressable#lib/addressable/uri.rb:50 Addressable::URI::CharacterClasses::SUB_DELIMS = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#52 +# pkg:gem/addressable#lib/addressable/uri.rb:52 Addressable::URI::CharacterClasses::UNRESERVED = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#72 +# pkg:gem/addressable#lib/addressable/uri.rb:72 module Addressable::URI::CharacterClassesRegexps; end -# source://addressable//lib/addressable/uri.rb#73 +# pkg:gem/addressable#lib/addressable/uri.rb:73 Addressable::URI::CharacterClassesRegexps::AUTHORITY = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#74 +# pkg:gem/addressable#lib/addressable/uri.rb:74 Addressable::URI::CharacterClassesRegexps::FRAGMENT = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#75 +# pkg:gem/addressable#lib/addressable/uri.rb:75 Addressable::URI::CharacterClassesRegexps::HOST = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#76 +# pkg:gem/addressable#lib/addressable/uri.rb:76 Addressable::URI::CharacterClassesRegexps::PATH = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#77 +# pkg:gem/addressable#lib/addressable/uri.rb:77 Addressable::URI::CharacterClassesRegexps::QUERY = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#78 +# pkg:gem/addressable#lib/addressable/uri.rb:78 Addressable::URI::CharacterClassesRegexps::RESERVED = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#79 +# pkg:gem/addressable#lib/addressable/uri.rb:79 Addressable::URI::CharacterClassesRegexps::RESERVED_AND_UNRESERVED = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#80 +# pkg:gem/addressable#lib/addressable/uri.rb:80 Addressable::URI::CharacterClassesRegexps::SCHEME = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#81 +# pkg:gem/addressable#lib/addressable/uri.rb:81 Addressable::URI::CharacterClassesRegexps::UNRESERVED = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#85 +# pkg:gem/addressable#lib/addressable/uri.rb:85 Addressable::URI::EMPTY_STR = T.let(T.unsafe(nil), String) # Raised if something other than a uri is supplied. # -# source://addressable//lib/addressable/uri.rb#34 +# pkg:gem/addressable#lib/addressable/uri.rb:34 class Addressable::URI::InvalidURIError < ::StandardError; end -# source://addressable//lib/addressable/uri.rb#2598 +# pkg:gem/addressable#lib/addressable/uri.rb:2646 module Addressable::URI::NONE; end -# source://addressable//lib/addressable/uri.rb#1530 +# pkg:gem/addressable#lib/addressable/uri.rb:1541 Addressable::URI::NORMPATH = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#63 +# pkg:gem/addressable#lib/addressable/uri.rb:63 module Addressable::URI::NormalizeCharacterClasses; end -# source://addressable//lib/addressable/uri.rb#68 +# pkg:gem/addressable#lib/addressable/uri.rb:68 Addressable::URI::NormalizeCharacterClasses::FRAGMENT = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#64 +# pkg:gem/addressable#lib/addressable/uri.rb:64 Addressable::URI::NormalizeCharacterClasses::HOST = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#66 +# pkg:gem/addressable#lib/addressable/uri.rb:66 Addressable::URI::NormalizeCharacterClasses::PCHAR = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#69 +# pkg:gem/addressable#lib/addressable/uri.rb:69 Addressable::URI::NormalizeCharacterClasses::QUERY = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#67 +# pkg:gem/addressable#lib/addressable/uri.rb:67 Addressable::URI::NormalizeCharacterClasses::SCHEME = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#65 +# pkg:gem/addressable#lib/addressable/uri.rb:65 Addressable::URI::NormalizeCharacterClasses::UNRESERVED = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#2427 +# pkg:gem/addressable#lib/addressable/uri.rb:2443 Addressable::URI::PARENT = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#89 +# pkg:gem/addressable#lib/addressable/uri.rb:89 Addressable::URI::PORT_MAPPING = T.let(T.unsafe(nil), Hash) -# source://addressable//lib/addressable/uri.rb#2429 +# Deprecated. No longer used by normalize_path; will be removed in 2.10.0. +# +# pkg:gem/addressable#lib/addressable/uri.rb:2446 Addressable::URI::RULE_2A = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#2430 +# pkg:gem/addressable#lib/addressable/uri.rb:2447 Addressable::URI::RULE_2B_2C = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#2431 +# pkg:gem/addressable#lib/addressable/uri.rb:2448 Addressable::URI::RULE_2D = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#2432 +# pkg:gem/addressable#lib/addressable/uri.rb:2449 Addressable::URI::RULE_PREFIXED_PARENT = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/uri.rb#2426 +# pkg:gem/addressable#lib/addressable/uri.rb:2442 Addressable::URI::SELF_REF = T.let(T.unsafe(nil), String) # Tables used to optimize encoding operations in `self.encode_component` # and `self.normalize_component` # -# source://addressable//lib/addressable/uri.rb#360 +# pkg:gem/addressable#lib/addressable/uri.rb:360 Addressable::URI::SEQUENCE_ENCODING_TABLE = T.let(T.unsafe(nil), Array) -# source://addressable//lib/addressable/uri.rb#364 +# pkg:gem/addressable#lib/addressable/uri.rb:364 Addressable::URI::SEQUENCE_UPCASED_PERCENT_ENCODING_TABLE = T.let(T.unsafe(nil), Array) -# source://addressable//lib/addressable/uri.rb#84 +# pkg:gem/addressable#lib/addressable/uri.rb:84 Addressable::URI::SLASH = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/uri.rb#87 +# pkg:gem/addressable#lib/addressable/uri.rb:87 Addressable::URI::URIREGEX = T.let(T.unsafe(nil), Regexp) -# source://addressable//lib/addressable/version.rb#23 +# pkg:gem/addressable#lib/addressable/version.rb:23 module Addressable::VERSION; end -# source://addressable//lib/addressable/version.rb#24 +# pkg:gem/addressable#lib/addressable/version.rb:24 Addressable::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/version.rb#25 +# pkg:gem/addressable#lib/addressable/version.rb:25 Addressable::VERSION::MINOR = T.let(T.unsafe(nil), Integer) -# source://addressable//lib/addressable/version.rb#28 +# pkg:gem/addressable#lib/addressable/version.rb:28 Addressable::VERSION::STRING = T.let(T.unsafe(nil), String) -# source://addressable//lib/addressable/version.rb#26 +# pkg:gem/addressable#lib/addressable/version.rb:26 Addressable::VERSION::TINY = T.let(T.unsafe(nil), Integer) diff --git a/sorbet/rbi/gems/ahoy_matey@5.4.0.rbi b/sorbet/rbi/gems/ahoy_matey@5.4.0.rbi deleted file mode 100644 index fc83eb91..00000000 --- a/sorbet/rbi/gems/ahoy_matey@5.4.0.rbi +++ /dev/null @@ -1,717 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `ahoy_matey` gem. -# Please instead update this file by running `bin/tapioca gem ahoy_matey`. - - -# source://ahoy_matey//lib/ahoy/utils.rb#1 -module Ahoy - # source://ahoy_matey//lib/ahoy.rb#89 - def api; end - - # source://ahoy_matey//lib/ahoy.rb#89 - def api=(val); end - - # source://ahoy_matey//lib/ahoy.rb#92 - def api_only; end - - # source://ahoy_matey//lib/ahoy.rb#92 - def api_only=(val); end - - # source://ahoy_matey//lib/ahoy.rb#111 - def bot_detection_version; end - - # source://ahoy_matey//lib/ahoy.rb#111 - def bot_detection_version=(val); end - - # source://ahoy_matey//lib/ahoy.rb#66 - def cookie_domain; end - - # source://ahoy_matey//lib/ahoy.rb#66 - def cookie_domain=(val); end - - # source://ahoy_matey//lib/ahoy.rb#68 - def cookie_options; end - - # source://ahoy_matey//lib/ahoy.rb#68 - def cookie_options=(val); end - - # source://ahoy_matey//lib/ahoy.rb#62 - def cookies; end - - # source://ahoy_matey//lib/ahoy.rb#106 - def exclude_method; end - - # source://ahoy_matey//lib/ahoy.rb#106 - def exclude_method=(val); end - - # source://ahoy_matey//lib/ahoy.rb#77 - def geocode; end - - # source://ahoy_matey//lib/ahoy.rb#77 - def geocode=(val); end - - # source://ahoy_matey//lib/ahoy.rb#86 - def job_queue; end - - # source://ahoy_matey//lib/ahoy.rb#86 - def job_queue=(val); end - - # source://ahoy_matey//lib/ahoy.rb#123 - def logger; end - - # source://ahoy_matey//lib/ahoy.rb#123 - def logger=(val); end - - # source://ahoy_matey//lib/ahoy.rb#117 - def mask_ips; end - - # source://ahoy_matey//lib/ahoy.rb#117 - def mask_ips=(val); end - - # source://ahoy_matey//lib/ahoy.rb#80 - def max_content_length; end - - # source://ahoy_matey//lib/ahoy.rb#80 - def max_content_length=(val); end - - # source://ahoy_matey//lib/ahoy.rb#83 - def max_events_per_request; end - - # source://ahoy_matey//lib/ahoy.rb#83 - def max_events_per_request=(val); end - - # source://ahoy_matey//lib/ahoy.rb#98 - def preserve_callbacks; end - - # source://ahoy_matey//lib/ahoy.rb#98 - def preserve_callbacks=(val); end - - # source://ahoy_matey//lib/ahoy.rb#95 - def protect_from_forgery; end - - # source://ahoy_matey//lib/ahoy.rb#95 - def protect_from_forgery=(val); end - - # source://ahoy_matey//lib/ahoy.rb#74 - def quiet; end - - # source://ahoy_matey//lib/ahoy.rb#74 - def quiet=(val); end - - # source://ahoy_matey//lib/ahoy.rb#71 - def server_side_visits; end - - # source://ahoy_matey//lib/ahoy.rb#71 - def server_side_visits=(val); end - - # source://ahoy_matey//lib/ahoy.rb#114 - def token_generator; end - - # source://ahoy_matey//lib/ahoy.rb#114 - def token_generator=(val); end - - # source://ahoy_matey//lib/ahoy.rb#108 - def track_bots; end - - # source://ahoy_matey//lib/ahoy.rb#108 - def track_bots=(val); end - - # source://ahoy_matey//lib/ahoy.rb#120 - def user_agent_parser; end - - # source://ahoy_matey//lib/ahoy.rb#120 - def user_agent_parser=(val); end - - # source://ahoy_matey//lib/ahoy.rb#101 - def user_method; end - - # source://ahoy_matey//lib/ahoy.rb#101 - def user_method=(val); end - - # source://ahoy_matey//lib/ahoy.rb#27 - def visit_duration; end - - # source://ahoy_matey//lib/ahoy.rb#27 - def visit_duration=(val); end - - # source://ahoy_matey//lib/ahoy.rb#30 - def visitor_duration; end - - # source://ahoy_matey//lib/ahoy.rb#30 - def visitor_duration=(val); end - - class << self - # source://ahoy_matey//lib/ahoy.rb#89 - def api; end - - # source://ahoy_matey//lib/ahoy.rb#89 - def api=(val); end - - # source://ahoy_matey//lib/ahoy.rb#92 - def api_only; end - - # source://ahoy_matey//lib/ahoy.rb#92 - def api_only=(val); end - - # source://ahoy_matey//lib/ahoy.rb#111 - def bot_detection_version; end - - # source://ahoy_matey//lib/ahoy.rb#111 - def bot_detection_version=(val); end - - # source://ahoy_matey//lib/ahoy.rb#66 - def cookie_domain; end - - # source://ahoy_matey//lib/ahoy.rb#66 - def cookie_domain=(val); end - - # source://ahoy_matey//lib/ahoy.rb#68 - def cookie_options; end - - # source://ahoy_matey//lib/ahoy.rb#68 - def cookie_options=(val); end - - # source://ahoy_matey//lib/ahoy.rb#62 - def cookies; end - - # source://ahoy_matey//lib/ahoy.rb#33 - def cookies=(value); end - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy.rb#129 - def cookies?; end - - # source://ahoy_matey//lib/ahoy.rb#106 - def exclude_method; end - - # source://ahoy_matey//lib/ahoy.rb#106 - def exclude_method=(val); end - - # source://ahoy_matey//lib/ahoy.rb#77 - def geocode; end - - # source://ahoy_matey//lib/ahoy.rb#77 - def geocode=(val); end - - # source://ahoy_matey//lib/ahoy.rb#144 - def instance; end - - # source://ahoy_matey//lib/ahoy.rb#148 - def instance=(value); end - - # source://ahoy_matey//lib/ahoy.rb#86 - def job_queue; end - - # source://ahoy_matey//lib/ahoy.rb#86 - def job_queue=(val); end - - # source://ahoy_matey//lib/ahoy.rb#125 - def log(message); end - - # source://ahoy_matey//lib/ahoy.rb#123 - def logger; end - - # source://ahoy_matey//lib/ahoy.rb#123 - def logger=(val); end - - # source://ahoy_matey//lib/ahoy.rb#133 - def mask_ip(ip); end - - # source://ahoy_matey//lib/ahoy.rb#117 - def mask_ips; end - - # source://ahoy_matey//lib/ahoy.rb#117 - def mask_ips=(val); end - - # source://ahoy_matey//lib/ahoy.rb#80 - def max_content_length; end - - # source://ahoy_matey//lib/ahoy.rb#80 - def max_content_length=(val); end - - # source://ahoy_matey//lib/ahoy.rb#83 - def max_events_per_request; end - - # source://ahoy_matey//lib/ahoy.rb#83 - def max_events_per_request=(val); end - - # source://ahoy_matey//lib/ahoy.rb#98 - def preserve_callbacks; end - - # source://ahoy_matey//lib/ahoy.rb#98 - def preserve_callbacks=(val); end - - # source://ahoy_matey//lib/ahoy.rb#95 - def protect_from_forgery; end - - # source://ahoy_matey//lib/ahoy.rb#95 - def protect_from_forgery=(val); end - - # source://ahoy_matey//lib/ahoy.rb#74 - def quiet; end - - # source://ahoy_matey//lib/ahoy.rb#74 - def quiet=(val); end - - # source://ahoy_matey//lib/ahoy.rb#71 - def server_side_visits; end - - # source://ahoy_matey//lib/ahoy.rb#71 - def server_side_visits=(val); end - - # source://ahoy_matey//lib/ahoy.rb#114 - def token_generator; end - - # source://ahoy_matey//lib/ahoy.rb#114 - def token_generator=(val); end - - # source://ahoy_matey//lib/ahoy.rb#108 - def track_bots; end - - # source://ahoy_matey//lib/ahoy.rb#108 - def track_bots=(val); end - - # source://ahoy_matey//lib/ahoy.rb#120 - def user_agent_parser; end - - # source://ahoy_matey//lib/ahoy.rb#120 - def user_agent_parser=(val); end - - # source://ahoy_matey//lib/ahoy.rb#101 - def user_method; end - - # source://ahoy_matey//lib/ahoy.rb#101 - def user_method=(val); end - - # source://ahoy_matey//lib/ahoy.rb#27 - def visit_duration; end - - # source://ahoy_matey//lib/ahoy.rb#27 - def visit_duration=(val); end - - # source://ahoy_matey//lib/ahoy.rb#30 - def visitor_duration; end - - # source://ahoy_matey//lib/ahoy.rb#30 - def visitor_duration=(val); end - end -end - -# source://ahoy_matey//lib/ahoy/base_store.rb#2 -class Ahoy::BaseStore - # @return [BaseStore] a new instance of BaseStore - # - # source://ahoy_matey//lib/ahoy/base_store.rb#5 - def initialize(options); end - - # source://ahoy_matey//lib/ahoy/base_store.rb#19 - def authenticate(data); end - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/base_store.rb#39 - def exclude?; end - - # source://ahoy_matey//lib/ahoy/base_store.rb#45 - def generate_id; end - - # source://ahoy_matey//lib/ahoy/base_store.rb#16 - def geocode(data); end - - # source://ahoy_matey//lib/ahoy/base_store.rb#13 - def track_event(data); end - - # source://ahoy_matey//lib/ahoy/base_store.rb#10 - def track_visit(data); end - - # source://ahoy_matey//lib/ahoy/base_store.rb#25 - def user; end - - # Sets the attribute user - # - # @param value the value to set the attribute user to. - # - # source://ahoy_matey//lib/ahoy/base_store.rb#3 - def user=(_arg0); end - - # source://ahoy_matey//lib/ahoy/base_store.rb#22 - def visit; end - - # source://ahoy_matey//lib/ahoy/base_store.rb#49 - def visit_or_create; end - - protected - - # source://ahoy_matey//lib/ahoy/base_store.rb#100 - def ahoy; end - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/base_store.rb#55 - def bot?; end - - # source://ahoy_matey//lib/ahoy/base_store.rb#96 - def controller; end - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/base_store.rb#80 - def exclude_by_method?; end - - # source://ahoy_matey//lib/ahoy/base_store.rb#92 - def request; end -end - -# source://ahoy_matey//lib/ahoy/controller.rb#2 -module Ahoy::Controller - # source://ahoy_matey//lib/ahoy/controller.rb#12 - def ahoy; end - - # source://ahoy_matey//lib/ahoy/controller.rb#16 - def current_visit; end - - # source://ahoy_matey//lib/ahoy/controller.rb#20 - def set_ahoy_cookies; end - - # source://ahoy_matey//lib/ahoy/controller.rb#46 - def set_ahoy_request_store; end - - # source://ahoy_matey//lib/ahoy/controller.rb#30 - def track_ahoy_visit; end - - class << self - # @private - # - # source://ahoy_matey//lib/ahoy/controller.rb#3 - def included(base); end - end -end - -# source://ahoy_matey//lib/ahoy/database_store.rb#2 -class Ahoy::DatabaseStore < ::Ahoy::BaseStore - # source://ahoy_matey//lib/ahoy/database_store.rb#43 - def authenticate(_); end - - # source://ahoy_matey//lib/ahoy/database_store.rb#30 - def geocode(data); end - - # source://ahoy_matey//lib/ahoy/database_store.rb#14 - def track_event(data); end - - # source://ahoy_matey//lib/ahoy/database_store.rb#3 - def track_visit(data); end - - # source://ahoy_matey//lib/ahoy/database_store.rb#54 - def visit; end - - # if we don't have a visit, let's try to create one first - # - # source://ahoy_matey//lib/ahoy/database_store.rb#69 - def visit_or_create(started_at: T.unsafe(nil)); end - - protected - - # source://ahoy_matey//lib/ahoy/database_store.rb#80 - def event_model; end - - # source://ahoy_matey//lib/ahoy/database_store.rb#84 - def slice_data(model, data); end - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/database_store.rb#89 - def unique_exception?(e); end - - # source://ahoy_matey//lib/ahoy/database_store.rb#76 - def visit_model; end -end - -# source://ahoy_matey//lib/ahoy/engine.rb#2 -class Ahoy::Engine < ::Rails::Engine - class << self - private - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr___callbacks; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr___callbacks=(new_value); end - end -end - -# source://ahoy_matey//lib/ahoy/engine.rb#12 -Ahoy::Engine::AHOY_PREFIX = T.let(T.unsafe(nil), String) - -# source://ahoy_matey//lib/ahoy/geocode_v2_job.rb#2 -class Ahoy::GeocodeV2Job < ::ActiveJob::Base - # source://ahoy_matey//lib/ahoy/geocode_v2_job.rb#5 - def perform(visit_token, ip); end - - class << self - private - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#15 - def __class_attr_queue_name; end - - # source://activesupport/8.0.2.1/lib/active_support/class_attribute.rb#17 - def __class_attr_queue_name=(new_value); end - end -end - -# source://ahoy_matey//lib/ahoy/helper.rb#2 -module Ahoy::Helper - # source://ahoy_matey//lib/ahoy/helper.rb#3 - def amp_event(name, properties = T.unsafe(nil)); end -end - -# source://ahoy_matey//lib/ahoy/model.rb#2 -module Ahoy::Model - # source://ahoy_matey//lib/ahoy/model.rb#3 - def visitable(name = T.unsafe(nil), **options); end -end - -# backward compatibility -# -# source://ahoy_matey//lib/ahoy/query_methods.rb#88 -Ahoy::Properties = Ahoy::QueryMethods - -# source://ahoy_matey//lib/ahoy/query_methods.rb#2 -module Ahoy::QueryMethods - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::Ahoy::QueryMethods::ClassMethods -end - -# source://ahoy_matey//lib/ahoy/query_methods.rb#5 -module Ahoy::QueryMethods::ClassMethods - # source://ahoy_matey//lib/ahoy/query_methods.rb#48 - def group_prop(*props); end - - # source://ahoy_matey//lib/ahoy/query_methods.rb#6 - def where_event(name, properties = T.unsafe(nil)); end - - # source://ahoy_matey//lib/ahoy/query_methods.rb#10 - def where_properties(properties); end - - # source://ahoy_matey//lib/ahoy/query_methods.rb#10 - def where_props(properties); end -end - -# source://ahoy_matey//lib/ahoy/tracker.rb#4 -class Ahoy::Tracker - # @return [Tracker] a new instance of Tracker - # - # source://ahoy_matey//lib/ahoy/tracker.rb#9 - def initialize(**options); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#76 - def authenticate(user); end - - # Returns the value of attribute controller. - # - # source://ahoy_matey//lib/ahoy/tracker.rb#7 - def controller; end - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/tracker.rb#148 - def exclude?; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#65 - def geocode(data); end - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/tracker.rb#101 - def new_visit?; end - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/tracker.rb#105 - def new_visitor?; end - - # Returns the value of attribute request. - # - # source://ahoy_matey//lib/ahoy/tracker.rb#7 - def request; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#137 - def reset; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#142 - def reset_visit; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#109 - def set_visit_cookie; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#113 - def set_visitor_cookie; end - - # can't use keyword arguments here - # - # source://ahoy_matey//lib/ahoy/tracker.rb#19 - def track(name, properties = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#39 - def track_visit(defer: T.unsafe(nil), started_at: T.unsafe(nil)); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#119 - def user; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#93 - def visit; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#127 - def visit_id; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#97 - def visit_or_create; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#123 - def visit_properties; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#127 - def visit_token; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#132 - def visitor_id; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#132 - def visitor_token; end - - protected - - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/tracker.rb#157 - def api?; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#276 - def debug(message); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#182 - def delete_cookie(name); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#271 - def ensure_token(token); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#225 - def existing_visit_token; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#234 - def existing_visitor_token; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#203 - def generate_id; end - - # private, but used by API - # - # @return [Boolean] - # - # source://ahoy_matey//lib/ahoy/tracker.rb#162 - def missing_params?; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#194 - def report_exception(e); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#170 - def set_cookie(name, value, duration = T.unsafe(nil), use_domain = T.unsafe(nil)); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#186 - def trusted_time(time = T.unsafe(nil)); end - - # source://ahoy_matey//lib/ahoy/tracker.rb#247 - def visit_cookie; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#255 - def visit_header; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#263 - def visit_param; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#207 - def visit_token_helper; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#243 - def visitor_anonymity_set; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#251 - def visitor_cookie; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#259 - def visitor_header; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#267 - def visitor_param; end - - # source://ahoy_matey//lib/ahoy/tracker.rb#216 - def visitor_token_helper; end -end - -# source://ahoy_matey//lib/ahoy/tracker.rb#5 -Ahoy::Tracker::UUID_NAMESPACE = T.let(T.unsafe(nil), String) - -# source://ahoy_matey//lib/ahoy/utils.rb#2 -module Ahoy::Utils - class << self - # source://ahoy_matey//lib/ahoy/utils.rb#3 - def ensure_utf8(str); end - end -end - -# source://ahoy_matey//lib/ahoy/version.rb#2 -Ahoy::VERSION = T.let(T.unsafe(nil), String) - -# source://ahoy_matey//lib/ahoy/visit_properties.rb#6 -class Ahoy::VisitProperties - # @return [VisitProperties] a new instance of VisitProperties - # - # source://ahoy_matey//lib/ahoy/visit_properties.rb#9 - def initialize(request, api:); end - - # source://ahoy_matey//lib/ahoy/visit_properties.rb#16 - def generate; end - - # Returns the value of attribute landing_page. - # - # source://ahoy_matey//lib/ahoy/visit_properties.rb#7 - def landing_page; end - - # Returns the value of attribute params. - # - # source://ahoy_matey//lib/ahoy/visit_properties.rb#7 - def params; end - - # Returns the value of attribute referrer. - # - # source://ahoy_matey//lib/ahoy/visit_properties.rb#7 - def referrer; end - - # Returns the value of attribute request. - # - # source://ahoy_matey//lib/ahoy/visit_properties.rb#7 - def request; end - - private - - # masking based on Google Analytics anonymization - # https://support.google.com/analytics/answer/2763052 - # - # source://ahoy_matey//lib/ahoy/visit_properties.rb#99 - def ip; end - - # source://ahoy_matey//lib/ahoy/visit_properties.rb#108 - def request_properties; end - - # source://ahoy_matey//lib/ahoy/visit_properties.rb#46 - def tech_properties; end - - # source://ahoy_matey//lib/ahoy/visit_properties.rb#39 - def traffic_properties; end - - # source://ahoy_matey//lib/ahoy/visit_properties.rb#22 - def utm_properties; end -end diff --git a/sorbet/rbi/gems/ahoy_matey@5.5.0.rbi b/sorbet/rbi/gems/ahoy_matey@5.5.0.rbi new file mode 100644 index 00000000..55881d58 --- /dev/null +++ b/sorbet/rbi/gems/ahoy_matey@5.5.0.rbi @@ -0,0 +1,663 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `ahoy_matey` gem. +# Please instead update this file by running `bin/tapioca gem ahoy_matey`. + + +# pkg:gem/ahoy_matey#lib/ahoy/utils.rb:1 +module Ahoy + # pkg:gem/ahoy_matey#lib/ahoy.rb:89 + def api; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:89 + def api=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:92 + def api_only; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:92 + def api_only=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:111 + def bot_detection_version; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:111 + def bot_detection_version=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:66 + def cookie_domain; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:66 + def cookie_domain=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:68 + def cookie_options; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:68 + def cookie_options=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:62 + def cookies; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:106 + def exclude_method; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:106 + def exclude_method=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:77 + def geocode; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:77 + def geocode=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:86 + def job_queue; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:86 + def job_queue=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:123 + def logger; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:123 + def logger=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:117 + def mask_ips; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:117 + def mask_ips=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:80 + def max_content_length; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:80 + def max_content_length=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:83 + def max_events_per_request; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:83 + def max_events_per_request=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:98 + def preserve_callbacks; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:98 + def preserve_callbacks=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:95 + def protect_from_forgery; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:95 + def protect_from_forgery=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:74 + def quiet; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:74 + def quiet=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:71 + def server_side_visits; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:71 + def server_side_visits=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:114 + def token_generator; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:114 + def token_generator=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:108 + def track_bots; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:108 + def track_bots=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:120 + def user_agent_parser; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:120 + def user_agent_parser=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:101 + def user_method; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:101 + def user_method=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:27 + def visit_duration; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:27 + def visit_duration=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:30 + def visitor_duration; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:30 + def visitor_duration=(val); end + + class << self + # pkg:gem/ahoy_matey#lib/ahoy.rb:89 + def api; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:89 + def api=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:92 + def api_only; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:92 + def api_only=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:111 + def bot_detection_version; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:111 + def bot_detection_version=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:66 + def cookie_domain; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:66 + def cookie_domain=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:68 + def cookie_options; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:68 + def cookie_options=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:62 + def cookies; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:33 + def cookies=(value); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:129 + def cookies?; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:106 + def exclude_method; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:106 + def exclude_method=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:77 + def geocode; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:77 + def geocode=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:144 + def instance; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:148 + def instance=(value); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:86 + def job_queue; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:86 + def job_queue=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:125 + def log(message); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:123 + def logger; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:123 + def logger=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:133 + def mask_ip(ip); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:117 + def mask_ips; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:117 + def mask_ips=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:80 + def max_content_length; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:80 + def max_content_length=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:83 + def max_events_per_request; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:83 + def max_events_per_request=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:98 + def preserve_callbacks; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:98 + def preserve_callbacks=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:95 + def protect_from_forgery; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:95 + def protect_from_forgery=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:74 + def quiet; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:74 + def quiet=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:71 + def server_side_visits; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:71 + def server_side_visits=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:114 + def token_generator; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:114 + def token_generator=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:108 + def track_bots; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:108 + def track_bots=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:120 + def user_agent_parser; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:120 + def user_agent_parser=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:101 + def user_method; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:101 + def user_method=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:27 + def visit_duration; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:27 + def visit_duration=(val); end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:30 + def visitor_duration; end + + # pkg:gem/ahoy_matey#lib/ahoy.rb:30 + def visitor_duration=(val); end + end +end + +# pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:2 +class Ahoy::BaseStore + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:5 + def initialize(options); end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:19 + def authenticate(data); end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:39 + def exclude?; end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:45 + def generate_id; end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:16 + def geocode(data); end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:13 + def track_event(data); end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:10 + def track_visit(data); end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:25 + def user; end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:3 + def user=(_arg0); end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:22 + def visit; end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:49 + def visit_or_create; end + + protected + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:100 + def ahoy; end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:55 + def bot?; end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:96 + def controller; end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:80 + def exclude_by_method?; end + + # pkg:gem/ahoy_matey#lib/ahoy/base_store.rb:92 + def request; end +end + +# pkg:gem/ahoy_matey#lib/ahoy/controller.rb:2 +module Ahoy::Controller + # pkg:gem/ahoy_matey#lib/ahoy/controller.rb:12 + def ahoy; end + + # pkg:gem/ahoy_matey#lib/ahoy/controller.rb:16 + def current_visit; end + + # pkg:gem/ahoy_matey#lib/ahoy/controller.rb:20 + def set_ahoy_cookies; end + + # pkg:gem/ahoy_matey#lib/ahoy/controller.rb:46 + def set_ahoy_request_store; end + + # pkg:gem/ahoy_matey#lib/ahoy/controller.rb:30 + def track_ahoy_visit; end + + class << self + # pkg:gem/ahoy_matey#lib/ahoy/controller.rb:3 + def included(base); end + end +end + +# pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:2 +class Ahoy::DatabaseStore < ::Ahoy::BaseStore + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:43 + def authenticate(_); end + + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:30 + def geocode(data); end + + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:14 + def track_event(data); end + + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:3 + def track_visit(data); end + + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:54 + def visit; end + + # if we don't have a visit, let's try to create one first + # + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:69 + def visit_or_create(started_at: T.unsafe(nil)); end + + protected + + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:80 + def event_model; end + + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:84 + def slice_data(model, data); end + + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:89 + def unique_exception?(e); end + + # pkg:gem/ahoy_matey#lib/ahoy/database_store.rb:76 + def visit_model; end +end + +# pkg:gem/ahoy_matey#lib/ahoy/engine.rb:2 +class Ahoy::Engine < ::Rails::Engine; end + +# Parse PATH_INFO by assets prefix +# +# pkg:gem/ahoy_matey#lib/ahoy/engine.rb:12 +Ahoy::Engine::AHOY_PREFIX = T.let(T.unsafe(nil), String) + +# pkg:gem/ahoy_matey#lib/ahoy/geocode_v2_job.rb:2 +class Ahoy::GeocodeV2Job < ::ActiveJob::Base + # pkg:gem/ahoy_matey#lib/ahoy/geocode_v2_job.rb:5 + def perform(visit_token, ip); end + + class << self + private + + # pkg:gem/ahoy_matey#lib/ahoy/geocode_v2_job.rb:3 + def __class_attr_queue_name; end + + # pkg:gem/ahoy_matey#lib/ahoy/geocode_v2_job.rb:3 + def __class_attr_queue_name=(new_value); end + end +end + +# pkg:gem/ahoy_matey#lib/ahoy/helper.rb:2 +module Ahoy::Helper + # pkg:gem/ahoy_matey#lib/ahoy/helper.rb:3 + def amp_event(name, properties = T.unsafe(nil)); end +end + +# pkg:gem/ahoy_matey#lib/ahoy/model.rb:2 +module Ahoy::Model + # pkg:gem/ahoy_matey#lib/ahoy/model.rb:3 + def visitable(name = T.unsafe(nil), **options); end +end + +# pkg:gem/ahoy_matey#lib/ahoy/query_methods.rb:88 +Ahoy::Properties = Ahoy::QueryMethods + +# pkg:gem/ahoy_matey#lib/ahoy/query_methods.rb:2 +module Ahoy::QueryMethods + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::Ahoy::QueryMethods::ClassMethods +end + +# pkg:gem/ahoy_matey#lib/ahoy/query_methods.rb:5 +module Ahoy::QueryMethods::ClassMethods + # pkg:gem/ahoy_matey#lib/ahoy/query_methods.rb:48 + def group_prop(*props); end + + # pkg:gem/ahoy_matey#lib/ahoy/query_methods.rb:6 + def where_event(name, properties = T.unsafe(nil)); end + + # pkg:gem/ahoy_matey#lib/ahoy/query_methods.rb:46 + def where_properties(properties); end + + # pkg:gem/ahoy_matey#lib/ahoy/query_methods.rb:10 + def where_props(properties); end +end + +# pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:4 +class Ahoy::Tracker + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:9 + def initialize(**options); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:76 + def authenticate(user); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:7 + def controller; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:148 + def exclude?; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:65 + def geocode(data); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:101 + def new_visit?; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:105 + def new_visitor?; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:7 + def request; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:137 + def reset; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:142 + def reset_visit; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:109 + def set_visit_cookie; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:113 + def set_visitor_cookie; end + + # can't use keyword arguments here + # + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:19 + def track(name, properties = T.unsafe(nil), options = T.unsafe(nil)); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:39 + def track_visit(defer: T.unsafe(nil), started_at: T.unsafe(nil)); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:119 + def user; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:93 + def visit; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:130 + def visit_id; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:97 + def visit_or_create; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:123 + def visit_properties; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:127 + def visit_token; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:135 + def visitor_id; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:132 + def visitor_token; end + + protected + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:157 + def api?; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:283 + def debug(message); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:182 + def delete_cookie(name, use_domain = T.unsafe(nil)); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:278 + def ensure_token(token); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:232 + def existing_visit_token; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:241 + def existing_visitor_token; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:210 + def generate_id; end + + # private, but used by API + # + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:162 + def missing_params?; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:201 + def report_exception(e); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:170 + def set_cookie(name, value, duration = T.unsafe(nil), use_domain = T.unsafe(nil)); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:193 + def trusted_time(time = T.unsafe(nil)); end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:254 + def visit_cookie; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:262 + def visit_header; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:270 + def visit_param; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:214 + def visit_token_helper; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:250 + def visitor_anonymity_set; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:258 + def visitor_cookie; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:266 + def visitor_header; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:274 + def visitor_param; end + + # pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:223 + def visitor_token_helper; end +end + +# pkg:gem/ahoy_matey#lib/ahoy/tracker.rb:5 +Ahoy::Tracker::UUID_NAMESPACE = T.let(T.unsafe(nil), String) + +# pkg:gem/ahoy_matey#lib/ahoy/utils.rb:2 +module Ahoy::Utils + class << self + # pkg:gem/ahoy_matey#lib/ahoy/utils.rb:3 + def ensure_utf8(str); end + end +end + +# pkg:gem/ahoy_matey#lib/ahoy/version.rb:2 +Ahoy::VERSION = T.let(T.unsafe(nil), String) + +# pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:6 +class Ahoy::VisitProperties + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:9 + def initialize(request, api:); end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:16 + def generate; end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:7 + def landing_page; end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:7 + def params; end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:7 + def referrer; end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:7 + def request; end + + private + + # masking based on Google Analytics anonymization + # https://support.google.com/analytics/answer/2763052 + # + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:99 + def ip; end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:108 + def request_properties; end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:46 + def tech_properties; end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:39 + def traffic_properties; end + + # pkg:gem/ahoy_matey#lib/ahoy/visit_properties.rb:22 + def utm_properties; end +end diff --git a/sorbet/rbi/gems/amazing_print@1.7.2.rbi b/sorbet/rbi/gems/amazing_print@1.7.2.rbi deleted file mode 100644 index d0743bd7..00000000 --- a/sorbet/rbi/gems/amazing_print@1.7.2.rbi +++ /dev/null @@ -1,1010 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `amazing_print` gem. -# Please instead update this file by running `bin/tapioca gem amazing_print`. - - -class ActionView::Base - include ::ERB::Escape - include ::ActiveSupport::CoreExt::ERBUtil - include ::ActiveSupport::CoreExt::ERBUtilPrivate - include ::ActiveSupport::Benchmarkable - include ::ActionView::Helpers::ActiveModelHelper - include ::ActionView::Helpers::AssetUrlHelper - include ::ActionView::Helpers::CaptureHelper - include ::ActionView::Helpers::OutputSafetyHelper - include ::ActionView::Helpers::TagHelper - include ::ActionView::Helpers::AssetTagHelper - include ::ActionView::Helpers::AtomFeedHelper - include ::ActionView::Helpers::CacheHelper - include ::ActionView::Helpers::ContentExfiltrationPreventionHelper - include ::ActionView::Helpers::ControllerHelper - include ::ActionView::Helpers::CspHelper - include ::ActionView::Helpers::CsrfHelper - include ::ActionView::Helpers::DateHelper - include ::ActionView::Helpers::DebugHelper - include ::ActionView::ModelNaming - include ::ActionView::RecordIdentifier - include ::ActionView::Helpers::FormOptionsHelper - include ::ActionView::Helpers::JavaScriptHelper - include ::ActionView::Helpers::NumberHelper - include ::ActionView::Helpers::RenderingHelper - include ::AmazingPrint::ActionView -end - -# source://amazing_print//lib/amazing_print/custom_defaults.rb#3 -module AmazingPrint - class << self - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#14 - def console?; end - - # Returns the value of attribute defaults. - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#5 - def defaults; end - - # Sets the attribute defaults - # - # @param value the value to set the attribute defaults to. - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#5 - def defaults=(_arg0); end - - # source://amazing_print//lib/amazing_print/custom_defaults.rb#22 - def diet_rb; end - - # Returns the value of attribute force_colors. - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#5 - def force_colors; end - - # Class accessor to force colorized output (ex. forked subprocess where TERM - # might be dumb). - # --------------------------------------------------------------------------- - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#10 - def force_colors!(colors: T.unsafe(nil)); end - - # Sets the attribute force_colors - # - # @param value the value to set the attribute force_colors to. - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#5 - def force_colors=(_arg0); end - - # source://amazing_print//lib/amazing_print/custom_defaults.rb#40 - def irb!; end - - # source://amazing_print//lib/amazing_print/custom_defaults.rb#46 - def pry!; end - - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#18 - def rails_console?; end - - # Reload the cached custom configurations. - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#59 - def reload!; end - - # source://amazing_print//lib/amazing_print/custom_defaults.rb#30 - def usual_rb; end - - # source://amazing_print//lib/amazing_print/version.rb#9 - def version; end - - private - - # Takes a value and returns true unless it is false or nil - # This is an alternative to the less readable !!(value) - # https://github.com/bbatsov/ruby-style-guide#no-bang-bang - # - # source://amazing_print//lib/amazing_print/custom_defaults.rb#68 - def boolean(value); end - end -end - -# source://amazing_print//lib/amazing_print/ext/action_view.rb#9 -module AmazingPrint::ActionView - # Use HTML colors and add default "debug_dump" class to the resulting HTML. - # - # source://amazing_print//lib/amazing_print/ext/action_view.rb#11 - def ap(object, options = T.unsafe(nil)); end - - # Use HTML colors and add default "debug_dump" class to the resulting HTML. - # - # source://amazing_print//lib/amazing_print/ext/action_view.rb#11 - def ap_debug(object, options = T.unsafe(nil)); end -end - -# source://amazing_print//lib/amazing_print/ext/active_support.rb#9 -module AmazingPrint::ActiveSupport - # Format ActiveSupport::TimeWithZone as standard Time. - # ------------------------------------------------------------------------------ - # - # source://amazing_print//lib/amazing_print/ext/active_support.rb#29 - def awesome_active_support_time(object); end - - # Format HashWithIndifferentAccess as standard Hash. - # ------------------------------------------------------------------------------ - # - # source://amazing_print//lib/amazing_print/ext/active_support.rb#35 - def awesome_hash_with_indifferent_access(object); end - - # source://amazing_print//lib/amazing_print/ext/active_support.rb#15 - def cast_with_active_support(object, type); end - - class << self - # @private - # - # source://amazing_print//lib/amazing_print/ext/active_support.rb#10 - def included(base); end - end -end - -# source://amazing_print//lib/amazing_print/colorize.rb#8 -module AmazingPrint::Colorize - # Pick the color and apply it to the given string as necessary. - # ------------------------------------------------------------------------------ - # - # source://amazing_print//lib/amazing_print/colorize.rb#11 - def colorize(str, type); end -end - -# source://amazing_print//lib/amazing_print/colors.rb#4 -module AmazingPrint::Colors - private - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def blue(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def blueish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def cyan(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def cyanish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def gray(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def grayish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def green(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def greenish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def purple(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def purpleish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def red(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def redish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def white(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def whiteish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def yellow(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def yellowish(str, html = T.unsafe(nil)); end - - class << self - # source://amazing_print//lib/amazing_print/colors.rb#25 - def blue(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def blueish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def cyan(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def cyanish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def gray(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def grayish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def green(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def greenish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def purple(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def purpleish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def red(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def redish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def white(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def whiteish(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#25 - def yellow(str, html = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/colors.rb#32 - def yellowish(str, html = T.unsafe(nil)); end - end -end - -# Attempt to load extensions up to 3 times since this library may be required -# before dependencies that we have extensions for. -# -# source://amazing_print//lib/amazing_print/ext_loader.rb#8 -class AmazingPrint::ExtLoader - class << self - # source://amazing_print//lib/amazing_print/ext_loader.rb#13 - def call; end - end -end - -# source://amazing_print//lib/amazing_print/ext_loader.rb#9 -AmazingPrint::ExtLoader::EXT_LOAD_ATTEMPT_LIMIT = T.let(T.unsafe(nil), Integer) - -# source://amazing_print//lib/amazing_print/formatter.rb#11 -class AmazingPrint::Formatter - include ::AmazingPrint::Colorize - include ::AmazingPrint::ActiveSupport - - # @return [Formatter] a new instance of Formatter - # - # source://amazing_print//lib/amazing_print/formatter.rb#18 - def initialize(inspector); end - - # Hook this when adding custom formatters. Check out lib/amazing_print/ext - # directory for custom formatters that ship with amazing_print. - # ------------------------------------------------------------------------------ - # - # source://amazing_print//lib/amazing_print/ext/active_support.rb#15 - def cast(object, type); end - - # source://amazing_print//lib/amazing_print/formatter.rb#37 - def cast_without_active_support(_object, type); end - - # Main entry point to format an object. - # ------------------------------------------------------------------------------ - # - # source://amazing_print//lib/amazing_print/formatter.rb#25 - def format(object, type = T.unsafe(nil)); end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatter.rb#14 - def inspector; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatter.rb#14 - def options; end - - private - - # source://amazing_print//lib/amazing_print/formatter.rb#71 - def awesome_array(a); end - - # source://amazing_print//lib/amazing_print/formatter.rb#55 - def awesome_bigdecimal(n); end - - # source://amazing_print//lib/amazing_print/formatter.rb#96 - def awesome_class(c); end - - # source://amazing_print//lib/amazing_print/formatter.rb#104 - def awesome_dir(d); end - - # source://amazing_print//lib/amazing_print/formatter.rb#100 - def awesome_file(f); end - - # source://amazing_print//lib/amazing_print/formatter.rb#79 - def awesome_hash(h); end - - # source://amazing_print//lib/amazing_print/formatter.rb#91 - def awesome_method(m); end - - # source://amazing_print//lib/amazing_print/formatter.rb#83 - def awesome_object(o); end - - # source://amazing_print//lib/amazing_print/formatter.rb#61 - def awesome_rational(n); end - - # Catch all method to format an arbitrary object. - # ------------------------------------------------------------------------------ - # - # source://amazing_print//lib/amazing_print/formatter.rb#45 - def awesome_self(object, type); end - - # source://amazing_print//lib/amazing_print/formatter.rb#75 - def awesome_set(s); end - - # source://amazing_print//lib/amazing_print/formatter.rb#67 - def awesome_simple(o, type, inspector = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/formatter.rb#87 - def awesome_struct(s); end - - # source://amazing_print//lib/amazing_print/formatter.rb#91 - def awesome_unboundmethod(m); end - - # Utility methods. - # ------------------------------------------------------------------------------ - # - # source://amazing_print//lib/amazing_print/formatter.rb#110 - def convert_to_hash(object); end -end - -# source://amazing_print//lib/amazing_print/formatter.rb#16 -AmazingPrint::Formatter::CORE_FORMATTERS = T.let(T.unsafe(nil), Array) - -# source://amazing_print//lib/amazing_print/formatters.rb#4 -module AmazingPrint::Formatters; end - -# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#7 -class AmazingPrint::Formatters::ArrayFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [ArrayFormatter] a new instance of ArrayFormatter - # - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#10 - def initialize(array, inspector); end - - # Returns the value of attribute array. - # - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#8 - def array; end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#17 - def format; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#8 - def inspector; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#8 - def options; end - - private - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#59 - def array_prefix(iteration, width); end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#113 - def find_method(name); end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#51 - def generate_printable_array; end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#71 - def generate_printable_tuples; end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#104 - def generate_tuple(name); end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#129 - def generic_prefix(iteration, width, padding = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#63 - def methods_array; end - - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#29 - def methods_array?; end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#41 - def multiline_array; end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#94 - def name_and_args_width; end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#33 - def simple_array; end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#100 - def tuple_prefix(iteration, width); end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#79 - def tuple_template(item); end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#90 - def tuples; end - - # source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#137 - def width(items); end -end - -# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#7 -class AmazingPrint::Formatters::BaseFormatter - include ::AmazingPrint::Colorize - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#130 - def align(value, width); end - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#146 - def colorless(string); end - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#150 - def colorless_size(string); end - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#36 - def get_limit_size; end - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#120 - def indent(n = T.unsafe(nil)); end - - # Indentation related methods - # ----------------------------------------- - # - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#109 - def indentation; end - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#113 - def indented(&blk); end - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#45 - def limited(data, width, is_hash: T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#67 - def method_tuple(method); end - - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#124 - def outdent; end - - # To support limited output, for example: - # - # ap ('a'..'z').to_a, :limit => 3 - # [ - # [ 0] "a", - # [ 1] .. [24], - # [25] "z" - # ] - # - # ap (1..100).to_a, :limit => true # Default limit is 7. - # [ - # [ 0] 1, - # [ 1] 2, - # [ 2] 3, - # [ 3] .. [96], - # [97] 98, - # [98] 99, - # [99] 100 - # ] - # ------------------------------------------------------------------------------ - # - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#32 - def should_be_limited?; end -end - -# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#10 -AmazingPrint::Formatters::BaseFormatter::DEFAULT_LIMIT_SIZE = T.let(T.unsafe(nil), Integer) - -# precompute common indentations -# -# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#118 -AmazingPrint::Formatters::BaseFormatter::INDENT_CACHE = T.let(T.unsafe(nil), Array) - -# source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#7 -class AmazingPrint::Formatters::ClassFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [ClassFormatter] a new instance of ClassFormatter - # - # source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#10 - def initialize(klass, inspector); end - - # source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#17 - def format; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#8 - def inspector; end - - # Returns the value of attribute klass. - # - # source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#8 - def klass; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#8 - def options; end -end - -# source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#10 -class AmazingPrint::Formatters::DirFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [DirFormatter] a new instance of DirFormatter - # - # source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#13 - def initialize(dir, inspector); end - - # Returns the value of attribute dir. - # - # source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#11 - def dir; end - - # source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#20 - def format; end - - # source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#25 - def info; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#11 - def inspector; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#11 - def options; end -end - -# source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#10 -class AmazingPrint::Formatters::FileFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [FileFormatter] a new instance of FileFormatter - # - # source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#13 - def initialize(file, inspector); end - - # Returns the value of attribute file. - # - # source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#11 - def file; end - - # source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#20 - def format; end - - # source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#25 - def info; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#11 - def inspector; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#11 - def options; end -end - -# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#7 -class AmazingPrint::Formatters::HashFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [HashFormatter] a new instance of HashFormatter - # - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#10 - def initialize(hash, inspector); end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#17 - def format; end - - # Returns the value of attribute hash. - # - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#8 - def hash; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#8 - def inspector; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#8 - def options; end - - private - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#29 - def empty_hash; end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#68 - def key_size(key); end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#62 - def left_width(keys); end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#78 - def max_key_width(keys); end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#37 - def multiline_hash; end - - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#33 - def multiline_hash?; end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#110 - def plain_single_line(&block); end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#105 - def pre_ruby19_syntax(key, value, width); end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#45 - def printable_hash; end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#82 - def printable_keys; end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#98 - def ruby19_syntax(key, value, width); end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#41 - def simple_hash; end - - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#118 - def single_line; end - - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#94 - def symbol?(key); end -end - -# source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#7 -class AmazingPrint::Formatters::MethodFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [MethodFormatter] a new instance of MethodFormatter - # - # source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#10 - def initialize(method, inspector); end - - # source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#17 - def format; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#8 - def inspector; end - - # Returns the value of attribute method. - # - # source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#8 - def method; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#8 - def options; end -end - -# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#7 -class AmazingPrint::Formatters::ObjectFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [ObjectFormatter] a new instance of ObjectFormatter - # - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#10 - def initialize(object, inspector); end - - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#18 - def format; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#8 - def inspector; end - - # Returns the value of attribute object. - # - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#8 - def object; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#8 - def options; end - - # Returns the value of attribute variables. - # - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#8 - def variables; end - - private - - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#64 - def awesome_instance; end - - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#75 - def left_aligned; end - - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#60 - def valid_instance_var?(variable_name); end -end - -# source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#7 -class AmazingPrint::Formatters::SimpleFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [SimpleFormatter] a new instance of SimpleFormatter - # - # source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#10 - def initialize(string, type, inspector); end - - # source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#18 - def format; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#8 - def inspector; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#8 - def options; end - - # Returns the value of attribute string. - # - # source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#8 - def string; end - - # Returns the value of attribute type. - # - # source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#8 - def type; end -end - -# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#7 -class AmazingPrint::Formatters::StructFormatter < ::AmazingPrint::Formatters::BaseFormatter - # @return [StructFormatter] a new instance of StructFormatter - # - # source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#10 - def initialize(struct, inspector); end - - # source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#18 - def format; end - - # Returns the value of attribute inspector. - # - # source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#8 - def inspector; end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#8 - def options; end - - # Returns the value of attribute struct. - # - # source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#8 - def struct; end - - # Returns the value of attribute variables. - # - # source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#8 - def variables; end - - private - - # source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#60 - def awesome_instance; end - - # source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#68 - def left_aligned; end -end - -# source://amazing_print//lib/amazing_print/indentator.rb#4 -class AmazingPrint::Indentator - # @return [Indentator] a new instance of Indentator - # - # source://amazing_print//lib/amazing_print/indentator.rb#7 - def initialize(indentation); end - - # source://amazing_print//lib/amazing_print/indentator.rb#12 - def indent; end - - # Returns the value of attribute indentation. - # - # source://amazing_print//lib/amazing_print/indentator.rb#5 - def indentation; end - - # Returns the value of attribute shift_width. - # - # source://amazing_print//lib/amazing_print/indentator.rb#5 - def shift_width; end -end - -# source://amazing_print//lib/amazing_print/inspector.rb#15 -class AmazingPrint::Inspector - # @return [Inspector] a new instance of Inspector - # - # source://amazing_print//lib/amazing_print/inspector.rb#29 - def initialize(options = T.unsafe(nil)); end - - # Dispatcher that detects data nesting and invokes object-aware formatter. - # --------------------------------------------------------------------------- - # - # source://amazing_print//lib/amazing_print/inspector.rb#88 - def awesome(object); end - - # Return true if we are to colorize the output. - # --------------------------------------------------------------------------- - # - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/inspector.rb#103 - def colorize?; end - - # source://amazing_print//lib/amazing_print/inspector.rb#78 - def current_indentation; end - - # source://amazing_print//lib/amazing_print/inspector.rb#82 - def increase_indentation(&blk); end - - # Returns the value of attribute indentator. - # - # source://amazing_print//lib/amazing_print/inspector.rb#16 - def indentator; end - - # Sets the attribute indentator - # - # @param value the value to set the attribute indentator to. - # - # source://amazing_print//lib/amazing_print/inspector.rb#16 - def indentator=(_arg0); end - - # Returns the value of attribute options. - # - # source://amazing_print//lib/amazing_print/inspector.rb#16 - def options; end - - # Sets the attribute options - # - # @param value the value to set the attribute options to. - # - # source://amazing_print//lib/amazing_print/inspector.rb#16 - def options=(_arg0); end - - private - - # @return [Boolean] - # - # source://amazing_print//lib/amazing_print/inspector.rb#185 - def dotfile_readable?(dotfile); end - - # source://amazing_print//lib/amazing_print/inspector.rb#165 - def find_dotfile; end - - # This method needs to be mocked during testing so that it always loads - # predictable values - # --------------------------------------------------------------------------- - # - # source://amazing_print//lib/amazing_print/inspector.rb#178 - def load_dotfile; end - - # Load ~/.aprc file with custom defaults that override default options. - # --------------------------------------------------------------------------- - # - # source://amazing_print//lib/amazing_print/inspector.rb#193 - def merge_custom_defaults!; end - - # Update @options by first merging the :color hash and then the remaining - # keys. - # --------------------------------------------------------------------------- - # - # source://amazing_print//lib/amazing_print/inspector.rb#160 - def merge_options!(options = T.unsafe(nil)); end - - # Format nested data, for example: - # arr = [1, 2]; arr << arr - # => [1,2, [...]] - # hash = { :a => 1 }; hash[:b] = hash - # => { :a => 1, :b => {...} } - # --------------------------------------------------------------------------- - # - # source://amazing_print//lib/amazing_print/inspector.rb#128 - def nested(object); end - - # Turn class name into symbol, ex: Hello::World => :hello_world. Classes - # that inherit from Array, Hash, File, Dir, and Struct are treated as the - # base class. - # --------------------------------------------------------------------------- - # - # source://amazing_print//lib/amazing_print/inspector.rb#146 - def printable(object); end - - # --------------------------------------------------------------------------- - # - # source://amazing_print//lib/amazing_print/inspector.rb#138 - def unnested(object); end - - class << self - # Unload the cached dotfile and load it again. - # - # source://amazing_print//lib/amazing_print/inspector.rb#23 - def reload_dotfile; end - end -end - -# source://amazing_print//lib/amazing_print/inspector.rb#18 -AmazingPrint::Inspector::AP = T.let(T.unsafe(nil), Symbol) - -# source://amazing_print//lib/amazing_print/core_ext/logger.rb#9 -module AmazingPrint::Logger - # Add ap method to logger - # ------------------------------------------------------------------------------ - # - # source://amazing_print//lib/amazing_print/core_ext/logger.rb#12 - def ap(object, options = T.unsafe(nil)); end -end - -# source://amazing_print//lib/amazing_print/core_ext/awesome_method_array.rb#17 -module AwesomeMethodArray - # source://amazing_print//lib/amazing_print/core_ext/awesome_method_array.rb#24 - def &(other); end - - # source://amazing_print//lib/amazing_print/core_ext/awesome_method_array.rb#18 - def -(other); end - - # Intercepting Array#grep needs a special treatment since grep accepts - # an optional block. - # - # source://amazing_print//lib/amazing_print/core_ext/awesome_method_array.rb#34 - def grep(pattern, &blk); end -end - -module ERB::Escape - private - - def html_escape(_arg0); end - - class << self - def html_escape(_arg0); end - end -end - -# source://amazing_print//lib/amazing_print/core_ext/kernel.rb#8 -module Kernel - # source://amazing_print//lib/amazing_print/core_ext/kernel.rb#9 - def ai(options = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/core_ext/kernel.rb#20 - def amazing_print(object, options = T.unsafe(nil)); end - - # source://amazing_print//lib/amazing_print/core_ext/kernel.rb#9 - def awesome_inspect(options = T.unsafe(nil)); end - - private - - # source://amazing_print//lib/amazing_print/core_ext/kernel.rb#20 - def ap(object, options = T.unsafe(nil)); end - - class << self - # source://amazing_print//lib/amazing_print/core_ext/kernel.rb#20 - def ap(object, options = T.unsafe(nil)); end - end -end - -class Logger - include ::AmazingPrint::Logger -end diff --git a/sorbet/rbi/gems/amazing_print@3.0.0.rbi b/sorbet/rbi/gems/amazing_print@3.0.0.rbi new file mode 100644 index 00000000..4336edf1 --- /dev/null +++ b/sorbet/rbi/gems/amazing_print@3.0.0.rbi @@ -0,0 +1,942 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `amazing_print` gem. +# Please instead update this file by running `bin/tapioca gem amazing_print`. + + +class ActionView::Base + include ::ERB::Escape + include ::ActiveSupport::CoreExt::ERBUtil + include ::ActiveSupport::CoreExt::ERBUtilPrivate + include ::ActiveSupport::Benchmarkable + include ::ActionView::Helpers::ActiveModelHelper + include ::ActionView::Helpers::AssetUrlHelper + include ::ActionView::Helpers::CaptureHelper + include ::ActionView::Helpers::OutputSafetyHelper + include ::ActionView::Helpers::TagHelper + include ::ActionView::Helpers::AssetTagHelper + include ::ActionView::Helpers::AtomFeedHelper + include ::ActionView::Helpers::CacheHelper + include ::ActionView::Helpers::ContentExfiltrationPreventionHelper + include ::ActionView::Helpers::ControllerHelper + include ::ActionView::Helpers::CspHelper + include ::ActionView::Helpers::CsrfHelper + include ::ActionView::Helpers::DateHelper + include ::ActionView::Helpers::DebugHelper + include ::ActionView::ModelNaming + include ::ActionView::RecordIdentifier + include ::ActionView::Helpers::FormOptionsHelper + include ::ActionView::Helpers::JavaScriptHelper + include ::ActionView::Helpers::NumberHelper + include ::ActionView::Helpers::RenderingHelper + include ::AmazingPrint::ActionView +end + +# Copyright (c) 2010-2016 Michael Dvorkin and contributors +# +# AmazingPrint is freely distributable under the terms of MIT license. +# See LICENSE file or http://www.opensource.org/licenses/mit-license.php +# ------------------------------------------------------------------------------ +# +# Helper module for hash_format: :json +# +# pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:3 +module AmazingPrint + class << self + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:14 + def console?; end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:5 + def defaults; end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:5 + def defaults=(_arg0); end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:22 + def diet_rb; end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:5 + def force_colors; end + + # Class accessor to force colorized output (ex. forked subprocess where TERM + # might be dumb). + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:10 + def force_colors!(colors: T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:5 + def force_colors=(_arg0); end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:40 + def irb!; end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:46 + def pry!; end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:18 + def rails_console?; end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:56 + def rdbg!; end + + # Reload the cached custom configurations. + # + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:88 + def reload!; end + + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:30 + def usual_rb; end + + # pkg:gem/amazing_print#lib/amazing_print/version.rb:9 + def version; end + + private + + # Takes a value and returns true unless it is false or nil + # This is an alternative to the less readable !!(value) + # https://github.com/bbatsov/ruby-style-guide#no-bang-bang + # + # pkg:gem/amazing_print#lib/amazing_print/custom_defaults.rb:97 + def boolean(value); end + end +end + +# pkg:gem/amazing_print#lib/amazing_print/ext/action_view.rb:9 +module AmazingPrint::ActionView + # pkg:gem/amazing_print#lib/amazing_print/ext/action_view.rb:20 + def ap(object, options = T.unsafe(nil)); end + + # Use HTML colors and add default "debug_dump" class to the resulting HTML. + # + # pkg:gem/amazing_print#lib/amazing_print/ext/action_view.rb:11 + def ap_debug(object, options = T.unsafe(nil)); end +end + +# pkg:gem/amazing_print#lib/amazing_print/ext/active_support.rb:9 +module AmazingPrint::ActiveSupport + # Format ActiveSupport::TimeWithZone as standard Time. + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/ext/active_support.rb:29 + def awesome_active_support_time(object); end + + # Format HashWithIndifferentAccess as standard Hash. + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/ext/active_support.rb:35 + def awesome_hash_with_indifferent_access(object); end + + # pkg:gem/amazing_print#lib/amazing_print/ext/active_support.rb:15 + def cast_with_active_support(object, type); end + + class << self + # pkg:gem/amazing_print#lib/amazing_print/ext/active_support.rb:10 + def included(base); end + end +end + +# pkg:gem/amazing_print#lib/amazing_print/colorize.rb:8 +module AmazingPrint::Colorize + # Pick the color and apply it to the given string as necessary. + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/colorize.rb:11 + def colorize(str, type); end +end + +# pkg:gem/amazing_print#lib/amazing_print/colors.rb:4 +module AmazingPrint::Colors + private + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def blue(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def blueish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def cyan(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def cyanish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def gray(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def grayish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def green(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def greenish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def purple(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def purpleish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def red(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def redish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def white(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def whiteish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def yellow(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def yellowish(str, html = T.unsafe(nil)); end + + class << self + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def blue(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def blueish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def cyan(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def cyanish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def gray(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def grayish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def green(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def greenish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def purple(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def purpleish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def red(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def redish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def white(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def whiteish(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:25 + def yellow(str, html = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/colors.rb:32 + def yellowish(str, html = T.unsafe(nil)); end + end +end + +# Attempt to load extensions up to 3 times since this library may be required +# before dependencies that we have extensions for. +# +# pkg:gem/amazing_print#lib/amazing_print/ext_loader.rb:8 +class AmazingPrint::ExtLoader + class << self + # pkg:gem/amazing_print#lib/amazing_print/ext_loader.rb:13 + def call; end + end +end + +# pkg:gem/amazing_print#lib/amazing_print/ext_loader.rb:9 +AmazingPrint::ExtLoader::EXT_LOAD_ATTEMPT_LIMIT = T.let(T.unsafe(nil), Integer) + +# pkg:gem/amazing_print#lib/amazing_print/formatter.rb:11 +class AmazingPrint::Formatter + include ::AmazingPrint::Colorize + include ::AmazingPrint::ActiveSupport + include ::AmazingPrint::OpenStruct + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:18 + def initialize(inspector); end + + # Hook this when adding custom formatters. Check out lib/amazing_print/ext + # directory for custom formatters that ship with amazing_print. + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:37 + def cast(object, type); end + + # pkg:gem/amazing_print#lib/amazing_print/ext/active_support.rb:11 + def cast_without_active_support(_object, type); end + + # pkg:gem/amazing_print#lib/amazing_print/ext/ostruct.rb:11 + def cast_without_ostruct(object, type); end + + # Main entry point to format an object. + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:25 + def format(object, type = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:14 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:14 + def options; end + + private + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:71 + def awesome_array(a); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:55 + def awesome_bigdecimal(n); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:96 + def awesome_class(c); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:104 + def awesome_dir(d); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:100 + def awesome_file(f); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:79 + def awesome_hash(h); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:91 + def awesome_method(m); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:83 + def awesome_object(o); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:61 + def awesome_rational(n); end + + # Catch all method to format an arbitrary object. + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:45 + def awesome_self(object, type); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:75 + def awesome_set(s); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:67 + def awesome_simple(o, type, inspector = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:87 + def awesome_struct(s); end + + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:94 + def awesome_unboundmethod(m); end + + # Utility methods. + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/formatter.rb:110 + def convert_to_hash(object); end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatter.rb:16 +AmazingPrint::Formatter::CORE_FORMATTERS = T.let(T.unsafe(nil), Array) + +# pkg:gem/amazing_print#lib/amazing_print/formatters.rb:4 +module AmazingPrint::Formatters; end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:8 +class AmazingPrint::Formatters::ArrayFormatter < ::AmazingPrint::Formatters::BaseFormatter + include ::AmazingPrint::JSONHelper + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:13 + def initialize(array, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:11 + def array; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:20 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:11 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:11 + def options; end + + private + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:64 + def array_prefix(iteration, width); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:118 + def find_method(name); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:54 + def generate_printable_array; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:76 + def generate_printable_tuples; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:109 + def generate_tuple(name); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:134 + def generic_prefix(iteration, width, padding = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:68 + def methods_array; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:32 + def methods_array?; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:44 + def multiline_array; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:99 + def name_and_args_width; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:36 + def simple_array; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:105 + def tuple_prefix(iteration, width); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:84 + def tuple_template(item); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:95 + def tuples; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/array_formatter.rb:142 + def width(items); end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:7 +class AmazingPrint::Formatters::BaseFormatter + include ::AmazingPrint::Colorize + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:130 + def align(value, width); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:146 + def colorless(string); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:151 + def colorless_size(string); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:36 + def get_limit_size; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:120 + def indent(n = T.unsafe(nil)); end + + # Indentation related methods + # ----------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:109 + def indentation; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:113 + def indented(&); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:45 + def limited(data, width, is_hash: T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:67 + def method_tuple(method); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:124 + def outdent; end + + # To support limited output, for example: + # + # ap ('a'..'z').to_a, :limit => 3 + # [ + # [ 0] "a", + # [ 1] .. [24], + # [25] "z" + # ] + # + # ap (1..100).to_a, :limit => true # Default limit is 7. + # [ + # [ 0] 1, + # [ 1] 2, + # [ 2] 3, + # [ 3] .. [96], + # [97] 98, + # [98] 99, + # [99] 100 + # ] + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:32 + def should_be_limited?; end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:10 +AmazingPrint::Formatters::BaseFormatter::DEFAULT_LIMIT_SIZE = T.let(T.unsafe(nil), Integer) + +# precompute common indentations +# +# pkg:gem/amazing_print#lib/amazing_print/formatters/base_formatter.rb:118 +AmazingPrint::Formatters::BaseFormatter::INDENT_CACHE = T.let(T.unsafe(nil), Array) + +# pkg:gem/amazing_print#lib/amazing_print/formatters/class_formatter.rb:7 +class AmazingPrint::Formatters::ClassFormatter < ::AmazingPrint::Formatters::BaseFormatter + # pkg:gem/amazing_print#lib/amazing_print/formatters/class_formatter.rb:10 + def initialize(klass, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/class_formatter.rb:17 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/class_formatter.rb:8 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/class_formatter.rb:8 + def klass; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/class_formatter.rb:8 + def options; end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/dir_formatter.rb:10 +class AmazingPrint::Formatters::DirFormatter < ::AmazingPrint::Formatters::BaseFormatter + # pkg:gem/amazing_print#lib/amazing_print/formatters/dir_formatter.rb:13 + def initialize(dir, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/dir_formatter.rb:11 + def dir; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/dir_formatter.rb:20 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/dir_formatter.rb:25 + def info; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/dir_formatter.rb:11 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/dir_formatter.rb:11 + def options; end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/file_formatter.rb:10 +class AmazingPrint::Formatters::FileFormatter < ::AmazingPrint::Formatters::BaseFormatter + # pkg:gem/amazing_print#lib/amazing_print/formatters/file_formatter.rb:13 + def initialize(file, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/file_formatter.rb:11 + def file; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/file_formatter.rb:20 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/file_formatter.rb:25 + def info; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/file_formatter.rb:11 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/file_formatter.rb:11 + def options; end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:8 +class AmazingPrint::Formatters::HashFormatter < ::AmazingPrint::Formatters::BaseFormatter + include ::AmazingPrint::JSONHelper + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:17 + def initialize(hash, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:29 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:15 + def hash; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:15 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:15 + def options; end + + private + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:41 + def empty_hash; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:149 + def format_key(key); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:117 + def json_format?; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:121 + def json_syntax(key, value, width); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:83 + def key_size(key); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:77 + def left_width(keys); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:93 + def max_key_width(keys); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:49 + def multiline_hash; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:45 + def multiline_hash?; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:157 + def no_colors; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:143 + def pre_ruby19_syntax(key, value, width); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:57 + def printable_hash; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:97 + def printable_keys; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:133 + def ruby19_syntax(key, value, width); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:53 + def simple_hash; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:165 + def single_line; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:109 + def string?(key); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:113 + def symbol?(key); end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:13 +class AmazingPrint::Formatters::HashFormatter::InvalidHashFormatError < ::StandardError; end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/hash_formatter.rb:11 +AmazingPrint::Formatters::HashFormatter::VALID_HASH_FORMATS = T.let(T.unsafe(nil), Array) + +# pkg:gem/amazing_print#lib/amazing_print/formatters/method_formatter.rb:7 +class AmazingPrint::Formatters::MethodFormatter < ::AmazingPrint::Formatters::BaseFormatter + # pkg:gem/amazing_print#lib/amazing_print/formatters/method_formatter.rb:10 + def initialize(method, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/method_formatter.rb:17 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/method_formatter.rb:8 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/method_formatter.rb:8 + def method; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/method_formatter.rb:8 + def options; end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:7 +class AmazingPrint::Formatters::ObjectFormatter < ::AmazingPrint::Formatters::BaseFormatter + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:10 + def initialize(object, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:18 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:8 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:8 + def object; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:8 + def options; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:8 + def variables; end + + private + + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:64 + def awesome_instance; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:74 + def left_aligned; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/object_formatter.rb:60 + def valid_instance_var?(variable_name); end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/simple_formatter.rb:7 +class AmazingPrint::Formatters::SimpleFormatter < ::AmazingPrint::Formatters::BaseFormatter + # pkg:gem/amazing_print#lib/amazing_print/formatters/simple_formatter.rb:10 + def initialize(string, type, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/simple_formatter.rb:18 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/simple_formatter.rb:8 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/simple_formatter.rb:8 + def options; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/simple_formatter.rb:8 + def string; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/simple_formatter.rb:8 + def type; end +end + +# pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:7 +class AmazingPrint::Formatters::StructFormatter < ::AmazingPrint::Formatters::BaseFormatter + # pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:10 + def initialize(struct, inspector); end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:18 + def format; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:8 + def inspector; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:8 + def options; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:8 + def struct; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:8 + def variables; end + + private + + # pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:60 + def awesome_instance; end + + # pkg:gem/amazing_print#lib/amazing_print/formatters/struct_formatter.rb:71 + def left_aligned; end +end + +# pkg:gem/amazing_print#lib/amazing_print/indentator.rb:4 +class AmazingPrint::Indentator + # pkg:gem/amazing_print#lib/amazing_print/indentator.rb:7 + def initialize(indentation); end + + # pkg:gem/amazing_print#lib/amazing_print/indentator.rb:12 + def indent; end + + # pkg:gem/amazing_print#lib/amazing_print/indentator.rb:5 + def indentation; end + + # pkg:gem/amazing_print#lib/amazing_print/indentator.rb:5 + def shift_width; end +end + +# pkg:gem/amazing_print#lib/amazing_print/inspector.rb:15 +class AmazingPrint::Inspector + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:29 + def initialize(options = T.unsafe(nil)); end + + # Dispatcher that detects data nesting and invokes object-aware formatter. + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:88 + def awesome(object); end + + # Return true if we are to colorize the output. + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:103 + def colorize?; end + + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:78 + def current_indentation; end + + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:82 + def increase_indentation(&); end + + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:16 + def indentator; end + + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:16 + def indentator=(_arg0); end + + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:16 + def options; end + + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:16 + def options=(_arg0); end + + private + + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:192 + def dotfile_readable?(dotfile); end + + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:172 + def find_dotfile; end + + # This method needs to be mocked during testing so that it always loads + # predictable values + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:185 + def load_dotfile; end + + # Load ~/.aprc file with custom defaults that override default options. + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:200 + def merge_custom_defaults!; end + + # Update @options by first merging the :color hash and then the remaining + # keys. + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:165 + def merge_options!(options = T.unsafe(nil)); end + + # Format nested data, for example: + # arr = [1, 2]; arr << arr + # => [1,2, [...]] + # hash = { :a => 1 }; hash[:b] = hash + # => { :a => 1, :b => {...} } + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:128 + def nested(object); end + + # Turn class name into symbol, ex: Hello::World => :hello_world. Classes + # that inherit from Array, Hash, File, Dir, and Struct are treated as the + # base class. + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:146 + def printable(object); end + + # --------------------------------------------------------------------------- + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:138 + def unnested(object); end + + class << self + # Unload the cached dotfile and load it again. + # + # pkg:gem/amazing_print#lib/amazing_print/inspector.rb:23 + def reload_dotfile; end + end +end + +# pkg:gem/amazing_print#lib/amazing_print/inspector.rb:18 +AmazingPrint::Inspector::AP = T.let(T.unsafe(nil), Symbol) + +# pkg:gem/amazing_print#lib/amazing_print/json_helper.rb:7 +module AmazingPrint::JSONHelper + # pkg:gem/amazing_print#lib/amazing_print/json_helper.rb:10 + def json_awesome(object, is_key: T.unsafe(nil)); end +end + +# pkg:gem/amazing_print#lib/amazing_print/json_helper.rb:8 +AmazingPrint::JSONHelper::VALUE_CLASSES_NOT_TO_CONVERT = T.let(T.unsafe(nil), Array) + +# pkg:gem/amazing_print#lib/amazing_print/core_ext/logger.rb:9 +module AmazingPrint::Logger + # Add ap method to logger + # ------------------------------------------------------------------------------ + # + # pkg:gem/amazing_print#lib/amazing_print/core_ext/logger.rb:12 + def ap(object, options = T.unsafe(nil)); end +end + +# pkg:gem/amazing_print#lib/amazing_print/ext/ostruct.rb:9 +module AmazingPrint::OpenStruct + # pkg:gem/amazing_print#lib/amazing_print/ext/ostruct.rb:21 + def awesome_open_struct_instance(object); end + + # pkg:gem/amazing_print#lib/amazing_print/ext/ostruct.rb:15 + def cast_with_ostruct(object, type); end + + class << self + # pkg:gem/amazing_print#lib/amazing_print/ext/ostruct.rb:10 + def included(base); end + end +end + +# Copyright (c) 2010-2016 Michael Dvorkin and contributors +# +# AmazingPrint is freely distributable under the terms of MIT license. +# See LICENSE file or http://www.opensource.org/licenses/mit-license.php +# ------------------------------------------------------------------------------ +# +# The following makes it possible to invoke amazing_print while performing +# operations on method arrays, ex: +# +# ap [].methods - Object.methods +# ap ''.methods.grep(/!|\?/) +# +# If you could think of a better way please let me know :-) +# +# pkg:gem/amazing_print#lib/amazing_print/core_ext/awesome_method_array.rb:17 +module AwesomeMethodArray + # pkg:gem/amazing_print#lib/amazing_print/core_ext/awesome_method_array.rb:24 + def &(other); end + + # pkg:gem/amazing_print#lib/amazing_print/core_ext/awesome_method_array.rb:18 + def -(other); end + + # Intercepting Array#grep needs a special treatment since grep accepts + # an optional block. + # + # pkg:gem/amazing_print#lib/amazing_print/core_ext/awesome_method_array.rb:34 + def grep(pattern, &blk); end +end + +# Copyright (c) 2010-2016 Michael Dvorkin and contributors +# +# AmazingPrint is freely distributable under the terms of MIT license. +# See LICENSE file or http://www.opensource.org/licenses/mit-license.php +# ------------------------------------------------------------------------------ +# +# pkg:gem/amazing_print#lib/amazing_print/core_ext/kernel.rb:8 +module Kernel + # pkg:gem/amazing_print#lib/amazing_print/core_ext/kernel.rb:9 + def ai(options = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/core_ext/kernel.rb:24 + def amazing_print(object, options = T.unsafe(nil)); end + + # pkg:gem/amazing_print#lib/amazing_print/core_ext/kernel.rb:18 + def awesome_inspect(options = T.unsafe(nil)); end + + private + + # pkg:gem/amazing_print#lib/amazing_print/core_ext/kernel.rb:20 + def ap(object, options = T.unsafe(nil)); end + + class << self + # pkg:gem/amazing_print#lib/amazing_print/core_ext/kernel.rb:26 + def ap(object, options = T.unsafe(nil)); end + end +end + +class Logger + include ::AmazingPrint::Logger +end diff --git a/sorbet/rbi/gems/ansi@1.5.0.rbi b/sorbet/rbi/gems/ansi@1.6.0.rbi similarity index 57% rename from sorbet/rbi/gems/ansi@1.5.0.rbi rename to sorbet/rbi/gems/ansi@1.6.0.rbi index 7fc7dfd9..e6f23bdf 100644 --- a/sorbet/rbi/gems/ansi@1.5.0.rbi +++ b/sorbet/rbi/gems/ansi@1.6.0.rbi @@ -7,7 +7,7 @@ # ANSI namespace module contains all the ANSI related classes. # -# source://ansi//lib/ansi/code.rb#1 +# pkg:gem/ansi#lib/ansi/code.rb:1 module ANSI extend ::ANSI::Constants extend ::ANSI::Code @@ -17,7 +17,7 @@ end # # @see http://en.wikipedia.org/wiki/ANSI_escape_code # -# source://ansi//lib/ansi/chart.rb#6 +# pkg:gem/ansi#lib/ansi/chart.rb:6 ANSI::CHART = T.let(T.unsafe(nil), Hash) # ANSI Codes @@ -35,7 +35,7 @@ ANSI::CHART = T.let(T.unsafe(nil), Hash) # # See {ANSI::CHART} for list of all supported codes. # -# source://ansi//lib/ansi/code.rb#37 +# pkg:gem/ansi#lib/ansi/code.rb:37 module ANSI::Code include ::ANSI::Constants extend ::ANSI::Constants @@ -43,238 +43,237 @@ module ANSI::Code # Return ANSI code given a list of symbolic names. # - # source://ansi//lib/ansi/code.rb#60 + # pkg:gem/ansi#lib/ansi/code.rb:60 def [](*codes); end # Apply ANSI codes to a first argument or block value. # # @example # ansi("Valentine", :red, :on_white) + # # @example # ansi(:red, :on_white){ "Valentine" } - # @return [String] String wrapped ANSI code. # - # source://ansi//lib/ansi/code.rb#176 + # @return [String] + # String wrapped ANSI code. + # + # pkg:gem/ansi#lib/ansi/code.rb:176 def ansi(*codes); end - # Move cursor left a specified number of spaces. - # - # source://ansi//lib/ansi/code.rb#149 + # pkg:gem/ansi#lib/ansi/code.rb:152 def back(spaces = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def black_on_black(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def black_on_blue(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def black_on_cyan(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def black_on_green(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def black_on_magenta(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def black_on_red(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def black_on_white(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def black_on_yellow(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def blue_on_black(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def blue_on_blue(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def blue_on_cyan(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def blue_on_green(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def blue_on_magenta(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def blue_on_red(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def blue_on_white(string = T.unsafe(nil)); end - # source://ansi//lib/ansi/code.rb#70 + # pkg:gem/ansi#lib/ansi/code.rb:70 def blue_on_yellow(string = T.unsafe(nil)); end # Look-up code from chart, or if Integer simply pass through. # Also resolves :random and :on_random. # # @param codes [Array "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" # -# source://base64//lib/base64.rb#184 +# pkg:gem/base64#lib/base64.rb:184 module Base64 private + # :call-seq: + # Base64.decode(encoded_string) -> decoded_string + # # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +str+: + # \Base64-encoded string +encoded_string+: # # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" # Base64.decode64(s) # => "This is line 1\nThis is line 2\n" # - # Non-\Base64 characters in +str+ are ignored; + # Non-\Base64 characters in +encoded_string+ are ignored; # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: # these include newline characters and characters - and /: # # Base64.decode64("\x00\n-_") # => "" # - # Padding in +str+ (even if incorrect) is ignored: + # Padding in +encoded_string+ (even if incorrect) is ignored: # # Base64.decode64("MDEyMzQ1Njc") # => "01234567" # Base64.decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.decode64("MDEyMzQ1Njc==") # => "01234567" # - # source://base64//lib/base64.rb#241 + # pkg:gem/base64#lib/base64.rb:247 def decode64(str); end - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+. + # :call-seq: + # Base64.encode64(string) -> encoded_string + # + # Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+. # # Per RFC 2045, the returned string may contain the URL-unsafe characters # + or /; @@ -240,16 +246,19 @@ module Base64 # s = "This is line 1\nThis is line 2\n" # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" # - # source://base64//lib/base64.rb#219 + # pkg:gem/base64#lib/base64.rb:222 def encode64(bin); end + # :call-seq: + # Base64.strict_decode64(encoded_string) -> decoded_string + # # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +str+: + # \Base64-encoded string +encoded_string+: # # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" # Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n" # - # Non-\Base64 characters in +str+ not allowed; + # Non-\Base64 characters in +encoded_string+ are not allowed; # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: # these include newline characters and characters - and /: # @@ -257,16 +266,19 @@ module Base64 # Base64.strict_decode64('-') # Raises ArgumentError # Base64.strict_decode64('_') # Raises ArgumentError # - # Padding in +str+, if present, must be correct: + # Padding in +encoded_string+, if present, must be correct: # # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError # - # source://base64//lib/base64.rb#297 + # pkg:gem/base64#lib/base64.rb:309 def strict_decode64(str); end - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+. + # :call-seq: + # Base64.strict_encode64(string) -> encoded_string + # + # Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+. # # Per RFC 2045, the returned string may contain the URL-unsafe characters # + or /; @@ -294,29 +306,35 @@ module Base64 # s = "This is line 1\nThis is line 2\n" # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" # - # source://base64//lib/base64.rb#273 + # pkg:gem/base64#lib/base64.rb:282 def strict_encode64(bin); end - # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +str+: + # :call-seq: + # Base64.urlsafe_decode64(encoded_string) -> decoded_string + # + # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +encoded_string+: # - # +str+ may not contain non-Base64 characters; + # +encoded_string+ may not contain non-Base64 characters; # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: # # Base64.urlsafe_decode64('+') # Raises ArgumentError. # Base64.urlsafe_decode64('/') # Raises ArgumentError. # Base64.urlsafe_decode64("\n") # Raises ArgumentError. # - # Padding in +str+, if present, must be correct: + # Padding in +encoded_string+, if present, must be correct: # see {Padding}[Base64.html#module-Base64-label-Padding], above: # # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567" # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. # - # source://base64//lib/base64.rb#351 + # pkg:gem/base64#lib/base64.rb:369 def urlsafe_decode64(str); end - # Returns the RFC-4648-compliant \Base64-encoding of +bin+. + # :call-seq: + # Base64.urlsafe_encode64(string) -> encoded_string + # + # Returns the RFC-4648-compliant \Base64-encoding of +string+. # # Per RFC 4648, the returned string will not contain the URL-unsafe characters # + or /, @@ -343,32 +361,38 @@ module Base64 # Base64.urlsafe_encode64('*' * 46) # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" # - # source://base64//lib/base64.rb#328 + # pkg:gem/base64#lib/base64.rb:343 def urlsafe_encode64(bin, padding: T.unsafe(nil)); end class << self + # :call-seq: + # Base64.decode(encoded_string) -> decoded_string + # # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +str+: + # \Base64-encoded string +encoded_string+: # # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" # Base64.decode64(s) # => "This is line 1\nThis is line 2\n" # - # Non-\Base64 characters in +str+ are ignored; + # Non-\Base64 characters in +encoded_string+ are ignored; # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: # these include newline characters and characters - and /: # # Base64.decode64("\x00\n-_") # => "" # - # Padding in +str+ (even if incorrect) is ignored: + # Padding in +encoded_string+ (even if incorrect) is ignored: # # Base64.decode64("MDEyMzQ1Njc") # => "01234567" # Base64.decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.decode64("MDEyMzQ1Njc==") # => "01234567" # - # source://base64//lib/base64.rb#241 + # pkg:gem/base64#lib/base64.rb:247 def decode64(str); end - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+. + # :call-seq: + # Base64.encode64(string) -> encoded_string + # + # Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+. # # Per RFC 2045, the returned string may contain the URL-unsafe characters # + or /; @@ -397,16 +421,19 @@ module Base64 # s = "This is line 1\nThis is line 2\n" # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" # - # source://base64//lib/base64.rb#219 + # pkg:gem/base64#lib/base64.rb:222 def encode64(bin); end + # :call-seq: + # Base64.strict_decode64(encoded_string) -> decoded_string + # # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +str+: + # \Base64-encoded string +encoded_string+: # # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" # Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n" # - # Non-\Base64 characters in +str+ not allowed; + # Non-\Base64 characters in +encoded_string+ are not allowed; # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: # these include newline characters and characters - and /: # @@ -414,16 +441,19 @@ module Base64 # Base64.strict_decode64('-') # Raises ArgumentError # Base64.strict_decode64('_') # Raises ArgumentError # - # Padding in +str+, if present, must be correct: + # Padding in +encoded_string+, if present, must be correct: # # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError # - # source://base64//lib/base64.rb#297 + # pkg:gem/base64#lib/base64.rb:309 def strict_decode64(str); end - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+. + # :call-seq: + # Base64.strict_encode64(string) -> encoded_string + # + # Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+. # # Per RFC 2045, the returned string may contain the URL-unsafe characters # + or /; @@ -451,29 +481,35 @@ module Base64 # s = "This is line 1\nThis is line 2\n" # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" # - # source://base64//lib/base64.rb#273 + # pkg:gem/base64#lib/base64.rb:282 def strict_encode64(bin); end - # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +str+: + # :call-seq: + # Base64.urlsafe_decode64(encoded_string) -> decoded_string + # + # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +encoded_string+: # - # +str+ may not contain non-Base64 characters; + # +encoded_string+ may not contain non-Base64 characters; # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: # # Base64.urlsafe_decode64('+') # Raises ArgumentError. # Base64.urlsafe_decode64('/') # Raises ArgumentError. # Base64.urlsafe_decode64("\n") # Raises ArgumentError. # - # Padding in +str+, if present, must be correct: + # Padding in +encoded_string+, if present, must be correct: # see {Padding}[Base64.html#module-Base64-label-Padding], above: # # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567" # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. # - # source://base64//lib/base64.rb#351 + # pkg:gem/base64#lib/base64.rb:369 def urlsafe_decode64(str); end - # Returns the RFC-4648-compliant \Base64-encoding of +bin+. + # :call-seq: + # Base64.urlsafe_encode64(string) -> encoded_string + # + # Returns the RFC-4648-compliant \Base64-encoding of +string+. # # Per RFC 4648, the returned string will not contain the URL-unsafe characters # + or /, @@ -500,10 +536,10 @@ module Base64 # Base64.urlsafe_encode64('*' * 46) # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" # - # source://base64//lib/base64.rb#328 + # pkg:gem/base64#lib/base64.rb:343 def urlsafe_encode64(bin, padding: T.unsafe(nil)); end end end -# source://base64//lib/base64.rb#186 +# pkg:gem/base64#lib/base64.rb:186 Base64::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/benchmark@0.4.0.rbi b/sorbet/rbi/gems/benchmark@0.5.0.rbi similarity index 65% rename from sorbet/rbi/gems/benchmark@0.4.0.rbi rename to sorbet/rbi/gems/benchmark@0.5.0.rbi index b1d8e205..26ac079a 100644 --- a/sorbet/rbi/gems/benchmark@0.4.0.rbi +++ b/sorbet/rbi/gems/benchmark@0.5.0.rbi @@ -19,8 +19,9 @@ # # 0.350000 0.400000 0.750000 ( 0.835234) # -# This report shows the user CPU time, system CPU time, the sum of -# the user and system CPU times, and the elapsed real time. The unit +# This report shows the user CPU time, system CPU time, the total time +# (sum of user CPU time, system CPU time, children's user CPU time, +# and children's system CPU time), and the elapsed real time. The unit # of time is seconds. # # * Do some experiments sequentially using the #bm method: @@ -108,7 +109,7 @@ # >total: 2.880000 0.000000 2.880000 ( 2.883764) # >avg: 0.960000 0.000000 0.960000 ( 0.961255) # -# source://benchmark//lib/benchmark.rb#122 +# pkg:gem/benchmark#lib/benchmark.rb:123 module Benchmark private @@ -153,7 +154,7 @@ module Benchmark # >total: 2.930000 0.000000 2.930000 ( 2.932889) # >avg: 0.976667 0.000000 0.976667 ( 0.977630) # - # source://benchmark//lib/benchmark.rb#170 + # pkg:gem/benchmark#lib/benchmark.rb:171 def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end # A simple interface to the #benchmark method, #bm generates sequential @@ -176,7 +177,7 @@ module Benchmark # times: 0.960000 0.000000 0.960000 ( 0.960423) # upto: 0.950000 0.000000 0.950000 ( 0.954864) # - # source://benchmark//lib/benchmark.rb#215 + # pkg:gem/benchmark#lib/benchmark.rb:216 def bm(label_width = T.unsafe(nil), *labels, &blk); end # Sometimes benchmark results are skewed because code executed @@ -216,7 +217,7 @@ module Benchmark # #bmbm yields a Benchmark::Job object and returns an array of # Benchmark::Tms objects. # - # source://benchmark//lib/benchmark.rb#257 + # pkg:gem/benchmark#lib/benchmark.rb:258 def bmbm(width = T.unsafe(nil)); end # Returns the time used to execute the given block as a @@ -235,152 +236,44 @@ module Benchmark # # 0.220000 0.000000 0.220000 ( 0.227313) # - # source://benchmark//lib/benchmark.rb#302 + # pkg:gem/benchmark#lib/benchmark.rb:303 def measure(label = T.unsafe(nil)); end + # Returns the elapsed real time used to execute the given block. + # The unit of time is milliseconds. + # + # Benchmark.ms { "a" * 1_000_000_000 } + # #=> 509.8029999935534 + # + # pkg:gem/benchmark#lib/benchmark.rb:335 + def ms; end + # Returns the elapsed real time used to execute the given block. # The unit of time is seconds. # # Benchmark.realtime { "a" * 1_000_000_000 } # #=> 0.5098029999935534 # - # source://benchmark//lib/benchmark.rb#321 + # pkg:gem/benchmark#lib/benchmark.rb:322 def realtime; end class << self - # Invokes the block with a Benchmark::Report object, which - # may be used to collect and report on the results of individual - # benchmark tests. Reserves +label_width+ leading spaces for - # labels on each line. Prints +caption+ at the top of the - # report, and uses +format+ to format each line. - # (Note: +caption+ must contain a terminating newline character, - # see the default Benchmark::Tms::CAPTION for an example.) - # - # Returns an array of Benchmark::Tms objects. - # - # If the block returns an array of - # Benchmark::Tms objects, these will be used to format - # additional lines of output. If +labels+ parameter are - # given, these are used to label these extra lines. - # - # _Note_: Other methods provide a simpler interface to this one, and are - # suitable for nearly all benchmarking requirements. See the examples in - # Benchmark, and the #bm and #bmbm methods. - # - # Example: - # - # require 'benchmark' - # include Benchmark # we need the CAPTION and FORMAT constants - # - # n = 5000000 - # Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x| - # tf = x.report("for:") { for i in 1..n; a = "1"; end } - # tt = x.report("times:") { n.times do ; a = "1"; end } - # tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end } - # [tf+tt+tu, (tf+tt+tu)/3] - # end - # - # Generates: - # - # user system total real - # for: 0.970000 0.000000 0.970000 ( 0.970493) - # times: 0.990000 0.000000 0.990000 ( 0.989542) - # upto: 0.970000 0.000000 0.970000 ( 0.972854) - # >total: 2.930000 0.000000 2.930000 ( 2.932889) - # >avg: 0.976667 0.000000 0.976667 ( 0.977630) - # - # source://benchmark//lib/benchmark.rb#170 + # pkg:gem/benchmark#lib/benchmark.rb:341 def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end - # A simple interface to the #benchmark method, #bm generates sequential - # reports with labels. +label_width+ and +labels+ parameters have the same - # meaning as for #benchmark. - # - # require 'benchmark' - # - # n = 5000000 - # Benchmark.bm(7) do |x| - # x.report("for:") { for i in 1..n; a = "1"; end } - # x.report("times:") { n.times do ; a = "1"; end } - # x.report("upto:") { 1.upto(n) do ; a = "1"; end } - # end - # - # Generates: - # - # user system total real - # for: 0.960000 0.000000 0.960000 ( 0.957966) - # times: 0.960000 0.000000 0.960000 ( 0.960423) - # upto: 0.950000 0.000000 0.950000 ( 0.954864) - # - # source://benchmark//lib/benchmark.rb#215 + # pkg:gem/benchmark#lib/benchmark.rb:341 def bm(label_width = T.unsafe(nil), *labels, &blk); end - # Sometimes benchmark results are skewed because code executed - # earlier encounters different garbage collection overheads than - # that run later. #bmbm attempts to minimize this effect by running - # the tests twice, the first time as a rehearsal in order to get the - # runtime environment stable, the second time for - # real. GC.start is executed before the start of each of - # the real timings; the cost of this is not included in the - # timings. In reality, though, there's only so much that #bmbm can - # do, and the results are not guaranteed to be isolated from garbage - # collection and other effects. - # - # Because #bmbm takes two passes through the tests, it can - # calculate the required label width. - # - # require 'benchmark' - # - # array = (1..1000000).map { rand } - # - # Benchmark.bmbm do |x| - # x.report("sort!") { array.dup.sort! } - # x.report("sort") { array.dup.sort } - # end - # - # Generates: - # - # Rehearsal ----------------------------------------- - # sort! 1.440000 0.010000 1.450000 ( 1.446833) - # sort 1.440000 0.000000 1.440000 ( 1.448257) - # -------------------------------- total: 2.890000sec - # - # user system total real - # sort! 1.460000 0.000000 1.460000 ( 1.458065) - # sort 1.450000 0.000000 1.450000 ( 1.455963) - # - # #bmbm yields a Benchmark::Job object and returns an array of - # Benchmark::Tms objects. - # - # source://benchmark//lib/benchmark.rb#257 + # pkg:gem/benchmark#lib/benchmark.rb:341 def bmbm(width = T.unsafe(nil)); end - # Returns the time used to execute the given block as a - # Benchmark::Tms object. Takes +label+ option. - # - # require 'benchmark' - # - # n = 1000000 - # - # time = Benchmark.measure do - # n.times { a = "1" } - # end - # puts time - # - # Generates: - # - # 0.220000 0.000000 0.220000 ( 0.227313) - # - # source://benchmark//lib/benchmark.rb#302 + # pkg:gem/benchmark#lib/benchmark.rb:341 def measure(label = T.unsafe(nil)); end - # Returns the elapsed real time used to execute the given block. - # The unit of time is seconds. - # - # Benchmark.realtime { "a" * 1_000_000_000 } - # #=> 0.5098029999935534 - # - # source://benchmark//lib/benchmark.rb#321 + # pkg:gem/benchmark#lib/benchmark.rb:341 + def ms; end + + # pkg:gem/benchmark#lib/benchmark.rb:341 def realtime; end end end @@ -388,7 +281,7 @@ end # A Job is a sequence of labelled blocks to be processed by the # Benchmark.bmbm method. It is of little direct interest to the user. # -# source://benchmark//lib/benchmark.rb#333 +# pkg:gem/benchmark#lib/benchmark.rb:347 class Benchmark::Job # Returns an initialized Job instance. # Usually, one doesn't call this method directly, as new @@ -396,40 +289,32 @@ class Benchmark::Job # +width+ is a initial value for the label offset used in formatting; # the #bmbm method passes its +width+ argument to this constructor. # - # @return [Job] a new instance of Job - # - # source://benchmark//lib/benchmark.rb#341 + # pkg:gem/benchmark#lib/benchmark.rb:355 def initialize(width); end # Registers the given label and block pair in the job list. # - # @raise [ArgumentError] - # - # source://benchmark//lib/benchmark.rb#349 + # pkg:gem/benchmark#lib/benchmark.rb:363 def item(label = T.unsafe(nil), &blk); end # An array of 2-element arrays, consisting of label and block pairs. # - # source://benchmark//lib/benchmark.rb#361 + # pkg:gem/benchmark#lib/benchmark.rb:375 def list; end - # Registers the given label and block pair in the job list. - # - # @raise [ArgumentError] - # - # source://benchmark//lib/benchmark.rb#349 + # pkg:gem/benchmark#lib/benchmark.rb:372 def report(label = T.unsafe(nil), &blk); end # Length of the widest label in the #list. # - # source://benchmark//lib/benchmark.rb#364 + # pkg:gem/benchmark#lib/benchmark.rb:378 def width; end end # This class is used by the Benchmark.benchmark and Benchmark.bm methods. # It is of little direct interest to the user. # -# source://benchmark//lib/benchmark.rb#371 +# pkg:gem/benchmark#lib/benchmark.rb:385 class Benchmark::Report # Returns an initialized Report instance. # Usually, one doesn't call this method directly, as new @@ -437,60 +322,52 @@ class Benchmark::Report # +width+ and +format+ are the label offset and # format string used by Tms#format. # - # @return [Report] a new instance of Report - # - # source://benchmark//lib/benchmark.rb#379 + # pkg:gem/benchmark#lib/benchmark.rb:393 def initialize(width = T.unsafe(nil), format = T.unsafe(nil)); end # An array of Benchmark::Tms objects representing each item. # - # source://benchmark//lib/benchmark.rb#398 + # pkg:gem/benchmark#lib/benchmark.rb:412 def format; end # Prints the +label+ and measured time for the block, # formatted by +format+. See Tms#format for the # formatting rules. # - # source://benchmark//lib/benchmark.rb#388 + # pkg:gem/benchmark#lib/benchmark.rb:402 def item(label = T.unsafe(nil), *format, &blk); end # An array of Benchmark::Tms objects representing each item. # - # source://benchmark//lib/benchmark.rb#398 + # pkg:gem/benchmark#lib/benchmark.rb:412 def list; end - # Prints the +label+ and measured time for the block, - # formatted by +format+. See Tms#format for the - # formatting rules. - # - # source://benchmark//lib/benchmark.rb#388 + # pkg:gem/benchmark#lib/benchmark.rb:409 def report(label = T.unsafe(nil), *format, &blk); end # An array of Benchmark::Tms objects representing each item. # - # source://benchmark//lib/benchmark.rb#398 + # pkg:gem/benchmark#lib/benchmark.rb:412 def width; end end # A data object, representing the times associated with a benchmark # measurement. # -# source://benchmark//lib/benchmark.rb#407 +# pkg:gem/benchmark#lib/benchmark.rb:421 class Benchmark::Tms # Returns an initialized Tms object which has # +utime+ as the user CPU time, +stime+ as the system CPU time, # +cutime+ as the children's user CPU time, +cstime+ as the children's # system CPU time, +real+ as the elapsed real time and +label+ as the label. # - # @return [Tms] a new instance of Tms - # - # source://benchmark//lib/benchmark.rb#442 + # pkg:gem/benchmark#lib/benchmark.rb:456 def initialize(utime = T.unsafe(nil), stime = T.unsafe(nil), cutime = T.unsafe(nil), cstime = T.unsafe(nil), real = T.unsafe(nil), label = T.unsafe(nil)); end # Returns a new Tms object obtained by memberwise multiplication # of the individual times for this Tms object by +x+. # - # source://benchmark//lib/benchmark.rb#490 + # pkg:gem/benchmark#lib/benchmark.rb:504 def *(x); end # Returns a new Tms object obtained by memberwise summation @@ -498,27 +375,27 @@ class Benchmark::Tms # Tms object. # This method and #/() are useful for taking statistics. # - # source://benchmark//lib/benchmark.rb#477 + # pkg:gem/benchmark#lib/benchmark.rb:491 def +(other); end # Returns a new Tms object obtained by memberwise subtraction # of the individual times for the +other+ Tms object from those of this # Tms object. # - # source://benchmark//lib/benchmark.rb#484 + # pkg:gem/benchmark#lib/benchmark.rb:498 def -(other); end # Returns a new Tms object obtained by memberwise division # of the individual times for this Tms object by +x+. # This method and #+() are useful for taking statistics. # - # source://benchmark//lib/benchmark.rb#497 + # pkg:gem/benchmark#lib/benchmark.rb:511 def /(x); end # Returns a new Tms object whose times are the sum of the times for this # Tms object, plus the time required to execute the code block (+blk+). # - # source://benchmark//lib/benchmark.rb#451 + # pkg:gem/benchmark#lib/benchmark.rb:465 def add(&blk); end # An in-place version of #add. @@ -526,17 +403,17 @@ class Benchmark::Tms # for this Tms object, plus the time required to execute # the code block (+blk+). # - # source://benchmark//lib/benchmark.rb#461 + # pkg:gem/benchmark#lib/benchmark.rb:475 def add!(&blk); end # System CPU time of children # - # source://benchmark//lib/benchmark.rb#425 + # pkg:gem/benchmark#lib/benchmark.rb:439 def cstime; end # User CPU time of children # - # source://benchmark//lib/benchmark.rb#422 + # pkg:gem/benchmark#lib/benchmark.rb:436 def cutime; end # Returns the contents of this Tms object as @@ -545,7 +422,7 @@ class Benchmark::Tms # accepts the following extensions: # # %u:: Replaced by the user CPU time, as reported by Tms#utime. - # %y:: Replaced by the system CPU time, as reported by #stime (Mnemonic: y of "s*y*stem") + # %y:: Replaced by the system CPU time, as reported by Tms#stime (Mnemonic: y of "s*y*stem") # %U:: Replaced by the children's user CPU time, as reported by Tms#cutime # %Y:: Replaced by the children's system CPU time, as reported by Tms#cstime # %t:: Replaced by the total CPU time, as reported by Tms#total @@ -553,24 +430,24 @@ class Benchmark::Tms # %n:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame") # # If +format+ is not given, FORMAT is used as default value, detailing the - # user, system and real elapsed time. + # user, system, total and real elapsed time. # - # source://benchmark//lib/benchmark.rb#516 + # pkg:gem/benchmark#lib/benchmark.rb:530 def format(format = T.unsafe(nil), *args); end # Label # - # source://benchmark//lib/benchmark.rb#434 + # pkg:gem/benchmark#lib/benchmark.rb:448 def label; end # Elapsed real time # - # source://benchmark//lib/benchmark.rb#428 + # pkg:gem/benchmark#lib/benchmark.rb:442 def real; end # System CPU time # - # source://benchmark//lib/benchmark.rb#419 + # pkg:gem/benchmark#lib/benchmark.rb:433 def stime; end # Returns a new 6-element array, consisting of the @@ -578,27 +455,27 @@ class Benchmark::Tms # user CPU time, children's system CPU time and elapsed # real time. # - # source://benchmark//lib/benchmark.rb#541 + # pkg:gem/benchmark#lib/benchmark.rb:555 def to_a; end # Returns a hash containing the same data as `to_a`. # - # source://benchmark//lib/benchmark.rb#548 + # pkg:gem/benchmark#lib/benchmark.rb:562 def to_h; end # Same as #format. # - # source://benchmark//lib/benchmark.rb#531 + # pkg:gem/benchmark#lib/benchmark.rb:545 def to_s; end # Total time, that is +utime+ + +stime+ + +cutime+ + +cstime+ # - # source://benchmark//lib/benchmark.rb#431 + # pkg:gem/benchmark#lib/benchmark.rb:445 def total; end # User CPU time # - # source://benchmark//lib/benchmark.rb#416 + # pkg:gem/benchmark#lib/benchmark.rb:430 def utime; end protected @@ -610,9 +487,9 @@ class Benchmark::Tms # +op+ can be a mathematical operation such as +, -, # *, / # - # source://benchmark//lib/benchmark.rb#569 + # pkg:gem/benchmark#lib/benchmark.rb:583 def memberwise(op, x); end end -# source://benchmark//lib/benchmark.rb#124 +# pkg:gem/benchmark#lib/benchmark.rb:125 Benchmark::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/bigdecimal@3.1.9.rbi b/sorbet/rbi/gems/bigdecimal@3.1.9.rbi deleted file mode 100644 index c275b2f7..00000000 --- a/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +++ /dev/null @@ -1,78 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `bigdecimal` gem. -# Please instead update this file by running `bin/tapioca gem bigdecimal`. - - -# source://bigdecimal//lib/bigdecimal/util.rb#78 -class BigDecimal < ::Numeric - # call-seq: - # a.to_d -> bigdecimal - # - # Returns self. - # - # require 'bigdecimal/util' - # - # d = BigDecimal("3.14") - # d.to_d # => 0.314e1 - # - # source://bigdecimal//lib/bigdecimal/util.rb#110 - def to_d; end - - # call-seq: - # a.to_digits -> string - # - # Converts a BigDecimal to a String of the form "nnnnnn.mmm". - # This method is deprecated; use BigDecimal#to_s("F") instead. - # - # require 'bigdecimal/util' - # - # d = BigDecimal("3.14") - # d.to_digits # => "3.14" - # - # source://bigdecimal//lib/bigdecimal/util.rb#90 - def to_digits; end -end - -BigDecimal::VERSION = T.let(T.unsafe(nil), String) - -# source://bigdecimal//lib/bigdecimal/util.rb#138 -class Complex < ::Numeric - # call-seq: - # cmp.to_d -> bigdecimal - # cmp.to_d(precision) -> bigdecimal - # - # Returns the value as a BigDecimal. - # - # The +precision+ parameter is required for a rational complex number. - # This parameter is used to determine the number of significant digits - # for the result. - # - # require 'bigdecimal' - # require 'bigdecimal/util' - # - # Complex(0.1234567, 0).to_d(4) # => 0.1235e0 - # Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1 - # - # See also Kernel.BigDecimal. - # - # source://bigdecimal//lib/bigdecimal/util.rb#157 - def to_d(*args); end -end - -# source://bigdecimal//lib/bigdecimal/util.rb#171 -class NilClass - # call-seq: - # nil.to_d -> bigdecimal - # - # Returns nil represented as a BigDecimal. - # - # require 'bigdecimal' - # require 'bigdecimal/util' - # - # nil.to_d # => 0.0 - # - # source://bigdecimal//lib/bigdecimal/util.rb#182 - def to_d; end -end diff --git a/sorbet/rbi/gems/bigdecimal@4.1.3.rbi b/sorbet/rbi/gems/bigdecimal@4.1.3.rbi new file mode 100644 index 00000000..f4111c55 --- /dev/null +++ b/sorbet/rbi/gems/bigdecimal@4.1.3.rbi @@ -0,0 +1,478 @@ +# typed: false + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `bigdecimal` gem. +# Please instead update this file by running `bin/tapioca gem bigdecimal`. + + +# pkg:gem/bigdecimal#lib/bigdecimal.rb:10 +class BigDecimal < ::Numeric + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def %(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def *(_arg0); end + + # call-seq: + # self ** other -> bigdecimal + # + # Returns the \BigDecimal value of +self+ raised to power +other+: + # + # b = BigDecimal('3.14') + # b ** 2 # => 0.98596e1 + # b ** 2.0 # => 0.98596e1 + # b ** Rational(2, 1) # => 0.98596e1 + # + # Related: BigDecimal#power. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:127 + def **(y); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def +(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def +@; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def -(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def -@; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def /(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def <(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def <=(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def <=>(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def ==(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def ===(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def >(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def >=(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def _decimal_shift(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def _dump(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def abs; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def add(_arg0, _arg1); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def ceil(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def clone; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def coerce(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def div(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def divmod(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def dup; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def eql?(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def exponent; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def finite?; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def fix; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def floor(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def frac; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def hash; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def infinite?; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def inspect; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def modulo(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def mult(_arg0, _arg1); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def n_significant_digits; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def nan?; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def nonzero?; end + + # call-seq: + # power(n) + # power(n, prec) + # + # Returns the value raised to the power of n. + # + # Also available as the operator **. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:147 + def power(y, prec = T.unsafe(nil)); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def precision; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def precision_scale; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def quo(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def remainder(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def round(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def scale; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def sign; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def split; end + + # Returns the square root of the value. + # + # Result has at least prec significant digits. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:262 + def sqrt(prec); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def sub(_arg0, _arg1); end + + # call-seq: + # a.to_d -> bigdecimal + # + # Returns self. + # + # require 'bigdecimal/util' + # + # d = BigDecimal("3.14") + # d.to_d # => 0.314e1 + # + # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:110 + def to_d; end + + # call-seq: + # a.to_digits -> string + # + # Converts a BigDecimal to a String of the form "nnnnnn.mmm". + # This method is deprecated; use BigDecimal#to_s("F") instead. + # + # require 'bigdecimal/util' + # + # d = BigDecimal("3.14") + # d.to_digits # => "3.14" + # + # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:90 + def to_digits; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def to_f; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def to_i; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def to_int; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def to_r; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def to_s(format = T.unsafe(nil)); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def truncate(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def zero?; end + + class << self + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def _load(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def double_fig; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def interpret_loosely(_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def limit(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def mode(*_arg0); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def save_exception_mode; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def save_limit; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 + def save_rounding_mode; end + end +end + +# pkg:gem/bigdecimal#lib/bigdecimal.rb:14 +module BigDecimal::Internal + class << self + # Coerce x to BigDecimal with the specified precision. + # TODO: some methods (example: BigMath.exp) require more precision than specified to coerce. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:21 + def coerce_to_bigdecimal(x, prec, method_name); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:33 + def coerce_validate_prec(prec, method_name, accept_zero: T.unsafe(nil)); end + + # Calculates Math.log(x.to_f) considering large or small exponent + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:87 + def float_log(x); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:53 + def infinity_computation_result; end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:67 + def nan_computation_result; end + + # Iteration for Newton's method with increasing precision + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:75 + def newton_loop(prec, initial_precision: T.unsafe(nil), safe_margin: T.unsafe(nil)); end + + # Calculating Taylor series sum using binary splitting method + # Calculates f(x) = (x/d0)*(1+(x/d1)*(1+(x/d2)*(1+(x/d3)*(1+...)))) + # x.n_significant_digits or ds.size must be small to be performant. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:94 + def taylor_sum_binary_splitting(x, ds, prec); end + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:60 + def underflow_computation_result; end + end +end + +# Default extra precision for intermediate calculations +# This value is currently the same as BigDecimal.double_fig, but defined separately for future changes. +# +# pkg:gem/bigdecimal#lib/bigdecimal.rb:17 +BigDecimal::Internal::EXTRA_PREC = T.let(T.unsafe(nil), Integer) + +BigDecimal::VERSION = T.let(T.unsafe(nil), String) + +# Core BigMath methods for BigDecimal (log, exp) are defined here. +# Other methods (sin, cos, atan) are defined in 'bigdecimal/math.rb'. +# +# -- +# Contents: +# sqrt(x, prec) +# cbrt(x, prec) +# hypot(x, y, prec) +# sin (x, prec) +# cos (x, prec) +# tan (x, prec) +# asin(x, prec) +# acos(x, prec) +# atan(x, prec) +# atan2(y, x, prec) +# sinh (x, prec) +# cosh (x, prec) +# tanh (x, prec) +# asinh(x, prec) +# acosh(x, prec) +# atanh(x, prec) +# log2 (x, prec) +# log10(x, prec) +# log1p(x, prec) +# expm1(x, prec) +# erf (x, prec) +# erfc(x, prec) +# gamma(x, prec) +# lgamma(x, prec) +# frexp(x) +# ldexp(x, exponent) +# PI (prec) +# E (prec) == exp(1.0,prec) +# +# where: +# x, y ... BigDecimal number to be computed. +# prec ... Number of digits to be obtained. +# ++ +# +# Provides mathematical functions. +# +# Example: +# +# require "bigdecimal/math" +# +# include BigMath +# +# a = BigDecimal((PI(49)/2).to_s) +# puts sin(a,100) # => 0.9999999999...9999999986e0 +# +# pkg:gem/bigdecimal#lib/bigdecimal.rb:288 +module BigMath + private + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:336 + def _exp_binary_splitting(x, prec); end + + # call-seq: + # BigMath.exp(decimal, numeric) -> BigDecimal + # + # Computes the value of e (the base of natural logarithms) raised to the + # power of +decimal+, to the specified number of digits of precision. + # + # If +decimal+ is infinity, returns Infinity. + # + # If +decimal+ is NaN, returns NaN. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:356 + def exp(x, prec); end + + # call-seq: + # BigMath.log(decimal, numeric) -> BigDecimal + # + # Computes the natural logarithm of +decimal+ to the specified number of + # digits of precision, +numeric+. + # + # If +decimal+ is zero or negative, raises Math::DomainError. + # + # If +decimal+ is positive infinity, returns Infinity. + # + # If +decimal+ is NaN, returns NaN. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:303 + def log(x, prec); end + + class << self + # call-seq: + # BigMath.exp(decimal, numeric) -> BigDecimal + # + # Computes the value of e (the base of natural logarithms) raised to the + # power of +decimal+, to the specified number of digits of precision. + # + # If +decimal+ is infinity, returns Infinity. + # + # If +decimal+ is NaN, returns NaN. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:356 + def exp(x, prec); end + + # call-seq: + # BigMath.log(decimal, numeric) -> BigDecimal + # + # Computes the natural logarithm of +decimal+ to the specified number of + # digits of precision, +numeric+. + # + # If +decimal+ is zero or negative, raises Math::DomainError. + # + # If +decimal+ is positive infinity, returns Infinity. + # + # If +decimal+ is NaN, returns NaN. + # + # pkg:gem/bigdecimal#lib/bigdecimal.rb:303 + def log(x, prec); end + + private + + # pkg:gem/bigdecimal#lib/bigdecimal.rb:336 + def _exp_binary_splitting(x, prec); end + end +end + +# pkg:gem/bigdecimal#lib/bigdecimal/util.rb:141 +class Complex < ::Numeric + # call-seq: + # cmp.to_d -> bigdecimal + # cmp.to_d(precision) -> bigdecimal + # + # Returns the value as a BigDecimal. + # If the imaginary part is not +0+, an error is raised + # + # The +precision+ parameter is used to determine the number of + # significant digits for the result. When +precision+ is set to +0+, + # the number of digits to represent the float being converted is determined + # automatically. + # The default +precision+ is +0+. + # + # require 'bigdecimal' + # require 'bigdecimal/util' + # + # Complex(0.1234567, 0).to_d(4) # => 0.1235e0 + # Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1 + # Complex(1, 1).to_d # raises ArgumentError + # + # See also Kernel.BigDecimal. + # + # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:164 + def to_d(precision = T.unsafe(nil)); end +end + +# pkg:gem/bigdecimal#lib/bigdecimal/util.rb:116 +class Rational < ::Numeric + # call-seq: + # rat.to_d(precision) -> bigdecimal + # + # Returns the value as a BigDecimal. + # + # The +precision+ parameter is used to determine the number of + # significant digits for the result. When +precision+ is set to +0+, + # the number of digits to represent the float being converted is determined + # automatically. + # The default +precision+ is +0+. + # + # require 'bigdecimal' + # require 'bigdecimal/util' + # + # Rational(22, 7).to_d(3) # => 0.314e1 + # + # See also Kernel.BigDecimal. + # + # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:135 + def to_d(precision = T.unsafe(nil)); end +end diff --git a/sorbet/rbi/gems/bugsnag@6.27.1.rbi b/sorbet/rbi/gems/bugsnag@6.30.0.rbi similarity index 61% rename from sorbet/rbi/gems/bugsnag@6.27.1.rbi rename to sorbet/rbi/gems/bugsnag@6.30.0.rbi index 95ee34d2..04d58be6 100644 --- a/sorbet/rbi/gems/bugsnag@6.27.1.rbi +++ b/sorbet/rbi/gems/bugsnag@6.30.0.rbi @@ -5,18 +5,28 @@ # Please instead update this file by running `bin/tapioca gem bugsnag`. -# source://bugsnag//lib/bugsnag/version.rb#1 +# pkg:gem/bugsnag#lib/bugsnag/version.rb:1 module Bugsnag extend ::Bugsnag::Utility::FeatureDataStore class << self # Add values to metadata # - # @overload add_metadata - # @overload add_metadata + # @overload add_metadata(section, data) + # Merges data into the given section of metadata + # @param section [String, Symbol] + # @param data [Hash] + # + # @overload add_metadata(section, key, value) + # Sets key to value in the given section of metadata. If the value is nil + # the key will be deleted + # @param section [String, Symbol] + # @param key [String, Symbol] + # @param value + # # @return [void] # - # source://bugsnag//lib/bugsnag.rb#421 + # pkg:gem/bugsnag#lib/bugsnag.rb:423 def add_metadata(section, key_or_data, *args); end # Add the given callback to the list of on_breadcrumb callbacks @@ -30,7 +40,7 @@ module Bugsnag # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag.rb#357 + # pkg:gem/bugsnag#lib/bugsnag.rb:359 def add_on_breadcrumb(callback); end # Add the given callback to the list of on_error callbacks @@ -44,7 +54,7 @@ module Bugsnag # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag.rb#330 + # pkg:gem/bugsnag#lib/bugsnag.rb:332 def add_on_error(callback); end # Checks if an at_exit handler has been added. @@ -54,7 +64,7 @@ module Bugsnag # # @return [Boolean] # - # source://bugsnag//lib/bugsnag.rb#176 + # pkg:gem/bugsnag#lib/bugsnag.rb:178 def at_exit_handler_installed?; end # Allow access to "before notify" callbacks as an array. @@ -63,7 +73,7 @@ module Bugsnag # # @deprecated Use {Bugsnag#add_on_error} instead # - # source://bugsnag//lib/bugsnag.rb#235 + # pkg:gem/bugsnag#lib/bugsnag.rb:237 def before_notify_callbacks; end # Returns the current list of breadcrumbs @@ -73,51 +83,59 @@ module Bugsnag # # @return [Bugsnag::Utility::CircularBuffer] # - # source://bugsnag//lib/bugsnag.rb#380 + # pkg:gem/bugsnag#lib/bugsnag.rb:382 def breadcrumbs; end # Returns the client's Cleaner object, or creates one if not yet created. # # @api private + # # @return [Cleaner] # - # source://bugsnag//lib/bugsnag.rb#390 + # pkg:gem/bugsnag#lib/bugsnag.rb:392 def cleaner; end # Clear values from metadata # - # @overload clear_metadata - # @overload clear_metadata + # @overload clear_metadata(section) + # Clears the given section of metadata + # @param section [String, Symbol] + # + # @overload clear_metadata(section, key) + # Clears the key in the given section of metadata + # @param section [String, Symbol] + # @param key [String, Symbol] + # # @return [void] # - # source://bugsnag//lib/bugsnag.rb#438 + # pkg:gem/bugsnag#lib/bugsnag.rb:440 def clear_metadata(section, *args); end # Returns the client's Configuration object, or creates one if not yet created. # # @return [Configuration] # - # source://bugsnag//lib/bugsnag.rb#184 + # pkg:gem/bugsnag#lib/bugsnag.rb:186 def configuration; end # Configure the Bugsnag notifier application-wide settings. # # Yields a {Configuration} object to use to set application settings. # - # @return [void] # @yieldparam configuration [Configuration] + # @return [void] # - # source://bugsnag//lib/bugsnag.rb#54 + # pkg:gem/bugsnag#lib/bugsnag.rb:54 def configure(validate_api_key = T.unsafe(nil)); end # Expose the feature flag delegate internally for use when creating new Events # # The Bugsnag module's feature_flag_delegate is request-specific # - # @api private # @return [Bugsnag::Utility::FeatureFlagDelegate] + # @api private # - # source://bugsnag//lib/bugsnag.rb#448 + # pkg:gem/bugsnag#lib/bugsnag.rb:450 def feature_flag_delegate; end # Leave a breadcrumb to be attached to subsequent reports @@ -128,7 +146,7 @@ module Bugsnag # @param auto [Symbol] set to :auto if the breadcrumb is automatically created # @return [void] # - # source://bugsnag//lib/bugsnag.rb#275 + # pkg:gem/bugsnag#lib/bugsnag.rb:277 def leave_breadcrumb(name, meta_data = T.unsafe(nil), type = T.unsafe(nil), auto = T.unsafe(nil)); end # Load a specific integration. @@ -136,28 +154,28 @@ module Bugsnag # @param integration [Symbol] One of the integrations in {INTEGRATIONS} # @return [void] # - # source://bugsnag//lib/bugsnag.rb#258 + # pkg:gem/bugsnag#lib/bugsnag.rb:260 def load_integration(integration); end # Attempts to load all integrations through auto-discovery. # # @return [void] # - # source://bugsnag//lib/bugsnag.rb#243 + # pkg:gem/bugsnag#lib/bugsnag.rb:245 def load_integrations; end # Global metadata added to every event # # @return [Hash] # - # source://bugsnag//lib/bugsnag.rb#401 + # pkg:gem/bugsnag#lib/bugsnag.rb:403 def metadata; end # Explicitly notify of an exception. # # Optionally accepts a block to append metadata to the yielded report. # - # source://bugsnag//lib/bugsnag.rb#73 + # pkg:gem/bugsnag#lib/bugsnag.rb:75 def notify(exception, auto_notify = T.unsafe(nil), &block); end # Add the given block to the list of on_error callbacks @@ -170,23 +188,24 @@ module Bugsnag # # @return [void] # - # source://bugsnag//lib/bugsnag.rb#315 + # pkg:gem/bugsnag#lib/bugsnag.rb:317 def on_error(&block); end # Stop any events being attributed to the current session until it is # resumed or a new session is started # - # @return [void] # @see resume_session # - # source://bugsnag//lib/bugsnag.rb#214 + # @return [void] + # + # pkg:gem/bugsnag#lib/bugsnag.rb:216 def pause_session; end # Registers an at_exit function to automatically catch errors on exit. # # @return [void] # - # source://bugsnag//lib/bugsnag.rb#152 + # pkg:gem/bugsnag#lib/bugsnag.rb:154 def register_at_exit; end # Remove the given callback from the list of on_breadcrumb callbacks @@ -197,7 +216,7 @@ module Bugsnag # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag.rb#369 + # pkg:gem/bugsnag#lib/bugsnag.rb:371 def remove_on_breadcrumb(callback); end # Remove the given callback from the list of on_error callbacks @@ -208,23 +227,24 @@ module Bugsnag # @param callback [Proc] # @return [void] # - # source://bugsnag//lib/bugsnag.rb#342 + # pkg:gem/bugsnag#lib/bugsnag.rb:344 def remove_on_error(callback); end # Resume the current session if it was previously paused. If there is no # current session, a new session will be started # - # @return [Boolean] true if a paused session was resumed # @see pause_session # - # source://bugsnag//lib/bugsnag.rb#225 + # @return [Boolean] true if a paused session was resumed + # + # pkg:gem/bugsnag#lib/bugsnag.rb:227 def resume_session; end # Returns the client's SessionTracker object, or creates one if not yet created. # # @return [SessionTracker] # - # source://bugsnag//lib/bugsnag.rb#193 + # pkg:gem/bugsnag#lib/bugsnag.rb:195 def session_tracker; end # Starts a new session, which allows Bugsnag to track error rates across @@ -232,12 +252,12 @@ module Bugsnag # # @return [void] # - # source://bugsnag//lib/bugsnag.rb#203 + # pkg:gem/bugsnag#lib/bugsnag.rb:205 def start_session; end private - # source://bugsnag//lib/bugsnag.rb#462 + # pkg:gem/bugsnag#lib/bugsnag.rb:464 def abort_reason(exception, auto_notify); end # Verifies the current endpoint setup @@ -245,12 +265,12 @@ module Bugsnag # If only a notify_endpoint has been set, session tracking will be disabled # If only a session_endpoint has been set, and ArgumentError will be raised # - # source://bugsnag//lib/bugsnag.rb#524 + # pkg:gem/bugsnag#lib/bugsnag.rb:526 def check_endpoint_setup; end # Check if the API key is valid and warn (once) if it is not # - # source://bugsnag//lib/bugsnag.rb#511 + # pkg:gem/bugsnag#lib/bugsnag.rb:513 def check_key_valid; end # Deliver the notification to Bugsnag @@ -258,7 +278,7 @@ module Bugsnag # @param report [Report] # @return void # - # source://bugsnag//lib/bugsnag.rb#479 + # pkg:gem/bugsnag#lib/bugsnag.rb:481 def deliver_notification(report); end # Convert the Report object to JSON @@ -269,12 +289,10 @@ module Bugsnag # @param report [Report] # @return [String] # - # source://bugsnag//lib/bugsnag.rb#543 + # pkg:gem/bugsnag#lib/bugsnag.rb:549 def report_to_json(report); end - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag.rb#454 + # pkg:gem/bugsnag#lib/bugsnag.rb:456 def should_deliver_notification?(exception, auto_notify); end # When running a script with 'bundle exec', uncaught exceptions will be @@ -287,67 +305,67 @@ module Bugsnag # @param exception [Exception] # @return [Exception] # - # source://bugsnag//lib/bugsnag.rb#560 + # pkg:gem/bugsnag#lib/bugsnag.rb:566 def unwrap_bundler_exception(exception); end end end -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:4 module Bugsnag::BreadcrumbType; end -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:5 Bugsnag::BreadcrumbType::ERROR = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:6 Bugsnag::BreadcrumbType::LOG = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#7 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:7 Bugsnag::BreadcrumbType::MANUAL = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#8 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:8 Bugsnag::BreadcrumbType::NAVIGATION = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#9 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:9 Bugsnag::BreadcrumbType::PROCESS = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#10 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:10 Bugsnag::BreadcrumbType::REQUEST = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#11 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:11 Bugsnag::BreadcrumbType::STATE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumb_type.rb#12 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumb_type.rb:12 Bugsnag::BreadcrumbType::USER = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb#1 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb:1 module Bugsnag::Breadcrumbs; end -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:2 class Bugsnag::Breadcrumbs::Breadcrumb # Creates a breadcrumb # # This will not have been validated, which must occur before this is attached to a report # # @api private + # # @param name [String] the breadcrumb name # @param type [String] the breadcrumb type from Bugsnag::BreadcrumbType # @param meta_data [Hash, nil] a hash containing strings, numbers, or booleans, or nil # @param auto [Symbol] set to `:auto` if the breadcrumb is automatically generated - # @return [Breadcrumb] a new instance of Breadcrumb # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#31 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:31 def initialize(name, type, meta_data, auto); end # @return [Boolean] set to `true` if the breadcrumb was automatically generated # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#15 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:15 def auto; end # Flags the breadcrumb to be ignored # # Ignored breadcrumbs will not be attached to a report # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#48 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:48 def ignore!; end # Checks if the `ignore!` method has been called @@ -357,62 +375,62 @@ class Bugsnag::Breadcrumbs::Breadcrumb # @return [True] if `ignore!` has been called # @return [nil] if `ignore` has not been called # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#59 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:59 def ignore?; end # The breadcrumb message - # + # @!attribute message # @return [String] # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#86 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:86 def message; end # @param message [String] # @return [void] # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#92 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:92 def message=(message); end # @deprecated Use {#metadata} instead # @return [Hash, nil] metadata hash containing strings, numbers, or booleans, or nil # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#12 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:12 def meta_data; end # @deprecated Use {#metadata} instead # @return [Hash, nil] metadata hash containing strings, numbers, or booleans, or nil # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#12 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:12 def meta_data=(_arg0); end # A Hash containing arbitrary metadata associated with this breadcrumb - # + # @!attribute metadata # @return [Hash, nil] # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#99 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:99 def metadata; end # @param metadata [Hash, nil] # @return [void] # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#105 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:105 def metadata=(metadata); end # @deprecated Use {#message} instead # @return [String] the breadcrumb name # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:5 def name; end # @deprecated Use {#message} instead # @return [String] the breadcrumb name # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:5 def name=(_arg0); end # @return [Time] a Time object referring to breadcrumb creation time # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#18 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:18 def timestamp; end # Outputs the breadcrumb data in a formatted hash @@ -421,138 +439,123 @@ class Bugsnag::Breadcrumbs::Breadcrumb # # @return [Hash] Hash representation of the breadcrumb # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#69 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:69 def to_h; end # @return [String] the breadcrumb type # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#8 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:8 def type; end # @return [String] the breadcrumb type # - # source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumb.rb#8 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumb.rb:8 def type=(_arg0); end end -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:4 Bugsnag::Breadcrumbs::ERROR_BREADCRUMB_TYPE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#9 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:9 Bugsnag::Breadcrumbs::LOG_BREADCRUMB_TYPE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:5 Bugsnag::Breadcrumbs::MANUAL_BREADCRUMB_TYPE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:6 Bugsnag::Breadcrumbs::NAVIGATION_BREADCRUMB_TYPE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb:2 class Bugsnag::Breadcrumbs::OnBreadcrumbCallbackList - # @return [OnBreadcrumbCallbackList] a new instance of OnBreadcrumbCallbackList - # - # source://bugsnag//lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb#3 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb:3 def initialize(configuration); end # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb#12 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb:12 def add(callback); end # @param breadcrumb [Breadcrumb] # @return [void] # - # source://bugsnag//lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb#30 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb:30 def call(breadcrumb); end # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb#21 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb:21 def remove(callback); end end -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#8 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:8 Bugsnag::Breadcrumbs::PROCESS_BREADCRUMB_TYPE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#7 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:7 Bugsnag::Breadcrumbs::REQUEST_BREADCRUMB_TYPE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#11 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:11 Bugsnag::Breadcrumbs::STATE_BREADCRUMB_TYPE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#10 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:10 Bugsnag::Breadcrumbs::USER_BREADCRUMB_TYPE = T.let(T.unsafe(nil), String) # @deprecated Use {Bugsnag::BreadcrumbType} instead # -# source://bugsnag//lib/bugsnag/breadcrumbs/breadcrumbs.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/breadcrumbs.rb:3 Bugsnag::Breadcrumbs::VALID_BREADCRUMB_TYPES = T.let(T.unsafe(nil), Array) # Validates a given breadcrumb before it is stored # -# source://bugsnag//lib/bugsnag/breadcrumbs/validator.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/validator.rb:4 class Bugsnag::Breadcrumbs::Validator # @param configuration [Bugsnag::Configuration] The current configuration - # @return [Validator] a new instance of Validator # - # source://bugsnag//lib/bugsnag/breadcrumbs/validator.rb#7 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/validator.rb:7 def initialize(configuration); end # Validates a given breadcrumb. # # @param breadcrumb [Bugsnag::Breadcrumbs::Breadcrumb] the breadcrumb to be validated # - # source://bugsnag//lib/bugsnag/breadcrumbs/validator.rb#15 + # pkg:gem/bugsnag#lib/bugsnag/breadcrumbs/validator.rb:15 def validate(breadcrumb); end end # @api private # -# source://bugsnag//lib/bugsnag/cleaner.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:3 class Bugsnag::Cleaner - # @api private # @param configuration [Configuration] - # @return [Cleaner] a new instance of Cleaner # - # source://bugsnag//lib/bugsnag/cleaner.rb#12 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:12 def initialize(configuration); end - # @api private - # - # source://bugsnag//lib/bugsnag/cleaner.rb#16 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:16 def clean_object(object); end - # @api private # @param url [String] # @return [String] # - # source://bugsnag//lib/bugsnag/cleaner.rb#25 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:25 def clean_url(url); end - # @api private # @param key [String, #to_s] # @return [Boolean] # - # source://bugsnag//lib/bugsnag/cleaner.rb#49 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:49 def filters_match?(key); end private - # @api private - # - # source://bugsnag//lib/bugsnag/cleaner.rb#205 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:205 def clean_generic_url(original_url, uri); end - # @api private - # - # source://bugsnag//lib/bugsnag/cleaner.rb#214 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:214 def clean_mailto_url(original_url, uri); end - # @api private - # - # source://bugsnag//lib/bugsnag/cleaner.rb#91 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:91 def clean_string(str); end # This method calculates whether we need to filter deeply or not; i.e. whether @@ -561,147 +564,129 @@ class Bugsnag::Cleaner # This is cached on the instance variable '@deep_filters' for performance # reasons # - # @api private # @return [Boolean] # - # source://bugsnag//lib/bugsnag/cleaner.rb#83 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:83 def deep_filters?; end - # @api private - # - # source://bugsnag//lib/bugsnag/cleaner.rb#223 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:223 def filter_uri_parameter_array(parameters, replacement = T.unsafe(nil)); end # If someone has a Rails filter like /^stuff\.secret/, it won't match # "request.params.stuff.secret", so we try it both with and without the # "request.params." bit. # - # @api private # @param key [String, #to_s] # @param scope [String] # @return [Boolean] # - # source://bugsnag//lib/bugsnag/cleaner.rb#177 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:177 def filters_match_deeply?(key, scope); end # Should the given scope be filtered? # - # @api private # @param scope [String] # @return [Boolean] # - # source://bugsnag//lib/bugsnag/cleaner.rb#199 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:199 def scope_should_be_filtered?(scope); end - # @api private - # - # source://bugsnag//lib/bugsnag/cleaner.rb#105 + # pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:105 def traverse_object(obj, seen, scope); end end -# @api private -# -# source://bugsnag//lib/bugsnag/cleaner.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:4 Bugsnag::Cleaner::FILTERED = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/cleaner.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:6 Bugsnag::Cleaner::OBJECT = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/cleaner.rb#8 +# pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:8 Bugsnag::Cleaner::OBJECT_WITH_ID_AND_CLASS = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/cleaner.rb#7 +# pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:7 Bugsnag::Cleaner::RAISED = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/cleaner.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/cleaner.rb:5 Bugsnag::Cleaner::RECURSION = T.let(T.unsafe(nil), String) # @api private # -# source://bugsnag//lib/bugsnag/code_extractor.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/code_extractor.rb:3 class Bugsnag::CodeExtractor - # @api private # @param configuration [Configuration] - # @return [CodeExtractor] a new instance of CodeExtractor # - # source://bugsnag//lib/bugsnag/code_extractor.rb#8 + # pkg:gem/bugsnag#lib/bugsnag/code_extractor.rb:8 def initialize(configuration); end # Add a file and its corresponding trace hash to be processed. # - # @api private # @param path [String] The full path to the file # @param trace [Hash] # @return [void] # - # source://bugsnag//lib/bugsnag/code_extractor.rb#19 + # pkg:gem/bugsnag#lib/bugsnag/code_extractor.rb:19 def add_file(path, trace); end # Add the code to the hashes that were given in {#add_file} by modifying # them in-place. They will have a new ':code' key containing a hash of line # number => string of code for that line # - # @api private # @return [void] # - # source://bugsnag//lib/bugsnag/code_extractor.rb#46 + # pkg:gem/bugsnag#lib/bugsnag/code_extractor.rb:46 def extract!; end private - # @api private # @param code [Hash{Integer => String}] # @param traces [Array] # @return [void] # - # source://bugsnag//lib/bugsnag/code_extractor.rb#100 + # pkg:gem/bugsnag#lib/bugsnag/code_extractor.rb:100 def associate_code_with_trace(code, traces); end - # @api private # @param path [String] # @param traces [Array] # @param line_numbers [Set] # @return [void] # - # source://bugsnag//lib/bugsnag/code_extractor.rb#78 + # pkg:gem/bugsnag#lib/bugsnag/code_extractor.rb:78 def extract_from(path, traces, line_numbers); end - # @api private # @param code [Hash{Integer => String}] # @param line_number [Integer] # @return [void] # - # source://bugsnag//lib/bugsnag/code_extractor.rb#124 + # pkg:gem/bugsnag#lib/bugsnag/code_extractor.rb:124 def trim_excess_lines(code, line_number); end end -# @api private -# -# source://bugsnag//lib/bugsnag/code_extractor.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/code_extractor.rb:4 Bugsnag::CodeExtractor::MAXIMUM_LINES_TO_KEEP = T.let(T.unsafe(nil), Integer) -# source://bugsnag//lib/bugsnag/configuration.rb#28 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:28 class Bugsnag::Configuration - # @return [Configuration] a new instance of Configuration - # - # source://bugsnag//lib/bugsnag/configuration.rb#224 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:226 def initialize; end # Add values to metadata # - # @overload add_metadata - # @overload add_metadata + # @overload add_metadata(section, data) + # Merges data into the given section of metadata + # @param section [String, Symbol] + # @param data [Hash] + # + # @overload add_metadata(section, key, value) + # Sets key to value in the given section of metadata. If the value is nil + # the key will be deleted + # @param section [String, Symbol] + # @param key [String, Symbol] + # @param value + # # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#664 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:679 def add_metadata(section, key_or_data, *args); end # Add the given callback to the list of on_breadcrumb callbacks @@ -715,7 +700,7 @@ class Bugsnag::Configuration # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#632 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:647 def add_on_breadcrumb(callback); end # Add the given callback to the list of on_error callbacks @@ -729,21 +714,19 @@ class Bugsnag::Configuration # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#605 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:620 def add_on_error(callback); end # Your Integration API Key - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#31 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:31 def api_key; end # Your Integration API Key - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#31 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:31 def api_key=(_arg0); end # Get the type of application executing the current code @@ -754,7 +737,7 @@ class Bugsnag::Configuration # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#343 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:345 def app_type; end # Set the type of application executing the current code @@ -765,78 +748,70 @@ class Bugsnag::Configuration # @param app_type [String] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#355 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:357 def app_type=(app_type); end # The current version of your application - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#63 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:63 def app_version; end # The current version of your application - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#63 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:63 def app_version=(_arg0); end # Whether Bugsnag should automatically record sessions - # # @deprecated Use {#auto_track_sessions} instead # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#132 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:132 def auto_capture_sessions; end # Whether Bugsnag should automatically record sessions - # # @deprecated Use {#auto_track_sessions} instead # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#132 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:132 def auto_capture_sessions=(_arg0); end # Whether notifications should automatically be sent - # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#44 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:44 def auto_notify; end # Whether notifications should automatically be sent - # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#44 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:44 def auto_notify=(_arg0); end # Whether sessions should be tracked automatically - # + # @!attribute auto_track_sessions # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#736 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:751 def auto_track_sessions; end # @param track_sessions [Boolean] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#742 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:757 def auto_track_sessions=(track_sessions); end # Callables to be run before a breadcrumb is logged - # # @return [Array<#call>] # - # source://bugsnag//lib/bugsnag/configuration.rb#160 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:160 def before_breadcrumb_callbacks; end # Callables to be run before a breadcrumb is logged - # # @return [Array<#call>] # - # source://bugsnag//lib/bugsnag/configuration.rb#160 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:160 def before_breadcrumb_callbacks=(_arg0); end # Returns the current list of breadcrumbs @@ -846,49 +821,54 @@ class Bugsnag::Configuration # # @return [Bugsnag::Utility::CircularBuffer] # - # source://bugsnag//lib/bugsnag/configuration.rb#498 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:500 def breadcrumbs; end # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#47 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:47 def ca_file; end # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#47 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:47 def ca_file=(_arg0); end # Clear values from metadata # - # @overload clear_metadata - # @overload clear_metadata + # @overload clear_metadata(section) + # Clears the given section of metadata + # @param section [String, Symbol] + # + # @overload clear_metadata(section, key) + # Clears the key in the given section of metadata + # @param section [String, Symbol] + # @param key [String, Symbol] + # # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#683 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:698 def clear_metadata(section, *args); end # Clears the array of data attached to every error notification. # # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#432 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:434 def clear_request_data; end # The default context for all future events # Setting this will disable automatic context setting - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#182 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:182 def context; end # The default context for all future events # Setting this will disable automatic context setting - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#182 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:182 def context=(_arg0); end # Has the context been explicitly set? @@ -899,24 +879,25 @@ class Bugsnag::Configuration # @api private # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#697 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:712 def context_set?; end # Logs a debug level message # # @param message [String, #to_s] The message to log # - # source://bugsnag//lib/bugsnag/configuration.rb#464 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:466 def debug(message); end # Used to set a new default delivery method that will be used if one is not # set with #delivery_method. # # @api private + # # @param delivery_method [Symbol] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#331 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:333 def default_delivery_method=(delivery_method); end # Gets the delivery_method that Bugsnag will use to communicate with the @@ -924,7 +905,7 @@ class Bugsnag::Configuration # # @return [Symbol] # - # source://bugsnag//lib/bugsnag/configuration.rb#307 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:309 def delivery_method; end # Sets the delivery_method that Bugsnag will use to communicate with the @@ -935,15 +916,16 @@ class Bugsnag::Configuration # @param delivery_method [Symbol] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#319 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:321 def delivery_method=(delivery_method); end # Get the detected app_type, which is used when one isn't set explicitly # # @api private + # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#365 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:367 def detected_app_type; end # Set the detected app_type, which is used when one isn't set explicitly @@ -952,192 +934,177 @@ class Bugsnag::Configuration # allowing the user to overwrite this if they wish # # @api private + # # @param app_type [String] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#379 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:381 def detected_app_type=(app_type); end # Disables session tracking and delivery. Cannot be undone # # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#575 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:590 def disable_sessions; end # Exception classes that will be discarded and not sent to Bugsnag - # # @return [Set] # - # source://bugsnag//lib/bugsnag/configuration.rb#127 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:127 def discard_classes; end # Exception classes that will be discarded and not sent to Bugsnag - # # @return [Set] # - # source://bugsnag//lib/bugsnag/configuration.rb#127 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:127 def discard_classes=(_arg0); end # Whether events will be delivered - # # @api private # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#145 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:145 def enable_events; end # Whether sessions will be delivered - # # @api private # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#150 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:150 def enable_sessions; end # A list of strings indicating allowable automatic breadcrumb types - # # @deprecated Use {#enabled_breadcrumb_types} instead - # @return [Array] # @see Bugsnag::BreadcrumbType + # @return [Array] # - # source://bugsnag//lib/bugsnag/configuration.rb#156 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:156 def enabled_automatic_breadcrumb_types; end # A list of strings indicating allowable automatic breadcrumb types - # # @deprecated Use {#enabled_breadcrumb_types} instead - # @return [Array] # @see Bugsnag::BreadcrumbType + # @return [Array] # - # source://bugsnag//lib/bugsnag/configuration.rb#156 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:156 def enabled_automatic_breadcrumb_types=(_arg0); end # A list of breadcrumb types that Bugsnag will collect automatically - # - # @return [Array] + # @!attribute enabled_breadcrumb_types # @see Bugsnag::BreadcrumbType + # @return [Array] # - # source://bugsnag//lib/bugsnag/configuration.rb#723 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:738 def enabled_breadcrumb_types; end # @param breadcrumb_types [Array] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#729 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:744 def enabled_breadcrumb_types=(breadcrumb_types); end # A list of which release stages should cause notifications to be sent - # + # @!attribute enabled_release_stages # @return [Array, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#709 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:724 def enabled_release_stages; end # @param release_stages [Array, nil] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#715 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:730 def enabled_release_stages=(release_stages); end - # The URL error notifications will be delivered to - # - # @deprecated Use {#endpoints} instead - # @return [String] - # - # source://bugsnag//lib/bugsnag/configuration.rb#506 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:512 def endpoint; end # Sets the notification endpoint # # @deprecated Use {#endpoints} instead + # # @param new_notify_endpoint [String] The URL to deliver error notifications to # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#518 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:520 def endpoint=(new_notify_endpoint); end # The URLs to send events and sessions to - # # @return [EndpointConfiguration] # - # source://bugsnag//lib/bugsnag/configuration.rb#140 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:140 def endpoints; end - # source://bugsnag//lib/bugsnag/configuration.rb#554 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:569 def endpoints=(endpoint_configuration); end # Logs an error level message # # @param message [String, #to_s] The message to log # - # source://bugsnag//lib/bugsnag/configuration.rb#456 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:458 def error(message); end # The name or descriptor of the Ruby server host - # # @return [String] # - # source://bugsnag//lib/bugsnag/configuration.rb#119 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:119 def hostname; end # The name or descriptor of the Ruby server host - # # @return [String] # - # source://bugsnag//lib/bugsnag/configuration.rb#119 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:119 def hostname=(_arg0); end # @deprecated Use {#discard_classes} instead # @return [Set] # - # source://bugsnag//lib/bugsnag/configuration.rb#136 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:136 def ignore_classes; end # @deprecated Use {#discard_classes} instead # @return [Set] # - # source://bugsnag//lib/bugsnag/configuration.rb#136 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:136 def ignore_classes=(_arg0); end # Logs an info level message # # @param message [String, #to_s] The message to log # - # source://bugsnag//lib/bugsnag/configuration.rb#440 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:442 def info(message); end # @api private # @return [MiddlewareStack] # - # source://bugsnag//lib/bugsnag/configuration.rb#91 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:91 def internal_middleware; end # @api private # @return [MiddlewareStack] # - # source://bugsnag//lib/bugsnag/configuration.rb#91 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:91 def internal_middleware=(_arg0); end # The logger to use for Bugsnag log messages - # # @return [Logger] # - # source://bugsnag//lib/bugsnag/configuration.rb#83 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:83 def logger; end # The logger to use for Bugsnag log messages - # # @return [Logger] # - # source://bugsnag//lib/bugsnag/configuration.rb#83 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:83 def logger=(_arg0); end # The maximum allowable amount of breadcrumbs per thread - # # @return [Integer] # - # source://bugsnag//lib/bugsnag/configuration.rb#164 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:164 def max_breadcrumbs; end # Sets the maximum allowable amount of breadcrumbs @@ -1145,78 +1112,70 @@ class Bugsnag::Configuration # @param new_max_breadcrumbs [Integer] the new maximum breadcrumb limit # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#486 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:488 def max_breadcrumbs=(new_max_breadcrumbs); end # A list of keys that should be filtered out from the report and breadcrumb # metadata before sending them to Bugsnag - # # @deprecated Use {#redacted_keys} instead # @return [Set] # - # source://bugsnag//lib/bugsnag/configuration.rb#69 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:69 def meta_data_filters; end # A list of keys that should be filtered out from the report and breadcrumb # metadata before sending them to Bugsnag - # # @deprecated Use {#redacted_keys} instead # @return [Set] # - # source://bugsnag//lib/bugsnag/configuration.rb#69 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:69 def meta_data_filters=(_arg0); end # Global metadata added to every event - # # @return [Hash] # - # source://bugsnag//lib/bugsnag/configuration.rb#186 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:186 def metadata; end # The middleware stack that will run on every notification - # # @return [MiddlewareStack] # - # source://bugsnag//lib/bugsnag/configuration.rb#87 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:87 def middleware; end # The middleware stack that will run on every notification - # # @return [MiddlewareStack] # - # source://bugsnag//lib/bugsnag/configuration.rb#87 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:87 def middleware=(_arg0); end # The URL error notifications will be delivered to - # - # @deprecated Use {#endpoints} instead + # @!attribute notify_endpoint # @return [String] + # @deprecated Use {#endpoints} instead # - # source://bugsnag//lib/bugsnag/configuration.rb#506 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:508 def notify_endpoint; end # A list of which release stages should cause notifications to be sent - # # @deprecated Use {#enabled_release_stages} instead # @return [Array, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#40 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:40 def notify_release_stages; end # A list of which release stages should cause notifications to be sent - # # @deprecated Use {#enabled_release_stages} instead # @return [Array, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#40 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:40 def notify_release_stages=(_arg0); end # Expose on_breadcrumb_callbacks internally for Bugsnag.leave_breadcrumb - # # @api private # @return [Breadcrumbs::OnBreadcrumbCallbackList] # - # source://bugsnag//lib/bugsnag/configuration.rb#195 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:195 def on_breadcrumb_callbacks; end # Add the given block to the list of on_error callbacks @@ -1229,7 +1188,7 @@ class Bugsnag::Configuration # # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#590 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:605 def on_error(&block); end # Parses and sets proxy from a uri @@ -1237,85 +1196,75 @@ class Bugsnag::Configuration # @param uri [String, #to_s] The URI to parse and extract proxy details from # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#473 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:475 def parse_proxy(uri); end # Any stacktrace lines that match this path will be marked as 'in project' - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#59 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:59 def project_root; end # Any stacktrace lines that match this path will be marked as 'in project' - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#59 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:59 def project_root=(_arg0); end # The host address of the HTTP proxy that should be used when making requests - # - # @return [String, nil] # @see parse_proxy + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#96 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:96 def proxy_host; end # The host address of the HTTP proxy that should be used when making requests - # - # @return [String, nil] # @see parse_proxy + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#96 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:96 def proxy_host=(_arg0); end # The password for the user that should be used when making requests via a HTTP proxy - # - # @return [String, nil] # @see parse_proxy + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#111 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:111 def proxy_password; end # The password for the user that should be used when making requests via a HTTP proxy - # - # @return [String, nil] # @see parse_proxy + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#111 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:111 def proxy_password=(_arg0); end # The port number of the HTTP proxy that should be used when making requests - # - # @return [Integer, nil] # @see parse_proxy + # @return [Integer, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#101 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:101 def proxy_port; end # The port number of the HTTP proxy that should be used when making requests - # - # @return [Integer, nil] # @see parse_proxy + # @return [Integer, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#101 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:101 def proxy_port=(_arg0); end # The user that should be used when making requests via a HTTP proxy - # - # @return [String, nil] # @see parse_proxy + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#106 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:106 def proxy_user; end # The user that should be used when making requests via a HTTP proxy - # - # @return [String, nil] # @see parse_proxy + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#106 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:106 def proxy_user=(_arg0); end # A set of keys that should be redacted from the report and breadcrumb @@ -1327,7 +1276,7 @@ class Bugsnag::Configuration # # @return [Set] # - # source://bugsnag//lib/bugsnag/configuration.rb#79 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:79 def redacted_keys; end # A set of keys that should be redacted from the report and breadcrumb @@ -1339,21 +1288,19 @@ class Bugsnag::Configuration # # @return [Set] # - # source://bugsnag//lib/bugsnag/configuration.rb#79 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:79 def redacted_keys=(_arg0); end # The current stage of the release process, e.g. 'development', production' - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#35 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:35 def release_stage; end # The current stage of the release process, e.g. 'development', production' - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/configuration.rb#35 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:35 def release_stage=(_arg0); end # Remove the given callback from the list of on_breadcrumb callbacks @@ -1364,7 +1311,7 @@ class Bugsnag::Configuration # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#644 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:659 def remove_on_breadcrumb(callback); end # Remove the given callback from the list of on_error callbacks @@ -1375,7 +1322,7 @@ class Bugsnag::Configuration # @param callback [Proc, Method, #call] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#617 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:632 def remove_on_error(callback); end # Returns the array of data that will be automatically attached to every @@ -1383,80 +1330,82 @@ class Bugsnag::Configuration # # @return [Hash] # - # source://bugsnag//lib/bugsnag/configuration.rb#405 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:407 def request_data; end # @api private # @return [Hash{String => String}] # - # source://bugsnag//lib/bugsnag/configuration.rb#123 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:123 def runtime_versions; end # @api private # @return [Hash{String => String}] # - # source://bugsnag//lib/bugsnag/configuration.rb#123 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:123 def runtime_versions=(_arg0); end # @api private # @return [Array] # - # source://bugsnag//lib/bugsnag/configuration.rb#190 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:190 def scopes_to_filter; end # Whether code snippets from the exception stacktrace should be sent with notifications - # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#55 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:55 def send_code; end # Whether code snippets from the exception stacktrace should be sent with notifications - # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#55 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:55 def send_code=(_arg0); end # Whether to automatically attach the Rack environment to notifications - # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#51 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:51 def send_environment; end # Whether to automatically attach the Rack environment to notifications - # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#51 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:51 def send_environment=(_arg0); end # The URL session notifications will be delivered to - # - # @deprecated Use {#endpoints} instead + # @!attribute session_endpoint # @return [String] + # @deprecated Use {#endpoints} instead # - # source://bugsnag//lib/bugsnag/configuration.rb#527 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:529 def session_endpoint; end # Sets the sessions endpoint # # @deprecated Use {#endpoints} instead + # # @param new_session_endpoint [String] The URL to deliver session notifications to # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#538 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:540 def session_endpoint=(new_session_endpoint); end + # Sets the notification and session endpoints to default values if neither have been set + # + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:548 + def set_default_endpoints; end + # Sets the notification and session endpoints # - # @deprecated Use {#endpoints} instead # @param new_notify_endpoint [String] The URL to deliver error notifications to # @param new_session_endpoint [String] The URL to deliver session notifications to # @return [void] + # @deprecated Use {#endpoints} instead # - # source://bugsnag//lib/bugsnag/configuration.rb#550 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:565 def set_endpoints(new_notify_endpoint, new_session_endpoint); end # Sets an entry in the array of data attached to every error notification. @@ -1465,7 +1414,7 @@ class Bugsnag::Configuration # @param value [Object] # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#415 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:417 def set_request_data(key, value); end # Indicates whether the notifier should send a notification based on the @@ -1473,65 +1422,52 @@ class Bugsnag::Configuration # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#388 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:390 def should_notify_release_stage?; end # The HTTP request timeout, defaults to 15 seconds - # # @return [Integer] # - # source://bugsnag//lib/bugsnag/configuration.rb#115 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:115 def timeout; end # The HTTP request timeout, defaults to 15 seconds - # # @return [Integer] # - # source://bugsnag//lib/bugsnag/configuration.rb#115 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:115 def timeout=(_arg0); end - # Whether Bugsnag should automatically record sessions - # - # @deprecated Use {#auto_track_sessions} instead - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag/configuration.rb#132 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:223 def track_sessions; end - # Whether Bugsnag should automatically record sessions - # - # @deprecated Use {#auto_track_sessions} instead - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag/configuration.rb#132 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:224 def track_sessions=(_arg0); end # Unsets an entry in the array of data attached to every error notification. # - # @param key [String, #to_s] - # @param value [Object] + # @param (see set_request_data) # @return [void] # - # source://bugsnag//lib/bugsnag/configuration.rb#424 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:426 def unset_request_data(key, value); end # Tests whether the configured API key is valid. # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/configuration.rb#396 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:398 def valid_api_key?; end # @deprecated Use {vendor_paths} instead # @return [Regexp] # - # source://bugsnag//lib/bugsnag/configuration.rb#168 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:168 def vendor_path; end # @deprecated Use {vendor_paths} instead # @return [Regexp] # - # source://bugsnag//lib/bugsnag/configuration.rb#168 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:168 def vendor_path=(_arg0); end # An array of paths within the {project_root} that should not be considered @@ -1542,7 +1478,7 @@ class Bugsnag::Configuration # # @return [Array] # - # source://bugsnag//lib/bugsnag/configuration.rb#177 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:177 def vendor_paths; end # An array of paths within the {project_root} that should not be considered @@ -1553,69 +1489,77 @@ class Bugsnag::Configuration # # @return [Array] # - # source://bugsnag//lib/bugsnag/configuration.rb#177 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:177 def vendor_paths=(_arg0); end # Logs a warning level message # # @param message [String, #to_s] The message to log # - # source://bugsnag//lib/bugsnag/configuration.rb#448 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:450 def warn(message); end private - # source://bugsnag//lib/bugsnag/configuration.rb#752 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:767 def default_hostname; end - # Sets the attribute scopes_to_filter - # - # @param value the value to set the attribute scopes_to_filter to. + # @api private + # @return [Array] # - # source://bugsnag//lib/bugsnag/configuration.rb#748 + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:763 def scopes_to_filter=(_arg0); end + + # pkg:gem/bugsnag#lib/bugsnag/configuration.rb:772 + def secondary_api_key?; end end -# source://bugsnag//lib/bugsnag/configuration.rb#197 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:197 Bugsnag::Configuration::API_KEY_REGEX = T.let(T.unsafe(nil), Regexp) -# source://bugsnag//lib/bugsnag/configuration.rb#202 -Bugsnag::Configuration::DEFAULT_ENDPOINT = T.let(T.unsafe(nil), String) - -# source://bugsnag//lib/bugsnag/configuration.rb#213 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:215 Bugsnag::Configuration::DEFAULT_MAX_BREADCRUMBS = T.let(T.unsafe(nil), Integer) -# source://bugsnag//lib/bugsnag/configuration.rb#204 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:206 Bugsnag::Configuration::DEFAULT_META_DATA_FILTERS = T.let(T.unsafe(nil), Array) -# source://bugsnag//lib/bugsnag/configuration.rb#200 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:200 Bugsnag::Configuration::DEFAULT_NOTIFY_ENDPOINT = T.let(T.unsafe(nil), String) # @api private # -# source://bugsnag//lib/bugsnag/configuration.rb#219 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:221 Bugsnag::Configuration::DEFAULT_SCOPES_TO_FILTER = T.let(T.unsafe(nil), Array) -# source://bugsnag//lib/bugsnag/configuration.rb#201 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:201 Bugsnag::Configuration::DEFAULT_SESSION_ENDPOINT = T.let(T.unsafe(nil), String) # Path to vendored code. Used to mark file paths as out of project. # -# source://bugsnag//lib/bugsnag/configuration.rb#216 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:218 Bugsnag::Configuration::DEFAULT_VENDOR_PATH = T.let(T.unsafe(nil), Regexp) -# source://bugsnag//lib/bugsnag/configuration.rb#750 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:765 Bugsnag::Configuration::PROG_NAME = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/configuration.rb#198 +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:202 +Bugsnag::Configuration::SECONDARY_NOTIFY_ENDPOINT = T.let(T.unsafe(nil), String) + +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:204 +Bugsnag::Configuration::SECONDARY_PREFIX = T.let(T.unsafe(nil), String) + +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:203 +Bugsnag::Configuration::SECONDARY_SESSION_ENDPOINT = T.let(T.unsafe(nil), String) + +# pkg:gem/bugsnag#lib/bugsnag/configuration.rb:198 Bugsnag::Configuration::THREAD_LOCAL_NAME = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/delivery.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/delivery.rb:2 module Bugsnag::Delivery class << self # Reference a delivery method by name # - # source://bugsnag//lib/bugsnag/delivery.rb#21 + # pkg:gem/bugsnag#lib/bugsnag/delivery.rb:21 def [](name); end # Add a delivery method to the list of supported methods. Any registered @@ -1629,38 +1573,38 @@ module Bugsnag::Delivery # end # ``` # - # source://bugsnag//lib/bugsnag/delivery.rb#15 + # pkg:gem/bugsnag#lib/bugsnag/delivery.rb:15 def register(name, delivery_method); end private - # source://bugsnag//lib/bugsnag/delivery.rb#26 + # pkg:gem/bugsnag#lib/bugsnag/delivery.rb:26 def delivery_methods; end end end -# source://bugsnag//lib/bugsnag/delivery/synchronous.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/delivery/synchronous.rb:5 class Bugsnag::Delivery::Synchronous class << self # Attempts to deliver a payload to the given endpoint synchronously. # - # source://bugsnag//lib/bugsnag/delivery/synchronous.rb#9 + # pkg:gem/bugsnag#lib/bugsnag/delivery/synchronous.rb:9 def deliver(url, body, configuration, options = T.unsafe(nil)); end private - # source://bugsnag//lib/bugsnag/delivery/synchronous.rb#57 + # pkg:gem/bugsnag#lib/bugsnag/delivery/synchronous.rb:64 def default_headers; end - # source://bugsnag//lib/bugsnag/delivery/synchronous.rb#53 + # pkg:gem/bugsnag#lib/bugsnag/delivery/synchronous.rb:60 def path(uri); end - # source://bugsnag//lib/bugsnag/delivery/synchronous.rb#27 + # pkg:gem/bugsnag#lib/bugsnag/delivery/synchronous.rb:34 def request(url, body, configuration, options); end end end -# source://bugsnag//lib/bugsnag/delivery/thread_queue.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/delivery/thread_queue.rb:3 class Bugsnag::Delivery::ThreadQueue < ::Bugsnag::Delivery::Synchronous class << self # Queues a given payload to be delivered asynchronously @@ -1671,237 +1615,191 @@ class Bugsnag::Delivery::ThreadQueue < ::Bugsnag::Delivery::Synchronous # @param options [Hash] # @return [void] # - # source://bugsnag//lib/bugsnag/delivery/thread_queue.rb#17 + # pkg:gem/bugsnag#lib/bugsnag/delivery/thread_queue.rb:17 def serialize_and_deliver(url, get_payload, configuration, options = T.unsafe(nil)); end private - # source://bugsnag//lib/bugsnag/delivery/thread_queue.rb#42 + # pkg:gem/bugsnag#lib/bugsnag/delivery/thread_queue.rb:42 def start_once!; end end end -# source://bugsnag//lib/bugsnag/delivery/thread_queue.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/delivery/thread_queue.rb:4 Bugsnag::Delivery::ThreadQueue::MAX_OUTSTANDING_REQUESTS = T.let(T.unsafe(nil), Integer) -# source://bugsnag//lib/bugsnag/delivery/thread_queue.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/delivery/thread_queue.rb:6 Bugsnag::Delivery::ThreadQueue::MUTEX = T.let(T.unsafe(nil), Thread::Mutex) -# source://bugsnag//lib/bugsnag/delivery/thread_queue.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/delivery/thread_queue.rb:5 Bugsnag::Delivery::ThreadQueue::STOP = T.let(T.unsafe(nil), Object) -# source://bugsnag//lib/bugsnag/endpoint_configuration.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_configuration.rb:2 class Bugsnag::EndpointConfiguration - # @return [EndpointConfiguration] a new instance of EndpointConfiguration - # - # source://bugsnag//lib/bugsnag/endpoint_configuration.rb#6 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_configuration.rb:6 def initialize(notify, sessions); end - # Returns the value of attribute notify. - # - # source://bugsnag//lib/bugsnag/endpoint_configuration.rb#3 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_configuration.rb:3 def notify; end - # Returns the value of attribute sessions. - # - # source://bugsnag//lib/bugsnag/endpoint_configuration.rb#4 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_configuration.rb:4 def sessions; end end # @api private # -# source://bugsnag//lib/bugsnag/endpoint_validator.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:3 class Bugsnag::EndpointValidator class << self - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#4 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:4 def validate(endpoints); end end end # @api private # -# source://bugsnag//lib/bugsnag/endpoint_validator.rb#22 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:22 class Bugsnag::EndpointValidator::Result - # @api private - # @return [Result] a new instance of Result - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#35 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:35 def initialize(valid, keep_events_enabled_for_backwards_compatibility = T.unsafe(nil), reason = T.unsafe(nil)); end - # @api private - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#45 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:45 def keep_events_enabled_for_backwards_compatibility?; end - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#33 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:33 def reason; end - # @api private - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#41 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:41 def valid?; end class << self - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#71 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:71 def invalid_notify; end - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#75 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:75 def invalid_session; end - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#67 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:67 def invalid_urls; end - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#59 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:59 def missing_notify; end - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#63 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:63 def missing_session; end - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#55 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:55 def missing_urls; end # factory functions # - # @api private - # - # source://bugsnag//lib/bugsnag/endpoint_validator.rb#51 + # pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:51 def valid; end end end -# @api private -# -# source://bugsnag//lib/bugsnag/endpoint_validator.rb#29 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:29 Bugsnag::EndpointValidator::Result::INVALID_NOTIFY_URL = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/endpoint_validator.rb#30 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:30 Bugsnag::EndpointValidator::Result::INVALID_SESSION_URL = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/endpoint_validator.rb#28 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:28 Bugsnag::EndpointValidator::Result::INVALID_URLS = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/endpoint_validator.rb#25 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:25 Bugsnag::EndpointValidator::Result::MISSING_NOTIFY_URL = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/endpoint_validator.rb#26 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:26 Bugsnag::EndpointValidator::Result::MISSING_SESSION_URL = T.let(T.unsafe(nil), String) -# @api private -# -# source://bugsnag//lib/bugsnag/endpoint_validator.rb#24 +# pkg:gem/bugsnag#lib/bugsnag/endpoint_validator.rb:24 Bugsnag::EndpointValidator::Result::MISSING_URLS = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/error.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/error.rb:2 class Bugsnag::Error - # @return [Error] a new instance of Error - # - # source://bugsnag//lib/bugsnag/error.rb#18 + # pkg:gem/bugsnag#lib/bugsnag/error.rb:18 def initialize(error_class, error_message, stacktrace); end # @return [String] the error's class name # - # source://bugsnag//lib/bugsnag/error.rb#4 + # pkg:gem/bugsnag#lib/bugsnag/error.rb:4 def error_class; end # @return [String] the error's class name # - # source://bugsnag//lib/bugsnag/error.rb#4 + # pkg:gem/bugsnag#lib/bugsnag/error.rb:4 def error_class=(_arg0); end # @return [String] the error's message # - # source://bugsnag//lib/bugsnag/error.rb#7 + # pkg:gem/bugsnag#lib/bugsnag/error.rb:7 def error_message; end # @return [String] the error's message # - # source://bugsnag//lib/bugsnag/error.rb#7 + # pkg:gem/bugsnag#lib/bugsnag/error.rb:7 def error_message=(_arg0); end # @return [Hash] the error's processed stacktrace # - # source://bugsnag//lib/bugsnag/error.rb#10 + # pkg:gem/bugsnag#lib/bugsnag/error.rb:10 def stacktrace; end # @return [String] the type of error (always "ruby") # - # source://bugsnag//lib/bugsnag/error.rb#13 + # pkg:gem/bugsnag#lib/bugsnag/error.rb:13 def type; end # @return [String] the type of error (always "ruby") # - # source://bugsnag//lib/bugsnag/error.rb#13 + # pkg:gem/bugsnag#lib/bugsnag/error.rb:13 def type=(_arg0); end end # @api private # -# source://bugsnag//lib/bugsnag/error.rb#16 +# pkg:gem/bugsnag#lib/bugsnag/error.rb:16 Bugsnag::Error::TYPE = T.let(T.unsafe(nil), String) # For now Event is just an alias of Report. This points to the same object so # any changes to Report will also affect Event # -# source://bugsnag//lib/bugsnag/event.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/event.rb:4 Bugsnag::Event = Bugsnag::Report -# source://bugsnag//lib/bugsnag/feature_flag.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:2 class Bugsnag::FeatureFlag # @param name [String] The name of this feature flags # @param variant [String, nil] An optional variant for this flag - # @return [FeatureFlag] a new instance of FeatureFlag # - # source://bugsnag//lib/bugsnag/feature_flag.rb#15 + # pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:15 def initialize(name, variant = T.unsafe(nil)); end - # source://bugsnag//lib/bugsnag/feature_flag.rb#20 + # pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:20 def ==(other); end - # source://bugsnag//lib/bugsnag/feature_flag.rb#24 + # pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:24 def hash; end # Get the name of this feature flag # # @return [String] # - # source://bugsnag//lib/bugsnag/feature_flag.rb#6 + # pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:6 def name; end # Convert this flag to a hash # # @example With no variant # { "featureFlag" => "name" } + # # @example With a variant # { "featureFlag" => "name", "variant" => "variant" } + # # @return [Hash{String => String}] # - # source://bugsnag//lib/bugsnag/feature_flag.rb#37 + # pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:37 def to_h; end # Check if this flag is valid, i.e. has a name that's a String and a variant @@ -1909,14 +1807,14 @@ class Bugsnag::FeatureFlag # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/feature_flag.rb#49 + # pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:49 def valid?; end # Get the variant of this feature flag # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/feature_flag.rb#11 + # pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:11 def variant; end private @@ -1929,282 +1827,234 @@ class Bugsnag::FeatureFlag # @param variant [Object] # @return [String, nil] # - # source://bugsnag//lib/bugsnag/feature_flag.rb#64 + # pkg:gem/bugsnag#lib/bugsnag/feature_flag.rb:64 def coerce_variant(variant); end end -# source://bugsnag//lib/bugsnag/helpers.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/helpers.rb:2 module Bugsnag::Helpers class << self # Merges r_hash into l_hash recursively, favouring the values in r_hash. # # Returns a new array consisting of the merged values # - # source://bugsnag//lib/bugsnag/helpers.rb#41 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:41 def deep_merge(l_hash, r_hash); end # Merges r_hash into l_hash recursively, favouring the values in r_hash. # # Overwrites the values in the existing l_hash # - # source://bugsnag//lib/bugsnag/helpers.rb#57 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:57 def deep_merge!(l_hash, r_hash); end # Wrapper for trimming stacktraces # - # source://bugsnag//lib/bugsnag/helpers.rb#105 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:105 def extract_exception(payload, &block); end - # source://bugsnag//lib/bugsnag/helpers.rb#161 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:161 def get_payload_length(value); end # Check if a value is a raw type which should not be trimmed, truncated # or converted to a string # - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag/helpers.rb#127 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:127 def is_json_raw_type?(value); end # Validate that the serialized JSON string value is below maximum payload # length # - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag/helpers.rb#157 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:157 def payload_too_long?(value); end # Remove `metaData` from array of `events` within object # - # source://bugsnag//lib/bugsnag/helpers.rb#207 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:207 def remove_metadata_from_events(object); end # If possible, convert the provided object to a string and trim to the # maximum allowed string length # - # source://bugsnag//lib/bugsnag/helpers.rb#180 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:180 def trim_as_string(text); end # Trim the size of value if the serialized JSON value is longer than is # accepted by Bugsnag # - # source://bugsnag//lib/bugsnag/helpers.rb#12 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:12 def trim_if_needed(value); end # Take the metadata from the events and trim it down # - # source://bugsnag//lib/bugsnag/helpers.rb#115 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:115 def trim_metadata(payload); end # Remove all code from stacktraces # - # source://bugsnag//lib/bugsnag/helpers.rb#84 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:84 def trim_stacktrace_code(payload); end # Truncate stacktraces # - # source://bugsnag//lib/bugsnag/helpers.rb#95 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:95 def trim_stacktrace_functions(payload); end - # source://bugsnag//lib/bugsnag/helpers.rb#190 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:190 def trim_strings_in_array(collection); end - # source://bugsnag//lib/bugsnag/helpers.rb#169 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:169 def trim_strings_in_hash(hash); end # Trim all strings to be less than the maximum allowed string length # - # source://bugsnag//lib/bugsnag/helpers.rb#142 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:142 def trim_strings_in_value(value); end # Shorten array until it fits within the payload size limit when serialized # - # source://bugsnag//lib/bugsnag/helpers.rb#133 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:133 def truncate_array(array); end - # source://bugsnag//lib/bugsnag/helpers.rb#215 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:215 def truncate_arrays_in_hash(hash); end - # source://bugsnag//lib/bugsnag/helpers.rb#195 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:195 def truncate_arrays_in_value(value); end # Truncate exception messages # - # source://bugsnag//lib/bugsnag/helpers.rb#75 + # pkg:gem/bugsnag#lib/bugsnag/helpers.rb:75 def truncate_exception_messages(payload); end end end -# source://bugsnag//lib/bugsnag/helpers.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/helpers.rb:5 Bugsnag::Helpers::MAX_ARRAY_LENGTH = T.let(T.unsafe(nil), Integer) -# source://bugsnag//lib/bugsnag/helpers.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/helpers.rb:4 Bugsnag::Helpers::MAX_PAYLOAD_LENGTH = T.let(T.unsafe(nil), Integer) -# source://bugsnag//lib/bugsnag/helpers.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/helpers.rb:3 Bugsnag::Helpers::MAX_STRING_LENGTH = T.let(T.unsafe(nil), Integer) -# source://bugsnag//lib/bugsnag/helpers.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/helpers.rb:6 Bugsnag::Helpers::MAX_TRIM_STACK_FRAMES = T.let(T.unsafe(nil), Integer) -# source://bugsnag//lib/bugsnag/helpers.rb#7 +# pkg:gem/bugsnag#lib/bugsnag/helpers.rb:7 Bugsnag::Helpers::RAW_DATA_TYPES = T.let(T.unsafe(nil), Array) -# source://bugsnag//lib/bugsnag/helpers.rb#71 +# pkg:gem/bugsnag#lib/bugsnag/helpers.rb:71 Bugsnag::Helpers::TRUNCATION_INFO = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag.rb#40 +# pkg:gem/bugsnag#lib/bugsnag.rb:40 Bugsnag::INTEGRATIONS = T.let(T.unsafe(nil), Array) -# source://bugsnag//lib/bugsnag.rb#39 +# pkg:gem/bugsnag#lib/bugsnag.rb:39 Bugsnag::LOCK = T.let(T.unsafe(nil), Thread::Mutex) -# source://bugsnag//lib/bugsnag/meta_data.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:2 module Bugsnag::MetaData - # Returns the value of attribute bugsnag_context. - # - # source://bugsnag//lib/bugsnag/meta_data.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:5 def bugsnag_context; end - # Sets the attribute bugsnag_context - # - # @param value the value to set the attribute bugsnag_context to. - # - # source://bugsnag//lib/bugsnag/meta_data.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:5 def bugsnag_context=(_arg0); end - # Returns the value of attribute bugsnag_grouping_hash. - # - # source://bugsnag//lib/bugsnag/meta_data.rb#6 + # pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:6 def bugsnag_grouping_hash; end - # Sets the attribute bugsnag_grouping_hash - # - # @param value the value to set the attribute bugsnag_grouping_hash to. - # - # source://bugsnag//lib/bugsnag/meta_data.rb#6 + # pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:6 def bugsnag_grouping_hash=(_arg0); end - # Returns the value of attribute bugsnag_meta_data. - # - # source://bugsnag//lib/bugsnag/meta_data.rb#3 + # pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:3 def bugsnag_meta_data; end - # Sets the attribute bugsnag_meta_data - # - # @param value the value to set the attribute bugsnag_meta_data to. - # - # source://bugsnag//lib/bugsnag/meta_data.rb#3 + # pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:3 def bugsnag_meta_data=(_arg0); end - # Returns the value of attribute bugsnag_user_id. - # - # source://bugsnag//lib/bugsnag/meta_data.rb#4 + # pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:4 def bugsnag_user_id; end - # Sets the attribute bugsnag_user_id - # - # @param value the value to set the attribute bugsnag_user_id to. - # - # source://bugsnag//lib/bugsnag/meta_data.rb#4 + # pkg:gem/bugsnag#lib/bugsnag/meta_data.rb:4 def bugsnag_user_id=(_arg0); end end -# source://bugsnag//lib/bugsnag/middleware/breadcrumbs.rb#1 +# pkg:gem/bugsnag#lib/bugsnag/middleware/breadcrumbs.rb:1 module Bugsnag::Middleware; end -# source://bugsnag//lib/bugsnag/middleware/active_job.rb#2 -class Bugsnag::Middleware::ActiveJob - # @return [ActiveJob] a new instance of ActiveJob - # - # source://bugsnag//lib/bugsnag/middleware/active_job.rb#3 - def initialize(bugsnag); end - - # source://bugsnag//lib/bugsnag/middleware/active_job.rb#7 - def call(report); end -end - # Adds breadcrumbs to the report # -# source://bugsnag//lib/bugsnag/middleware/breadcrumbs.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/breadcrumbs.rb:4 class Bugsnag::Middleware::Breadcrumbs # @param next_callable [#call] the next callable middleware - # @return [Breadcrumbs] a new instance of Breadcrumbs # - # source://bugsnag//lib/bugsnag/middleware/breadcrumbs.rb#7 + # pkg:gem/bugsnag#lib/bugsnag/middleware/breadcrumbs.rb:7 def initialize(next_callable); end # Execute this middleware # # @param report [Bugsnag::Report] the report being iterated over # - # source://bugsnag//lib/bugsnag/middleware/breadcrumbs.rb#15 + # pkg:gem/bugsnag#lib/bugsnag/middleware/breadcrumbs.rb:15 def call(report); end end # Calls all configured callbacks passing an error report # -# source://bugsnag//lib/bugsnag/middleware/callbacks.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/callbacks.rb:4 class Bugsnag::Middleware::Callbacks - # @return [Callbacks] a new instance of Callbacks - # - # source://bugsnag//lib/bugsnag/middleware/callbacks.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/middleware/callbacks.rb:5 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/callbacks.rb#9 + # pkg:gem/bugsnag#lib/bugsnag/middleware/callbacks.rb:9 def call(report); end end # Sets the severity to info for low-importance errors # -# source://bugsnag//lib/bugsnag/middleware/classify_error.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/classify_error.rb:4 class Bugsnag::Middleware::ClassifyError - # @return [ClassifyError] a new instance of ClassifyError - # - # source://bugsnag//lib/bugsnag/middleware/classify_error.rb#20 + # pkg:gem/bugsnag#lib/bugsnag/middleware/classify_error.rb:20 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/classify_error.rb#24 + # pkg:gem/bugsnag#lib/bugsnag/middleware/classify_error.rb:24 def call(report); end end -# source://bugsnag//lib/bugsnag/middleware/classify_error.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/middleware/classify_error.rb:5 Bugsnag::Middleware::ClassifyError::INFO_CLASSES = T.let(T.unsafe(nil), Array) # Extracts and appends clearance user information # -# source://bugsnag//lib/bugsnag/middleware/clearance_user.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/clearance_user.rb:4 class Bugsnag::Middleware::ClearanceUser - # @return [ClearanceUser] a new instance of ClearanceUser - # - # source://bugsnag//lib/bugsnag/middleware/clearance_user.rb#7 + # pkg:gem/bugsnag#lib/bugsnag/middleware/clearance_user.rb:7 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/clearance_user.rb#11 + # pkg:gem/bugsnag#lib/bugsnag/middleware/clearance_user.rb:11 def call(report); end end -# source://bugsnag//lib/bugsnag/middleware/clearance_user.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/middleware/clearance_user.rb:5 Bugsnag::Middleware::ClearanceUser::COMMON_USER_FIELDS = T.let(T.unsafe(nil), Array) # Attaches delayed_job information to an error report # -# source://bugsnag//lib/bugsnag/middleware/delayed_job.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/delayed_job.rb:4 class Bugsnag::Middleware::DelayedJob - # @return [DelayedJob] a new instance of DelayedJob - # - # source://bugsnag//lib/bugsnag/middleware/delayed_job.rb#10 + # pkg:gem/bugsnag#lib/bugsnag/middleware/delayed_job.rb:10 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/delayed_job.rb#14 + # pkg:gem/bugsnag#lib/bugsnag/middleware/delayed_job.rb:14 def call(report); end - # source://bugsnag//lib/bugsnag/middleware/delayed_job.rb#49 + # pkg:gem/bugsnag#lib/bugsnag/middleware/delayed_job.rb:49 def construct_job_payload(payload); end private - # source://bugsnag//lib/bugsnag/middleware/delayed_job.rb#83 + # pkg:gem/bugsnag#lib/bugsnag/middleware/delayed_job.rb:83 def get_context(payload_data, active_job_data); end end @@ -2212,36 +2062,33 @@ end # breaks the event context as the ID and arguments are included, which will # differ between executions of the same job # -# source://bugsnag//lib/bugsnag/middleware/delayed_job.rb#8 +# pkg:gem/bugsnag#lib/bugsnag/middleware/delayed_job.rb:8 Bugsnag::Middleware::DelayedJob::ACTIVE_JOB_DISPLAY_NAME = T.let(T.unsafe(nil), Regexp) # Determines if the exception should be ignored based on the configured # `discard_classes` # -# source://bugsnag//lib/bugsnag/middleware/discard_error_class.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/middleware/discard_error_class.rb:5 class Bugsnag::Middleware::DiscardErrorClass # @param middleware [#call] The next middleware to call - # @return [DiscardErrorClass] a new instance of DiscardErrorClass # - # source://bugsnag//lib/bugsnag/middleware/discard_error_class.rb#8 + # pkg:gem/bugsnag#lib/bugsnag/middleware/discard_error_class.rb:8 def initialize(middleware); end # @param report [Report] # - # source://bugsnag//lib/bugsnag/middleware/discard_error_class.rb#14 + # pkg:gem/bugsnag#lib/bugsnag/middleware/discard_error_class.rb:14 def call(report); end end # Extracts data from the exception. # -# source://bugsnag//lib/bugsnag/middleware/exception_meta_data.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/exception_meta_data.rb:4 class Bugsnag::Middleware::ExceptionMetaData - # @return [ExceptionMetaData] a new instance of ExceptionMetaData - # - # source://bugsnag//lib/bugsnag/middleware/exception_meta_data.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/middleware/exception_meta_data.rb:5 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/exception_meta_data.rb#9 + # pkg:gem/bugsnag#lib/bugsnag/middleware/exception_meta_data.rb:9 def call(report); end end @@ -2250,168 +2097,146 @@ end # # @deprecated Use {DiscardErrorClass} instead # -# source://bugsnag//lib/bugsnag/middleware/ignore_error_class.rb#7 +# pkg:gem/bugsnag#lib/bugsnag/middleware/ignore_error_class.rb:7 class Bugsnag::Middleware::IgnoreErrorClass - # @return [IgnoreErrorClass] a new instance of IgnoreErrorClass - # - # source://bugsnag//lib/bugsnag/middleware/ignore_error_class.rb#8 + # pkg:gem/bugsnag#lib/bugsnag/middleware/ignore_error_class.rb:8 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/ignore_error_class.rb#12 + # pkg:gem/bugsnag#lib/bugsnag/middleware/ignore_error_class.rb:12 def call(report); end end # Extracts and attaches mailman data to an error report # -# source://bugsnag//lib/bugsnag/middleware/mailman.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/mailman.rb:4 class Bugsnag::Middleware::Mailman - # @return [Mailman] a new instance of Mailman - # - # source://bugsnag//lib/bugsnag/middleware/mailman.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/middleware/mailman.rb:5 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/mailman.rb#9 + # pkg:gem/bugsnag#lib/bugsnag/middleware/mailman.rb:9 def call(report); end end # Extracts and attaches rack data to an error report # -# source://bugsnag//lib/bugsnag/middleware/rack_request.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:4 class Bugsnag::Middleware::RackRequest - # @return [RackRequest] a new instance of RackRequest - # - # source://bugsnag//lib/bugsnag/middleware/rack_request.rb#8 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:8 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/rack_request.rb#12 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:12 def call(report); end private - # source://bugsnag//lib/bugsnag/middleware/rack_request.rb#158 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:158 def add_cookies(report, request); end - # source://bugsnag//lib/bugsnag/middleware/rack_request.rb#114 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:114 def add_request_body(report, request, env); end - # source://bugsnag//lib/bugsnag/middleware/rack_request.rb#94 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:94 def format_headers(env, referer); end - # source://bugsnag//lib/bugsnag/middleware/rack_request.rb#127 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:127 def parsed_request_body(request, env); end - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag/middleware/rack_request.rb#168 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:168 def record_cookies?; end end -# source://bugsnag//lib/bugsnag/middleware/rack_request.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:6 Bugsnag::Middleware::RackRequest::COOKIE_HEADER = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/middleware/rack_request.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/middleware/rack_request.rb:5 Bugsnag::Middleware::RackRequest::SPOOF = T.let(T.unsafe(nil), String) # Extracts and attaches rails and rack environment data to an error report # -# source://bugsnag//lib/bugsnag/middleware/rails3_request.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/rails3_request.rb:4 class Bugsnag::Middleware::Rails3Request - # @return [Rails3Request] a new instance of Rails3Request - # - # source://bugsnag//lib/bugsnag/middleware/rails3_request.rb#7 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rails3_request.rb:7 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/rails3_request.rb#11 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rails3_request.rb:11 def call(report); end end -# source://bugsnag//lib/bugsnag/middleware/rails3_request.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/middleware/rails3_request.rb:5 Bugsnag::Middleware::Rails3Request::SPOOF = T.let(T.unsafe(nil), String) # Extracts and attaches rake task information to an error report # -# source://bugsnag//lib/bugsnag/middleware/rake.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/rake.rb:4 class Bugsnag::Middleware::Rake - # @return [Rake] a new instance of Rake - # - # source://bugsnag//lib/bugsnag/middleware/rake.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rake.rb:5 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/rake.rb#9 + # pkg:gem/bugsnag#lib/bugsnag/middleware/rake.rb:9 def call(report); end end # Attaches information about current session to an error report # -# source://bugsnag//lib/bugsnag/middleware/session_data.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/session_data.rb:4 class Bugsnag::Middleware::SessionData - # @return [SessionData] a new instance of SessionData - # - # source://bugsnag//lib/bugsnag/middleware/session_data.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/middleware/session_data.rb:5 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/session_data.rb#9 + # pkg:gem/bugsnag#lib/bugsnag/middleware/session_data.rb:9 def call(report); end end # Attaches Sidekiq job information to an error report # -# source://bugsnag//lib/bugsnag/middleware/sidekiq.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/sidekiq.rb:4 class Bugsnag::Middleware::Sidekiq - # @return [Sidekiq] a new instance of Sidekiq - # - # source://bugsnag//lib/bugsnag/middleware/sidekiq.rb#5 + # pkg:gem/bugsnag#lib/bugsnag/middleware/sidekiq.rb:5 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/sidekiq.rb#9 + # pkg:gem/bugsnag#lib/bugsnag/middleware/sidekiq.rb:9 def call(report); end end # Attaches any "Did you mean?" suggestions to the report # -# source://bugsnag//lib/bugsnag/middleware/suggestion_data.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/suggestion_data.rb:4 class Bugsnag::Middleware::SuggestionData - # @return [SuggestionData] a new instance of SuggestionData - # - # source://bugsnag//lib/bugsnag/middleware/suggestion_data.rb#9 + # pkg:gem/bugsnag#lib/bugsnag/middleware/suggestion_data.rb:9 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/suggestion_data.rb#13 + # pkg:gem/bugsnag#lib/bugsnag/middleware/suggestion_data.rb:13 def call(event); end end -# source://bugsnag//lib/bugsnag/middleware/suggestion_data.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/middleware/suggestion_data.rb:6 Bugsnag::Middleware::SuggestionData::CAPTURE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://bugsnag//lib/bugsnag/middleware/suggestion_data.rb#7 +# pkg:gem/bugsnag#lib/bugsnag/middleware/suggestion_data.rb:7 Bugsnag::Middleware::SuggestionData::DELIMITER = T.let(T.unsafe(nil), String) # Extracts and attaches user information from Warden to an error report # -# source://bugsnag//lib/bugsnag/middleware/warden_user.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware/warden_user.rb:4 class Bugsnag::Middleware::WardenUser - # @return [WardenUser] a new instance of WardenUser - # - # source://bugsnag//lib/bugsnag/middleware/warden_user.rb#8 + # pkg:gem/bugsnag#lib/bugsnag/middleware/warden_user.rb:8 def initialize(bugsnag); end - # source://bugsnag//lib/bugsnag/middleware/warden_user.rb#12 + # pkg:gem/bugsnag#lib/bugsnag/middleware/warden_user.rb:12 def call(report); end end -# source://bugsnag//lib/bugsnag/middleware/warden_user.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/middleware/warden_user.rb:6 Bugsnag::Middleware::WardenUser::COMMON_USER_FIELDS = T.let(T.unsafe(nil), Array) -# source://bugsnag//lib/bugsnag/middleware/warden_user.rb#5 +# pkg:gem/bugsnag#lib/bugsnag/middleware/warden_user.rb:5 Bugsnag::Middleware::WardenUser::SCOPE_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://bugsnag//lib/bugsnag/middleware_stack.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:4 class Bugsnag::MiddlewareStack # Creates the middleware stack. # - # @return [MiddlewareStack] a new instance of MiddlewareStack - # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#7 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:7 def initialize; end # Disable the given middleware. This removes them from the list of @@ -2419,7 +2244,7 @@ class Bugsnag::MiddlewareStack # # See also {#remove} # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#75 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:75 def disable(*middlewares); end # Inserts a new middleware to use after a given middleware already added. @@ -2427,7 +2252,7 @@ class Bugsnag::MiddlewareStack # Will return early if given middleware is disabled or already added. # New middleware will be inserted last if the existing middleware is not already included. # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#31 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:31 def insert_after(after, new_middleware); end # Inserts a new middleware to use before a given middleware already added. @@ -2435,31 +2260,31 @@ class Bugsnag::MiddlewareStack # Will return early if given middleware is disabled or already added. # New middleware will be inserted last if the existing middleware is not already included. # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#55 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:55 def insert_before(before, new_middleware); end # Allows the user to proxy methods for more complex functionality. # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#95 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:95 def method_missing(method, *args, &block); end # Remove the given middleware from the list of middleware # # This is like {#disable} but allows the middleware to be added again # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#87 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:87 def remove(*middlewares); end # Runs the middleware stack. # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#101 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:101 def run(report); end # Defines a new middleware to use in the middleware call sequence. # # Will return early if given middleware is disabled or already included. # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#17 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:17 def use(new_middleware); end private @@ -2469,508 +2294,399 @@ class Bugsnag::MiddlewareStack # # @return [Array] # - # source://bugsnag//lib/bugsnag/middleware_stack.rb#133 + # pkg:gem/bugsnag#lib/bugsnag/middleware_stack.rb:133 def middleware_procs; end end -# source://bugsnag//lib/bugsnag.rb#42 +# pkg:gem/bugsnag#lib/bugsnag.rb:42 Bugsnag::NIL_EXCEPTION_DESCRIPTION = T.let(T.unsafe(nil), String) # @api private # -# source://bugsnag//lib/bugsnag/on_error_callbacks.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/on_error_callbacks.rb:3 class Bugsnag::OnErrorCallbacks - # @api private - # @return [OnErrorCallbacks] a new instance of OnErrorCallbacks - # - # source://bugsnag//lib/bugsnag/on_error_callbacks.rb#4 + # pkg:gem/bugsnag#lib/bugsnag/on_error_callbacks.rb:4 def initialize(next_middleware, callbacks); end - # @api private # @param report [Report] # - # source://bugsnag//lib/bugsnag/on_error_callbacks.rb#11 + # pkg:gem/bugsnag#lib/bugsnag/on_error_callbacks.rb:11 def call(report); end end # Automatically captures and adds Rack request information to error reports # -# source://bugsnag//lib/bugsnag/integrations/rack.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/integrations/rack.rb:4 class Bugsnag::Rack - # @return [Rack] a new instance of Rack - # - # source://bugsnag//lib/bugsnag/integrations/rack.rb#10 + # pkg:gem/bugsnag#lib/bugsnag/integrations/rack.rb:10 def initialize(app); end # Wraps a call to the application with error capturing # - # source://bugsnag//lib/bugsnag/integrations/rack.rb#43 + # pkg:gem/bugsnag#lib/bugsnag/integrations/rack.rb:43 def call(env); end end -# source://bugsnag//lib/bugsnag/integrations/rack.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/integrations/rack.rb:6 Bugsnag::Rack::FRAMEWORK_ATTRIBUTES = T.let(T.unsafe(nil), Hash) -# source://bugsnag//lib/bugsnag/integrations/rails/rails_breadcrumbs.rb#1 -module Bugsnag::Rails; end - -# source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#2 -module Bugsnag::Rails::ActiveJob - private - - # source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#81 - def _bugsnag_extract_metadata(job); end - - # source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#71 - def _bugsnag_get_adapter_name(job); end - - class << self - # @private - # - # source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#29 - def included(base); end - end -end - -# source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#9 -Bugsnag::Rails::ActiveJob::EXISTING_INTEGRATIONS = T.let(T.unsafe(nil), Set) - -# source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#17 -Bugsnag::Rails::ActiveJob::INLINE_ADAPTER = T.let(T.unsafe(nil), String) - -# these methods were added after the first Active Job release so -# may not be present, depending on the Rails version -# -# source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#21 -Bugsnag::Rails::ActiveJob::MAYBE_MISSING_METHODS = T.let(T.unsafe(nil), Array) - -# source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#3 -Bugsnag::Rails::ActiveJob::SEVERITY = T.let(T.unsafe(nil), String) - -# source://bugsnag//lib/bugsnag/integrations/rails/active_job.rb#4 -Bugsnag::Rails::ActiveJob::SEVERITY_REASON = T.let(T.unsafe(nil), Hash) - -# source://bugsnag//lib/bugsnag/integrations/rails/controller_methods.rb#2 -module Bugsnag::Rails::ControllerMethods - mixes_in_class_methods ::Bugsnag::Rails::ControllerMethods::ClassMethods - - class << self - # @private - # - # source://bugsnag//lib/bugsnag/integrations/rails/controller_methods.rb#3 - def included(base); end - end -end - -# source://bugsnag//lib/bugsnag/integrations/rails/controller_methods.rb#7 -module Bugsnag::Rails::ControllerMethods::ClassMethods - private - - # source://bugsnag//lib/bugsnag/integrations/rails/controller_methods.rb#14 - def _add_bugsnag_notify_callback(callback_key, *methods, &block); end - - # source://bugsnag//lib/bugsnag/integrations/rails/controller_methods.rb#10 - def before_bugsnag_notify(*methods, &block); end -end - -# source://bugsnag//lib/bugsnag/integrations/rails/rails_breadcrumbs.rb#2 -Bugsnag::Rails::DEFAULT_RAILS_BREADCRUMBS = T.let(T.unsafe(nil), Array) - -# source://bugsnag//lib/bugsnag/integrations/railtie.rb#7 -class Bugsnag::Railtie < ::Rails::Railtie - # Subscribes to an ActiveSupport event, leaving a breadcrumb when it triggers - # - # @api private - # @param event [Hash] details of the event to subscribe to - # - # source://bugsnag//lib/bugsnag/integrations/railtie.rb#17 - def event_subscription(event); end - - class << self - # Do we need to rescue (& notify) in Active Record callbacks? - # - # On Rails versions < 4.2, Rails did not raise errors in AR callbacks - # On Rails version 4.2, a config option was added to control this - # On Rails version 5.0, the config option was removed and errors in callbacks - # always bubble up - # - # @api private - # @return [Boolean] - # - # source://bugsnag//lib/bugsnag/integrations/railtie.rb#62 - def rescue_in_active_record_callbacks?; end - end -end - -# source://bugsnag//lib/bugsnag/integrations/railtie.rb#8 -Bugsnag::Railtie::FRAMEWORK_ATTRIBUTES = T.let(T.unsafe(nil), Hash) - -# source://bugsnag//lib/bugsnag/report.rb#7 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:7 class Bugsnag::Report include ::Bugsnag::Utility::FeatureDataStore # Initializes a new report from an exception. # - # @return [Report] a new instance of Report - # - # source://bugsnag//lib/bugsnag/report.rb#117 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:117 def initialize(exception, passed_configuration, auto_notify = T.unsafe(nil)); end # Add values to metadata # - # @overload add_metadata - # @overload add_metadata + # @overload add_metadata(section, data) + # Merges data into the given section of metadata + # @param section [String, Symbol] + # @param data [Hash] + # + # @overload add_metadata(section, key, value) + # Sets key to value in the given section of metadata. If the value is nil + # the key will be deleted + # @param section [String, Symbol] + # @param key [String, Symbol] + # @param value + # # @return [void] # - # source://bugsnag//lib/bugsnag/report.rb#343 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:343 def add_metadata(section, key_or_data, *args); end # Add a new metadata tab to this notification. # - # @deprecated Use {#add_metadata} instead # @param name [String, #to_s] The name of the tab to add # @param value [Hash, Object] The value to add to the tab. If the tab already # exists, this will be merged with the existing values. If a Hash is not # given, the value will be placed into the 'custom' tab # @return [void] # - # source://bugsnag//lib/bugsnag/report.rb#179 + # @deprecated Use {#add_metadata} instead + # + # pkg:gem/bugsnag#lib/bugsnag/report.rb:179 def add_tab(name, value); end # Your Integration API Key - # - # @return [String, nil] # @see Configuration#api_key + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#32 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:32 def api_key; end # Your Integration API Key - # - # @return [String, nil] # @see Configuration#api_key + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#32 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:32 def api_key=(_arg0); end # The type of application executing the current code - # - # @return [String, nil] # @see Configuration#app_type + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#37 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:37 def app_type; end # The type of application executing the current code - # - # @return [String, nil] # @see Configuration#app_type + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#37 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:37 def app_type=(_arg0); end # The current version of your application - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#41 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:41 def app_version; end # The current version of your application - # # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#41 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:41 def app_version=(_arg0); end # Builds and returns the exception payload for this notification. # # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#209 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:209 def as_json; end # Context set automatically by Bugsnag uses this attribute, which prevents # it from overwriting the user-supplied context - # # @api private # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#167 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:167 def automatic_context; end # Context set automatically by Bugsnag uses this attribute, which prevents # it from overwriting the user-supplied context - # # @api private # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#167 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:167 def automatic_context=(_arg0); end # The list of breadcrumbs attached to this report - # # @return [Array] # - # source://bugsnag//lib/bugsnag/report.rb#45 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:45 def breadcrumbs; end # The list of breadcrumbs attached to this report - # # @return [Array] # - # source://bugsnag//lib/bugsnag/report.rb#45 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:45 def breadcrumbs=(_arg0); end # Clear values from metadata # - # @overload clear_metadata - # @overload clear_metadata + # @overload clear_metadata(section) + # Clears the given section of metadata + # @param section [String, Symbol] + # + # @overload clear_metadata(section, key) + # Clears the key in the given section of metadata + # @param section [String, Symbol] + # @param key [String, Symbol] + # # @return [void] # - # source://bugsnag//lib/bugsnag/report.rb#360 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:360 def clear_metadata(section, *args); end # @api private # @return [Configuration] # - # source://bugsnag//lib/bugsnag/report.rb#49 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:49 def configuration; end # @api private # @return [Configuration] # - # source://bugsnag//lib/bugsnag/report.rb#49 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:49 def configuration=(_arg0); end # Additional context for this report - # + # @!attribute context # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#154 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:154 def context; end # Additional context for this report - # + # @!attribute context # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#160 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:160 def context=(_arg0); end # The delivery method that will be used for this report - # - # @return [Symbol] # @see Configuration#delivery_method + # @return [Symbol] # - # source://bugsnag//lib/bugsnag/report.rb#54 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:54 def delivery_method; end # The delivery method that will be used for this report - # - # @return [Symbol] # @see Configuration#delivery_method + # @return [Symbol] # - # source://bugsnag//lib/bugsnag/report.rb#54 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:54 def delivery_method=(_arg0); end # A list of errors in this report - # # @return [Array] # - # source://bugsnag//lib/bugsnag/report.rb#109 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:109 def errors; end # The list of exceptions in this report - # # @deprecated Use {#errors} instead # @return [Array] # - # source://bugsnag//lib/bugsnag/report.rb#59 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:59 def exceptions; end # The list of exceptions in this report - # # @deprecated Use {#errors} instead # @return [Array] # - # source://bugsnag//lib/bugsnag/report.rb#59 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:59 def exceptions=(_arg0); end # Get the array of stored feature flags # # @return [Array] # - # source://bugsnag//lib/bugsnag/report.rb#367 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:367 def feature_flags; end # All errors with the same grouping hash will be grouped in the Bugsnag app - # # @return [String] # - # source://bugsnag//lib/bugsnag/report.rb#72 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:72 def grouping_hash; end # All errors with the same grouping hash will be grouped in the Bugsnag app - # # @return [String] # - # source://bugsnag//lib/bugsnag/report.rb#72 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:72 def grouping_hash=(_arg0); end # Returns the headers required for the notification. # # @return [Hash{String => String}] # - # source://bugsnag//lib/bugsnag/report.rb#254 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:254 def headers; end - # @return [String] # @see Configuration#hostname + # @return [String] # - # source://bugsnag//lib/bugsnag/report.rb#63 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:63 def hostname; end - # @return [String] # @see Configuration#hostname + # @return [String] # - # source://bugsnag//lib/bugsnag/report.rb#63 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:63 def hostname=(_arg0); end # Tells the client this report should not be sent. # # @return [void] # - # source://bugsnag//lib/bugsnag/report.rb#282 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:282 def ignore!; end # Whether this report should be ignored and not sent. # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/report.rb#266 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:266 def ignore?; end # Arbitrary metadata attached to this report - # # @deprecated Use {#metadata} instead # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#77 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:77 def meta_data; end # Arbitrary metadata attached to this report - # # @deprecated Use {#metadata} instead # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#77 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:77 def meta_data=(_arg0); end # A Hash containing arbitrary metadata - # + # @!attribute metadata # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#309 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:309 def metadata; end # @param metadata [Hash] # @return [void] # - # source://bugsnag//lib/bugsnag/report.rb#315 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:315 def metadata=(metadata); end # The Exception instance this report was created for - # # @return [Exception] # - # source://bugsnag//lib/bugsnag/report.rb#113 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:113 def original_error; end # The raw Exception instances for this report - # # @deprecated Use {#original_error} instead - # @return [Array] # @see #exceptions + # @return [Array] # - # source://bugsnag//lib/bugsnag/report.rb#83 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:83 def raw_exceptions; end # The raw Exception instances for this report - # # @deprecated Use {#original_error} instead - # @return [Array] # @see #exceptions + # @return [Array] # - # source://bugsnag//lib/bugsnag/report.rb#83 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:83 def raw_exceptions=(_arg0); end # The current stage of the release process, e.g. 'development', production' - # - # @return [String, nil] # @see Configuration#release_stage + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#88 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:88 def release_stage; end # The current stage of the release process, e.g. 'development', production' - # - # @return [String, nil] # @see Configuration#release_stage + # @return [String, nil] # - # source://bugsnag//lib/bugsnag/report.rb#88 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:88 def release_stage=(_arg0); end # Removes a metadata tab from this notification. # - # @deprecated Use {#clear_metadata} instead # @param name [String] # @return [void] # - # source://bugsnag//lib/bugsnag/report.rb#199 + # @deprecated Use {#clear_metadata} instead + # + # pkg:gem/bugsnag#lib/bugsnag/report.rb:199 def remove_tab(name); end # Data from the current HTTP request. May be nil if no data has been recorded # # @return [Hash, nil] # - # source://bugsnag//lib/bugsnag/report.rb#323 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:323 def request; end # Data set on the configuration to be attached to every error notification. # # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#274 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:274 def request_data; end # @api private - # @return [Hash{String => String}] # @see Configuration#runtime_versions + # @return [Hash{String => String}] # - # source://bugsnag//lib/bugsnag/report.rb#68 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:68 def runtime_versions; end # @api private - # @return [Hash{String => String}] # @see Configuration#runtime_versions + # @return [Hash{String => String}] # - # source://bugsnag//lib/bugsnag/report.rb#68 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:68 def runtime_versions=(_arg0); end # The session that active when this report was generated - # - # @return [Hash] # @see SessionTracker#get_current_session + # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#93 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:93 def session; end # The session that active when this report was generated - # - # @return [Hash] # @see SessionTracker#get_current_session + # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#93 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:93 def session=(_arg0); end # Set information about the current user @@ -2984,50 +2700,47 @@ class Bugsnag::Report # @param name [String, nil] # @return [void] # - # source://bugsnag//lib/bugsnag/report.rb#382 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:382 def set_user(id = T.unsafe(nil), email = T.unsafe(nil), name = T.unsafe(nil)); end # The severity of this report, e.g. 'error', 'warning' - # # @return [String] # - # source://bugsnag//lib/bugsnag/report.rb#97 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:97 def severity; end # The severity of this report, e.g. 'error', 'warning' - # # @return [String] # - # source://bugsnag//lib/bugsnag/report.rb#97 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:97 def severity=(_arg0); end # @api private # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#101 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:101 def severity_reason; end # @api private # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#101 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:101 def severity_reason=(_arg0); end # Generates a summary to be attached as a breadcrumb # # @return [Hash] a Hash containing the report's error class, error message, and severity # - # source://bugsnag//lib/bugsnag/report.rb#290 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:290 def summary; end # Whether this report is for a handled or unhandled error - # # @return [Boolean] # - # source://bugsnag//lib/bugsnag/report.rb#27 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:27 def unhandled; end - # source://bugsnag//lib/bugsnag/report.rb#389 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:389 def unhandled=(new_unhandled); end # Returns true if the unhandled flag has been changed from its initial value @@ -3035,126 +2748,114 @@ class Bugsnag::Report # @api private # @return [Boolean] # - # source://bugsnag//lib/bugsnag/report.rb#401 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:401 def unhandled_overridden?; end # The current user when this report was generated - # # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#105 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:105 def user; end # The current user when this report was generated - # # @return [Hash] # - # source://bugsnag//lib/bugsnag/report.rb#105 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:105 def user=(_arg0); end private - # source://bugsnag//lib/bugsnag/report.rb#446 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:446 def error_class(exception); end - # source://bugsnag//lib/bugsnag/report.rb#452 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:452 def error_message(exception, class_name); end - # Returns the value of attribute feature_flag_delegate. - # - # source://bugsnag//lib/bugsnag/report.rb#407 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:407 def feature_flag_delegate; end - # source://bugsnag//lib/bugsnag/report.rb#440 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:440 def generate_error_list; end - # source://bugsnag//lib/bugsnag/report.rb#428 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:428 def generate_exception_list; end - # source://bugsnag//lib/bugsnag/report.rb#479 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:479 def generate_raw_exceptions(exception); end - # source://bugsnag//lib/bugsnag/report.rb#409 + # pkg:gem/bugsnag#lib/bugsnag/report.rb:409 def update_handled_counts(is_unhandled, was_unhandled); end end -# source://bugsnag//lib/bugsnag/report.rb#23 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:23 Bugsnag::Report::CURRENT_PAYLOAD_VERSION = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#16 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:16 Bugsnag::Report::ERROR_CLASS = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#17 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:17 Bugsnag::Report::HANDLED_EXCEPTION = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#21 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:21 Bugsnag::Report::MAX_EXCEPTIONS_TO_UNWRAP = T.let(T.unsafe(nil), Integer) -# source://bugsnag//lib/bugsnag/report.rb#10 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:10 Bugsnag::Report::NOTIFIER_NAME = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#12 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:12 Bugsnag::Report::NOTIFIER_URL = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#11 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:11 Bugsnag::Report::NOTIFIER_VERSION = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#14 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:14 Bugsnag::Report::UNHANDLED_EXCEPTION = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#15 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:15 Bugsnag::Report::UNHANDLED_EXCEPTION_MIDDLEWARE = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#19 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:19 Bugsnag::Report::USER_CALLBACK_SET_SEVERITY = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/report.rb#18 +# pkg:gem/bugsnag#lib/bugsnag/report.rb:18 Bugsnag::Report::USER_SPECIFIED_SEVERITY = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/session_tracker.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:6 class Bugsnag::SessionTracker # Initializes the session tracker. # - # @return [SessionTracker] a new instance of SessionTracker - # - # source://bugsnag//lib/bugsnag/session_tracker.rb#27 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:27 def initialize; end - # Starts a new session, storing it on the current thread. - # - # This allows Bugsnag to track error rates for a release. - # - # @return [void] - # - # source://bugsnag//lib/bugsnag/session_tracker.rb#39 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:57 def create_session; end # Stop any events being attributed to the current session until it is # resumed or a new session is started # - # @return [void] # @see resume_session # - # source://bugsnag//lib/bugsnag/session_tracker.rb#66 + # @return [void] + # + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:66 def pause_session; end # Resume the current session if it was previously paused. If there is no # current session, a new session will be started # - # @return [Boolean] true if a paused session was resumed # @see pause_session # - # source://bugsnag//lib/bugsnag/session_tracker.rb#81 + # @return [Boolean] true if a paused session was resumed + # + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:81 def resume_session; end # Delivers the current session_counts lists to the session endpoint. # - # source://bugsnag//lib/bugsnag/session_tracker.rb#102 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:102 def send_sessions; end - # Returns the value of attribute session_counts. - # - # source://bugsnag//lib/bugsnag/session_tracker.rb#11 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:11 def session_counts; end # Starts a new session, storing it on the current thread. @@ -3163,72 +2864,70 @@ class Bugsnag::SessionTracker # # @return [void] # - # source://bugsnag//lib/bugsnag/session_tracker.rb#39 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:39 def start_session; end private - # source://bugsnag//lib/bugsnag/session_tracker.rb#139 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:139 def add_session(min); end - # source://bugsnag//lib/bugsnag/session_tracker.rb#143 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:143 def deliver(session_payload); end - # source://bugsnag//lib/bugsnag/session_tracker.rb#116 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:116 def start_delivery_thread; end class << self # Returns the session information for this thread. # - # source://bugsnag//lib/bugsnag/session_tracker.rb#21 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:21 def get_current_session; end # Sets the session information for this thread. # - # source://bugsnag//lib/bugsnag/session_tracker.rb#15 + # pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:15 def set_current_session(session); end end end -# source://bugsnag//lib/bugsnag/session_tracker.rb#9 +# pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:9 Bugsnag::SessionTracker::MUTEX = T.let(T.unsafe(nil), Thread::Mutex) -# source://bugsnag//lib/bugsnag/session_tracker.rb#8 +# pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:8 Bugsnag::SessionTracker::SESSION_PAYLOAD_VERSION = T.let(T.unsafe(nil), String) -# source://bugsnag//lib/bugsnag/session_tracker.rb#7 +# pkg:gem/bugsnag#lib/bugsnag/session_tracker.rb:7 Bugsnag::SessionTracker::THREAD_SESSION = T.let(T.unsafe(nil), String) # Extracts and attaches Sidekiq job and queue information to an error report # -# source://bugsnag//lib/bugsnag/integrations/sidekiq.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/integrations/sidekiq.rb:6 class Bugsnag::Sidekiq include ::Sidekiq::ServerMiddleware - # @return [Sidekiq] a new instance of Sidekiq - # - # source://bugsnag//lib/bugsnag/integrations/sidekiq.rb#15 + # pkg:gem/bugsnag#lib/bugsnag/integrations/sidekiq.rb:15 def initialize; end - # source://bugsnag//lib/bugsnag/integrations/sidekiq.rb#21 + # pkg:gem/bugsnag#lib/bugsnag/integrations/sidekiq.rb:21 def call(worker, msg, queue); end class << self - # source://bugsnag//lib/bugsnag/integrations/sidekiq.rb#51 + # pkg:gem/bugsnag#lib/bugsnag/integrations/sidekiq.rb:51 def configure_server(server); end - # source://bugsnag//lib/bugsnag/integrations/sidekiq.rb#37 + # pkg:gem/bugsnag#lib/bugsnag/integrations/sidekiq.rb:37 def notify(exception); end - # source://bugsnag//lib/bugsnag/integrations/sidekiq.rb#47 + # pkg:gem/bugsnag#lib/bugsnag/integrations/sidekiq.rb:47 def sidekiq_supports_error_handlers; end end end -# source://bugsnag//lib/bugsnag/integrations/sidekiq.rb#10 +# pkg:gem/bugsnag#lib/bugsnag/integrations/sidekiq.rb:10 Bugsnag::Sidekiq::FRAMEWORK_ATTRIBUTES = T.let(T.unsafe(nil), Hash) -# source://bugsnag//lib/bugsnag/stacktrace.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/stacktrace.rb:4 module Bugsnag::Stacktrace class << self # Process a backtrace and the configuration into a parsed stacktrace. @@ -3237,68 +2936,62 @@ module Bugsnag::Stacktrace # @param configuration [Configuration] # @return [Array] # - # source://bugsnag//lib/bugsnag/stacktrace.rb#17 + # pkg:gem/bugsnag#lib/bugsnag/stacktrace.rb:17 def process(backtrace, configuration); end # @api private - # @return [Boolean] # - # source://bugsnag//lib/bugsnag/stacktrace.rb#74 + # pkg:gem/bugsnag#lib/bugsnag/stacktrace.rb:74 def vendor_path?(configuration, file_path); end end end # e.g. "org/jruby/RubyKernel.java:1264:in `catch'" # -# source://bugsnag//lib/bugsnag/stacktrace.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/stacktrace.rb:6 Bugsnag::Stacktrace::BACKTRACE_LINE_REGEX = T.let(T.unsafe(nil), Regexp) # e.g. "org.jruby.Ruby.runScript(Ruby.java:807)" # -# source://bugsnag//lib/bugsnag/stacktrace.rb#9 +# pkg:gem/bugsnag#lib/bugsnag/stacktrace.rb:9 Bugsnag::Stacktrace::JAVA_BACKTRACE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://bugsnag//lib/bugsnag/utility/feature_data_store.rb#1 +# pkg:gem/bugsnag#lib/bugsnag/utility/feature_data_store.rb:1 module Bugsnag::Utility; end # A container class with a maximum size, that removes oldest items as required. # # @api private # -# source://bugsnag//lib/bugsnag/utility/circular_buffer.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/utility/circular_buffer.rb:6 class Bugsnag::Utility::CircularBuffer include ::Enumerable - # @api private # @param max_items [Integer] the initial maximum number of items - # @return [CircularBuffer] a new instance of CircularBuffer # - # source://bugsnag//lib/bugsnag/utility/circular_buffer.rb#14 + # pkg:gem/bugsnag#lib/bugsnag/utility/circular_buffer.rb:14 def initialize(max_items = T.unsafe(nil)); end # Adds an item to the circular buffer # # If this causes the buffer to exceed its maximum items, the oldest item will be removed # - # @api private # @param item [Object] the item to add to the buffer # @return [self] returns itself to allow method chaining # - # source://bugsnag//lib/bugsnag/utility/circular_buffer.rb#26 + # pkg:gem/bugsnag#lib/bugsnag/utility/circular_buffer.rb:26 def <<(item); end # Iterates over the buffer # - # @api private # @yield [Object] sequentially gives stored items to the block # - # source://bugsnag//lib/bugsnag/utility/circular_buffer.rb#36 + # pkg:gem/bugsnag#lib/bugsnag/utility/circular_buffer.rb:36 def each(&block); end - # @api private # @return [Integer] the current maximum allowable number of items # - # source://bugsnag//lib/bugsnag/utility/circular_buffer.rb#10 + # pkg:gem/bugsnag#lib/bugsnag/utility/circular_buffer.rb:10 def max_items; end # Sets the maximum allowable number of items @@ -3306,66 +2999,52 @@ class Bugsnag::Utility::CircularBuffer # If the current number of items exceeds the new maximum, oldest items will be removed # until this is no longer the case # - # @api private # @param new_max_items [Integer] the new allowed item maximum # - # source://bugsnag//lib/bugsnag/utility/circular_buffer.rb#47 + # pkg:gem/bugsnag#lib/bugsnag/utility/circular_buffer.rb:47 def max_items=(new_max_items); end private # Trims the buffer down to the current maximum allowable item number # - # @api private - # - # source://bugsnag//lib/bugsnag/utility/circular_buffer.rb#56 + # pkg:gem/bugsnag#lib/bugsnag/utility/circular_buffer.rb:56 def trim_buffer; end end # @api private # -# source://bugsnag//lib/bugsnag/utility/duplicator.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/utility/duplicator.rb:3 class Bugsnag::Utility::Duplicator class << self # Duplicate (deep clone) the given object # - # @api private # @param object [Object] # @param seen_objects [Hash] # @return [Object] # - # source://bugsnag//lib/bugsnag/utility/duplicator.rb#11 + # pkg:gem/bugsnag#lib/bugsnag/utility/duplicator.rb:11 def duplicate(object, seen_objects = T.unsafe(nil)); end private - # @api private - # - # source://bugsnag//lib/bugsnag/utility/duplicator.rb#33 + # pkg:gem/bugsnag#lib/bugsnag/utility/duplicator.rb:33 def duplicate_array(array, seen_objects); end - # @api private - # - # source://bugsnag//lib/bugsnag/utility/duplicator.rb#103 + # pkg:gem/bugsnag#lib/bugsnag/utility/duplicator.rb:103 def duplicate_generic_object(object, seen_objects); end - # @api private - # - # source://bugsnag//lib/bugsnag/utility/duplicator.rb#48 + # pkg:gem/bugsnag#lib/bugsnag/utility/duplicator.rb:48 def duplicate_hash(hash, seen_objects); end # Ranges are immutable but the values they contain may not be # # For example, a range of "a".."z" can be mutated: range.first.upcase! # - # @api private - # - # source://bugsnag//lib/bugsnag/utility/duplicator.rb#67 + # pkg:gem/bugsnag#lib/bugsnag/utility/duplicator.rb:67 def duplicate_range(range, seen_objects); end - # @api private - # - # source://bugsnag//lib/bugsnag/utility/duplicator.rb#85 + # pkg:gem/bugsnag#lib/bugsnag/utility/duplicator.rb:85 def duplicate_struct(struct, seen_objects); end end end @@ -3373,7 +3052,7 @@ end # @abstract Requires a #feature_flag_delegate method returning a # {Bugsnag::Utility::FeatureFlagDelegate} # -# source://bugsnag//lib/bugsnag/utility/feature_data_store.rb#4 +# pkg:gem/bugsnag#lib/bugsnag/utility/feature_data_store.rb:4 module Bugsnag::Utility::FeatureDataStore # Add a feature flag with the given name & variant # @@ -3381,7 +3060,7 @@ module Bugsnag::Utility::FeatureDataStore # @param variant [String, nil] # @return [void] # - # source://bugsnag//lib/bugsnag/utility/feature_data_store.rb#10 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_data_store.rb:10 def add_feature_flag(name, variant = T.unsafe(nil)); end # Merge the given array of FeatureFlag instances into the stored feature @@ -3393,7 +3072,7 @@ module Bugsnag::Utility::FeatureDataStore # @param feature_flags [Array] # @return [void] # - # source://bugsnag//lib/bugsnag/utility/feature_data_store.rb#22 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_data_store.rb:22 def add_feature_flags(feature_flags); end # Remove the stored flag with the given name @@ -3401,56 +3080,51 @@ module Bugsnag::Utility::FeatureDataStore # @param name [String] # @return [void] # - # source://bugsnag//lib/bugsnag/utility/feature_data_store.rb#30 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_data_store.rb:30 def clear_feature_flag(name); end # Remove all the stored flags # # @return [void] # - # source://bugsnag//lib/bugsnag/utility/feature_data_store.rb#37 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_data_store.rb:37 def clear_feature_flags; end end # @api private # -# source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:3 class Bugsnag::Utility::FeatureFlagDelegate - # @api private - # @return [FeatureFlagDelegate] a new instance of FeatureFlagDelegate - # - # source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#4 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:4 def initialize; end # Add a feature flag with the given name & variant # - # @api private # @param name [String] # @param variant [String, nil] # @return [void] # - # source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#23 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:23 def add(name, variant); end # Get the feature flags in their JSON representation # - # @api private # @example # [ - # { "featureFlag" => "name", "variant" => "variant" }, - # { "featureFlag" => "another name" }, + # { "featureFlag" => "name", "variant" => "variant" }, + # { "featureFlag" => "another name" }, # ] + # # @return [Array String}>] # - # source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#85 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:85 def as_json; end # Remove all the stored flags # - # @api private # @return [void] # - # source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#59 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:59 def clear; end # Merge the given array of FeatureFlag instances into the stored feature @@ -3459,65 +3133,80 @@ class Bugsnag::Utility::FeatureFlagDelegate # New flags will be appended to the array. Flags with the same name will be # overwritten, but their position in the array will not change # - # @api private # @param feature_flags [Array] # @return [void] # - # source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#39 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:39 def merge(feature_flags); end # Remove the stored flag with the given name # - # @api private # @param name [String] # @return [void] # - # source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#52 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:52 def remove(name); end # Get an array of FeatureFlag instances # - # @api private # @example # [ - # <#Bugsnag::FeatureFlag>, - # <#Bugsnag::FeatureFlag>, + # <#Bugsnag::FeatureFlag>, + # <#Bugsnag::FeatureFlag>, # ] + # # @return [Array] # - # source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#72 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:72 def to_a; end private - # @api private - # - # source://bugsnag//lib/bugsnag/utility/feature_flag_delegate.rb#11 + # pkg:gem/bugsnag#lib/bugsnag/utility/feature_flag_delegate.rb:11 def initialize_dup(original); end end # @api private # -# source://bugsnag//lib/bugsnag/utility/metadata_delegate.rb#3 +# pkg:gem/bugsnag#lib/bugsnag/utility/metadata_delegate.rb:3 class Bugsnag::Utility::MetadataDelegate # Add values to metadata # - # @api private - # @overload add_metadata - # @overload add_metadata + # @overload add_metadata(metadata, section, data) + # Merges data into the given section of metadata + # @param metadata [Hash] The metadata hash to operate on + # @param section [String, Symbol] + # @param data [Hash] + # + # @overload add_metadata(metadata, section, key, value) + # Sets key to value in the given section of metadata. If the value is nil + # the key will be deleted + # @param metadata [Hash] The metadata hash to operate on + # @param section [String, Symbol] + # @param key [String, Symbol] + # @param value + # # @return [void] # - # source://bugsnag//lib/bugsnag/utility/metadata_delegate.rb#26 + # pkg:gem/bugsnag#lib/bugsnag/utility/metadata_delegate.rb:26 def add_metadata(metadata, section, key_or_data, value = T.unsafe(nil)); end # Clear values from metadata # - # @api private - # @overload clear_metadata - # @overload clear_metadata + # @overload clear_metadata(metadata, section) + # Clears the given section of metadata + # @param metadata [Hash] The metadata hash to operate on + # @param section [String, Symbol] + # + # @overload clear_metadata(metadata, section, key) + # Clears the key in the given section of metadata + # @param metadata [Hash] The metadata hash to operate on + # @param section [String, Symbol] + # @param key [String, Symbol] + # # @return [void] # - # source://bugsnag//lib/bugsnag/utility/metadata_delegate.rb#52 + # pkg:gem/bugsnag#lib/bugsnag/utility/metadata_delegate.rb:52 def clear_metadata(metadata, section, key = T.unsafe(nil)); end private @@ -3527,35 +3216,31 @@ class Bugsnag::Utility::MetadataDelegate # Any keys with a 'nil' value in the new metadata will be deleted from the # existing metadata # - # @api private # @param existing_metadata [Hash] # @param section [String, Symbol] # @param new_metadata [Hash] # @return [void] # - # source://bugsnag//lib/bugsnag/utility/metadata_delegate.rb#72 + # pkg:gem/bugsnag#lib/bugsnag/utility/metadata_delegate.rb:72 def merge_metadata(existing_metadata, section, new_metadata); end # Overwrite the value in metadata's section & key # - # @api private # @param metadata [Hash] # @param section [String, Symbol] # @param key [String, Symbol] # @param value # @return [void] # - # source://bugsnag//lib/bugsnag/utility/metadata_delegate.rb#95 + # pkg:gem/bugsnag#lib/bugsnag/utility/metadata_delegate.rb:95 def overwrite_metadata(metadata, section, key, value); end end # nil is a valid metadata value, so we need a sentinel object so we can tell # if the value parameter has been provided # -# @api private -# -# source://bugsnag//lib/bugsnag/utility/metadata_delegate.rb#6 +# pkg:gem/bugsnag#lib/bugsnag/utility/metadata_delegate.rb:6 Bugsnag::Utility::MetadataDelegate::NOT_PROVIDED = T.let(T.unsafe(nil), Object) -# source://bugsnag//lib/bugsnag/version.rb#2 +# pkg:gem/bugsnag#lib/bugsnag/version.rb:2 Bugsnag::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/cgi@0.5.2.rbi b/sorbet/rbi/gems/cgi@0.5.2.rbi new file mode 100644 index 00000000..1ea810af --- /dev/null +++ b/sorbet/rbi/gems/cgi@0.5.2.rbi @@ -0,0 +1,3238 @@ +# typed: false + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `cgi` gem. +# Please instead update this file by running `bin/tapioca gem cgi`. + + +# == Overview +# +# The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP +# request from a web server to a standalone program, and returning the output +# to the web browser. Basically, a CGI program is called with the parameters +# of the request passed in either in the environment (GET) or via $stdin +# (POST), and everything it prints to $stdout is returned to the client. +# +# This file holds the CGI class. This class provides functionality for +# retrieving HTTP request parameters, managing cookies, and generating HTML +# output. +# +# The file CGI::Session provides session management functionality; see that +# class for more details. +# +# See https://www.w3.org/CGI/ for more information on the CGI protocol. +# +# == Introduction +# +# CGI is a large class, providing several categories of methods, many of which +# are mixed in from other modules. Some of the documentation is in this class, +# some in the modules CGI::QueryExtension and CGI::HtmlExtension. See +# CGI::Cookie for specific information on handling cookies, and cgi/session.rb +# (CGI::Session) for information on sessions. +# +# For queries, CGI provides methods to get at environmental variables, +# parameters, cookies, and multipart request data. For responses, CGI provides +# methods for writing output and generating HTML. +# +# Read on for more details. Examples are provided at the bottom. +# +# == About the Examples +# +# Examples on this page assume that \CGI has been required: +# +# require 'cgi' +# +# Unless otherwise stated, examples also assume that environment variable 'REQUEST_METHOD' exists +# (which prevents CGI.new from entering its online mode): +# +# ENV.include?('REQUEST_METHOD') # => true +# +# == Queries +# +# The CGI class dynamically mixes in parameter and cookie-parsing +# functionality, environmental variable access, and support for +# parsing multipart requests (including uploaded files) from the +# CGI::QueryExtension module. +# +# === Environmental Variables +# +# The standard CGI environmental variables are available as read-only +# attributes of a CGI object. The following is a list of these variables: +# +# +# AUTH_TYPE HTTP_HOST REMOTE_IDENT +# CONTENT_LENGTH HTTP_NEGOTIATE REMOTE_USER +# CONTENT_TYPE HTTP_PRAGMA REQUEST_METHOD +# GATEWAY_INTERFACE HTTP_REFERER SCRIPT_NAME +# HTTP_ACCEPT HTTP_USER_AGENT SERVER_NAME +# HTTP_ACCEPT_CHARSET PATH_INFO SERVER_PORT +# HTTP_ACCEPT_ENCODING PATH_TRANSLATED SERVER_PROTOCOL +# HTTP_ACCEPT_LANGUAGE QUERY_STRING SERVER_SOFTWARE +# HTTP_CACHE_CONTROL REMOTE_ADDR +# HTTP_FROM REMOTE_HOST +# +# +# For each of these variables, there is a corresponding attribute with the +# same name, except all lower case and without a preceding HTTP_. +# +content_length+ and +server_port+ are integers; the rest are strings. +# +# === Parameters +# +# The method #params() returns a hash of all parameters in the request as +# name/value-list pairs, where the value-list is an Array of one or more +# values. The CGI object itself also behaves as a hash of parameter names +# to values, but only returns a single value (as a String) for each +# parameter name. +# +# For instance, suppose the request contains the parameter +# "favourite_colours" with the multiple values "blue" and "green". The +# following behavior would occur: +# +# cgi.params["favourite_colours"] # => ["blue", "green"] +# cgi["favourite_colours"] # => "blue" +# +# If a parameter does not exist, the former method will return an empty +# array, the latter an empty string. The simplest way to test for existence +# of a parameter is by the #has_key? method. +# +# === Cookies +# +# HTTP Cookies are automatically parsed from the request. They are available +# from the #cookies() accessor, which returns a hash from cookie name to +# CGI::Cookie object. +# +# === Multipart requests +# +# If a request's method is POST and its content type is multipart/form-data, +# then it may contain uploaded files. These are stored by the QueryExtension +# module in the parameters of the request. The parameter name is the name +# attribute of the file input field, as usual. However, the value is not +# a string, but an IO object, either an IOString for small files, or a +# Tempfile for larger ones. This object also has the additional singleton +# methods: +# +# #local_path():: the path of the uploaded file on the local filesystem +# #original_filename():: the name of the file on the client computer +# #content_type():: the content type of the file +# +# == Responses +# +# The CGI class provides methods for sending header and content output to +# the HTTP client, and mixes in methods for programmatic HTML generation +# from CGI::HtmlExtension and CGI::TagMaker modules. The precise version of HTML +# to use for HTML generation is specified at object creation time. +# +# === Writing output +# +# The simplest way to send output to the HTTP client is using the #out() method. +# This takes the HTTP headers as a hash parameter, and the body content +# via a block. The headers can be generated as a string using the #http_header() +# method. The output stream can be written directly to using the #print() +# method. +# +# === Generating HTML +# +# Each HTML element has a corresponding method for generating that +# element as a String. The name of this method is the same as that +# of the element, all lowercase. The attributes of the element are +# passed in as a hash, and the body as a no-argument block that evaluates +# to a String. The HTML generation module knows which elements are +# always empty, and silently drops any passed-in body. It also knows +# which elements require matching closing tags and which don't. However, +# it does not know what attributes are legal for which elements. +# +# There are also some additional HTML generation methods mixed in from +# the CGI::HtmlExtension module. These include individual methods for the +# different types of form inputs, and methods for elements that commonly +# take particular attributes where the attributes can be directly specified +# as arguments, rather than via a hash. +# +# === Utility HTML escape and other methods like a function. +# +# There are some utility tools defined in cgi/util.rb and cgi/escape.rb. +# Escape and unescape methods are defined in cgi/escape.rb. +# And when include, you can use utility methods like a function. +# +# == Examples of Use +# +# === Form Values +# +# ==== Get Form Values +# +# You can use method +cgi.params+ to retrieve form values +# in a {Hash}[https://docs.ruby-lang.org/en/3.4/Hash.html]: +# +# ENV.update( +# 'REQUEST_METHOD' => 'GET', +# 'QUERY_STRING' => 'a=111&&b=222&c&d=' +# ) +# cgi = CGI.new +# cgi.params.class # => Hash +# cgi.params # => {"a" => ["111"], "b" => ["222"], "c" => [], "d" => [""]} +# cgi.params.keys # => ["a", "b", "c", "d"] +# cgi.params['a'] # => ["111"] # Returns an array. +# cgi.params['d'] # => [""] # Returns empty string in array if no value. +# cgi.params['x'] # => [] # Returns empty array if no key. +# +# A \CGI instance has these convenience methods: +# +# # Convenience method for cgi.params.keys. +# cgi.keys # => ["a", "b", "c", "d"] +# # Convenience method for cgi.params[key].first. +# cgi['a'] # => "111" # Returns string, not array. +# cgi['d'] # => "" # Returns empty string if no value. +# cgi['x'] # => "" # Returns empty string if no key. +# # Convenience method for cgi.params.include?. +# cgi.include?('a') # => true +# cgi.include?('x') # => false +# +# ==== Save and Restore Form Values +# +# This example uses {Pstore}[https://docs.ruby-lang.org/en/3.4/PStore.html] +# to store and retrieve form values: +# +# ENV.update( +# 'REQUEST_METHOD' => 'GET', +# 'QUERY_STRING' => 'a=111&&b=222&c&d=' +# ) +# cgi = CGI.new +# require 'pstore' +# store = PStore.new('params.store') +# store.transaction do +# store['params'] = cgi.params +# end +# cgi.params.clear # Oops! Lost my params! +# store.transaction do +# cgi.params = store['params'] +# end +# cgi.params # => {"a" => ["111"], "b" => ["222"], "c" => [], "d" => [""]} +# +# ==== Get multipart form values +# +# cgi = CGI.new +# value = cgi['field_name'] # <== value string for 'field_name' +# value.read # <== body of value +# value.local_path # <== path to local file of value +# value.original_filename # <== original filename of value +# value.content_type # <== content_type of value +# +# and value has StringIO or Tempfile class methods. +# +# === Get cookie values +# +# cgi = CGI.new +# values = cgi.cookies['name'] # <== array of 'name' +# # if not 'name' included, then return []. +# names = cgi.cookies.keys # <== array of cookie names +# +# and cgi.cookies is a hash. +# +# === Get cookie objects +# +# cgi = CGI.new +# for name, cookie in cgi.cookies +# cookie.expires = Time.now + 30 +# end +# cgi.out("cookie" => cgi.cookies) {"string"} +# +# cgi.cookies # { "name1" => cookie1, "name2" => cookie2, ... } +# +# cgi = CGI.new +# cgi.cookies['name'].expires = Time.now + 30 +# cgi.out("cookie" => cgi.cookies['name']) {"string"} +# +# === Print http header and html string to $DEFAULT_OUTPUT ($>) +# +# cgi = CGI.new("html4") # add HTML generation methods +# cgi.out do +# cgi.html do +# cgi.head do +# cgi.title { "TITLE" } +# end + +# cgi.body do +# cgi.form("ACTION" => "uri") do +# cgi.p do +# cgi.textarea("get_text") + +# cgi.br + +# cgi.submit +# end +# end + +# cgi.pre do +# CGI.escapeHTML( +# "params: #{cgi.params.inspect}\n" + +# "cookies: #{cgi.cookies.inspect}\n" + +# ENV.collect do |key, value| +# "#{key} --> #{value}\n" +# end.join("") +# ) +# end +# end +# end +# end +# +# # add HTML generation methods +# CGI.new("html3") # html3.2 +# CGI.new("html4") # html4.01 (Strict) +# CGI.new("html4Tr") # html4.01 Transitional +# CGI.new("html4Fr") # html4.01 Frameset +# CGI.new("html5") # html5 +# +# === Some utility methods +# +# require 'cgi/escape' +# CGI.escapeHTML('Usage: foo "bar" ') +# +# +# === Some utility methods like a function +# +# require 'cgi/escape' +# include CGI::Escape +# escapeHTML('Usage: foo "bar" ') +# h('Usage: foo "bar" ') # alias +# +# +# -- +# Methods for generating HTML, parsing CGI-related parameters, and +# generating HTTP responses. +# ++ +# :stopdoc +# +# pkg:gem/cgi#lib/cgi/escape.rb:4 +class CGI + include ::CGI::Escape + include ::CGI::EscapeExt + include ::CGI::Util + extend ::CGI::Escape + extend ::CGI::EscapeExt + extend ::CGI::Util + + # :call-seq: + # CGI.new(options = {}) -> new_cgi + # CGI.new(tag_maker) -> new_cgi + # CGI.new(options = {}) {|name, value| ... } -> new_cgi + # CGI.new(tag_maker) {|name, value| ... } -> new_cgi + # + # Returns a new \CGI object. + # + # The behavior of this method depends _strongly_ on whether it is called + # within a standard \CGI call environment; + # that is, whether ENV['REQUEST_METHOD'] is defined. + # + # Within a Standard Call Environment + # + # This section assumes that ENV['REQUEST_METHOD'] is defined; + # for example: + # + # ENV['REQUEST_METHOD'] # => "GET" + # + # With no argument and no block given, returns a new \CGI object with default values: + # + # cgi = CGI.new + # cgi + # # => + # #, + # @accept_charset_error_block=nil, + # @cookies={}, + # @max_multipart_length=134217728, + # @multipart=false, + # @options={accept_charset: #, max_multipart_length: 134217728}, + # @output_cookies=nil, + # @output_hidden=nil, + # @params={}> + # + # With hash argument +options+ given and no block given, + # returns a new \CGI object with the given options. + # + # The options may be: + # + # - accept_charset: _encoding_: + # specifies the encoding of the received query string. + # + # Value _encoding_ may be + # an {Encoding object}[https://docs.ruby-lang.org/en/master/encodings_rdoc.html#label-Encoding+Objects] + # or an {encoding name}[https://docs.ruby-lang.org/en/master/encodings_rdoc.html#label-Names+and+Aliases]: + # + # CGI.new(accept_charset: 'EUC-JP') + # + # If the option is not given, + # the default value is the class default encoding. + # + # Note: The accept_charset method returns the HTTP Accept-Charset + # header value, not the configured encoding. The configured encoding is used + # internally for query string parsing. + # + # - max_multipart_length: _size_: + # specifies maximum size (in bytes) of multipart data. + # + # The _size_ may be: + # + # - A positive integer. + # + # CGI.new(max_multipart_length: 1024 * 1024) + # + # + # - A lambda to be evaluated when the request is parsed. + # This is useful when determining whether to accept multipart data + # (e.g. by consulting a registered user's upload allowance). + # + # CGI.new(max_multipart_length: -> {check_filesystem}) + # + # If the option is not given, the default is +134217728+, specifying a maximum size of 128 megabytes. + # + # Note: This option configures internal behavior only. + # There is no public method to retrieve this value after initialization. + # + # - tag_maker: _html_version_: + # specifies a version of HTML; + # this determines which tag-generating instance methods + # (such as +html+, +head+, +body+, etc.) are to be loaded. + # + # Value _html_version_ may be one of: + # + # - 'html3': {HTML version 3}[https://www.w3.org/MarkUp/html3/Contents.html]. + # - 'html4': {HTML version 4}[https://www.w3.org/TR/html4]. + # - 'html4Tr': {HTML 4.0 Transitional}[https://www.w3.org/TR/html4/sgml/loosedtd.html]. + # - 'html4Fr': {HTML 4.0 with Framesets}[https://www.w3.org/TR/html4/present/frames.html]. + # - 'html5': {HTML version 5}[https://html.spec.whatwg.org/multipage]. + # + # Example: + # + # CGI.new(tag_maker: 'html5') + # + # If the option is not given (or if an invalid value is given), + # no tag-generating methods are loaded. + # + # Examples: + # + # CGI.new.respond_to?(:html) # => false # Tag-generating methods not loaded. + # CGI.new(tag_maker: 'html3').respond_to?(:html) # => true # Tag-generating methods loaded. + # # Tag 'button' is new in HTML 4. + # CGI.new(tag_maker: 'html3').respond_to?(:button) # => false + # CGI.new(tag_maker: 'html4').respond_to?(:button) # => true + # # Tag 'canvas' is new in HTML 5. + # CGI.new(tag_maker: 'html4').respond_to?(:canvas) # => false + # CGI.new(tag_maker: 'html5').respond_to?(:canvas) # => true + # # Value is case-sensitive. + # CGI.new(tag_maker: 'HTML4').respond_to?(:html) # => false + # + # You can determine exactly which methods have been loaded; + # this example captures the methods loaded by 'html4': + # + # methods_loaded = CGI.new('html4').methods - CGI.new.methods + # methods_loaded.size # => 98 + # methods_loaded.sort.take(10) + # # => [:a, :abbr, :acronym, :address, :area, :b, :base, :bdo, :big, :blockquote] + # + # With string argument +tag_maker+ given as _tag_maker_ and no block given, + # equivalent to CGI.new(tag_maker: _tag_maker_): + # + # CGI.new('html5') + # + # Outside a Standard Call Environment + # + # This section assumes that ENV['REQUEST_METHOD'] is not defined; + # for example: + # + # ENV['REQUEST_METHOD'] # => nil + # + # In this mode, the method reads its parameters + # from the command line or (failing that) from standard input; + # returns a new \CGI object. + # + # Parameters from command line: + # + # $ cat t.rb + # require 'cgi' + # cgi = CGI.new + # p cgi.params + # ruby t.rb foo=0 bar=1 foo=2 bar=3 + # {"foo" => ["0", "2"], "bar" => ["1", "3"]} + # + # Parameters from standard input: + # + # cgi = CGI.new + # (offline mode: enter name=value pairs on standard input) + # foo=0 + # bar=1 + # ^D + # cgi.params + # # => {"foo" => ["0"], "bar" => ["1"]} + # + # The end-of-file character is Ctrl-D on a Unix-like system (as above), + # or Ctrl-Z on Windows. + # + # Otherwise, cookies and other parameters are parsed automatically from the standard CGI locations, + # which vary according to the request method. + # + # Options vs Public Methods + # + # Some initialization options configure internal behavior only and do not provide + # corresponding public getter methods: + # + # - accept_charset: Configures internal encoding for parsing. + # The accept_charset method returns the HTTP Accept-Charset header. + # - max_multipart_length: Configures internal multipart size limits. + # No public getter method is available. + # - tag_maker: Loads HTML generation methods (publicly accessible). + # + # Block + # + # If a block is given, its code is stored as a Proc; + # whenever CGI::InvalidEncoding would be raised, the proc is called instead. + # + # In this example, the proc simply saves the error: + # + # encoding_errors = {} + # CGI.new(accept_charset: 'EUC-JP') do |name,value| + # encoding_errors[name] = value + # end + # # => + # #, + # @cookies={}, + # @max_multipart_length=134217728, + # @multipart=false, + # @options={accept_charset: "EUC-JP", max_multipart_length: 134217728}, + # @output_cookies=nil, + # @output_hidden=nil, + # @params={}> + # + # pkg:gem/cgi#lib/cgi/core.rb:1223 + def initialize(options = T.unsafe(nil), &block); end + + # Return the accept character set for this CGI instance. + # + # pkg:gem/cgi#lib/cgi/core.rb:1018 + def accept_charset; end + + # This method is an alias for #http_header, when HTML5 tag maker is inactive. + # + # NOTE: use #http_header to create HTTP header blocks, this alias is only + # provided for backwards compatibility. + # + # Using #header with the HTML5 tag maker will create a
element. + # + # pkg:gem/cgi#lib/cgi/core.rb:365 + def header(options = T.unsafe(nil)); end + + # :call-seq: + # http_header(content_type = 'text/html') -> string + # http_header(headers) -> string + # + # Creates and returns an HTTP header section as a multi-line string. + # + # The string always includes: + # + # - Header +Content-Type+ (with a default value if none given). + # - A trailing newline, which delimits the header block; + # that last line is omitted from the examples below. + # + # In Brief + # + # headers = { + # 'charset' => 'iso-2022-jp', + # 'connection' => 'keep-alive', + # 'cookie' => 'foo=0', + # 'expires' => Time.now + (60 * 60 * 24 * 365), + # 'language' => 'en-US, en-CA', + # 'length' => 4096, + # 'nph' => true, + # 'server' => 'Apache/2.4.1 (Unix)', + # 'status' => 'OK', + # 'type' => 'text/xml', + # MyHeader: true + # } + # + # puts cgi.http_header(headers) + # HTTP/1.0 200 OK + # Date: Mon, 01 Dec 2025 22:08:22 GMT + # Server: Apache/2.4.1 (Unix) + # Connection: keep-alive + # Content-Type: text/xml; charset=iso-2022-jp + # Content-Length: 4096 + # Content-Language: en-US, en-CA + # Expires: Tue, 01 Dec 2026 22:05:30 GMT + # Set-Cookie: foo=0 + # MyHeader: true + # + # headers.delete('nph') + # + # puts cgi.http_header(headers) + # Status: 200 OK + # Server: Apache/2.4.1 (Unix) + # Connection: keep-alive + # Content-Type: text/xml; charset=iso-2022-jp + # Content-Length: 4096 + # Content-Language: en-US, en-CA + # Expires: Tue, 01 Dec 2026 22:05:30 GMT + # Set-Cookie: foo=0 + # MyHeader: true + # + # Arguments + # + # With no argument given, + # includes only header +Content-Type+ with its default value 'text/html': + # + # puts cgi.http_header + # Content-Type: text/html + # + # With string argument +content_type+ given, + # includes header +Content-Type+ with the given value: + # + # puts cgi.http_header('text/xml') + # Content-Type: text/xml + # + # With hash argument +headers+ given, + # includes a header for hash entry, whose name is based on the entry's key, + # and whose value is the entry's value. + # + # Recognized Keys + # + # The following keys are recognized; + # each is a lowercase string: + # + # 'charset':: + # The character set of the body; appended to the +Content-Type+ header: + # + # puts cgi.http_header('charset' => 'iso-2022-jp') + # Content-Type: text/html; charset=iso-2022-jp + # + # 'connection':: + # Sets header +Connection+ to the given string: + # + # puts cgi.http_header('connection' => 'keep-alive') + # Connection: keep-alive + # Content-Type: text/html + # + # 'cookie':: + # Sets one or more +Set-Cookie+ headers to the given value, which may be: + # + # - String cookie. + # - CGI::Cookie object. + # - Array of string cookies and CGI::Cookie objects. + # - A hash whose values are string cookies and CGI::Cookie objects + # (the keys are not used). + # + # Examples: + # + # foo_string = 'foo=0' + # bar_string = 'bar=1' + # foo_cookie = CGI::Cookie.new('foo', '0') + # bar_cookie = CGI::Cookie.new('bar', '1') + # + # puts cgi.http_header('cookie' => foo_string) + # Content-Type: text/html + # Set-Cookie: foo=0 + # + # puts cgi.http_header('cookie' => foo_cookie) + # Content-Type: text/html + # Set-Cookie: foo=0; path= + # + # puts cgi.http_header('cookie' => [foo_cookie, bar_string]) + # Content-Type: text/html + # Set-Cookie: foo=0; path= + # Set-Cookie: bar=1 + # + # puts cgi.http_header('cookie' => {foo: foo_cookie, bar: bar_string}) + # Content-Type: text/html + # Set-Cookie: foo=0; path= + # Set-Cookie: bar=1 + # + # These cookies are in addition to the cookies held + # in the @output_cookies variable. + # + # 'expires':: + # Sets header +Expires+ to the given time, + # which must be a {Time}[https://docs.ruby-lang.org/en/master/Time.html] object: + # + # puts cgi.http_header('expires' => Time.now + (60 * 60 * 24 * 365)) + # Content-Type: text/html + # Expires: Tue, 01 Dec 2026 23:42:37 GMT + # + # 'language':: + # Sets header +Content-Language+ to the given string: + # + # puts cgi.http_header('language' => 'en-US, en-CA') + # Content-Type: text/html + # Content-Language: en-US, en-CA + # + # 'length':: + # Sets header +Content-Length+ to the given value, + # which may be an integer or a string: + # + # puts cgi.http_header('length' => 4096) + # Content-Type: text/html + # Content-Length: 4096 + # + # puts cgi.http_header('length' => '4096') + # Content-Type: text/html + # Content-Length: 4096 + # + # 'nph':: + # If +true+: + # + # - Adds protocol string and status code as first line. + # - Adds date as second line. + # - Adds headers +Server+ with no value, + # and +Connection+ with default value 'close'; + # either or both values may be overridden with explicit values. + # + # Examples: + # + # puts cgi.http_header('nph' => true) + # HTTP/1.0 200 OK + # Date: Mon, 01 Dec 2025 19:42:22 GMT + # Server: + # Connection: close + # Content-Type: text/html + # + # puts cgi.http_header('nph' => true, 'server' => 'Apache/2.4.1 (Unix)', 'connection' => 'keep-alive') + # HTTP/1.0 200 OK + # Date: Mon, 01 Dec 2025 20:00:41 GMT + # Server: Apache/2.4.1 (Unix) + # Connection: keep-alive + # Content-Type: text/html + # + # 'server':: + # Sets header +Server+ to the given string: + # + # puts cgi.http_header('server' => 'Apache/2.4.1 (Unix)') + # Server: Apache/2.4.1 (Unix) + # Content-Type: text/html + # + # 'status':: + # Sets header +Status+ to the given string: + # + # puts cgi.http_header('status' => '666 MyVeryOwnStatus') + # Status: 666 MyVeryOwnStatus + # Content-Type: text/html + # + # If the given string is a key in the hash constant +CGI::HTTP_STATUS+, + # the status becomes the value for that key: + # + # CGI::HTTP_STATUS + # # => + # {"OK" => "200 OK", + # "PARTIAL_CONTENT" => "206 Partial Content", + # "MULTIPLE_CHOICES" => "300 Multiple Choices", + # "MOVED" => "301 Moved Permanently", + # "REDIRECT" => "302 Found", + # "NOT_MODIFIED" => "304 Not Modified", + # "BAD_REQUEST" => "400 Bad Request", + # "AUTH_REQUIRED" => "401 Authorization Required", + # "FORBIDDEN" => "403 Forbidden", + # "NOT_FOUND" => "404 Not Found", + # "METHOD_NOT_ALLOWED" => "405 Method Not Allowed", + # "NOT_ACCEPTABLE" => "406 Not Acceptable", + # "LENGTH_REQUIRED" => "411 Length Required", + # "PRECONDITION_FAILED" => "412 Precondition Failed", + # "SERVER_ERROR" => "500 Internal Server Error", + # "NOT_IMPLEMENTED" => "501 Method Not Implemented", + # "BAD_GATEWAY" => "502 Bad Gateway", + # "VARIANT_ALSO_VARIES" => "506 Variant Also Negotiates"} + # + # puts cgi.http_header('status' => 'OK') + # Status: 200 OK + # Content-Type: text/html + # + # puts cgi.http_header('status' => 'NOT_FOUND') + # Status: 404 Not Found + # Content-Type: text/html + # + # 'type':: + # Sets +Content-Type+, overriding the default value 'text/html': + # + # puts cgi.http_header('type' => 'text/xml') + # Content-Type: text/xml + # + # Unrecognized Keys + # + # Headers may also be set for unrecognized keys; + # an unrecognized key becomes a header name with the given value: + # + # puts cgi.http_header('length' => 0) # Recognized key (lowercase string). + # Content-Type: text/html + # Content-Length: 0 + # + # puts cgi.http_header('Length' => 0) # Unrecognized key (string key not lowercase). + # Content-Type: text/html + # Length: 0 + # + # puts cgi.http_header(length: 0) # Unrecognized key (symbol key not string) + # Content-Type: text/html + # length: 0 + # + # This method does not perform charset conversion. + # + # It's best to use this method (CGI#http_header), not its aliased method +header+, + # which is provided only for backward compatibility. + # + # Method CGI#http_header is preferred because when +tag_maker+ is 'html5', + # calling method +header+ generates an HTML +header+ element: + # + # cgi = CGI.new(tag_maker: 'html5') + # puts cgi.http_header # Works as expected. + # Content-Type: text/html + # puts cgi.header # Maybe a surprise. + #
+ # + # pkg:gem/cgi#lib/cgi/core.rb:336 + def http_header(options = T.unsafe(nil)); end + + # pkg:gem/cgi#lib/cgi/core.rb:450 + def nph?; end + + # Print an HTTP header and body to $DEFAULT_OUTPUT ($>) + # + # :call-seq: + # cgi.out(content_type_string='text/html') + # cgi.out(headers_hash) + # + # +content_type_string+:: + # If a string is passed, it is assumed to be the content type. + # +headers_hash+:: + # This is a Hash of headers, similar to that used by #http_header. + # +block+:: + # A block is required and should evaluate to the body of the response. + # + # Content-Length is automatically calculated from the size of + # the String returned by the content block. + # + # If ENV['REQUEST_METHOD'] == "HEAD", then only the header + # is output (the content block is still required, but it is ignored). + # + # If the charset is "iso-2022-jp" or "euc-jp" or "shift_jis" then the + # content is converted to this charset, and the language is set to "ja". + # + # Example: + # + # cgi = CGI.new + # cgi.out{ "string" } + # # Content-Type: text/html + # # Content-Length: 6 + # # + # # string + # + # cgi.out("text/plain") { "string" } + # # Content-Type: text/plain + # # Content-Length: 6 + # # + # # string + # + # cgi.out("nph" => true, + # "status" => "OK", # == "200 OK" + # "server" => ENV['SERVER_SOFTWARE'], + # "connection" => "close", + # "type" => "text/html", + # "charset" => "iso-2022-jp", + # # Content-Type: text/html; charset=iso-2022-jp + # "language" => "ja", + # "expires" => Time.now + (3600 * 24 * 30), + # "cookie" => [cookie1, cookie2], + # "my_header1" => "my_value", + # "my_header2" => "my_value") { "string" } + # # HTTP/1.1 200 OK + # # Date: Sun, 15 May 2011 17:35:54 GMT + # # Server: Apache 2.2.0 + # # Connection: close + # # Content-Type: text/html; charset=iso-2022-jp + # # Content-Length: 6 + # # Content-Language: ja + # # Expires: Tue, 14 Jun 2011 17:35:54 GMT + # # Set-Cookie: foo + # # Set-Cookie: bar + # # my_header1: my_value + # # my_header2: my_value + # # + # # string + # + # pkg:gem/cgi#lib/cgi/core.rb:543 + def out(options = T.unsafe(nil)); end + + # Print an argument or list of arguments to the default output stream + # + # cgi = CGI.new + # cgi.print # default: cgi.print == $DEFAULT_OUTPUT.print + # + # pkg:gem/cgi#lib/cgi/core.rb:559 + def print(*options); end + + private + + # pkg:gem/cgi#lib/cgi/core.rb:394 + def _header_for_hash(options); end + + # pkg:gem/cgi#lib/cgi/core.rb:454 + def _header_for_modruby(buf); end + + # pkg:gem/cgi#lib/cgi/core.rb:378 + def _header_for_string(content_type); end + + # pkg:gem/cgi#lib/cgi/core.rb:367 + def _no_crlf_check(str); end + + # Synonym for ENV. + # + # pkg:gem/cgi#lib/cgi/core.rb:59 + def env_table; end + + # Synonym for $stdin. + # + # pkg:gem/cgi#lib/cgi/core.rb:64 + def stdinput; end + + # Synonym for $stdout. + # + # pkg:gem/cgi#lib/cgi/core.rb:69 + def stdoutput; end + + class << self + # :call-seq: + # CGI.accept_charset -> encoding + # + # Returns the default accept character set to be used for new \CGI instances; + # see CGI.accept_charset=. + # + # pkg:gem/cgi#lib/cgi/core.rb:949 + def accept_charset; end + + # :call-seq: + # CGI.accept_charset = encoding + # + # Sets the default accept character set to be used for new \CGI instances; + # returns the argument. + # + # The argument may be an Encoding object or an Encoding name; + # see {Encodings}[https://docs.ruby-lang.org/en/master/language/encodings_rdoc.html]: + # + # # The initial value. + # CGI.accept_charset # => # + # CGI.new + # # => + # #, + # @accept_charset_error_block=nil, + # @cookies={}, + # @max_multipart_length=134217728, + # @multipart=false, + # @options={accept_charset: #, max_multipart_length: 134217728}, + # @output_cookies=nil, + # @output_hidden=nil, + # @params={}> + # + # # Set by Encoding name. + # CGI.accept_charset = 'US-ASCII' # => "US-ASCII" + # CGI.new + # # => + # # + # + # # Set by Encoding object. + # CGI.accept_charset = Encoding::ASCII_8BIT # => # + # CGI.new + # # => + # #, + # @accept_charset_error_block=nil, + # @cookies={}, + # @max_multipart_length=134217728, + # @multipart=false, + # @options={accept_charset: #, max_multipart_length: 134217728}, + # @output_cookies=nil, + # @output_hidden=nil, + # @params={}> + # + # The given encoding is not checked in this method, + # but if it is invalid, a call to CGI.new will fail: + # + # CGI.accept_charset = 'foo' + # CGI.new # Raises ArgumentError: unknown encoding name - foo + # + # pkg:gem/cgi#lib/cgi/core.rb:1013 + def accept_charset=(accept_charset); end + + # :call-seq: + # CGI.parse(query_string) -> hash + # + # Returns a new hash built from name/value pairs in the given +query_string+: + # + # query = 'foo=0&bar=1&foo=2&bar=3' + # CGI.parse(query) + # # => {"foo" => ["0", "2"], "bar" => ["1", "3"]} + # + # pkg:gem/cgi#lib/cgi/core.rb:572 + def parse(query); end + end +end + +# Class representing an HTTP cookie. +# +# In addition to its specific fields and methods, a Cookie instance +# is a delegator to the array of its values. +# +# See RFC 2965. +# +# == Examples of use +# cookie1 = CGI::Cookie.new("name", "value1", "value2", ...) +# cookie1 = CGI::Cookie.new("name" => "name", "value" => "value") +# cookie1 = CGI::Cookie.new('name' => 'name', +# 'value' => ['value1', 'value2', ...], +# 'path' => 'path', # optional +# 'domain' => 'domain', # optional +# 'expires' => Time.now, # optional +# 'secure' => true, # optional +# 'httponly' => true # optional +# ) +# +# cgi.out("cookie" => [cookie1, cookie2]) { "string" } +# +# name = cookie1.name +# values = cookie1.value +# path = cookie1.path +# domain = cookie1.domain +# expires = cookie1.expires +# secure = cookie1.secure +# httponly = cookie1.httponly +# +# cookie1.name = 'name' +# cookie1.value = ['value1', 'value2', ...] +# cookie1.path = 'path' +# cookie1.domain = 'domain' +# cookie1.expires = Time.now + 30 +# cookie1.secure = true +# cookie1.httponly = true +# +# pkg:gem/cgi#lib/cgi/cookie.rb:40 +class CGI::Cookie < ::Array + # Create a new CGI::Cookie object. + # + # :call-seq: + # Cookie.new(name_string,*value) + # Cookie.new(options_hash) + # + # +name_string+:: + # The name of the cookie; in this form, there is no #domain or + # #expiration. The #path is gleaned from the +SCRIPT_NAME+ environment + # variable, and #secure is false. + # *value:: + # value or list of values of the cookie + # +options_hash+:: + # A Hash of options to initialize this Cookie. Possible options are: + # + # name:: the name of the cookie. Required. + # value:: the cookie's value or list of values. + # path:: the path for which this cookie applies. Defaults to + # the value of the +SCRIPT_NAME+ environment variable. + # domain:: the domain for which this cookie applies. + # expires:: the time at which this cookie expires, as a +Time+ object. + # secure:: whether this cookie is a secure cookie or not (default to + # false). Secure cookies are only transmitted to HTTPS + # servers. + # httponly:: whether this cookie is a HttpOnly cookie or not (default to + # false). HttpOnly cookies are not available to javascript. + # + # These keywords correspond to attributes of the cookie object. + # + # pkg:gem/cgi#lib/cgi/cookie.rb:77 + def initialize(name = T.unsafe(nil), *value); end + + # Domain for which this cookie applies, as a +String+ + # + # pkg:gem/cgi#lib/cgi/cookie.rb:126 + def domain; end + + # Set domain for which this cookie applies + # + # pkg:gem/cgi#lib/cgi/cookie.rb:128 + def domain=(str); end + + # Time at which this cookie expires, as a +Time+ + # + # pkg:gem/cgi#lib/cgi/cookie.rb:136 + def expires; end + + # Time at which this cookie expires, as a +Time+ + # + # pkg:gem/cgi#lib/cgi/cookie.rb:136 + def expires=(_arg0); end + + # True if this cookie is httponly; false otherwise + # + # pkg:gem/cgi#lib/cgi/cookie.rb:140 + def httponly; end + + # Set whether the Cookie is a httponly cookie or not. + # + # +val+ must be a boolean. + # + # pkg:gem/cgi#lib/cgi/cookie.rb:163 + def httponly=(val); end + + # A summary of cookie string. + # + # pkg:gem/cgi#lib/cgi/cookie.rb:205 + def inspect; end + + # Name of this cookie, as a +String+ + # + # pkg:gem/cgi#lib/cgi/cookie.rb:106 + def name; end + + # Set name of this cookie + # + # pkg:gem/cgi#lib/cgi/cookie.rb:108 + def name=(str); end + + # Path for which this cookie applies, as a +String+ + # + # pkg:gem/cgi#lib/cgi/cookie.rb:116 + def path; end + + # Set path for which this cookie applies + # + # pkg:gem/cgi#lib/cgi/cookie.rb:118 + def path=(str); end + + # True if this cookie is secure; false otherwise + # + # pkg:gem/cgi#lib/cgi/cookie.rb:138 + def secure; end + + # Set whether the Cookie is a secure cookie or not. + # + # +val+ must be a boolean. + # + # pkg:gem/cgi#lib/cgi/cookie.rb:155 + def secure=(val); end + + # Convert the Cookie to its string representation. + # + # pkg:gem/cgi#lib/cgi/cookie.rb:168 + def to_s; end + + # Returns the value or list of values for this cookie. + # + # pkg:gem/cgi#lib/cgi/cookie.rb:143 + def value; end + + # Replaces the value of this cookie with a new value or list of values. + # + # pkg:gem/cgi#lib/cgi/cookie.rb:148 + def value=(val); end + + class << self + # Parse a raw cookie string into a hash of cookie-name=>Cookie + # pairs. + # + # cookies = CGI::Cookie.parse("raw_cookie_string") + # # { "name1" => cookie1, "name2" => cookie2, ... } + # + # pkg:gem/cgi#lib/cgi/cookie.rb:185 + def parse(raw_cookie); end + end +end + +# pkg:gem/cgi#lib/cgi/cookie.rb:46 +CGI::Cookie::DOMAIN_VALUE_RE = T.let(T.unsafe(nil), Regexp) + +# pkg:gem/cgi#lib/cgi/cookie.rb:45 +CGI::Cookie::PATH_VALUE_RE = T.let(T.unsafe(nil), Regexp) + +# :stopdoc: +# +# pkg:gem/cgi#lib/cgi/cookie.rb:44 +CGI::Cookie::TOKEN_RE = T.let(T.unsafe(nil), Regexp) + +# Escape/unescape for CGI, HTML, URI. +# +# pkg:gem/cgi#lib/cgi/escape.rb:5 +module CGI::Escape + include ::CGI::EscapeExt + + # URL-encode a string into application/x-www-form-urlencoded. + # Space characters (+" "+) are encoded with plus signs (+"+"+) + # url_encoded_string = CGI.escape("'Stop!' said Fred") + # # => "%27Stop%21%27+said+Fred" + # + # pkg:gem/cgi#lib/cgi/escape.rb:20 + def escape(_arg0); end + + # Escape only the tags of certain HTML elements in +string+. + # + # Takes an element or elements or array of elements. Each element + # is specified by the name of the element, without angle brackets. + # This matches both the start and the end tag of that element. + # The attribute list of the open tag will also be escaped (for + # instance, the double-quotes surrounding attribute values). + # + # print CGI.escapeElement('
', "A", "IMG") + # # "
<A HREF="url"></A>" + # + # print CGI.escapeElement('
', ["A", "IMG"]) + # # "
<A HREF="url"></A>" + # + # pkg:gem/cgi#lib/cgi/escape.rb:190 + def escapeElement(string, *elements); end + + # Escape special characters in HTML, namely '&\"<> + # CGI.escapeHTML('Usage: foo "bar" ') + # # => "Usage: foo "bar" <baz>" + # + # pkg:gem/cgi#lib/cgi/escape.rb:83 + def escapeHTML(_arg0); end + + # URL-encode a string following RFC 3986 + # Space characters (+" "+) are encoded with (+"%20"+) + # url_encoded_string = CGI.escapeURIComponent("'Stop!' said Fred") + # # => "%27Stop%21%27%20said%20Fred" + # + # pkg:gem/cgi#lib/cgi/escape.rb:47 + def escapeURIComponent(_arg0); end + + # Synonym for CGI.escapeElement(str) + # + # pkg:gem/cgi#lib/cgi/escape.rb:222 + def escape_element(string, *elements); end + + # pkg:gem/cgi#lib/cgi/escape.rb:55 + def escape_uri_component(_arg0); end + + # URL-decode an application/x-www-form-urlencoded string with encoding(optional). + # string = CGI.unescape("%27Stop%21%27+said+Fred") + # # => "'Stop!' said Fred" + # + # pkg:gem/cgi#lib/cgi/escape.rb:33 + def unescape(*_arg0); end + + # Undo escaping such as that done by CGI.escapeElement() + # + # print CGI.unescapeElement( + # CGI.escapeHTML('
'), "A", "IMG") + # # "<BR>" + # + # print CGI.unescapeElement( + # CGI.escapeHTML('
'), ["A", "IMG"]) + # # "<BR>" + # + # pkg:gem/cgi#lib/cgi/escape.rb:210 + def unescapeElement(string, *elements); end + + # Unescape a string that has been HTML-escaped + # CGI.unescapeHTML("Usage: foo "bar" <baz>") + # # => "Usage: foo \"bar\" " + # + # pkg:gem/cgi#lib/cgi/escape.rb:105 + def unescapeHTML(_arg0); end + + # URL-decode a string following RFC 3986 with encoding(optional). + # string = CGI.unescapeURIComponent("%27Stop%21%27+said%20Fred") + # # => "'Stop!'+said Fred" + # + # pkg:gem/cgi#lib/cgi/escape.rb:60 + def unescapeURIComponent(*_arg0); end + + # Synonym for CGI.unescapeElement(str) + # + # pkg:gem/cgi#lib/cgi/escape.rb:225 + def unescape_element(string, *elements); end + + # pkg:gem/cgi#lib/cgi/escape.rb:69 + def unescape_uri_component(*_arg0); end +end + +# The set of special characters and their escaped values +# +# pkg:gem/cgi#lib/cgi/escape.rb:72 +CGI::Escape::TABLE_FOR_ESCAPE_HTML__ = T.let(T.unsafe(nil), Hash) + +# pkg:gem/cgi#lib/cgi/escape.rb:8 +module CGI::EscapeExt + # pkg:gem/cgi#lib/cgi/escape.rb:164 + def escape(_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:164 + def escapeHTML(_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:164 + def escapeURIComponent(_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:172 + def escape_html(_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:164 + def escape_uri_component(_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:173 + def h(_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:164 + def unescape(*_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:164 + def unescapeHTML(_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:164 + def unescapeURIComponent(*_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:174 + def unescape_html(_arg0); end + + # pkg:gem/cgi#lib/cgi/escape.rb:164 + def unescape_uri_component(*_arg0); end +end + +# HTML version 3 generation class. +# +# pkg:gem/cgi#lib/cgi/html.rb:1010 +class CGI::HTML3 + include ::CGI::TagMaker + include ::CGI::Html3 + include ::CGI::HtmlExtension +end + +# HTML version 4 generation class. +# +# pkg:gem/cgi#lib/cgi/html.rb:1016 +class CGI::HTML4 + include ::CGI::TagMaker + include ::CGI::Html4 + include ::CGI::HtmlExtension +end + +# HTML version 4 with framesets generation class. +# +# pkg:gem/cgi#lib/cgi/html.rb:1028 +class CGI::HTML4Fr + include ::CGI::TagMaker + include ::CGI::Html4Tr + include ::CGI::Html4Fr + include ::CGI::HtmlExtension +end + +# HTML version 4 transitional generation class. +# +# pkg:gem/cgi#lib/cgi/html.rb:1022 +class CGI::HTML4Tr + include ::CGI::TagMaker + include ::CGI::Html4Tr + include ::CGI::HtmlExtension +end + +# HTML version 5 generation class. +# +# pkg:gem/cgi#lib/cgi/html.rb:1035 +class CGI::HTML5 + include ::CGI::TagMaker + include ::CGI::Html5 + include ::CGI::HtmlExtension +end + +# Mixin module for HTML version 3 generation methods. +# +# pkg:gem/cgi#lib/cgi/html.rb:822 +module CGI::Html3 + include ::CGI::TagMaker + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def a(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def address(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def applet(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def area(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def b(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def base(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def basefont(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def big(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def blockquote(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def body(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def br(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def caption(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def center(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def cite(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def code(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def dd(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def dfn(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def dir(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def div(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def dl(attributes = T.unsafe(nil), &block); end + + # The DOCTYPE declaration for this version of HTML + # + # pkg:gem/cgi#lib/cgi/html.rb:826 + def doctype; end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def dt(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def em(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def font(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def form(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def h1(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def h2(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def h3(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def h4(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def h5(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def h6(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def head(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def hr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def html(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def i(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def img(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def input(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def isindex(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def kbd(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def li(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def link(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def listing(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def map(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def menu(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def meta(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def ol(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def option(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def p(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:845 + def param(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def plaintext(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def pre(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def samp(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def script(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def select(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def small(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def strike(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def strong(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def style(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def sub(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def sup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def table(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def td(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def textarea(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def th(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def title(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:853 + def tr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def tt(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def u(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def ul(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def var(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:837 + def xmp(attributes = T.unsafe(nil), &block); end +end + +# Mixin module for HTML version 4 generation methods. +# +# pkg:gem/cgi#lib/cgi/html.rb:861 +module CGI::Html4 + include ::CGI::TagMaker + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def a(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def abbr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def acronym(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def address(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def area(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def b(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def base(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def bdo(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def big(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def blockquote(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def body(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def br(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def button(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def caption(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def cite(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def code(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def col(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def colgroup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def dd(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def del(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def dfn(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def div(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def dl(attributes = T.unsafe(nil), &block); end + + # The DOCTYPE declaration for this version of HTML + # + # pkg:gem/cgi#lib/cgi/html.rb:865 + def doctype; end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def dt(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def em(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def fieldset(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def form(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def h1(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def h2(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def h3(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def h4(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def h5(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def h6(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def head(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def hr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def html(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def i(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def img(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def input(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def ins(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def kbd(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def label(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def legend(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def li(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def link(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def map(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def meta(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def noscript(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def object(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def ol(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def optgroup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def option(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def p(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:884 + def param(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def pre(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def q(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def samp(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def script(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def select(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def small(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def span(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def strong(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def style(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def sub(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def sup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def table(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def tbody(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def td(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def textarea(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def tfoot(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def th(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def thead(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def title(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:892 + def tr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def tt(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def ul(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:877 + def var(attributes = T.unsafe(nil), &block); end +end + +# Mixin module for generating HTML version 4 with framesets. +# +# pkg:gem/cgi#lib/cgi/html.rb:941 +module CGI::Html4Fr + include ::CGI::TagMaker + + # The DOCTYPE declaration for this version of HTML + # + # pkg:gem/cgi#lib/cgi/html.rb:945 + def doctype; end + + # pkg:gem/cgi#lib/cgi/html.rb:960 + def frame(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:953 + def frameset(attributes = T.unsafe(nil), &block); end +end + +# Mixin module for HTML version 4 transitional generation methods. +# +# pkg:gem/cgi#lib/cgi/html.rb:900 +module CGI::Html4Tr + include ::CGI::TagMaker + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def a(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def abbr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def acronym(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def address(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def applet(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def area(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def b(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def base(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def basefont(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def bdo(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def big(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def blockquote(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def body(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def br(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def button(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def caption(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def center(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def cite(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def code(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def col(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def colgroup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def dd(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def del(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def dfn(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def dir(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def div(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def dl(attributes = T.unsafe(nil), &block); end + + # The DOCTYPE declaration for this version of HTML + # + # pkg:gem/cgi#lib/cgi/html.rb:904 + def doctype; end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def dt(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def em(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def fieldset(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def font(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def form(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def h1(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def h2(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def h3(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def h4(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def h5(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def h6(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def head(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def hr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def html(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def i(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def iframe(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def img(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def input(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def ins(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def isindex(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def kbd(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def label(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def legend(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def li(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def link(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def map(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def menu(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def meta(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def noframes(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def noscript(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def object(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def ol(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def optgroup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def option(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def p(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:925 + def param(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def pre(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def q(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def s(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def samp(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def script(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def select(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def small(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def span(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def strike(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def strong(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def style(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def sub(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def sup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def table(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def tbody(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def td(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def textarea(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def tfoot(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def th(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def thead(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def title(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:933 + def tr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def tt(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def u(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def ul(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:917 + def var(attributes = T.unsafe(nil), &block); end +end + +# Mixin module for HTML version 5 generation methods. +# +# pkg:gem/cgi#lib/cgi/html.rb:968 +module CGI::Html5 + include ::CGI::TagMaker + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def a(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def abbr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def address(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def area(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def article(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def aside(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def audio(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def b(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def base(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def bdi(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def bdo(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def blockquote(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def body(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def br(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def button(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def canvas(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def caption(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def cite(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def code(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def col(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def colgroup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def command(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def datalist(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def dd(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def del(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def details(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def dfn(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def dialog(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def div(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def dl(attributes = T.unsafe(nil), &block); end + + # The DOCTYPE declaration for this version of HTML + # + # pkg:gem/cgi#lib/cgi/html.rb:972 + def doctype; end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def dt(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def em(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def embed(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def fieldset(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def figcaption(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def figure(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def footer(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def form(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def h1(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def h2(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def h3(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def h4(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def h5(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def h6(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def head(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def header(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def hgroup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def hr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def html(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def i(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def iframe(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def img(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def input(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def ins(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def kbd(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def keygen(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def label(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def legend(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def li(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def link(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def map(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def mark(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def menu(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def meta(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def meter(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def nav(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def noscript(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def object(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def ol(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def optgroup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def option(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def output(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def p(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def param(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def pre(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def progress(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def q(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def rp(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def rt(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def ruby(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def s(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def samp(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def script(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def section(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def select(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def small(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def source(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def span(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def strong(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def style(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def sub(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def summary(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def sup(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def table(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def tbody(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def td(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def textarea(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def tfoot(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def th(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def thead(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def time(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def title(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:1003 + def tr(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def track(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def u(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def ul(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def var(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:987 + def video(attributes = T.unsafe(nil), &block); end + + # pkg:gem/cgi#lib/cgi/html.rb:995 + def wbr(attributes = T.unsafe(nil), &block); end +end + +# Mixin module providing HTML generation methods. +# +# For example, +# cgi.a("http://www.example.com") { "Example" } +# # => "Example" +# +# Modules Html3, Html4, etc., contain more basic HTML-generation methods +# (+#title+, +#h1+, etc.). +# +# See class CGI for a detailed example. +# +# pkg:gem/cgi#lib/cgi/html.rb:79 +module CGI::HtmlExtension + # Generate an Anchor element as a string. + # + # +href+ can either be a string, giving the URL + # for the HREF attribute, or it can be a hash of + # the element's attributes. + # + # The body of the element is the string returned by the no-argument + # block passed in. + # + # a("http://www.example.com") { "Example" } + # # => "Example" + # + # a("HREF" => "http://www.example.com", "TARGET" => "_top") { "Example" } + # # => "Example" + # + # pkg:gem/cgi#lib/cgi/html.rb:97 + def a(href = T.unsafe(nil)); end + + # Generate a Document Base URI element as a String. + # + # +href+ can either by a string, giving the base URL for the HREF + # attribute, or it can be a has of the element's attributes. + # + # The passed-in no-argument block is ignored. + # + # base("http://www.example.com/cgi") + # # => "" + # + # pkg:gem/cgi#lib/cgi/html.rb:115 + def base(href = T.unsafe(nil)); end + + # Generate a BlockQuote element as a string. + # + # +cite+ can either be a string, give the URI for the source of + # the quoted text, or a hash, giving all attributes of the element, + # or it can be omitted, in which case the element has no attributes. + # + # The body is provided by the passed-in no-argument block + # + # blockquote("http://www.example.com/quotes/foo.html") { "Foo!" } + # #=> "
Foo!
+ # + # pkg:gem/cgi#lib/cgi/html.rb:134 + def blockquote(cite = T.unsafe(nil)); end + + # Generate a Table Caption element as a string. + # + # +align+ can be a string, giving the alignment of the caption + # (one of top, bottom, left, or right). It can be a hash of + # all the attributes of the element. Or it can be omitted. + # + # The body of the element is provided by the passed-in no-argument block. + # + # caption("left") { "Capital Cities" } + # # => Capital Cities + # + # pkg:gem/cgi#lib/cgi/html.rb:154 + def caption(align = T.unsafe(nil)); end + + # Generate a Checkbox Input element as a string. + # + # The attributes of the element can be specified as three arguments, + # +name+, +value+, and +checked+. +checked+ is a boolean value; + # if true, the CHECKED attribute will be included in the element. + # + # Alternatively, the attributes can be specified as a hash. + # + # checkbox("name") + # # = checkbox("NAME" => "name") + # + # checkbox("name", "value") + # # = checkbox("NAME" => "name", "VALUE" => "value") + # + # checkbox("name", "value", true) + # # = checkbox("NAME" => "name", "VALUE" => "value", "CHECKED" => true) + # + # pkg:gem/cgi#lib/cgi/html.rb:180 + def checkbox(name = T.unsafe(nil), value = T.unsafe(nil), checked = T.unsafe(nil)); end + + # Generate a sequence of checkbox elements, as a String. + # + # The checkboxes will all have the same +name+ attribute. + # Each checkbox is followed by a label. + # There will be one checkbox for each value. Each value + # can be specified as a String, which will be used both + # as the value of the VALUE attribute and as the label + # for that checkbox. A single-element array has the + # same effect. + # + # Each value can also be specified as a three-element array. + # The first element is the VALUE attribute; the second is the + # label; and the third is a boolean specifying whether this + # checkbox is CHECKED. + # + # Each value can also be specified as a two-element + # array, by omitting either the value element (defaults + # to the same as the label), or the boolean checked element + # (defaults to false). + # + # checkbox_group("name", "foo", "bar", "baz") + # # foo + # # bar + # # baz + # + # checkbox_group("name", ["foo"], ["bar", true], "baz") + # # foo + # # bar + # # baz + # + # checkbox_group("name", ["1", "Foo"], ["2", "Bar", true], "Baz") + # # Foo + # # Bar + # # Baz + # + # checkbox_group("NAME" => "name", + # "VALUES" => ["foo", "bar", "baz"]) + # + # checkbox_group("NAME" => "name", + # "VALUES" => [["foo"], ["bar", true], "baz"]) + # + # checkbox_group("NAME" => "name", + # "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"]) + # + # pkg:gem/cgi#lib/cgi/html.rb:234 + def checkbox_group(name = T.unsafe(nil), *values); end + + # Generate an File Upload Input element as a string. + # + # The attributes of the element can be specified as three arguments, + # +name+, +size+, and +maxlength+. +maxlength+ is the maximum length + # of the file's _name_, not of the file's _contents_. + # + # Alternatively, the attributes can be specified as a hash. + # + # See #multipart_form() for forms that include file uploads. + # + # file_field("name") + # # + # + # file_field("name", 40) + # # + # + # file_field("name", 40, 100) + # # + # + # file_field("NAME" => "name", "SIZE" => 40) + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:276 + def file_field(name = T.unsafe(nil), size = T.unsafe(nil), maxlength = T.unsafe(nil)); end + + # Generate a Form element as a string. + # + # +method+ should be either "get" or "post", and defaults to the latter. + # +action+ defaults to the current CGI script name. +enctype+ + # defaults to "application/x-www-form-urlencoded". + # + # Alternatively, the attributes can be specified as a hash. + # + # See also #multipart_form() for forms that include file uploads. + # + # form{ "string" } + # #
string
+ # + # form("get") { "string" } + # #
string
+ # + # form("get", "url") { "string" } + # #
string
+ # + # form("METHOD" => "post", "ENCTYPE" => "enctype") { "string" } + # #
string
+ # + # pkg:gem/cgi#lib/cgi/html.rb:310 + def form(method = T.unsafe(nil), action = T.unsafe(nil), enctype = T.unsafe(nil)); end + + # Generate a Hidden Input element as a string. + # + # The attributes of the element can be specified as two arguments, + # +name+ and +value+. + # + # Alternatively, the attributes can be specified as a hash. + # + # hidden("name") + # # + # + # hidden("name", "value") + # # + # + # hidden("NAME" => "name", "VALUE" => "reset", "ID" => "foo") + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:351 + def hidden(name = T.unsafe(nil), value = T.unsafe(nil)); end + + # Generate a top-level HTML element as a string. + # + # The attributes of the element are specified as a hash. The + # pseudo-attribute "PRETTY" can be used to specify that the generated + # HTML string should be indented. "PRETTY" can also be specified as + # a string as the sole argument to this method. The pseudo-attribute + # "DOCTYPE", if given, is used as the leading DOCTYPE SGML tag; it + # should include the entire text of this tag, including angle brackets. + # + # The body of the html element is supplied as a block. + # + # html{ "string" } + # # string + # + # html("LANG" => "ja") { "string" } + # # string + # + # html("DOCTYPE" => false) { "string" } + # # string + # + # html("DOCTYPE" => '') { "string" } + # # string + # + # html("PRETTY" => " ") { "" } + # # + # # + # # + # # + # # + # + # html("PRETTY" => "\t") { "" } + # # + # # + # # + # # + # # + # + # html("PRETTY") { "" } + # # = html("PRETTY" => " ") { "" } + # + # html(if $VERBOSE then "PRETTY" end) { "HTML string" } + # + # pkg:gem/cgi#lib/cgi/html.rb:403 + def html(attributes = T.unsafe(nil)); end + + # Generate an Image Button Input element as a string. + # + # +src+ is the URL of the image to use for the button. +name+ + # is the input name. +alt+ is the alternative text for the image. + # + # Alternatively, the attributes can be specified as a hash. + # + # image_button("url") + # # + # + # image_button("url", "name", "string") + # # + # + # image_button("SRC" => "url", "ALT" => "string") + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:448 + def image_button(src = T.unsafe(nil), name = T.unsafe(nil), alt = T.unsafe(nil)); end + + # Generate an Image element as a string. + # + # +src+ is the URL of the image. +alt+ is the alternative text for + # the image. +width+ is the width of the image, and +height+ is + # its height. + # + # Alternatively, the attributes can be specified as a hash. + # + # img("src", "alt", 100, 50) + # # alt + # + # img("SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50) + # # alt + # + # pkg:gem/cgi#lib/cgi/html.rb:474 + def img(src = T.unsafe(nil), alt = T.unsafe(nil), width = T.unsafe(nil), height = T.unsafe(nil)); end + + # Generate a Form element with multipart encoding as a String. + # + # Multipart encoding is used for forms that include file uploads. + # + # +action+ is the action to perform. +enctype+ is the encoding + # type, which defaults to "multipart/form-data". + # + # Alternatively, the attributes can be specified as a hash. + # + # multipart_form{ "string" } + # #
string
+ # + # multipart_form("url") { "string" } + # #
string
+ # + # pkg:gem/cgi#lib/cgi/html.rb:500 + def multipart_form(action = T.unsafe(nil), enctype = T.unsafe(nil)); end + + # Generate a Password Input element as a string. + # + # +name+ is the name of the input field. +value+ is its default + # value. +size+ is the size of the input field display. +maxlength+ + # is the maximum length of the inputted password. + # + # Alternatively, attributes can be specified as a hash. + # + # password_field("name") + # # + # + # password_field("name", "value") + # # + # + # password_field("password", "value", 80, 200) + # # + # + # password_field("NAME" => "name", "VALUE" => "value") + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:542 + def password_field(name = T.unsafe(nil), value = T.unsafe(nil), size = T.unsafe(nil), maxlength = T.unsafe(nil)); end + + # Generate a Select element as a string. + # + # +name+ is the name of the element. The +values+ are the options that + # can be selected from the Select menu. Each value can be a String or + # a one, two, or three-element Array. If a String or a one-element + # Array, this is both the value of that option and the text displayed for + # it. If a three-element Array, the elements are the option value, displayed + # text, and a boolean value specifying whether this option starts as selected. + # The two-element version omits either the option value (defaults to the same + # as the display text) or the boolean selected specifier (defaults to false). + # + # The attributes and options can also be specified as a hash. In this + # case, options are specified as an array of values as described above, + # with the hash key of "VALUES". + # + # popup_menu("name", "foo", "bar", "baz") + # # + # + # popup_menu("name", ["foo"], ["bar", true], "baz") + # # + # + # popup_menu("name", ["1", "Foo"], ["2", "Bar", true], "Baz") + # # + # + # popup_menu("NAME" => "name", "SIZE" => 2, "MULTIPLE" => true, + # "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"]) + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:597 + def popup_menu(name = T.unsafe(nil), *values); end + + # Generates a radio-button Input element. + # + # +name+ is the name of the input field. +value+ is the value of + # the field if checked. +checked+ specifies whether the field + # starts off checked. + # + # Alternatively, the attributes can be specified as a hash. + # + # radio_button("name", "value") + # # + # + # radio_button("name", "value", true) + # # + # + # radio_button("NAME" => "name", "VALUE" => "value", "ID" => "foo") + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:646 + def radio_button(name = T.unsafe(nil), value = T.unsafe(nil), checked = T.unsafe(nil)); end + + # Generate a sequence of radio button Input elements, as a String. + # + # This works the same as #checkbox_group(). However, it is not valid + # to have more than one radiobutton in a group checked. + # + # radio_group("name", "foo", "bar", "baz") + # # foo + # # bar + # # baz + # + # radio_group("name", ["foo"], ["bar", true], "baz") + # # foo + # # bar + # # baz + # + # radio_group("name", ["1", "Foo"], ["2", "Bar", true], "Baz") + # # Foo + # # Bar + # # Baz + # + # radio_group("NAME" => "name", + # "VALUES" => ["foo", "bar", "baz"]) + # + # radio_group("NAME" => "name", + # "VALUES" => [["foo"], ["bar", true], "baz"]) + # + # radio_group("NAME" => "name", + # "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"]) + # + # pkg:gem/cgi#lib/cgi/html.rb:685 + def radio_group(name = T.unsafe(nil), *values); end + + # Generate a reset button Input element, as a String. + # + # This resets the values on a form to their initial values. +value+ + # is the text displayed on the button. +name+ is the name of this button. + # + # Alternatively, the attributes can be specified as a hash. + # + # reset + # # + # + # reset("reset") + # # + # + # reset("VALUE" => "reset", "ID" => "foo") + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:720 + def reset(value = T.unsafe(nil), name = T.unsafe(nil)); end + + # pkg:gem/cgi#lib/cgi/html.rb:730 + def scrolling_list(name = T.unsafe(nil), *values); end + + # Generate a submit button Input element, as a String. + # + # +value+ is the text to display on the button. +name+ is the name + # of the input. + # + # Alternatively, the attributes can be specified as a hash. + # + # submit + # # + # + # submit("ok") + # # + # + # submit("ok", "button1") + # # + # + # submit("VALUE" => "ok", "NAME" => "button1", "ID" => "foo") + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:750 + def submit(value = T.unsafe(nil), name = T.unsafe(nil)); end + + # Generate a text field Input element, as a String. + # + # +name+ is the name of the input field. +value+ is its initial + # value. +size+ is the size of the input area. +maxlength+ + # is the maximum length of input accepted. + # + # Alternatively, the attributes can be specified as a hash. + # + # text_field("name") + # # + # + # text_field("name", "value") + # # + # + # text_field("name", "value", 80) + # # + # + # text_field("name", "value", 80, 200) + # # + # + # text_field("NAME" => "name", "VALUE" => "value") + # # + # + # pkg:gem/cgi#lib/cgi/html.rb:782 + def text_field(name = T.unsafe(nil), value = T.unsafe(nil), size = T.unsafe(nil), maxlength = T.unsafe(nil)); end + + # Generate a TextArea element, as a String. + # + # +name+ is the name of the textarea. +cols+ is the number of + # columns and +rows+ is the number of rows in the display. + # + # Alternatively, the attributes can be specified as a hash. + # + # The body is provided by the passed-in no-argument block + # + # textarea("name") + # # = textarea("NAME" => "name", "COLS" => 70, "ROWS" => 10) + # + # textarea("name", 40, 5) + # # = textarea("NAME" => "name", "COLS" => 40, "ROWS" => 5) + # + # pkg:gem/cgi#lib/cgi/html.rb:808 + def textarea(name = T.unsafe(nil), cols = T.unsafe(nil), rows = T.unsafe(nil)); end +end + +# Mixin module that provides the following: +# +# 1. Access to the CGI environment variables as methods. See +# documentation to the CGI class for a list of these variables. The +# methods are exposed by removing the leading +HTTP_+ (if it exists) and +# downcasing the name. For example, +auth_type+ will return the +# environment variable +AUTH_TYPE+, and +accept+ will return the value +# for +HTTP_ACCEPT+. +# +# 2. Access to cookies, including the cookies attribute. +# +# 3. Access to parameters, including the params attribute, and overloading +# #[] to perform parameter value lookup by key. +# +# 4. The initialize_query method, for initializing the above +# mechanisms, handling multipart forms, and allowing the +# class to be used in "offline" mode. +# +# pkg:gem/cgi#lib/cgi/core.rb:611 +module CGI::QueryExtension + # Get the value for the parameter with a given key. + # + # If the parameter has multiple values, only the first will be + # retrieved; use #params to get the array of values. + # + # pkg:gem/cgi#lib/cgi/core.rb:900 + def [](key); end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def accept; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def accept_charset; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def accept_encoding; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def accept_language; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def auth_type; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def cache_control; end + + # pkg:gem/cgi#lib/cgi/core.rb:614 + def content_length; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def content_type; end + + # Get the cookies as a hash of cookie-name=>Cookie pairs. + # + # pkg:gem/cgi#lib/cgi/core.rb:643 + def cookies; end + + # Get the cookies as a hash of cookie-name=>Cookie pairs. + # + # pkg:gem/cgi#lib/cgi/core.rb:643 + def cookies=(_arg0); end + + # pkg:gem/cgi#lib/cgi/core.rb:782 + def create_body(is_large); end + + # Get the uploaded files as a hash of name=>values pairs + # + # pkg:gem/cgi#lib/cgi/core.rb:650 + def files; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def from; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def gateway_interface; end + + # Returns true if a given query string parameter exists. + # + # pkg:gem/cgi#lib/cgi/core.rb:924 + def has_key?(*args); end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def host; end + + # pkg:gem/cgi#lib/cgi/core.rb:928 + def include?(*args); end + + # pkg:gem/cgi#lib/cgi/core.rb:927 + def key?(*args); end + + # Return all query parameter names as an array of String. + # + # pkg:gem/cgi#lib/cgi/core.rb:919 + def keys(*args); end + + # Returns whether the form contained multipart/form-data + # + # pkg:gem/cgi#lib/cgi/core.rb:892 + def multipart?; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def negotiate; end + + # Get the parameters as a hash of name=>values pairs, where + # values is an Array. + # + # pkg:gem/cgi#lib/cgi/core.rb:647 + def params; end + + # Set all the parameters. + # + # pkg:gem/cgi#lib/cgi/core.rb:653 + def params=(hash); end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def path_info; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def path_translated; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def pragma; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def query_string; end + + # Get the raw cookies as a string. + # + # pkg:gem/cgi#lib/cgi/core.rb:633 + def raw_cookie; end + + # Get the raw RFC2965 cookies as a string. + # + # pkg:gem/cgi#lib/cgi/core.rb:638 + def raw_cookie2; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def referer; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def remote_addr; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def remote_host; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def remote_ident; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def remote_user; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def request_method; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def script_name; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def server_name; end + + # pkg:gem/cgi#lib/cgi/core.rb:614 + def server_port; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def server_protocol; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def server_software; end + + # pkg:gem/cgi#lib/cgi/core.rb:798 + def unescape_filename?; end + + # pkg:gem/cgi#lib/cgi/core.rb:627 + def user_agent; end + + private + + # A wrapper class to use a StringIO object as the body and switch + # to a TempFile when the passed threshold is passed. + # Initialize the data from the query. + # + # Handles multipart forms (in particular, forms that involve file uploads). + # Reads query parameters in the @params field, and cookies into @cookies. + # + # pkg:gem/cgi#lib/cgi/core.rb:840 + def initialize_query; end + + # offline mode. read name=value pairs on standard input. + # + # pkg:gem/cgi#lib/cgi/core.rb:805 + def read_from_cmdline; end + + # Parses multipart form elements according to + # https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 + # + # Returns a hash of multipart form parameters with bodies of type StringIO or + # Tempfile depending on whether the multipart form element exceeds 10 KB + # + # params[name => body] + # + # pkg:gem/cgi#lib/cgi/core.rb:667 + def read_multipart(boundary, content_length); end +end + +# Base module for HTML-generation mixins. +# +# Provides methods for code generation for tags following +# the various DTD element types. +# +# pkg:gem/cgi#lib/cgi/html.rb:7 +module CGI::TagMaker + # Generate code for an empty element. + # + # - O EMPTY + # + # pkg:gem/cgi#lib/cgi/html.rb:27 + def nOE_element(element, attributes = T.unsafe(nil)); end + + # pkg:gem/cgi#lib/cgi/html.rb:43 + def nOE_element_def(attributes = T.unsafe(nil), &block); end + + # Generate code for an element for which the end (and possibly the + # start) tag is optional. + # + # O O or - O + # + # pkg:gem/cgi#lib/cgi/html.rb:52 + def nO_element(element, attributes = T.unsafe(nil)); end + + # pkg:gem/cgi#lib/cgi/html.rb:61 + def nO_element_def(attributes = T.unsafe(nil), &block); end + + # Generate code for an element with required start and end tags. + # + # - - + # + # pkg:gem/cgi#lib/cgi/html.rb:12 + def nn_element(element, attributes = T.unsafe(nil)); end + + # pkg:gem/cgi#lib/cgi/html.rb:20 + def nn_element_def(attributes = T.unsafe(nil), &block); end +end + +# Utility methods for CGI. +# +# pkg:gem/cgi#lib/cgi/util.rb:3 +module CGI::Util + # Prettify (indent) an HTML string. + # + # +string+ is the HTML string to indent. +shift+ is the indentation + # unit to use; it defaults to two spaces. + # + # print CGI.pretty("") + # # + # # + # # + # # + # + # print CGI.pretty("", "\t") + # # + # # + # # + # # + # + # pkg:gem/cgi#lib/cgi/util.rb:35 + def pretty(string, shift = T.unsafe(nil)); end + + # Format a +Time+ object as a String using the format specified by RFC 1123. + # + # CGI.rfc1123_date(Time.now) + # # Sat, 01 Jan 2000 00:00:00 GMT + # + # pkg:gem/cgi#lib/cgi/util.rb:14 + def rfc1123_date(time); end +end + +# The version string +# +# pkg:gem/cgi#lib/cgi.rb:303 +CGI::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/connection_pool@2.5.0.rbi b/sorbet/rbi/gems/connection_pool@2.5.0.rbi deleted file mode 100644 index b73aeb8c..00000000 --- a/sorbet/rbi/gems/connection_pool@2.5.0.rbi +++ /dev/null @@ -1,317 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `connection_pool` gem. -# Please instead update this file by running `bin/tapioca gem connection_pool`. - - -# Generic connection pool class for sharing a limited number of objects or network connections -# among many threads. Note: pool elements are lazily created. -# -# Example usage with block (faster): -# -# @pool = ConnectionPool.new { Redis.new } -# @pool.with do |redis| -# redis.lpop('my-list') if redis.llen('my-list') > 0 -# end -# -# Using optional timeout override (for that single invocation) -# -# @pool.with(timeout: 2.0) do |redis| -# redis.lpop('my-list') if redis.llen('my-list') > 0 -# end -# -# Example usage replacing an existing connection (slower): -# -# $redis = ConnectionPool.wrap { Redis.new } -# -# def do_work -# $redis.lpop('my-list') if $redis.llen('my-list') > 0 -# end -# -# Accepts the following options: -# - :size - number of connections to pool, defaults to 5 -# - :timeout - amount of time to wait for a connection if none currently available, defaults to 5 seconds -# - :auto_reload_after_fork - automatically drop all connections after fork, defaults to true -# -# source://connection_pool//lib/connection_pool/version.rb#1 -class ConnectionPool - # @raise [ArgumentError] - # @return [ConnectionPool] a new instance of ConnectionPool - # - # source://connection_pool//lib/connection_pool.rb#90 - def initialize(options = T.unsafe(nil), &block); end - - # Automatically drop all connections after fork - # - # source://connection_pool//lib/connection_pool.rb#172 - def auto_reload_after_fork; end - - # Number of pool entries available for checkout at this instant. - # - # source://connection_pool//lib/connection_pool.rb#175 - def available; end - - # source://connection_pool//lib/connection_pool.rb#129 - def checkin(force: T.unsafe(nil)); end - - # source://connection_pool//lib/connection_pool.rb#119 - def checkout(options = T.unsafe(nil)); end - - # Number of pool entries created and idle in the pool. - # - # source://connection_pool//lib/connection_pool.rb#180 - def idle; end - - # Reaps idle connections that have been idle for over +idle_seconds+. - # +idle_seconds+ defaults to 60. - # - # source://connection_pool//lib/connection_pool.rb#165 - def reap(idle_seconds = T.unsafe(nil), &block); end - - # Reloads the ConnectionPool by passing each connection to +block+ and then - # removing it the pool. Subsequent checkouts will create new connections as - # needed. - # - # source://connection_pool//lib/connection_pool.rb#159 - def reload(&block); end - - # Shuts down the ConnectionPool by passing each connection to +block+ and - # then removing it from the pool. Attempting to checkout a connection after - # shutdown will raise +ConnectionPool::PoolShuttingDownError+. - # - # source://connection_pool//lib/connection_pool.rb#150 - def shutdown(&block); end - - # Size of this connection pool - # - # source://connection_pool//lib/connection_pool.rb#170 - def size; end - - # source://connection_pool//lib/connection_pool.rb#105 - def then(options = T.unsafe(nil)); end - - # source://connection_pool//lib/connection_pool.rb#105 - def with(options = T.unsafe(nil)); end - - class << self - # source://connection_pool//lib/connection_pool.rb#52 - def after_fork; end - - # source://connection_pool//lib/connection_pool.rb#44 - def wrap(options, &block); end - end -end - -# source://connection_pool//lib/connection_pool.rb#42 -ConnectionPool::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# source://connection_pool//lib/connection_pool.rb#5 -class ConnectionPool::Error < ::RuntimeError; end - -# source://connection_pool//lib/connection_pool.rb#70 -module ConnectionPool::ForkTracker - # source://connection_pool//lib/connection_pool.rb#71 - def _fork; end -end - -# source://connection_pool//lib/connection_pool.rb#49 -ConnectionPool::INSTANCES = T.let(T.unsafe(nil), ObjectSpace::WeakMap) - -# source://connection_pool//lib/connection_pool.rb#7 -class ConnectionPool::PoolShuttingDownError < ::ConnectionPool::Error; end - -# Examples: -# -# ts = TimedStack.new(1) { MyConnection.new } -# -# # fetch a connection -# conn = ts.pop -# -# # return a connection -# ts.push conn -# -# conn = ts.pop -# ts.pop timeout: 5 -# #=> raises ConnectionPool::TimeoutError after 5 seconds -# -# source://connection_pool//lib/connection_pool/timed_stack.rb#20 -class ConnectionPool::TimedStack - # Creates a new pool with +size+ connections that are created from the given - # +block+. - # - # @return [TimedStack] a new instance of TimedStack - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#27 - def initialize(size = T.unsafe(nil), &block); end - - # Returns +obj+ to the stack. +options+ is ignored in TimedStack but may be - # used by subclasses that extend TimedStack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#41 - def <<(obj, options = T.unsafe(nil)); end - - # Returns +true+ if there are no available connections. - # - # @return [Boolean] - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#125 - def empty?; end - - # The number of connections created and available on the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#138 - def idle; end - - # The number of connections available on the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#132 - def length; end - - # Returns the value of attribute max. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#21 - def max; end - - # Retrieves a connection from the stack. If a connection is available it is - # immediately returned. If no connection is available within the given - # timeout a ConnectionPool::TimeoutError is raised. - # - # +:timeout+ is the only checked entry in +options+ and is preferred over - # the +timeout+ argument (which will be removed in a future release). Other - # options may be used by subclasses that extend TimedStack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#64 - def pop(timeout = T.unsafe(nil), options = T.unsafe(nil)); end - - # Returns +obj+ to the stack. +options+ is ignored in TimedStack but may be - # used by subclasses that extend TimedStack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#41 - def push(obj, options = T.unsafe(nil)); end - - # Reaps connections that were checked in more than +idle_seconds+ ago. - # - # @raise [ArgumentError] - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#104 - def reap(idle_seconds, &block); end - - # Shuts down the TimedStack by passing each connection to +block+ and then - # removing it from the pool. Attempting to checkout a connection after - # shutdown will raise +ConnectionPool::PoolShuttingDownError+ unless - # +:reload+ is +true+. - # - # @raise [ArgumentError] - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#90 - def shutdown(reload: T.unsafe(nil), &block); end - - private - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must returns true if a connection is available on the stack. - # - # @return [Boolean] - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#153 - def connection_stored?(options = T.unsafe(nil)); end - - # source://connection_pool//lib/connection_pool/timed_stack.rb#144 - def current_time; end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must return a connection from the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#162 - def fetch_connection(options = T.unsafe(nil)); end - - # This is an extension point for TimedStack and is called with a mutex. - # - # Returns true if the first connection in the stack has been idle for more than idle_seconds - # - # @return [Boolean] - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#198 - def idle_connections?(idle_seconds); end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method returns the oldest idle connection if it has been idle for more than idle_seconds. - # This requires that the stack is kept in order of checked in time (oldest first). - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#185 - def reserve_idle_connection(idle_seconds); end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must shut down all connections on the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#171 - def shutdown_connections(options = T.unsafe(nil)); end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must return +obj+ to the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#207 - def store_connection(obj, options = T.unsafe(nil)); end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must create a connection if and only if the total number of - # connections allowed has not been met. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#217 - def try_create(options = T.unsafe(nil)); end -end - -# source://connection_pool//lib/connection_pool.rb#9 -class ConnectionPool::TimeoutError < ::Timeout::Error; end - -# source://connection_pool//lib/connection_pool/version.rb#2 -ConnectionPool::VERSION = T.let(T.unsafe(nil), String) - -# source://connection_pool//lib/connection_pool/wrapper.rb#2 -class ConnectionPool::Wrapper < ::BasicObject - # @return [Wrapper] a new instance of Wrapper - # - # source://connection_pool//lib/connection_pool/wrapper.rb#5 - def initialize(options = T.unsafe(nil), &block); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#35 - def method_missing(name, *args, **kwargs, &block); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#25 - def pool_available; end - - # source://connection_pool//lib/connection_pool/wrapper.rb#17 - def pool_shutdown(&block); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#21 - def pool_size; end - - # @return [Boolean] - # - # source://connection_pool//lib/connection_pool/wrapper.rb#29 - def respond_to?(id, *args); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#13 - def with(&block); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#9 - def wrapped_pool; end -end - -# source://connection_pool//lib/connection_pool/wrapper.rb#3 -ConnectionPool::Wrapper::METHODS = T.let(T.unsafe(nil), Array) - -module Process - extend ::ConnectionPool::ForkTracker - extend ::RedisClient::PIDCache::CoreExt - extend ::Dalli::PIDCache::CoreExt - extend ::ActiveSupport::ForkTracker::CoreExt - extend ::FFI::ModernForkTracking -end diff --git a/sorbet/rbi/gems/connection_pool@3.0.2.rbi b/sorbet/rbi/gems/connection_pool@3.0.2.rbi new file mode 100644 index 00000000..e5563899 --- /dev/null +++ b/sorbet/rbi/gems/connection_pool@3.0.2.rbi @@ -0,0 +1,342 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `connection_pool` gem. +# Please instead update this file by running `bin/tapioca gem connection_pool`. + + +# Generic connection pool class for sharing a limited number of objects or network connections +# among many threads. Note: pool elements are lazily created. +# +# Example usage with block (faster): +# +# @pool = ConnectionPool.new { Redis.new } +# @pool.with do |redis| +# redis.lpop('my-list') if redis.llen('my-list') > 0 +# end +# +# Using optional timeout override (for that single invocation) +# +# @pool.with(timeout: 2.0) do |redis| +# redis.lpop('my-list') if redis.llen('my-list') > 0 +# end +# +# Example usage replacing an existing connection (slower): +# +# $redis = ConnectionPool.wrap { Redis.new } +# +# def do_work +# $redis.lpop('my-list') if $redis.llen('my-list') > 0 +# end +# +# Accepts the following options: +# - :size - number of connections to pool, defaults to 5 +# - :timeout - amount of time to wait for a connection if none currently available, defaults to 5 seconds +# - :auto_reload_after_fork - automatically drop all connections after fork, defaults to true +# +# pkg:gem/connection_pool#lib/connection_pool/version.rb:1 +class ConnectionPool + # pkg:gem/connection_pool#lib/connection_pool.rb:48 + def initialize(timeout: T.unsafe(nil), size: T.unsafe(nil), auto_reload_after_fork: T.unsafe(nil), name: T.unsafe(nil), &); end + + # Number of pool entries available for checkout at this instant. + # + # pkg:gem/connection_pool#lib/connection_pool.rb:173 + def available; end + + # pkg:gem/connection_pool#lib/connection_pool.rb:123 + def checkin(force: T.unsafe(nil)); end + + # pkg:gem/connection_pool#lib/connection_pool.rb:111 + def checkout(timeout: T.unsafe(nil), **); end + + # Marks the current thread's checked-out connection for discard. + # + # When a connection is marked for discard, it will not be returned to the pool + # when checked in. Instead, the connection will be discarded. + # This is useful when a connection has become invalid or corrupted + # and should not be reused. + # + # Takes an optional block that will be called with the connection to be discarded. + # The block should perform any necessary clean-up on the connection. + # + # @yield [conn] + # @yieldparam conn [Object] The connection to be discarded. + # @yieldreturn [void] + # + # + # Note: This only affects the connection currently checked out by the calling thread. + # The connection will be discarded when +checkin+ is called. + # + # @return [void] + # + # @example + # pool.with do |conn| + # begin + # conn.execute("SELECT 1") + # rescue SomeConnectionError + # pool.discard_current_connection # Mark connection as bad + # raise + # end + # end + # + # pkg:gem/connection_pool#lib/connection_pool.rb:107 + def discard_current_connection(&block); end + + # Number of pool entries created and idle in the pool. + # + # pkg:gem/connection_pool#lib/connection_pool.rb:178 + def idle; end + + # Reaps idle connections that have been idle for over +idle_seconds+. + # +idle_seconds+ defaults to 60. + # + # pkg:gem/connection_pool#lib/connection_pool.rb:168 + def reap(idle_seconds: T.unsafe(nil), &); end + + # Reloads the ConnectionPool by passing each connection to +block+ and then + # removing it the pool. Subsequent checkouts will create new connections as + # needed. + # + # pkg:gem/connection_pool#lib/connection_pool.rb:162 + def reload(&); end + + # Shuts down the ConnectionPool by passing each connection to +block+ and + # then removing it from the pool. Attempting to checkout a connection after + # shutdown will raise +ConnectionPool::PoolShuttingDownError+. + # + # pkg:gem/connection_pool#lib/connection_pool.rb:154 + def shutdown(&); end + + # pkg:gem/connection_pool#lib/connection_pool.rb:46 + def size; end + + # pkg:gem/connection_pool#lib/connection_pool.rb:75 + def then(**); end + + # pkg:gem/connection_pool#lib/connection_pool.rb:60 + def with(**); end + + class << self + # pkg:gem/connection_pool#lib/connection_pool/fork.rb:6 + def after_fork; end + + # pkg:gem/connection_pool#lib/connection_pool.rb:42 + def wrap(**, &); end + end +end + +# pkg:gem/connection_pool#lib/connection_pool.rb:5 +class ConnectionPool::Error < ::RuntimeError; end + +# pkg:gem/connection_pool#lib/connection_pool/fork.rb:21 +module ConnectionPool::ForkTracker + # pkg:gem/connection_pool#lib/connection_pool/fork.rb:22 + def _fork; end +end + +# JRuby, et al +# +# pkg:gem/connection_pool#lib/connection_pool/fork.rb:3 +ConnectionPool::INSTANCES = T.let(T.unsafe(nil), ObjectSpace::WeakMap) + +# pkg:gem/connection_pool#lib/connection_pool.rb:7 +class ConnectionPool::PoolShuttingDownError < ::ConnectionPool::Error; end + +# The TimedStack manages a pool of homogeneous connections (or any resource +# you wish to manage). Connections are created lazily up to a given maximum +# number. +# +# Examples: +# +# ts = TimedStack.new(size: 1) { MyConnection.new } +# +# # fetch a connection +# conn = ts.pop +# +# # return a connection +# ts.push conn +# +# conn = ts.pop +# ts.pop timeout: 5 +# #=> raises ConnectionPool::TimeoutError after 5 seconds +# +# pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:19 +class ConnectionPool::TimedStack + # Creates a new pool with +size+ connections that are created from the given + # +block+. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:25 + def initialize(size: T.unsafe(nil), &block); end + + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:50 + def <<(obj, **); end + + # Reduce the created count + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:143 + def decrement_created; end + + # Returns +true+ if there are no available connections. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:125 + def empty?; end + + # The number of connections created and available on the stack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:137 + def idle; end + + # The number of connections available on the stack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:131 + def length; end + + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:20 + def max; end + + # Retrieves a connection from the stack. If a connection is available it is + # immediately returned. If no connection is available within the given + # timeout a ConnectionPool::TimeoutError is raised. + # + # @option options [Float] :timeout (0.5) Wait this many seconds for an available entry + # @option options [Class] :exception (ConnectionPool::TimeoutError) Exception class to raise + # if an entry was not available within the timeout period. Use `exception: false` to return nil. + # + # Other options may be used by subclasses that extend TimedStack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:62 + def pop(timeout: T.unsafe(nil), exception: T.unsafe(nil), **); end + + # Returns +obj+ to the stack. Additional kwargs are ignored in TimedStack but may be + # used by subclasses that extend TimedStack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:38 + def push(obj, **); end + + # Reaps connections that were checked in more than +idle_seconds+ ago. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:106 + def reap(idle_seconds:); end + + # Shuts down the TimedStack by passing each connection to +block+ and then + # removing it from the pool. Attempting to checkout a connection after + # shutdown will raise +ConnectionPool::PoolShuttingDownError+ unless + # +:reload+ is +true+. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:92 + def shutdown(reload: T.unsafe(nil), &block); end + + private + + # This is an extension point for TimedStack and is called with a mutex. + # + # This method must returns true if a connection is available on the stack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:167 + def connection_stored?(**); end + + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:149 + def current_time; end + + # This is an extension point for TimedStack and is called with a mutex. + # + # This method must return a connection from the stack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:175 + def fetch_connection(**); end + + # This is an extension point for TimedStack and is called with a mutex. + # + # Returns true if the first connection in the stack has been idle for more than idle_seconds + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:209 + def idle_connections?(idle_seconds); end + + # This is an extension point for TimedStack and is called with a mutex. + # + # This method returns the oldest idle connection if it has been idle for more than idle_seconds. + # This requires that the stack is kept in order of checked in time (oldest first). + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:195 + def reserve_idle_connection(idle_seconds); end + + # This is an extension point for TimedStack and is called with a mutex. + # + # This method must shut down all connections on the stack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:183 + def shutdown_connections(**); end + + # This is an extension point for TimedStack and is called with a mutex. + # + # This method must return +obj+ to the stack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:220 + def store_connection(obj, **); end + + # This is an extension point for TimedStack and is called with a mutex. + # + # This method must create a connection if and only if the total number of + # connections allowed has not been met. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:229 + def try_create(**); end + + # This is an extension point for TimedStack and is called with a mutex. + # + # This method must returns a connection from the stack if one exists. Allows + # subclasses with expensive match/search algorithms to avoid double-handling + # their stack. + # + # pkg:gem/connection_pool#lib/connection_pool/timed_stack.rb:159 + def try_fetch_connection(**); end +end + +# pkg:gem/connection_pool#lib/connection_pool.rb:9 +class ConnectionPool::TimeoutError < ::Timeout::Error; end + +# pkg:gem/connection_pool#lib/connection_pool/version.rb:2 +ConnectionPool::VERSION = T.let(T.unsafe(nil), String) + +# pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:2 +class ConnectionPool::Wrapper < ::BasicObject + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:5 + def initialize(**options, &); end + + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:37 + def method_missing(name, *, **, &); end + + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:25 + def pool_available; end + + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:17 + def pool_shutdown(&); end + + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:21 + def pool_size; end + + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:29 + def respond_to?(id, *, **); end + + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:13 + def with(**, &); end + + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:9 + def wrapped_pool; end + + private + + # pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:33 + def respond_to_missing?(id, *, **); end +end + +# pkg:gem/connection_pool#lib/connection_pool/wrapper.rb:3 +ConnectionPool::Wrapper::METHODS = T.let(T.unsafe(nil), Array) + +module Process + extend ::ConnectionPool::ForkTracker + extend ::RedisClient::PIDCache::CoreExt + extend ::Dalli::PIDCache::CoreExt + extend ::ActiveSupport::ForkTracker::CoreExt +end diff --git a/sorbet/rbi/gems/dalli@3.2.13.rbi b/sorbet/rbi/gems/dalli@3.2.15.rbi similarity index 59% rename from sorbet/rbi/gems/dalli@3.2.13.rbi rename to sorbet/rbi/gems/dalli@3.2.15.rbi index 12e0b3e1..a14209a8 100644 --- a/sorbet/rbi/gems/dalli@3.2.13.rbi +++ b/sorbet/rbi/gems/dalli@3.2.15.rbi @@ -7,19 +7,19 @@ # Namespace for all Dalli code. # -# source://dalli//lib/dalli.rb#6 +# pkg:gem/dalli#lib/dalli.rb:6 module Dalli class << self - # source://dalli//lib/dalli.rb#45 + # pkg:gem/dalli#lib/dalli.rb:45 def default_logger; end - # source://dalli//lib/dalli.rb#36 + # pkg:gem/dalli#lib/dalli.rb:36 def logger; end - # source://dalli//lib/dalli.rb#52 + # pkg:gem/dalli#lib/dalli.rb:52 def logger=(logger); end - # source://dalli//lib/dalli.rb#40 + # pkg:gem/dalli#lib/dalli.rb:40 def rails_logger; end end end @@ -27,7 +27,7 @@ end # Dalli::Client is the main class which developers will use to interact with # Memcached. # -# source://dalli//lib/dalli/client.rb#12 +# pkg:gem/dalli#lib/dalli/client.rb:12 class Dalli::Client # Dalli::Client is the main class which developers will use to interact with # the memcached server. Usage: @@ -63,30 +63,33 @@ class Dalli::Client # useful for injecting a FIPS compliant hash object. # - :protocol - one of either :binary or :meta, defaulting to :binary. This sets the protocol that Dalli uses # to communicate with memcached. + # - :verify_reply_keys - defaults to false. When true, get_multi only accepts replies for the keys it requested; + # after a reply naming another key, the rest of that server's replies are treated as misses. + # With the meta protocol, memcached can name an item by its raw key bytes when the item was + # created by auto-create from a base64-encoded key, which Dalli no longer does. Costs a + # multi-get about 15%. # - # @return [Client] a new instance of Client - # - # source://dalli//lib/dalli/client.rb#49 + # pkg:gem/dalli#lib/dalli/client.rb:54 def initialize(servers = T.unsafe(nil), options = T.unsafe(nil)); end # Conditionally add a key/value pair, if the key does not already exist # on the server. Returns truthy if the operation succeeded. # - # source://dalli//lib/dalli/client.rb#214 + # pkg:gem/dalli#lib/dalli/client.rb:224 def add(key, value, ttl = T.unsafe(nil), req_options = T.unsafe(nil)); end # Make sure memcache servers are alive, or raise an Dalli::RingError # - # source://dalli//lib/dalli/client.rb#348 + # pkg:gem/dalli#lib/dalli/client.rb:358 def alive!; end # Append value to the value already stored on the server for 'key'. # Appending only works for values stored with :raw => true. # - # source://dalli//lib/dalli/client.rb#246 + # pkg:gem/dalli#lib/dalli/client.rb:256 def append(key, value); end - # source://dalli//lib/dalli/client.rb#367 + # pkg:gem/dalli#lib/dalli/client.rb:377 def cache_nils; end # compare and swap values using optimistic locking. @@ -100,7 +103,7 @@ class Dalli::Client # - false if the value was changed by someone else. # - true if the value was successfully updated. # - # source://dalli//lib/dalli/client.rb#158 + # pkg:gem/dalli#lib/dalli/client.rb:163 def cas(key, ttl = T.unsafe(nil), req_options = T.unsafe(nil), &block); end # like #cas, but will yield to the block whether or not the value @@ -110,13 +113,13 @@ class Dalli::Client # - false if the value was changed by someone else. # - true if the value was successfully updated. # - # source://dalli//lib/dalli/client.rb#169 + # pkg:gem/dalli#lib/dalli/client.rb:174 def cas!(key, ttl = T.unsafe(nil), req_options = T.unsafe(nil), &block); end # Close our connection to each server. # If you perform another operation after this, the connections will be re-established. # - # source://dalli//lib/dalli/client.rb#355 + # pkg:gem/dalli#lib/dalli/client.rb:365 def close; end # Decr subtracts the given amount from the counter on the memcached server. @@ -137,16 +140,16 @@ class Dalli::Client # # If the value already exists, it must have been set with raw: true # - # source://dalli//lib/dalli/client.rb#297 + # pkg:gem/dalli#lib/dalli/client.rb:307 def decr(key, amt = T.unsafe(nil), ttl = T.unsafe(nil), default = T.unsafe(nil)); end - # source://dalli//lib/dalli/client.rb#239 + # pkg:gem/dalli#lib/dalli/client.rb:249 def delete(key); end # Delete a key/value pair, verifying existing CAS. # Returns true if succeeded, and falsy otherwise. # - # source://dalli//lib/dalli/client.rb#235 + # pkg:gem/dalli#lib/dalli/client.rb:245 def delete_cas(key, cas = T.unsafe(nil)); end # Fetch the value associated with the key. @@ -158,47 +161,42 @@ class Dalli::Client # and a block is given, the block will be invoked and its return value # written to the cache and returned. # - # source://dalli//lib/dalli/client.rb#137 + # pkg:gem/dalli#lib/dalli/client.rb:142 def fetch(key, ttl = T.unsafe(nil), req_options = T.unsafe(nil)); end # Flush the memcached server, at 'delay' seconds in the future. # Delay defaults to zero seconds, which means an immediate flush. # - # source://dalli//lib/dalli/client.rb#308 + # pkg:gem/dalli#lib/dalli/client.rb:318 def flush(delay = T.unsafe(nil)); end - # Flush the memcached server, at 'delay' seconds in the future. - # Delay defaults to zero seconds, which means an immediate flush. - # - # source://dalli//lib/dalli/client.rb#308 + # pkg:gem/dalli#lib/dalli/client.rb:321 def flush_all(delay = T.unsafe(nil)); end # Gat (get and touch) fetch an item and simultaneously update its expiration time. # # If a value is not found, then +nil+ is returned. # - # source://dalli//lib/dalli/client.rb#71 + # pkg:gem/dalli#lib/dalli/client.rb:76 def gat(key, ttl = T.unsafe(nil)); end # Get the value associated with the key. # If a value is not found, then +nil+ is returned. # - # source://dalli//lib/dalli/client.rb#63 + # pkg:gem/dalli#lib/dalli/client.rb:68 def get(key, req_options = T.unsafe(nil)); end # Get the value and CAS ID associated with the key. If a block is provided, # value and CAS will be passed to the block. # - # @yield [value, cas] - # - # source://dalli//lib/dalli/client.rb#87 + # pkg:gem/dalli#lib/dalli/client.rb:92 def get_cas(key); end # Fetch multiple keys efficiently. # If a block is given, yields key/value pairs one at a time. # Otherwise returns a hash of { 'key' => 'value', 'key2' => 'value1' } # - # source://dalli//lib/dalli/client.rb#98 + # pkg:gem/dalli#lib/dalli/client.rb:103 def get_multi(*keys); end # Fetch multiple keys efficiently, including available metadata such as CAS. @@ -207,7 +205,7 @@ class Dalli::Client # If no block is given, returns a hash of # { 'key' => [value, cas_id] } # - # source://dalli//lib/dalli/client.rb#119 + # pkg:gem/dalli#lib/dalli/client.rb:124 def get_multi_cas(*keys); end # Incr adds the given amount to the counter on the memcached server. @@ -225,38 +223,19 @@ class Dalli::Client # # If the value already exists, it must have been set with raw: true # - # source://dalli//lib/dalli/client.rb#272 + # pkg:gem/dalli#lib/dalli/client.rb:282 def incr(key, amt = T.unsafe(nil), ttl = T.unsafe(nil), default = T.unsafe(nil)); end - # Turn on quiet aka noreply support for a number of - # memcached operations. - # - # All relevant operations within this block will be effectively - # pipelined as Dalli will use 'quiet' versions. The invoked methods - # will all return nil, rather than their usual response. Method - # latency will be substantially lower, as the caller will not be - # blocking on responses. - # - # Currently supports storage (set, add, replace, append, prepend), - # arithmetic (incr, decr), flush and delete operations. Use of - # unsupported operations inside a block will raise an error. - # - # Any error replies will be discarded at the end of the block, and - # Dalli client methods invoked inside the block will not - # have return values - # - # source://dalli//lib/dalli/client.rb#190 + # pkg:gem/dalli#lib/dalli/client.rb:208 def multi; end - # @return [Boolean] - # - # source://dalli//lib/dalli/client.rb#363 + # pkg:gem/dalli#lib/dalli/client.rb:373 def not_found?(val); end # Prepend value to the value already stored on the server for 'key'. # Prepending only works for values stored with :raw => true. # - # source://dalli//lib/dalli/client.rb#253 + # pkg:gem/dalli#lib/dalli/client.rb:263 def prepend(key, value); end # Turn on quiet aka noreply support for a number of @@ -276,80 +255,77 @@ class Dalli::Client # Dalli client methods invoked inside the block will not # have return values # - # source://dalli//lib/dalli/client.rb#190 + # The block is quiet only for the thread or fiber that runs it. Another + # thread or fiber sharing this client can make requests meanwhile; a + # non-quiet one first reads the block's pending replies with a noop and + # discards them, so it reads only its own. + # + # pkg:gem/dalli#lib/dalli/client.rb:200 def quiet; end # Conditionally add a key/value pair, only if the key already exists # on the server. Returns truthy if the operation succeeded. # - # source://dalli//lib/dalli/client.rb#221 + # pkg:gem/dalli#lib/dalli/client.rb:231 def replace(key, value, ttl = T.unsafe(nil), req_options = T.unsafe(nil)); end # Conditionally add a key/value pair, verifying existing CAS, only if the # key already exists on the server. Returns the new CAS value if the # operation succeeded, or falsy otherwise. # - # source://dalli//lib/dalli/client.rb#229 + # pkg:gem/dalli#lib/dalli/client.rb:239 def replace_cas(key, value, cas, ttl = T.unsafe(nil), req_options = T.unsafe(nil)); end - # Close our connection to each server. - # If you perform another operation after this, the connections will be re-established. - # - # source://dalli//lib/dalli/client.rb#355 + # pkg:gem/dalli#lib/dalli/client.rb:369 def reset; end # Reset stats for each server. # - # source://dalli//lib/dalli/client.rb#330 + # pkg:gem/dalli#lib/dalli/client.rb:340 def reset_stats; end - # source://dalli//lib/dalli/client.rb#200 + # pkg:gem/dalli#lib/dalli/client.rb:210 def set(key, value, ttl = T.unsafe(nil), req_options = T.unsafe(nil)); end # Set the key-value pair, verifying existing CAS. # Returns the resulting CAS value if succeeded, and falsy otherwise. # - # source://dalli//lib/dalli/client.rb#207 + # pkg:gem/dalli#lib/dalli/client.rb:217 def set_cas(key, value, cas, ttl = T.unsafe(nil), req_options = T.unsafe(nil)); end # Collect the stats for each server. # You can optionally pass a type including :items, :slabs or :settings to get specific stats # Returns a hash like { 'hostname:port' => { 'stat1' => 'value1', ... }, 'hostname2:port' => { ... } } # - # source://dalli//lib/dalli/client.rb#319 + # pkg:gem/dalli#lib/dalli/client.rb:329 def stats(type = T.unsafe(nil)); end # Touch updates expiration time for a given key. # # Returns true if key exists, otherwise nil. # - # source://dalli//lib/dalli/client.rb#79 + # pkg:gem/dalli#lib/dalli/client.rb:84 def touch(key, ttl = T.unsafe(nil)); end # Version of the memcache servers. # - # source://dalli//lib/dalli/client.rb#338 + # pkg:gem/dalli#lib/dalli/client.rb:348 def version; end # Stub method so a bare Dalli client can pretend to be a connection pool. # - # @yield [_self] - # @yieldparam _self [Dalli::Client] the object that the method was called on - # - # source://dalli//lib/dalli/client.rb#372 + # pkg:gem/dalli#lib/dalli/client.rb:382 def with; end private - # source://dalli//lib/dalli/client.rb#390 + # pkg:gem/dalli#lib/dalli/client.rb:400 def cas_core(key, always_set, ttl = T.unsafe(nil), req_options = T.unsafe(nil)); end - # @raise [ArgumentError] - # - # source://dalli//lib/dalli/client.rb#378 + # pkg:gem/dalli#lib/dalli/client.rb:388 def check_positive!(amt); end - # source://dalli//lib/dalli/client.rb#448 + # pkg:gem/dalli#lib/dalli/client.rb:458 def normalize_options(opts); end # Chokepoint method for memcached methods with a key argument. @@ -361,22 +337,22 @@ class Dalli::Client # a particular memcached instance becomes unreachable, or the # operational times out. # - # source://dalli//lib/dalli/client.rb#432 + # pkg:gem/dalli#lib/dalli/client.rb:442 def perform(*all_args); end - # source://dalli//lib/dalli/client.rb#455 + # pkg:gem/dalli#lib/dalli/client.rb:465 def pipelined_getter; end - # source://dalli//lib/dalli/client.rb#413 + # pkg:gem/dalli#lib/dalli/client.rb:423 def protocol_implementation; end - # source://dalli//lib/dalli/client.rb#409 + # pkg:gem/dalli#lib/dalli/client.rb:419 def ring; end # Uses the argument TTL or the client-wide default. Ensures # that the value is an integer # - # source://dalli//lib/dalli/client.rb#403 + # pkg:gem/dalli#lib/dalli/client.rb:413 def ttl_or_default(ttl); end # Numeric arguments that become meta protocol flags (GHSA-6wmv-xq9m-fmp7). @@ -384,51 +360,47 @@ class Dalli::Client # ArgumentError, instead of Protocol::Base#request logging it as # unexpected and closing the connection. # - # source://dalli//lib/dalli/client.rb#386 + # pkg:gem/dalli#lib/dalli/client.rb:396 def validate_integer!(name, value); end end -# source://dalli//lib/dalli/client.rb#313 +# pkg:gem/dalli#lib/dalli/client.rb:323 Dalli::Client::ALLOWED_STAT_KEYS = T.let(T.unsafe(nil), Array) -# source://dalli//lib/dalli/client.rb#361 +# pkg:gem/dalli#lib/dalli/client.rb:371 Dalli::Client::CACHE_NILS = T.let(T.unsafe(nil), Hash) # Default compressor used by Dalli, that uses # Zlib DEFLATE to compress data. # -# source://dalli//lib/dalli/compressor.rb#11 +# pkg:gem/dalli#lib/dalli/compressor.rb:11 class Dalli::Compressor class << self - # @raise [Dalli::UnmarshalError] - # - # source://dalli//lib/dalli/compressor.rb#59 + # pkg:gem/dalli#lib/dalli/compressor.rb:59 def append_within_limit(out, chunk, max_bytes); end - # source://dalli//lib/dalli/compressor.rb#12 + # pkg:gem/dalli#lib/dalli/compressor.rb:12 def compress(data); end # max_bytes caps the decompressed size; inflating stops and raises as soon # as the output passes it, so a small compressed value can't expand into # gigabytes of memory. # - # source://dalli//lib/dalli/compressor.rb#26 + # pkg:gem/dalli#lib/dalli/compressor.rb:26 def decompress(data, max_bytes: T.unsafe(nil)); end # Both yielded and returned output count toward the limit # - # source://dalli//lib/dalli/compressor.rb#54 + # pkg:gem/dalli#lib/dalli/compressor.rb:54 def inflate_slice(inflater, slice, out, max_bytes); end - # source://dalli//lib/dalli/compressor.rb#38 + # pkg:gem/dalli#lib/dalli/compressor.rb:38 def inflate_within_limit(inflater, data, max_bytes); end # False when even the largest possible expansion stays within max_bytes, # so the value can be inflated in one step # - # @return [Boolean] - # - # source://dalli//lib/dalli/compressor.rb#34 + # pkg:gem/dalli#lib/dalli/compressor.rb:34 def may_exceed?(data, max_bytes); end end end @@ -437,30 +409,30 @@ end # yields the output in small chunks; one that returns it instead still # produces at most MAX_EXPANSION times this per step. # -# source://dalli//lib/dalli/compressor.rb#21 +# pkg:gem/dalli#lib/dalli/compressor.rb:21 Dalli::Compressor::INFLATE_SLICE_BYTES = T.let(T.unsafe(nil), Integer) # DEFLATE can't expand data by more than about 1032:1 # -# source://dalli//lib/dalli/compressor.rb#17 +# pkg:gem/dalli#lib/dalli/compressor.rb:17 Dalli::Compressor::MAX_EXPANSION = T.let(T.unsafe(nil), Integer) # generic error # -# source://dalli//lib/dalli.rb#10 +# pkg:gem/dalli#lib/dalli.rb:10 class Dalli::DalliError < ::RuntimeError; end # Alternate compressor for Dalli, that uses # Gzip. Gzip adds a checksum to each compressed # entry. # -# source://dalli//lib/dalli/compressor.rb#72 +# pkg:gem/dalli#lib/dalli/compressor.rb:72 class Dalli::GzipCompressor class << self - # source://dalli//lib/dalli/compressor.rb#73 + # pkg:gem/dalli#lib/dalli/compressor.rb:73 def compress(data); end - # source://dalli//lib/dalli/compressor.rb#81 + # pkg:gem/dalli#lib/dalli/compressor.rb:81 def decompress(data, max_bytes: T.unsafe(nil)); end end end @@ -477,13 +449,13 @@ end # # Dalli::Client.new(servers, serializer: Dalli::JSONSerializer) # -# source://dalli//lib/dalli/json_serializer.rb#19 +# pkg:gem/dalli#lib/dalli/json_serializer.rb:19 module Dalli::JSONSerializer class << self - # source://dalli//lib/dalli/json_serializer.rb#20 + # pkg:gem/dalli#lib/dalli/json_serializer.rb:20 def dump(value); end - # source://dalli//lib/dalli/json_serializer.rb#24 + # pkg:gem/dalli#lib/dalli/json_serializer.rb:24 def load(data); end end end @@ -493,54 +465,46 @@ end # the implementation of optional namespaces on a per-Dalli client # basis. # -# source://dalli//lib/dalli/key_manager.rb#12 +# pkg:gem/dalli#lib/dalli/key_manager.rb:12 class Dalli::KeyManager - # @return [KeyManager] a new instance of KeyManager - # - # source://dalli//lib/dalli/key_manager.rb#31 + # pkg:gem/dalli#lib/dalli/key_manager.rb:31 def initialize(client_options); end - # source://dalli//lib/dalli/key_manager.rb#76 + # pkg:gem/dalli#lib/dalli/key_manager.rb:76 def digest_class; end - # source://dalli//lib/dalli/key_manager.rb#100 + # pkg:gem/dalli#lib/dalli/key_manager.rb:100 def evaluate_namespace; end # Returns the key with the namespace prefixed, if a namespace is # defined. Otherwise just returns the key # - # source://dalli//lib/dalli/key_manager.rb#64 + # pkg:gem/dalli#lib/dalli/key_manager.rb:64 def key_with_namespace(key); end - # source://dalli//lib/dalli/key_manager.rb#70 + # pkg:gem/dalli#lib/dalli/key_manager.rb:70 def key_without_namespace(key); end - # Returns the value of attribute namespace. - # - # source://dalli//lib/dalli/key_manager.rb#29 + # pkg:gem/dalli#lib/dalli/key_manager.rb:29 def namespace; end - # source://dalli//lib/dalli/key_manager.rb#92 + # pkg:gem/dalli#lib/dalli/key_manager.rb:92 def namespace_from_options; end - # source://dalli//lib/dalli/key_manager.rb#80 + # pkg:gem/dalli#lib/dalli/key_manager.rb:80 def namespace_regexp; end - # source://dalli//lib/dalli/key_manager.rb#139 + # pkg:gem/dalli#lib/dalli/key_manager.rb:139 def prefix_length(digest); end # Produces a truncated key, if the raw key is longer than the maximum allowed # length. The truncated key is produced by generating a hex digest # of the key, and appending that to a truncated section of the key. # - # @raise [ArgumentError] - # - # source://dalli//lib/dalli/key_manager.rb#111 + # pkg:gem/dalli#lib/dalli/key_manager.rb:111 def truncated_key(key); end - # @raise [ArgumentError] - # - # source://dalli//lib/dalli/key_manager.rb#86 + # pkg:gem/dalli#lib/dalli/key_manager.rb:86 def validate_digest_class_option(opts); end # Validates the key, and transforms as needed. @@ -553,9 +517,7 @@ class Dalli::KeyManager # Otherwise computes a "truncated" key that uses a truncated prefix # combined with a 32-byte hex digest of the whole key. # - # @raise [ArgumentError] - # - # source://dalli//lib/dalli/key_manager.rb#53 + # pkg:gem/dalli#lib/dalli/key_manager.rb:53 def validate_key(key); end # memcached's key limit applies to the key as sent: in bytes, and, with @@ -564,113 +526,109 @@ class Dalli::KeyManager # protocol memcached rejects it with a CLIENT_ERROR that must never reach # a pipelined get; with the binary protocol it drops the connection. # - # source://dalli//lib/dalli/key_manager.rb#132 + # pkg:gem/dalli#lib/dalli/key_manager.rb:132 def wire_length(key); end end -# source://dalli//lib/dalli/key_manager.rb#23 +# pkg:gem/dalli#lib/dalli/key_manager.rb:23 Dalli::KeyManager::DEFAULTS = T.let(T.unsafe(nil), Hash) -# source://dalli//lib/dalli/key_manager.rb#13 +# pkg:gem/dalli#lib/dalli/key_manager.rb:13 Dalli::KeyManager::MAX_KEY_LENGTH = T.let(T.unsafe(nil), Integer) -# source://dalli//lib/dalli/key_manager.rb#15 +# pkg:gem/dalli#lib/dalli/key_manager.rb:15 Dalli::KeyManager::NAMESPACE_SEPARATOR = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/key_manager.rb#27 +# pkg:gem/dalli#lib/dalli/key_manager.rb:27 Dalli::KeyManager::OPTIONS = T.let(T.unsafe(nil), Array) # This is a hard coded md5 for historical reasons # -# source://dalli//lib/dalli/key_manager.rb#18 +# pkg:gem/dalli#lib/dalli/key_manager.rb:18 Dalli::KeyManager::TRUNCATED_KEY_SEPARATOR = T.let(T.unsafe(nil), String) # This is 249 for historical reasons # -# source://dalli//lib/dalli/key_manager.rb#21 +# pkg:gem/dalli#lib/dalli/key_manager.rb:21 Dalli::KeyManager::TRUNCATED_KEY_TARGET_SIZE = T.let(T.unsafe(nil), Integer) -# source://dalli//lib/dalli/version.rb#6 +# pkg:gem/dalli#lib/dalli/version.rb:6 Dalli::MIN_SUPPORTED_MEMCACHED_VERSION = T.let(T.unsafe(nil), String) # application error in marshalling serialization # -# source://dalli//lib/dalli.rb#19 +# pkg:gem/dalli#lib/dalli.rb:19 class Dalli::MarshalError < ::Dalli::DalliError; end -# source://dalli//lib/dalli.rb#32 +# pkg:gem/dalli#lib/dalli.rb:32 Dalli::NOT_FOUND = T.let(T.unsafe(nil), Dalli::NilObject) # socket/server communication error # -# source://dalli//lib/dalli.rb#13 +# pkg:gem/dalli#lib/dalli.rb:13 class Dalli::NetworkError < ::Dalli::DalliError; end # Implements the NullObject pattern to store an application-defined value for 'Key not found' responses. # -# source://dalli//lib/dalli.rb#31 +# pkg:gem/dalli#lib/dalli.rb:31 class Dalli::NilObject; end # operation is not permitted in a multi block # -# source://dalli//lib/dalli.rb#28 +# pkg:gem/dalli#lib/dalli.rb:28 class Dalli::NotPermittedMultiOpError < ::Dalli::DalliError; end # Dalli::PIDCache is a wrapper class for PID checking to avoid system calls when checking the PID. # -# source://dalli//lib/dalli/pid_cache.rb#7 +# pkg:gem/dalli#lib/dalli/pid_cache.rb:7 module Dalli::PIDCache class << self - # Returns the value of attribute pid. - # - # source://dalli//lib/dalli/pid_cache.rb#13 + # pkg:gem/dalli#lib/dalli/pid_cache.rb:13 def pid; end - # source://dalli//lib/dalli/pid_cache.rb#15 + # pkg:gem/dalli#lib/dalli/pid_cache.rb:15 def update!; end end end # Dalli::PIDCache::CoreExt hooks into Process to be able to reset the PID cache after fork # -# source://dalli//lib/dalli/pid_cache.rb#24 +# pkg:gem/dalli#lib/dalli/pid_cache.rb:24 module Dalli::PIDCache::CoreExt - # source://dalli//lib/dalli/pid_cache.rb#25 + # pkg:gem/dalli#lib/dalli/pid_cache.rb:25 def _fork; end end # Contains logic for the pipelined gets implemented by the client. # -# source://dalli//lib/dalli/pipelined_getter.rb#7 +# pkg:gem/dalli#lib/dalli/pipelined_getter.rb:7 class Dalli::PipelinedGetter - # @return [PipelinedGetter] a new instance of PipelinedGetter - # - # source://dalli//lib/dalli/pipelined_getter.rb#8 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:8 def initialize(ring, key_manager); end # Swallows Dalli::NetworkError # - # source://dalli//lib/dalli/pipelined_getter.rb#128 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:128 def abort_with_timeout(servers); end # Swallows Dalli::NetworkError # - # source://dalli//lib/dalli/pipelined_getter.rb#91 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:91 def abort_without_timeout(servers); end - # source://dalli//lib/dalli/pipelined_getter.rb#95 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:95 def fetch_responses(servers, start_time, timeout, &block); end # This loops through the servers that have keys in # our set, sending the noop to terminate the set of queries. # - # source://dalli//lib/dalli/pipelined_getter.rb#59 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:59 def finish_queries(servers); end - # source://dalli//lib/dalli/pipelined_getter.rb#80 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:80 def finish_query_for_server(server); end - # source://dalli//lib/dalli/pipelined_getter.rb#164 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:164 def groups_for_keys(*keys); end # Loop through the server-grouped sets of keys, writing @@ -680,99 +638,87 @@ class Dalli::PipelinedGetter # on the wire by switching from getkq to getq, and using # the opaque value to match requests to responses. # - # source://dalli//lib/dalli/pipelined_getter.rb#46 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:46 def make_getkq_requests(groups); end # Yields, one at a time, keys and their values+attributes. # - # source://dalli//lib/dalli/pipelined_getter.rb#16 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:16 def process(keys, &block); end # Processes responses from a server. Returns true if there are no # additional responses from this server. # - # source://dalli//lib/dalli/pipelined_getter.rb#139 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:139 def process_server(server); end - # source://dalli//lib/dalli/pipelined_getter.rb#120 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:120 def remaining_time(start, timeout); end - # source://dalli//lib/dalli/pipelined_getter.rb#147 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:147 def servers_with_response(servers, timeout); end - # source://dalli//lib/dalli/pipelined_getter.rb#30 + # pkg:gem/dalli#lib/dalli/pipelined_getter.rb:30 def setup_requests(keys); end end -# source://dalli//lib/dalli/protocol.rb#6 +# pkg:gem/dalli#lib/dalli/protocol.rb:7 module Dalli::Protocol; end # Base class for a single Memcached server, containing logic common to all # protocols. Contains logic for managing connection state to the server and value # handling. # -# source://dalli//lib/dalli/protocol/base.rb#14 +# pkg:gem/dalli#lib/dalli/protocol/base.rb:15 class Dalli::Protocol::Base extend ::Forwardable - # @return [Base] a new instance of Base - # - # source://dalli//lib/dalli/protocol/base.rb#23 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:24 def initialize(attribs, client_options = T.unsafe(nil)); end # Boolean method used by clients of this class to determine if this # particular memcached instance is available for use. # - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/base.rb#63 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:69 def alive?; end - # source://forwardable/1.3.3/forwardable.rb#231 - def close(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def close(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def compress_by_default?(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:20 + def compress_by_default?(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def compression_min_size(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:20 + def compression_min_size(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def compressor(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:20 + def compressor(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def connected?(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def connected?(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def down!(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def down!(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def hostname(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def hostname(*args, **, &block); end - # source://dalli//lib/dalli/protocol/base.rb#71 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:77 def lock!; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/base.rb#156 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:165 def multi?; end - # source://forwardable/1.3.3/forwardable.rb#231 - def name(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def name(*args, **, &block); end - # Returns the value of attribute options. - # - # source://dalli//lib/dalli/protocol/base.rb#17 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:18 def options; end - # Sets the attribute options - # - # @param value the value to set the attribute options to. - # - # source://dalli//lib/dalli/protocol/base.rb#17 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:18 def options=(_arg0); end - # source://dalli//lib/dalli/protocol/base.rb#148 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:154 def password; end # Abort current pipelined get. Generally used to signal an external @@ -781,14 +727,12 @@ class Dalli::Protocol::Base # # Returns nothing. # - # source://dalli//lib/dalli/protocol/base.rb#124 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:130 def pipeline_abort; end # Did the last call to #pipeline_response_setup complete successfully? # - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/base.rb#140 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:146 def pipeline_complete?; end # Attempt to receive and parse as many key/value pairs as possible @@ -798,7 +742,7 @@ class Dalli::Protocol::Base # # Returns a Hash of kv pairs received. # - # source://dalli//lib/dalli/protocol/base.rb#92 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:98 def pipeline_next_responses; end # Start reading key/value pairs from this connection. This is usually called @@ -807,87 +751,89 @@ class Dalli::Protocol::Base # # Returns nothing. # - # source://dalli//lib/dalli/protocol/base.rb#80 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:86 def pipeline_response_setup; end - # source://forwardable/1.3.3/forwardable.rb#231 - def port(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def port(*args, **, &block); end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/base.rb#156 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:162 def quiet?; end - # source://forwardable/1.3.3/forwardable.rb#231 - def raise_down_error(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def raise_down_error(*args, **, &block); end # True when this request passed raw: true. A stored value is then # returned as stored, never deserialized or decompressed. # - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/base.rb#32 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:34 def raw_request?(options); end - # source://forwardable/1.3.3/forwardable.rb#231 - def reconnect_down_server?(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def reconnect_down_server?(*args, **, &block); end # Chokepoint method for error handling and ensuring liveness # - # source://dalli//lib/dalli/protocol/base.rb#37 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:39 def request(opkey, *args); end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/base.rb#152 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:158 def require_auth?; end - # source://forwardable/1.3.3/forwardable.rb#231 - def serializer(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:20 + def serializer(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def sock(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def sock(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def socket_timeout(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def socket_timeout(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def socket_type(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def socket_type(*args, **, &block); end - # source://dalli//lib/dalli/protocol/base.rb#73 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:79 def unlock!; end - # source://forwardable/1.3.3/forwardable.rb#231 - def up!(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def up!(*args, **, &block); end - # source://dalli//lib/dalli/protocol/base.rb#144 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:150 def username; end - # Returns the value of attribute weight. - # - # source://dalli//lib/dalli/protocol/base.rb#17 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:18 def weight; end - # Sets the attribute weight - # - # @param value the value to set the attribute weight to. - # - # source://dalli//lib/dalli/protocol/base.rb#17 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:18 def weight=(_arg0); end - # source://forwardable/1.3.3/forwardable.rb#231 - def write(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/base.rb:21 + def write(*args, **, &block); end private - # @return [Boolean] + # Drops the rest of this server's replies and closes the connection so + # nothing unread is left on it. Not a socket failure, so it doesn't count + # toward socket_max_failures; the keys not read are simply missing. # - # source://dalli//lib/dalli/protocol/base.rb#209 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:292 + def abandon_pipeline; end + + # pkg:gem/dalli#lib/dalli/protocol/base.rb:227 def cache_nils?(opts); end - # source://dalli//lib/dalli/protocol/base.rb#215 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:233 def connect; end + # Reads the replies still pending from quiet requests before any + # non-quiet request, which reads a reply of its own. A quiet block reads + # them at its end, but the connection is shared: another thread or fiber + # (quiet? is fiber-local) can make a request while the block is still + # open, and would otherwise read the block's replies as its own. + # + # pkg:gem/dalli#lib/dalli/protocol/base.rb:178 + def drain_pending_quiet_responses(opkey); end + # The socket connection to the underlying server is initialized as a side # effect of this call. In fact, this is the ONLY place where that # socket connection is initialized. @@ -898,141 +844,165 @@ class Dalli::Protocol::Base # Since this is invoked exclusively in verify_state!, we don't need to worry about # thread safety. Using it elsewhere may require revisiting that assumption. # - # source://dalli//lib/dalli/protocol/base.rb#201 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:219 def ensure_connected!; end + # A multi-get only accepts replies for the keys it asked for. With the + # meta protocol, memcached names an item created by auto-create (ma or mg + # with N) for a base64-encoded key by its raw bytes, without the b flag; + # such a key can contain spaces or CR/LF, which split the reply header and + # make the replies after it parse as different ones. A key that wasn't + # requested is how that shows up. Only with the verify_reply_keys option, + # since building the set costs a multi-get about 15%. + # + # pkg:gem/dalli#lib/dalli/protocol/base.rb:261 + def expect_reply_keys(keys); end + # Called after the noop response is received at the end of a set # of pipelined gets # - # source://dalli//lib/dalli/protocol/base.rb#237 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:300 def finish_pipeline; end - # source://dalli//lib/dalli/protocol/base.rb#248 + # Stores a getkq reply's value and returns true, unless its key wasn't + # requested: then the replies are out of step, so what was read so far is + # kept, the rest dropped, and false returned to stop reading + # + # pkg:gem/dalli#lib/dalli/protocol/base.rb:268 + def keep_reading?(values, key, value, cas); end + + # pkg:gem/dalli#lib/dalli/protocol/base.rb:311 def log_marshal_err(key, err); end - # source://dalli//lib/dalli/protocol/base.rb#253 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:316 def log_unexpected_err(err); end - # source://dalli//lib/dalli/protocol/base.rb#222 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:240 def pipelined_get(keys); end - # source://dalli//lib/dalli/protocol/base.rb#244 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:307 def reconnect_on_pipeline_complete!; end - # source://dalli//lib/dalli/protocol/base.rb#231 + # Keys compared as bytes; ASCII keys compare equal in any encoding as is + # + # pkg:gem/dalli#lib/dalli/protocol/base.rb:285 + def reply_key_form(key); end + + # pkg:gem/dalli#lib/dalli/protocol/base.rb:250 def response_buffer; end - # @raise [Dalli::NotPermittedMultiOpError] - # - # source://dalli//lib/dalli/protocol/base.rb#166 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:280 + def unexpected_reply_key?(key); end + + # pkg:gem/dalli#lib/dalli/protocol/base.rb:184 def verify_allowed_quiet!(opkey); end - # source://dalli//lib/dalli/protocol/base.rb#187 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:205 def verify_pipelined_state(_opkey); end # Checks to see if we can execute the specified operation. Checks # whether the connection is in use, and whether the command is allowed # - # source://dalli//lib/dalli/protocol/base.rb#176 + # pkg:gem/dalli#lib/dalli/protocol/base.rb:194 def verify_state(opkey); end end -# source://dalli//lib/dalli/protocol/base.rb#165 +# pkg:gem/dalli#lib/dalli/protocol/base.rb:171 Dalli::Protocol::Base::ALLOWED_QUIET_OPS = T.let(T.unsafe(nil), Array) # Access point for a single Memcached server, accessed via Memcached's binary # protocol. Contains logic for managing connection state to the server (retries, etc), # formatting requests to the server, and unpacking responses. # -# source://dalli//lib/dalli/protocol/binary.rb#14 +# pkg:gem/dalli#lib/dalli/protocol/binary.rb:14 class Dalli::Protocol::Binary < ::Dalli::Protocol::Base include ::Dalli::Protocol::Binary::SaslAuthentication - # source://dalli//lib/dalli/protocol/binary.rb#15 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:15 def response_processor; end private - # source://dalli//lib/dalli/protocol/binary.rb#59 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:59 def add(key, value, ttl, options); end - # source://dalli//lib/dalli/protocol/binary.rb#82 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:82 def append(key, value); end # TODO: This is confusing, as there's a cas command in memcached # and this isn't it. Maybe rename? Maybe eliminate? # - # source://dalli//lib/dalli/protocol/binary.rb#47 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:47 def cas(key, options = T.unsafe(nil)); end # Arithmetic Commands # - # source://dalli//lib/dalli/protocol/binary.rb#106 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:106 def decr(key, count, ttl, initial); end - # source://dalli//lib/dalli/protocol/binary.rb#123 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:123 def decr_incr(opkey, key, count, ttl, initial); end # Delete Commands # - # source://dalli//lib/dalli/protocol/binary.rb#98 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:98 def delete(key, cas); end # Other Commands # - # source://dalli//lib/dalli/protocol/binary.rb#132 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:132 def flush(ttl = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/binary.rb#32 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:32 def gat(key, ttl, options = T.unsafe(nil)); end # Retrieval Commands # - # source://dalli//lib/dalli/protocol/binary.rb#22 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:22 def get(key, options = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/binary.rb#111 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:111 def incr(key, count, ttl, initial); end # Noop is a keepalive operation but also used to demarcate the end of a set of pipelined commands. # We need to read all the responses at once. # - # source://dalli//lib/dalli/protocol/binary.rb#140 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:140 def noop; end - # source://dalli//lib/dalli/protocol/binary.rb#87 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:87 def prepend(key, value); end - # source://dalli//lib/dalli/protocol/binary.rb#28 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:28 def quiet_get_request(key); end - # source://dalli//lib/dalli/protocol/binary.rb#64 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:64 def replace(key, value, ttl, cas, options); end - # source://dalli//lib/dalli/protocol/binary.rb#151 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:154 def reset_stats; end # Storage Commands # - # source://dalli//lib/dalli/protocol/binary.rb#54 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:54 def set(key, value, ttl, cas, options); end - # source://dalli//lib/dalli/protocol/binary.rb#145 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:148 def stats(info = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/binary.rb#70 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:70 def storage_req(opkey, key, value, ttl, cas, options); end - # source://dalli//lib/dalli/protocol/binary.rb#39 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:39 def touch(key, ttl); end - # source://dalli//lib/dalli/protocol/binary.rb#156 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:159 def version; end - # source://dalli//lib/dalli/protocol/binary.rb#92 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:92 def write_append_prepend(opkey, key, value); end - # source://dalli//lib/dalli/protocol/binary.rb#161 + # pkg:gem/dalli#lib/dalli/protocol/binary.rb:164 def write_noop; end end @@ -1042,226 +1012,193 @@ end # if the key doesn't already exist, rather than # setting the initial value # -# source://dalli//lib/dalli/protocol/binary.rb#121 +# pkg:gem/dalli#lib/dalli/protocol/binary.rb:121 Dalli::Protocol::Binary::NOT_FOUND_EXPIRY = T.let(T.unsafe(nil), Integer) # Class that encapsulates logic for formatting binary protocol requests # to memcached. # -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#10 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:10 class Dalli::Protocol::Binary::RequestFormatter class << self - # source://dalli//lib/dalli/protocol/binary/request_formatter.rb#111 + # pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:111 def as_8byte_uint(val); end - # source://dalli//lib/dalli/protocol/binary/request_formatter.rb#102 + # pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:102 def decr_incr_request(opkey:, key: T.unsafe(nil), count: T.unsafe(nil), initial: T.unsafe(nil), expiry: T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/binary/request_formatter.rb#92 + # pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:92 def standard_request(opkey:, key: T.unsafe(nil), value: T.unsafe(nil), opaque: T.unsafe(nil), cas: T.unsafe(nil), bitflags: T.unsafe(nil), ttl: T.unsafe(nil)); end end end -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#53 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:53 Dalli::Protocol::Binary::RequestFormatter::BODY_FORMATS = T.let(T.unsafe(nil), Hash) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#89 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:89 Dalli::Protocol::Binary::RequestFormatter::FORMAT = T.let(T.unsafe(nil), Hash) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#49 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:49 Dalli::Protocol::Binary::RequestFormatter::INCR_DECR = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#48 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:48 Dalli::Protocol::Binary::RequestFormatter::KEY_AND_VALUE = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#46 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:46 Dalli::Protocol::Binary::RequestFormatter::KEY_ONLY = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#51 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:51 Dalli::Protocol::Binary::RequestFormatter::NO_BODY = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#13 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:13 Dalli::Protocol::Binary::RequestFormatter::OPCODES = T.let(T.unsafe(nil), Hash) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#11 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:11 Dalli::Protocol::Binary::RequestFormatter::REQUEST = T.let(T.unsafe(nil), Integer) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#44 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:44 Dalli::Protocol::Binary::RequestFormatter::REQ_HEADER_FORMAT = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#47 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:47 Dalli::Protocol::Binary::RequestFormatter::TTL_AND_KEY = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/binary/request_formatter.rb#50 +# pkg:gem/dalli#lib/dalli/protocol/binary/request_formatter.rb:50 Dalli::Protocol::Binary::RequestFormatter::TTL_ONLY = T.let(T.unsafe(nil), String) # Class that encapsulates data parsed from a memcached response header. # -# source://dalli//lib/dalli/protocol/binary/response_header.rb#9 +# pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:9 class Dalli::Protocol::Binary::ResponseHeader - # @raise [ArgumentError] - # @return [ResponseHeader] a new instance of ResponseHeader - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#15 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:15 def initialize(buf); end - # Returns the value of attribute body_len. - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#13 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:13 def body_len; end - # Returns the value of attribute cas. - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#13 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:13 def cas; end - # Returns the value of attribute data_type. - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#13 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:13 def data_type; end - # Returns the value of attribute extra_len. - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#13 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:13 def extra_len; end - # Returns the value of attribute key_len. - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#13 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:13 def key_len; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#25 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:25 def not_found?; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#30 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:30 def not_stored?; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#21 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:21 def ok?; end - # Returns the value of attribute opaque. - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#13 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:13 def opaque; end - # Returns the value of attribute status. - # - # source://dalli//lib/dalli/protocol/binary/response_header.rb#13 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:13 def status; end end -# source://dalli//lib/dalli/protocol/binary/response_header.rb#11 +# pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:11 Dalli::Protocol::Binary::ResponseHeader::FMT = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/binary/response_header.rb#29 +# pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:29 Dalli::Protocol::Binary::ResponseHeader::NOT_STORED_STATUSES = T.let(T.unsafe(nil), Array) -# source://dalli//lib/dalli/protocol/binary/response_header.rb#10 +# pkg:gem/dalli#lib/dalli/protocol/binary/response_header.rb:10 Dalli::Protocol::Binary::ResponseHeader::SIZE = T.let(T.unsafe(nil), Integer) # Class that encapsulates logic for processing binary protocol responses # from memcached. Includes logic for pulling data from an IO source # and parsing into local values. Handles errors on unexpected values. # -# source://dalli//lib/dalli/protocol/binary/response_processor.rb#11 +# pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:11 class Dalli::Protocol::Binary::ResponseProcessor - # @return [ResponseProcessor] a new instance of ResponseProcessor - # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#34 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:34 def initialize(io_source, value_marshaller); end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#187 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:187 def auth_response(buf = T.unsafe(nil)); end - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#220 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:220 def check_body_size!(size); end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#153 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:153 def consume_all_responses_until_noop; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#195 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:195 def contains_header?(buf); end # raw: true returns the value as stored; see #get # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#106 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:106 def data_cas_response(raw: T.unsafe(nil)); end # Returns the new value for the key, if found and updated # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#118 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:118 def decr_incr; end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#97 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:97 def delete; end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#141 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:141 def flush; end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#161 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:161 def generic_response; end # raw: true returns the value as stored, without deserializing or # decompressing it, whatever flags it was stored with # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#71 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:71 def get(cache_nils: T.unsafe(nil), raw: T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#226 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:226 def getk_response_from_buffer(buf); end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#173 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:173 def no_body_response; end - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#63 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:63 def raise_on_not_ok!(resp_header); end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#39 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:39 def read(num_bytes); end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#59 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:59 def read_header; end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#43 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:43 def read_response; end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#145 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:145 def reset; end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#201 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:201 def response_header_from_buffer(buf); end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#123 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:123 def stats; end # Response for a storage operation. Returns the cas on success. False # if the value wasn't stored. And raises an error on all other error # codes from memcached. # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#88 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:88 def storage_response; end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#49 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:49 def unpack_response_body(resp_header, body, parse_as_stored_value); end - # @raise [Dalli::NetworkError] - # - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#181 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:181 def validate_auth_format(extra_len, count); end - # source://dalli//lib/dalli/protocol/binary/response_processor.rb#149 + # pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:149 def version; end end @@ -1278,363 +1215,355 @@ end # pipelined reply claiming an impossible size would otherwise have the # buffer wait for (and accumulate) that many bytes. # -# source://dalli//lib/dalli/protocol/binary/response_processor.rb#218 +# pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:218 Dalli::Protocol::Binary::ResponseProcessor::MAX_BODY_BYTES = T.let(T.unsafe(nil), Integer) # Response codes taken from: # https://github.com/memcached/memcached/wiki/BinaryProtocolRevamped#response-status # -# source://dalli//lib/dalli/protocol/binary/response_processor.rb#14 +# pkg:gem/dalli#lib/dalli/protocol/binary/response_processor.rb:14 Dalli::Protocol::Binary::ResponseProcessor::RESPONSE_CODES = T.let(T.unsafe(nil), Hash) # Code to support SASL authentication # -# source://dalli//lib/dalli/protocol/binary/sasl_authentication.rb#9 +# pkg:gem/dalli#lib/dalli/protocol/binary/sasl_authentication.rb:9 module Dalli::Protocol::Binary::SaslAuthentication - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/binary/sasl_authentication.rb#40 + # pkg:gem/dalli#lib/dalli/protocol/binary/sasl_authentication.rb:40 def authenticate_connection; end - # source://dalli//lib/dalli/protocol/binary/sasl_authentication.rb#33 + # pkg:gem/dalli#lib/dalli/protocol/binary/sasl_authentication.rb:33 def authenticate_with_plain; end - # source://dalli//lib/dalli/protocol/binary/sasl_authentication.rb#10 + # pkg:gem/dalli#lib/dalli/protocol/binary/sasl_authentication.rb:10 def perform_auth_negotiation; end - # source://dalli//lib/dalli/protocol/binary/sasl_authentication.rb#25 + # pkg:gem/dalli#lib/dalli/protocol/binary/sasl_authentication.rb:25 def supported_mechanisms!(mechanisms); end end -# source://dalli//lib/dalli/protocol/binary/sasl_authentication.rb#23 +# pkg:gem/dalli#lib/dalli/protocol/binary/sasl_authentication.rb:23 Dalli::Protocol::Binary::SaslAuthentication::PLAIN_AUTH = T.let(T.unsafe(nil), String) # Manages the socket connection to the server, including ensuring liveness # and retries. # -# source://dalli//lib/dalli/protocol/connection_manager.rb#15 +# pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:15 class Dalli::Protocol::ConnectionManager - # @return [ConnectionManager] a new instance of ConnectionManager - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#32 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:33 def initialize(hostname, port, socket_type, client_options); end - # source://dalli//lib/dalli/protocol/connection_manager.rb#160 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:171 def abort_request!; end - # @raise [Dalli::DalliError] + # plus the value's trailing "\r\n" # - # source://dalli//lib/dalli/protocol/connection_manager.rb#177 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:200 def check_read_size!(count); end - # source://dalli//lib/dalli/protocol/connection_manager.rb#115 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:118 def close; end - # @raise [Dalli::NetworkError] - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#250 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:273 def close_on_fork; end # A forked child shares the parent's connection, so it closes only its # own file descriptor. Closing the TLS socket itself would send # close_notify and end the parent's TLS session. # - # source://dalli//lib/dalli/protocol/connection_manager.rb#131 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:135 def close_socket; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#109 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:112 def confirm_in_progress!; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#104 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:107 def confirm_ready!; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#135 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:139 def connected?; end # Marks the server instance as down. Updates the down_at state # and raises an Dalli::NetworkError that includes the underlying # error in the message. Calls close to clean up socket state # - # source://dalli//lib/dalli/protocol/connection_manager.rb#85 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:88 def down!; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#206 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:229 def error_on_request!(err_or_string); end - # source://dalli//lib/dalli/protocol/connection_manager.rb#53 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:55 def establish_connection; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#149 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:160 def finish_request!; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#259 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:282 def fork_detected?; end - # Returns the value of attribute hostname. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:29 def hostname; end - # Sets the attribute hostname - # - # @param value the value to set the attribute hostname to. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:29 def hostname=(_arg0); end - # source://dalli//lib/dalli/protocol/connection_manager.rb#267 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:290 def log_down_detected; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#279 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:302 def log_up_detected; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#242 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:265 def log_warn_message(err_or_string); end - # source://dalli//lib/dalli/protocol/connection_manager.rb#202 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:225 def max_allowed_failures; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#234 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:257 def memcached_socket; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#45 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:47 def name; end - # Returns the value of attribute options. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:29 def options; end - # Sets the attribute options - # - # @param value the value to set the attribute options to. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:29 def options=(_arg0); end - # Returns the value of attribute port. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:29 def port; end - # Sets the attribute port - # - # @param value the value to set the attribute port to. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:29 def port=(_arg0); end - # @raise [Dalli::NetworkError] + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:31 + def quiet_responses_pending=(_arg0); end + + # True when a quiet request was written on this connection and its + # replies (memcached only suppresses some of them) haven't been + # consumed by a noop yet. # - # source://dalli//lib/dalli/protocol/connection_manager.rb#96 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:146 + def quiet_responses_pending?; end + + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:99 def raise_down_error; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#183 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:206 def read(count); end - # source://dalli//lib/dalli/protocol/connection_manager.rb#164 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:184 def read_line; end # Non-blocking read. Here to support the operation # of the get_multi operation # - # source://dalli//lib/dalli/protocol/connection_manager.rb#198 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:221 def read_nonblock; end - # @raise [Dalli::NetworkError] - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#219 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:242 def reconnect!(message); end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#64 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:67 def reconnect_down_server?; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#139 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:150 def request_in_progress?; end # Called on connect. Deliberately leaves @fail_count alone; see # finish_request!. # - # source://dalli//lib/dalli/protocol/connection_manager.rb#227 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:250 def reset_down_info; end - # Returns the value of attribute sock. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#30 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:30 def sock; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#100 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:103 def socket_timeout; end - # Returns the value of attribute socket_type. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:29 def socket_type; end - # Sets the attribute socket_type - # - # @param value the value to set the attribute socket_type to. - # - # source://dalli//lib/dalli/protocol/connection_manager.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:29 def socket_type=(_arg0); end - # source://dalli//lib/dalli/protocol/connection_manager.rb#143 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:154 def start_request!; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#77 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:80 def up!; end - # source://dalli//lib/dalli/protocol/connection_manager.rb#190 + # pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:213 def write(bytes); end end -# source://dalli//lib/dalli/protocol/connection_manager.rb#16 +# pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:16 Dalli::Protocol::ConnectionManager::DEFAULTS = T.let(T.unsafe(nil), Hash) +# The longest reply line Dalli reads, in bytes, CRLF included. A meta +# reply header is at most about 500 bytes: "VA " plus its flags, +# the largest being a 250-byte key base64-encoded to 336 bytes, a +# 20-digit CAS, a 32-byte opaque and a few numeric fields. The longest +# stats line (stats settings) carries a file path such as ext_path, up +# to PATH_MAX (4096). 8 KiB leaves room for both, while a server that +# never sends CRLF can't grow the read buffer without bound. +# +# pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:182 +Dalli::Protocol::ConnectionManager::MAX_LINE_BYTES = T.let(T.unsafe(nil), Integer) + # memcached can't store an item larger than 1 GiB (its -I maximum), so a # reply claiming more (or a negative size) is malformed or hostile. # Reading allocates the full count up front, so check before reading. # -# source://dalli//lib/dalli/protocol/connection_manager.rb#175 +# pkg:gem/dalli#lib/dalli/protocol/connection_manager.rb:198 Dalli::Protocol::ConnectionManager::MAX_READ_BYTES = T.let(T.unsafe(nil), Integer) # Access point for a single Memcached server, accessed via Memcached's meta # protocol. Contains logic for managing connection state to the server (retries, etc), # formatting requests to the server, and unpacking responses. # -# source://dalli//lib/dalli/protocol/meta.rb#14 +# pkg:gem/dalli#lib/dalli/protocol/meta.rb:14 class Dalli::Protocol::Meta < ::Dalli::Protocol::Base - # source://dalli//lib/dalli/protocol/meta.rb#17 + # counters are stored raw + # + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:18 def response_processor; end private - # source://dalli//lib/dalli/protocol/meta.rb#69 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:70 def add(key, value, ttl, options); end - # source://dalli//lib/dalli/protocol/meta.rb#91 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:92 def append(key, value); end - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/meta.rb#169 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:204 def authenticate_connection; end # TODO: This is confusing, as there's a cas command in memcached # and this isn't it. Maybe rename? Maybe eliminate? # - # source://dalli//lib/dalli/protocol/meta.rb#56 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:57 def cas(key, options = T.unsafe(nil)); end # Arithmetic Commands # - # source://dalli//lib/dalli/protocol/meta.rb#121 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:122 def decr(key, count, ttl, initial); end - # source://dalli//lib/dalli/protocol/meta.rb#129 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:130 def decr_incr(incr, key, delta, ttl, initial); end + # Like decr_incr with an initial value, without memcached's auto-create: + # on a miss the counter is added with the initial value (which is + # returned, as auto-create would), and the add losing a race to another + # client means the counter now exists, so the incr is tried again. In a + # quiet block both requests are sent and whichever applies takes effect. + # + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:148 + def decr_incr_with_add(incr, key, delta, ttl, initial); end + # Delete Commands # - # source://dalli//lib/dalli/protocol/meta.rb#112 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:113 def delete(key, cas); end # Other Commands # - # source://dalli//lib/dalli/protocol/meta.rb#138 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:170 def flush(delay = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta.rb#38 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:39 def gat(key, ttl, options = T.unsafe(nil)); end # Retrieval Commands # - # source://dalli//lib/dalli/protocol/meta.rb#26 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:27 def get(key, options = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta.rb#125 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:126 def incr(key, count, ttl, initial); end # Noop is a keepalive operation but also used to demarcate the end of a set of pipelined commands. # We need to read all the responses at once. # - # source://dalli//lib/dalli/protocol/meta.rb#145 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:177 def noop; end - # source://dalli//lib/dalli/protocol/meta.rb#96 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:97 def prepend(key, value); end - # source://dalli//lib/dalli/protocol/meta.rb#33 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:161 + def quiet_decr_incr_with_add(incr, key, delta, ttl, initial); end + + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:34 def quiet_get_request(key); end - # source://dalli//lib/dalli/protocol/meta.rb#74 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:75 def replace(key, value, ttl, cas, options); end - # source://dalli//lib/dalli/protocol/meta.rb#155 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:190 def reset_stats; end # Storage Commands # - # source://dalli//lib/dalli/protocol/meta.rb#64 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:65 def set(key, value, ttl, cas, options); end - # source://dalli//lib/dalli/protocol/meta.rb#150 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:185 def stats(info = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta.rb#46 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:47 def touch(key, ttl); end - # source://dalli//lib/dalli/protocol/meta.rb#160 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:195 def version; end - # source://dalli//lib/dalli/protocol/meta.rb#102 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:103 def write_append_prepend_req(mode, key, value, ttl = T.unsafe(nil), cas = T.unsafe(nil), _options = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta.rb#165 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:200 def write_noop; end - # source://dalli//lib/dalli/protocol/meta.rb#80 + # pkg:gem/dalli#lib/dalli/protocol/meta.rb:81 def write_storage_req(mode, key, raw_value, ttl = T.unsafe(nil), cas = T.unsafe(nil), options = T.unsafe(nil)); end end +# pkg:gem/dalli#lib/dalli/protocol/meta.rb:16 +Dalli::Protocol::Meta::COUNTER_ADD_OPTIONS = T.let(T.unsafe(nil), Hash) + # The meta protocol requires that keys be ASCII only, so Unicode keys are # not supported. In addition, the use of whitespace in the key is not # allowed. # memcached supports the use of base64 hashes for keys containing # whitespace or non-ASCII characters, provided the 'b' flag is included in the request. # -# source://dalli//lib/dalli/protocol/meta/key_regularizer.rb#12 +# pkg:gem/dalli#lib/dalli/protocol/meta/key_regularizer.rb:12 class Dalli::Protocol::Meta::KeyRegularizer class << self - # source://dalli//lib/dalli/protocol/meta/key_regularizer.rb#22 + # pkg:gem/dalli#lib/dalli/protocol/meta/key_regularizer.rb:22 def decode(encoded_key, base64_encoded); end - # source://dalli//lib/dalli/protocol/meta/key_regularizer.rb#15 + # pkg:gem/dalli#lib/dalli/protocol/meta/key_regularizer.rb:15 def encode(key); end end end -# source://dalli//lib/dalli/protocol/meta/key_regularizer.rb#13 +# pkg:gem/dalli#lib/dalli/protocol/meta/key_regularizer.rb:13 Dalli::Protocol::Meta::KeyRegularizer::WHITESPACE = T.let(T.unsafe(nil), Regexp) # Class that encapsulates logic for formatting meta protocol requests # to memcached. # -# source://dalli//lib/dalli/protocol/meta/request_formatter.rb#10 +# pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:10 class Dalli::Protocol::Meta::RequestFormatter class << self - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#119 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:119 def cas_string(cas); end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#77 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:77 def flush(delay: T.unsafe(nil), quiet: T.unsafe(nil)); end # Numeric flag values are written straight into the command line, so a @@ -1644,39 +1573,38 @@ class Dalli::Protocol::Meta::RequestFormatter # are parsed as base 10 so "010" means 10, as memcached would read it, # rather than octal 8. # - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#113 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:113 def integer_flag(name, value); end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#52 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:52 def meta_arithmetic(key:, delta:, initial:, incr: T.unsafe(nil), cas: T.unsafe(nil), ttl: T.unsafe(nil), base64: T.unsafe(nil), quiet: T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#43 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:43 def meta_delete(key:, cas: T.unsafe(nil), ttl: T.unsafe(nil), base64: T.unsafe(nil), quiet: T.unsafe(nil)); end # Since these are string construction methods, we're going to disable these # Rubocop directives. We really can't make this construction much simpler, # and introducing an intermediate object seems like overkill. # - # - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#19 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:19 def meta_get(key:, value: T.unsafe(nil), return_cas: T.unsafe(nil), ttl: T.unsafe(nil), base64: T.unsafe(nil), quiet: T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#69 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:69 def meta_noop; end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:29 def meta_set(key:, value:, bitflags: T.unsafe(nil), cas: T.unsafe(nil), ttl: T.unsafe(nil), mode: T.unsafe(nil), base64: T.unsafe(nil), quiet: T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#91 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:91 def mode_to_token(mode); end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#124 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:124 def parse_to_64_bit_int(val, default); end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#84 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:84 def stats(arg = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta/request_formatter.rb#73 + # pkg:gem/dalli#lib/dalli/protocol/meta/request_formatter.rb:73 def version; end end end @@ -1685,47 +1613,39 @@ end # from memcached. Includes logic for pulling data from an IO source # and parsing into local values. Handles errors on unexpected values. # -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#11 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:11 class Dalli::Protocol::Meta::ResponseProcessor - # @return [ResponseProcessor] a new instance of ResponseProcessor - # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#25 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:25 def initialize(io_source, value_marshaller); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#208 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:208 def bitflags_from_tokens(tokens); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#222 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:222 def body_len_from_tokens(tokens); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#212 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:212 def cas_from_tokens(tokens); end - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#182 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:182 def check_value_size!(size); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#112 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:112 def consume_all_responses_until_mn; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#193 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:193 def contains_header?(buf); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#77 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:77 def decr_incr; end - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#201 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:201 def error_on_unexpected!(expected_codes); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#95 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:95 def flush; end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#127 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:127 def full_response_from_buffer(tokens, body, resp_size); end # This method returns an array of values used in a pipelined @@ -1737,213 +1657,215 @@ class Dalli::Protocol::Meta::ResponseProcessor # The remaining three values in the array are the ResponseHeader, # key, and value. # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#146 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:146 def getk_response_from_buffer(buf); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#197 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:197 def header_from_buffer(buf); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#216 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:216 def key_from_tokens(tokens); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#72 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:72 def meta_delete; end # raw: true returns the value as stored, without deserializing or # decompressing it, whatever flags it was stored with # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#32 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:32 def meta_get_with_value(cache_nils: T.unsafe(nil), raw: T.unsafe(nil)); end # raw: true returns the value as stored; see #meta_get_with_value # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#42 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:42 def meta_get_with_value_and_cas(raw: T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#53 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:53 def meta_get_without_value; end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#65 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:65 def meta_set_append_prepend; end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#58 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:58 def meta_set_with_cas; end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#241 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:241 def next_line_to_tokens; end # A zero-size reply has no body unless it's a VA (a hit on an empty value) # - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#189 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:189 def no_body?(tokens, body_len); end # The size given right after "VA", or 0 when it isn't a number # - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#178 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:178 def positional_size(tokens); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#237 + # Values are read by the size in the VA line, not up to the next CRLF: + # a value can contain CRLF and can be longer than MAX_LINE_BYTES + # + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:248 + def read_data(data_size); end + + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:237 def read_line; end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#101 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:101 def reset; end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#85 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:85 def stats; end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#119 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:119 def tokens_from_header_buffer(buf); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#230 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:230 def value_from_tokens(tokens, flag); end - # source://dalli//lib/dalli/protocol/meta/response_processor.rb#107 + # pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:107 def version; end end -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#12 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:12 Dalli::Protocol::Meta::ResponseProcessor::EN = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#13 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:13 Dalli::Protocol::Meta::ResponseProcessor::END_TOKEN = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#14 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:14 Dalli::Protocol::Meta::ResponseProcessor::EX = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#15 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:15 Dalli::Protocol::Meta::ResponseProcessor::HD = T.let(T.unsafe(nil), String) # memcached can't store an item larger than 1 GiB (its -I maximum). A # pipelined reply claiming an impossible size would otherwise have the # buffer wait for (and accumulate) that many bytes. # -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#175 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:175 Dalli::Protocol::Meta::ResponseProcessor::MAX_VALUE_BYTES = T.let(T.unsafe(nil), Integer) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#16 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:16 Dalli::Protocol::Meta::ResponseProcessor::MN = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#17 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:17 Dalli::Protocol::Meta::ResponseProcessor::NF = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#18 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:18 Dalli::Protocol::Meta::ResponseProcessor::NS = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#19 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:19 Dalli::Protocol::Meta::ResponseProcessor::OK = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#20 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:20 Dalli::Protocol::Meta::ResponseProcessor::RESET = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#21 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:21 Dalli::Protocol::Meta::ResponseProcessor::STAT = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#22 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:22 Dalli::Protocol::Meta::ResponseProcessor::VA = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta/response_processor.rb#23 +# pkg:gem/dalli#lib/dalli/protocol/meta/response_processor.rb:23 Dalli::Protocol::Meta::ResponseProcessor::VERSION = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/meta.rb#15 +# pkg:gem/dalli#lib/dalli/protocol/meta.rb:15 Dalli::Protocol::Meta::TERMINATOR = T.let(T.unsafe(nil), String) # Preserved for backwards compatibility. Should be removed in 4.0 # -# source://dalli//lib/dalli/protocol.rb#8 +# pkg:gem/dalli#lib/dalli/protocol.rb:9 Dalli::Protocol::NOT_FOUND = T.let(T.unsafe(nil), Dalli::NilObject) # Manages the buffer for responses from memcached. # -# source://dalli//lib/dalli/protocol/response_buffer.rb#11 +# pkg:gem/dalli#lib/dalli/protocol/response_buffer.rb:11 class Dalli::Protocol::ResponseBuffer - # @return [ResponseBuffer] a new instance of ResponseBuffer - # - # source://dalli//lib/dalli/protocol/response_buffer.rb#12 + # pkg:gem/dalli#lib/dalli/protocol/response_buffer.rb:12 def initialize(io_source, response_processor); end # Advances the internal response buffer by bytes_to_advance # bytes. The # - # source://dalli//lib/dalli/protocol/response_buffer.rb#32 + # pkg:gem/dalli#lib/dalli/protocol/response_buffer.rb:32 def advance(bytes_to_advance); end # Clear the internal response buffer # - # source://dalli//lib/dalli/protocol/response_buffer.rb#45 + # pkg:gem/dalli#lib/dalli/protocol/response_buffer.rb:45 def clear; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/response_buffer.rb#49 + # pkg:gem/dalli#lib/dalli/protocol/response_buffer.rb:49 def in_progress?; end # Attempts to process a single response from the buffer. Starts # by advancing the buffer to the specified start position # - # source://dalli//lib/dalli/protocol/response_buffer.rb#24 + # pkg:gem/dalli#lib/dalli/protocol/response_buffer.rb:24 def process_single_getk_response; end - # source://dalli//lib/dalli/protocol/response_buffer.rb#18 + # pkg:gem/dalli#lib/dalli/protocol/response_buffer.rb:18 def read; end # Resets the internal buffer to an empty state, # so that we're ready to read pipelined responses # - # source://dalli//lib/dalli/protocol/response_buffer.rb#40 + # pkg:gem/dalli#lib/dalli/protocol/response_buffer.rb:40 def reset; end end +# SSL errors during the TLS handshake count as a failed request: they +# trigger reconnection and, after socket_max_failures, mark the server +# down. openssl is required above because this file loads before +# dalli/socket, so OpenSSL may not be defined yet. +# +# pkg:gem/dalli#lib/dalli/protocol.rb:24 +Dalli::Protocol::SSL_ERRORS = T.let(T.unsafe(nil), Array) + # Dalli::Protocol::ServerConfigParser parses a server string passed to # a Dalli::Protocol::Binary instance into the hostname, port, weight, and # socket_type. # -# source://dalli//lib/dalli/protocol/server_config_parser.rb#12 +# pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:12 class Dalli::Protocol::ServerConfigParser class << self - # source://dalli//lib/dalli/protocol/server_config_parser.rb#67 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:67 def attributes_for_tcp_socket(res); end - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/server_config_parser.rb#60 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:60 def attributes_for_unix_socket(res); end - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/server_config_parser.rb#53 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:53 def deconstruct_string(str); end - # @raise [Dalli::DalliError] - # - # source://dalli//lib/dalli/protocol/server_config_parser.rb#71 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:71 def normalize_host_from_match(str, res); end - # source://dalli//lib/dalli/protocol/server_config_parser.rb#77 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:77 def normalize_port(port); end - # source://dalli//lib/dalli/protocol/server_config_parser.rb#81 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:81 def normalize_weight(weight); end - # source://dalli//lib/dalli/protocol/server_config_parser.rb#24 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:24 def parse(str); end - # source://dalli//lib/dalli/protocol/server_config_parser.rb#39 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:39 def parse_non_uri(str); end - # source://dalli//lib/dalli/protocol/server_config_parser.rb#30 + # pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:30 def parse_uri(str); end end end -# source://dalli//lib/dalli/protocol/server_config_parser.rb#21 +# pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:21 Dalli::Protocol::ServerConfigParser::DEFAULT_PORT = T.let(T.unsafe(nil), Integer) -# source://dalli//lib/dalli/protocol/server_config_parser.rb#22 +# pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:22 Dalli::Protocol::ServerConfigParser::DEFAULT_WEIGHT = T.let(T.unsafe(nil), Integer) -# source://dalli//lib/dalli/protocol/server_config_parser.rb#13 +# pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:13 Dalli::Protocol::ServerConfigParser::MEMCACHED_URI_PROTOCOL = T.let(T.unsafe(nil), String) # TODO: Revisit this, especially the IP/domain part. Likely @@ -1951,13 +1873,13 @@ Dalli::Protocol::ServerConfigParser::MEMCACHED_URI_PROTOCOL = T.let(T.unsafe(nil # is there to support IPv6 addresses, which need to be specified with # a bounding [] # -# source://dalli//lib/dalli/protocol/server_config_parser.rb#19 +# pkg:gem/dalli#lib/dalli/protocol/server_config_parser.rb:19 Dalli::Protocol::ServerConfigParser::SERVER_CONFIG_REGEXP = T.let(T.unsafe(nil), Regexp) # Ruby 3.2 raises IO::TimeoutError on blocking reads/writes, but # it is not defined in earlier Ruby versions. # -# source://dalli//lib/dalli/protocol.rb#12 +# pkg:gem/dalli#lib/dalli/protocol.rb:13 Dalli::Protocol::TIMEOUT_ERRORS = T.let(T.unsafe(nil), Array) # Utility class for sanitizing TTL arguments based on Memcached rules. @@ -1965,25 +1887,23 @@ Dalli::Protocol::TIMEOUT_ERRORS = T.let(T.unsafe(nil), Array) # 30 days) or expiration timestamps. This class sanitizes TTLs to ensure # they meet those restrictions. # -# source://dalli//lib/dalli/protocol/ttl_sanitizer.rb#11 +# pkg:gem/dalli#lib/dalli/protocol/ttl_sanitizer.rb:11 class Dalli::Protocol::TtlSanitizer class << self - # source://dalli//lib/dalli/protocol/ttl_sanitizer.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/ttl_sanitizer.rb:29 def as_timestamp(ttl_as_i); end # Pulled out into a method so it's easy to stub time # - # source://dalli//lib/dalli/protocol/ttl_sanitizer.rb#40 + # pkg:gem/dalli#lib/dalli/protocol/ttl_sanitizer.rb:40 def current_timestamp; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/ttl_sanitizer.rb#25 + # pkg:gem/dalli#lib/dalli/protocol/ttl_sanitizer.rb:25 def less_than_max_expiration_interval?(ttl_as_i); end # Ensures the TTL passed to Memcached is a valid TTL in the expected format. # - # source://dalli//lib/dalli/protocol/ttl_sanitizer.rb#18 + # pkg:gem/dalli#lib/dalli/protocol/ttl_sanitizer.rb:18 def sanitize(ttl); end end end @@ -1992,7 +1912,7 @@ end # > An expiration time, in seconds. Can be up to 30 days. After 30 days, is # treated as a unix timestamp of an exact date. # -# source://dalli//lib/dalli/protocol/ttl_sanitizer.rb#15 +# pkg:gem/dalli#lib/dalli/protocol/ttl_sanitizer.rb:15 Dalli::Protocol::TtlSanitizer::MAX_ACCEPTABLE_EXPIRATION_INTERVAL = T.let(T.unsafe(nil), Integer) # Dalli::Protocol::ValueCompressor compartmentalizes the logic for managing @@ -2000,106 +1920,95 @@ Dalli::Protocol::TtlSanitizer::MAX_ACCEPTABLE_EXPIRATION_INTERVAL = T.let(T.unsa # relevant options from both client and request, determining whether to # compress/decompress on store/retrieve, and processes bitflags as necessary. # -# source://dalli//lib/dalli/protocol/value_compressor.rb#13 +# pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:13 class Dalli::Protocol::ValueCompressor - # @return [ValueCompressor] a new instance of ValueCompressor - # - # source://dalli//lib/dalli/protocol/value_compressor.rb#33 + # pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:33 def initialize(client_options); end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/value_compressor.rb#87 + # pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:87 def compress_by_default?; end # Checks whether we should apply compression when serializing a value - # based on the specified options. Returns false unless the value - # is greater than the minimum compression size. Otherwise returns - # based on a method-level option if specified, falling back to the - # server default. - # - # @return [Boolean] + # based on the specified options. Returns false for a raw request + # (raw reads ignore bitflags, so the value must be stored as given) or + # unless the value is greater than the minimum compression size. + # Otherwise returns based on a method-level option if specified, + # falling back to the server default. # - # source://dalli//lib/dalli/protocol/value_compressor.rb#104 + # pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:105 def compress_value?(value, req_options); end - # source://dalli//lib/dalli/protocol/value_compressor.rb#95 + # pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:95 def compression_min_size; end - # source://dalli//lib/dalli/protocol/value_compressor.rb#91 + # pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:91 def compressor; end - # @return [Boolean] - # - # source://dalli//lib/dalli/protocol/value_compressor.rb#74 + # pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:74 def compressor_accepts_max_bytes?; end - # source://dalli//lib/dalli/protocol/value_compressor.rb#55 + # pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:55 def retrieve(value, bitflags); end - # source://dalli//lib/dalli/protocol/value_compressor.rb#47 + # pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:47 def store(value, req_options, bitflags); end end -# source://dalli//lib/dalli/protocol/value_compressor.rb#14 +# pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:14 Dalli::Protocol::ValueCompressor::DEFAULTS = T.let(T.unsafe(nil), Hash) # https://www.hjp.at/zettel/m/memcached_flags.rxml # Looks like most clients use bit 1 to indicate gzip compression. # -# source://dalli//lib/dalli/protocol/value_compressor.rb#31 +# pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:31 Dalli::Protocol::ValueCompressor::FLAG_COMPRESSED = T.let(T.unsafe(nil), Integer) -# source://dalli//lib/dalli/protocol/value_compressor.rb#26 +# pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:26 Dalli::Protocol::ValueCompressor::KEYWORD_PARAMETER_TYPES = T.let(T.unsafe(nil), Array) -# source://dalli//lib/dalli/protocol/value_compressor.rb#24 +# pkg:gem/dalli#lib/dalli/protocol/value_compressor.rb:24 Dalli::Protocol::ValueCompressor::OPTIONS = T.let(T.unsafe(nil), Array) # Dalli::Protocol::ValueMarshaller compartmentalizes the logic for marshalling # and unmarshalling unstructured data (values) to Memcached. It also enforces # limits on the maximum size of marshalled data. # -# source://dalli//lib/dalli/protocol/value_marshaller.rb#12 +# pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:12 class Dalli::Protocol::ValueMarshaller extend ::Forwardable - # @return [ValueMarshaller] a new instance of ValueMarshaller - # - # source://dalli//lib/dalli/protocol/value_marshaller.rb#25 + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:25 def initialize(client_options); end - # source://forwardable/1.3.3/forwardable.rb#231 - def compress_by_default?(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:23 + def compress_by_default?(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def compression_min_size(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:23 + def compression_min_size(*args, **, &block); end - # source://forwardable/1.3.3/forwardable.rb#231 - def compressor(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:23 + def compressor(*args, **, &block); end - # @raise [Dalli::ValueOverMaxSize] - # - # source://dalli//lib/dalli/protocol/value_marshaller.rb#51 + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:51 def error_if_over_max_value_bytes(key, value); end - # source://dalli//lib/dalli/protocol/value_marshaller.rb#42 + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:42 def retrieve(value, flags); end - # source://forwardable/1.3.3/forwardable.rb#231 - def serializer(*args, **_arg1, &block); end + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:22 + def serializer(*args, **, &block); end - # source://dalli//lib/dalli/protocol/value_marshaller.rb#33 + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:33 def store(key, value, options = T.unsafe(nil)); end - # source://dalli//lib/dalli/protocol/value_marshaller.rb#47 + # pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:47 def value_max_bytes; end end -# source://dalli//lib/dalli/protocol/value_marshaller.rb#15 +# pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:15 Dalli::Protocol::ValueMarshaller::DEFAULTS = T.let(T.unsafe(nil), Hash) -# source://dalli//lib/dalli/protocol/value_marshaller.rb#20 +# pkg:gem/dalli#lib/dalli/protocol/value_marshaller.rb:20 Dalli::Protocol::ValueMarshaller::OPTIONS = T.let(T.unsafe(nil), Array) # Dalli::Protocol::ValueSerializer compartmentalizes the logic for managing @@ -2107,79 +2016,65 @@ Dalli::Protocol::ValueMarshaller::OPTIONS = T.let(T.unsafe(nil), Array) # relevant options from both client and request, determining whether to # serialize/deserialize on store/retrieve, and processes bitflags as necessary. # -# source://dalli//lib/dalli/protocol/value_serializer.rb#11 +# pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:11 class Dalli::Protocol::ValueSerializer - # @return [ValueSerializer] a new instance of ValueSerializer - # - # source://dalli//lib/dalli/protocol/value_serializer.rb#24 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:24 def initialize(protocol_options); end - # @raise [UnmarshalError] - # - # source://dalli//lib/dalli/protocol/value_serializer.rb#62 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:62 def filter_argument_error(err); end - # @raise [UnmarshalError] - # - # source://dalli//lib/dalli/protocol/value_serializer.rb#68 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:68 def filter_name_error(err); end - # @raise [UnmarshalError] - # - # source://dalli//lib/dalli/protocol/value_serializer.rb#56 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:56 def filter_type_error(err); end - # source://dalli//lib/dalli/protocol/value_serializer.rb#45 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:45 def retrieve(value, bitflags); end - # Returns the value of attribute serialization_options. - # - # source://dalli//lib/dalli/protocol/value_serializer.rb#22 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:22 def serialization_options; end - # Sets the attribute serialization_options - # - # @param value the value to set the attribute serialization_options to. - # - # source://dalli//lib/dalli/protocol/value_serializer.rb#22 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:22 def serialization_options=(_arg0); end - # source://dalli//lib/dalli/protocol/value_serializer.rb#78 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:78 def serialize_value(value); end - # source://dalli//lib/dalli/protocol/value_serializer.rb#74 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:74 def serializer; end - # source://dalli//lib/dalli/protocol/value_serializer.rb#29 + # pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:29 def store(value, req_options, bitflags); end end -# source://dalli//lib/dalli/protocol/value_serializer.rb#41 +# pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:41 Dalli::Protocol::ValueSerializer::ARGUMENT_ERR_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://dalli//lib/dalli/protocol/value_serializer.rb#12 +# pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:12 Dalli::Protocol::ValueSerializer::DEFAULTS = T.let(T.unsafe(nil), Hash) # https://www.hjp.at/zettel/m/memcached_flags.rxml # Looks like most clients use bit 0 to indicate native language serialization # -# source://dalli//lib/dalli/protocol/value_serializer.rb#20 +# pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:20 Dalli::Protocol::ValueSerializer::FLAG_SERIALIZED = T.let(T.unsafe(nil), Integer) -# source://dalli//lib/dalli/protocol/value_serializer.rb#42 +# pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:42 Dalli::Protocol::ValueSerializer::NAME_ERR_STR = T.let(T.unsafe(nil), String) -# source://dalli//lib/dalli/protocol/value_serializer.rb#16 +# pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:16 Dalli::Protocol::ValueSerializer::OPTIONS = T.let(T.unsafe(nil), Array) # TODO: Some of these error messages need to be validated. It's not obvious # that all of them are actually generated by the invoked code # in current systems # -# source://dalli//lib/dalli/protocol/value_serializer.rb#40 +# pkg:gem/dalli#lib/dalli/protocol/value_serializer.rb:40 Dalli::Protocol::ValueSerializer::TYPE_ERR_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://dalli//lib/dalli.rb#34 +# pkg:gem/dalli#lib/dalli.rb:34 Dalli::QUIET = T.let(T.unsafe(nil), Symbol) # An implementation of a consistent hash ring, designed to minimize @@ -2193,106 +2088,96 @@ Dalli::QUIET = T.let(T.unsafe(nil), Symbol) # the key's hash. In this implemetation, each "point" is represented # by a Dalli::Ring::Entry. # -# source://dalli//lib/dalli/ring.rb#19 +# pkg:gem/dalli#lib/dalli/ring.rb:19 class Dalli::Ring - # @return [Ring] a new instance of Ring - # - # source://dalli//lib/dalli/ring.rb#26 + # pkg:gem/dalli#lib/dalli/ring.rb:26 def initialize(servers_arg, protocol_implementation, options); end - # source://dalli//lib/dalli/ring.rb#97 + # pkg:gem/dalli#lib/dalli/ring.rb:97 def close; end # this is the default in libmemcached # - # source://dalli//lib/dalli/ring.rb#24 + # pkg:gem/dalli#lib/dalli/ring.rb:24 def continuum; end # this is the default in libmemcached # - # source://dalli//lib/dalli/ring.rb#24 + # pkg:gem/dalli#lib/dalli/ring.rb:24 def continuum=(_arg0); end - # source://dalli//lib/dalli/ring.rb#66 + # pkg:gem/dalli#lib/dalli/ring.rb:66 def keys_grouped_by_server(key_arr); end - # source://dalli//lib/dalli/ring.rb#75 + # pkg:gem/dalli#lib/dalli/ring.rb:75 def lock; end - # source://dalli//lib/dalli/ring.rb#84 + # pkg:gem/dalli#lib/dalli/ring.rb:84 def pipeline_consume_and_ignore_responses; end - # @raise [Dalli::RingError] - # - # source://dalli//lib/dalli/ring.rb#37 + # pkg:gem/dalli#lib/dalli/ring.rb:37 def server_for_key(key); end - # source://dalli//lib/dalli/ring.rb#51 + # pkg:gem/dalli#lib/dalli/ring.rb:51 def server_from_continuum(key); end # this is the default in libmemcached # - # source://dalli//lib/dalli/ring.rb#24 + # pkg:gem/dalli#lib/dalli/ring.rb:24 def servers; end # this is the default in libmemcached # - # source://dalli//lib/dalli/ring.rb#24 + # pkg:gem/dalli#lib/dalli/ring.rb:24 def servers=(_arg0); end - # source://dalli//lib/dalli/ring.rb#93 + # pkg:gem/dalli#lib/dalli/ring.rb:93 def socket_timeout; end private - # source://dalli//lib/dalli/ring.rb#128 + # pkg:gem/dalli#lib/dalli/ring.rb:128 def build_continuum(servers); end - # source://dalli//lib/dalli/ring.rb#113 + # pkg:gem/dalli#lib/dalli/ring.rb:113 def entry_count_for(server, total_servers, total_weight); end - # source://dalli//lib/dalli/ring.rb#109 + # pkg:gem/dalli#lib/dalli/ring.rb:109 def hash_for(key); end - # source://dalli//lib/dalli/ring.rb#117 + # pkg:gem/dalli#lib/dalli/ring.rb:117 def server_for_hash_key(hash_key); end - # source://dalli//lib/dalli/ring.rb#103 + # pkg:gem/dalli#lib/dalli/ring.rb:103 def threadsafe!; end end # Represents a point in the consistent hash ring implementation. # -# source://dalli//lib/dalli/ring.rb#144 +# pkg:gem/dalli#lib/dalli/ring.rb:144 class Dalli::Ring::Entry - # @return [Entry] a new instance of Entry - # - # source://dalli//lib/dalli/ring.rb#147 + # pkg:gem/dalli#lib/dalli/ring.rb:147 def initialize(val, srv); end - # Returns the value of attribute server. - # - # source://dalli//lib/dalli/ring.rb#145 + # pkg:gem/dalli#lib/dalli/ring.rb:145 def server; end - # Returns the value of attribute value. - # - # source://dalli//lib/dalli/ring.rb#145 + # pkg:gem/dalli#lib/dalli/ring.rb:145 def value; end end # The number of entries on the continuum created per server # in an equally weighted scenario. # -# source://dalli//lib/dalli/ring.rb#22 +# pkg:gem/dalli#lib/dalli/ring.rb:22 Dalli::Ring::POINTS_PER_SERVER = T.let(T.unsafe(nil), Integer) # no server available/alive error # -# source://dalli//lib/dalli.rb#16 +# pkg:gem/dalli#lib/dalli.rb:16 class Dalli::RingError < ::Dalli::DalliError; end -# source://dalli//lib/dalli/server.rb#5 +# pkg:gem/dalli#lib/dalli/server.rb:5 Dalli::Server = Dalli::Protocol::Binary # This module contains methods for validating and normalizing the servers @@ -2316,133 +2201,142 @@ Dalli::Server = Dalli::Protocol::Binary # to a single server config string. If that normalization is not possible, then an # ArgumentError is thrown. # -# source://dalli//lib/dalli/servers_arg_normalizer.rb#26 +# pkg:gem/dalli#lib/dalli/servers_arg_normalizer.rb:26 module Dalli::ServersArgNormalizer class << self - # source://dalli//lib/dalli/servers_arg_normalizer.rb#40 + # pkg:gem/dalli#lib/dalli/servers_arg_normalizer.rb:40 def apply_defaults(arg); end # Normalizes the argument into an array of servers. # If the argument is a string, or an array containing strings, it's expected that the URIs are comma separated e.g. # "memcache1.example.com:11211,memcache2.example.com:11211,memcache3.example.com:11211" # - # source://dalli//lib/dalli/servers_arg_normalizer.rb#34 + # pkg:gem/dalli#lib/dalli/servers_arg_normalizer.rb:34 def normalize_servers(arg); end - # @raise [ArgumentError] - # - # source://dalli//lib/dalli/servers_arg_normalizer.rb#46 + # pkg:gem/dalli#lib/dalli/servers_arg_normalizer.rb:46 def validate_type(arg); end end end -# source://dalli//lib/dalli/servers_arg_normalizer.rb#28 +# pkg:gem/dalli#lib/dalli/servers_arg_normalizer.rb:28 Dalli::ServersArgNormalizer::DEFAULT_SERVERS = T.let(T.unsafe(nil), Array) -# source://dalli//lib/dalli/servers_arg_normalizer.rb#27 +# pkg:gem/dalli#lib/dalli/servers_arg_normalizer.rb:27 Dalli::ServersArgNormalizer::ENV_VAR_NAME = T.let(T.unsafe(nil), String) # Various socket implementations used by Dalli. # -# source://dalli//lib/dalli/socket.rb#10 +# pkg:gem/dalli#lib/dalli/socket.rb:10 module Dalli::Socket; end # Common methods for all socket implementations. # -# source://dalli//lib/dalli/socket.rb#14 +# pkg:gem/dalli#lib/dalli/socket.rb:14 module Dalli::Socket::InstanceMethods - # @raise [Timeout::Error] - # @return [Boolean] - # - # source://dalli//lib/dalli/socket.rb#39 + # pkg:gem/dalli#lib/dalli/socket.rb:39 def append_to_buffer?(result); end - # source://dalli//lib/dalli/socket.rb#54 + # pkg:gem/dalli#lib/dalli/socket.rb:54 def logged_options; end - # @return [Boolean] - # - # source://dalli//lib/dalli/socket.rb#46 + # pkg:gem/dalli#lib/dalli/socket.rb:46 def nonblock_timed_out?(result); end - # source://dalli//lib/dalli/socket.rb#25 + # pkg:gem/dalli#lib/dalli/socket.rb:25 def read_available; end - # source://dalli//lib/dalli/socket.rb#15 + # pkg:gem/dalli#lib/dalli/socket.rb:15 def readfull(count); end end -# source://dalli//lib/dalli/socket.rb#53 +# pkg:gem/dalli#lib/dalli/socket.rb:53 Dalli::Socket::InstanceMethods::FILTERED_OUT_OPTIONS = T.let(T.unsafe(nil), Array) -# source://dalli//lib/dalli/socket.rb#37 +# pkg:gem/dalli#lib/dalli/socket.rb:37 Dalli::Socket::InstanceMethods::WAIT_RCS = T.let(T.unsafe(nil), Array) # Wraps the below TCP socket class in the case where the client # has configured a TLS/SSL connection between Dalli and the # Memcached server. # -# source://dalli//lib/dalli/socket.rb#64 +# pkg:gem/dalli#lib/dalli/socket.rb:64 class Dalli::Socket::SSLSocket < ::OpenSSL::SSL::SSLSocket include ::Dalli::Socket::InstanceMethods - # source://dalli//lib/dalli/socket.rb#66 + # pkg:gem/dalli#lib/dalli/socket.rb:66 def options; end end # A standard TCP socket between the Dalli client and the Memcached server. # -# source://dalli//lib/dalli/socket.rb#86 +# pkg:gem/dalli#lib/dalli/socket.rb:86 class Dalli::Socket::TCP < ::TCPSocket include ::Dalli::Socket::InstanceMethods # options - supports enhanced logging in the case of a timeout # - # source://dalli//lib/dalli/socket.rb#89 + # pkg:gem/dalli#lib/dalli/socket.rb:89 def options; end # options - supports enhanced logging in the case of a timeout # - # source://dalli//lib/dalli/socket.rb#89 + # pkg:gem/dalli#lib/dalli/socket.rb:89 def options=(_arg0); end class << self - # source://dalli//lib/dalli/socket.rb#100 + # pkg:gem/dalli#lib/dalli/socket.rb:100 def create_socket_with_timeout(host, port, options); end - # source://dalli//lib/dalli/socket.rb#119 + # pkg:gem/dalli#lib/dalli/socket.rb:119 def init_socket_options(sock, options); end - # source://dalli//lib/dalli/socket.rb#91 + # pkg:gem/dalli#lib/dalli/socket.rb:91 def open(host, port, options = T.unsafe(nil)); end - # source://dalli//lib/dalli/socket.rb#135 + # pkg:gem/dalli#lib/dalli/socket.rb:165 + def unverified_problem(ssl_context); end + + # Verification comes entirely from the caller's ssl_context, and a bare + # SSLContext.new verifies nothing, so warn (once per process) when the + # certificate or the hostname won't be checked. + # + # pkg:gem/dalli#lib/dalli/socket.rb:153 + def warn_if_unverified(ssl_context); end + + # Closes the TCP socket if the handshake fails or times out, so a failed + # attempt doesn't hold a file descriptor until GC. + # + # pkg:gem/dalli#lib/dalli/socket.rb:137 def wrapping_ssl_socket(tcp_socket, host, ssl_context); end end end +# UNIX domain sockets are not supported on Windows platforms. +# +# # UNIX represents a UNIX domain socket, which is an interprocess communication # mechanism between processes on the same host. Used when the Memcached server # is running on the same machine as the Dalli client. # -# source://dalli//lib/dalli/socket.rb#160 +# pkg:gem/dalli#lib/dalli/socket.rb:190 class Dalli::Socket::UNIX < ::UNIXSocket include ::Dalli::Socket::InstanceMethods # options - supports enhanced logging in the case of a timeout # server - used to support IO.select in the pipelined getter # - # source://dalli//lib/dalli/socket.rb#165 + # pkg:gem/dalli#lib/dalli/socket.rb:195 def options; end # options - supports enhanced logging in the case of a timeout # server - used to support IO.select in the pipelined getter # - # source://dalli//lib/dalli/socket.rb#165 + # pkg:gem/dalli#lib/dalli/socket.rb:195 def options=(_arg0); end class << self - # source://dalli//lib/dalli/socket.rb#167 + # pkg:gem/dalli#lib/dalli/socket.rb:197 def open(path, options = T.unsafe(nil)); end end end @@ -2452,81 +2346,70 @@ end # # Dalli::Protocol::Binary.extend(Dalli::Threadsafe) # -# source://dalli//lib/dalli/options.rb#11 +# pkg:gem/dalli#lib/dalli/options.rb:11 module Dalli::Threadsafe - # @return [Boolean] - # - # source://dalli//lib/dalli/options.rb#22 + # pkg:gem/dalli#lib/dalli/options.rb:22 def alive?; end - # source://dalli//lib/dalli/options.rb#28 + # pkg:gem/dalli#lib/dalli/options.rb:28 def close; end - # source://dalli//lib/dalli/options.rb#60 + # pkg:gem/dalli#lib/dalli/options.rb:60 def init_threadsafe; end - # source://dalli//lib/dalli/options.rb#52 + # pkg:gem/dalli#lib/dalli/options.rb:52 def lock!; end - # source://dalli//lib/dalli/options.rb#46 + # pkg:gem/dalli#lib/dalli/options.rb:46 def pipeline_abort; end - # source://dalli//lib/dalli/options.rb#40 + # pkg:gem/dalli#lib/dalli/options.rb:40 def pipeline_next_responses; end - # source://dalli//lib/dalli/options.rb#34 + # pkg:gem/dalli#lib/dalli/options.rb:34 def pipeline_response_setup; end - # source://dalli//lib/dalli/options.rb#16 + # pkg:gem/dalli#lib/dalli/options.rb:16 def request(opcode, *args); end - # source://dalli//lib/dalli/options.rb#56 + # pkg:gem/dalli#lib/dalli/options.rb:56 def unlock!; end class << self - # @private - # - # source://dalli//lib/dalli/options.rb#12 + # pkg:gem/dalli#lib/dalli/options.rb:12 def extended(obj); end end end # application error in marshalling deserialization or decompression # -# source://dalli//lib/dalli.rb#22 +# pkg:gem/dalli#lib/dalli.rb:22 class Dalli::UnmarshalError < ::Dalli::DalliError; end -# source://dalli//lib/dalli/version.rb#4 +# pkg:gem/dalli#lib/dalli/version.rb:4 Dalli::VERSION = T.let(T.unsafe(nil), String) # payload too big for memcached # -# source://dalli//lib/dalli.rb#25 +# pkg:gem/dalli#lib/dalli.rb:25 class Dalli::ValueOverMaxSize < ::Dalli::DalliError; end module Process extend ::ConnectionPool::ForkTracker extend ::RedisClient::PIDCache::CoreExt extend ::Dalli::PIDCache::CoreExt - extend ::FFI::ModernForkTracking extend ::ActiveSupport::ForkTracker::CoreExt - extend ::Bundler::ConnectionPool::ForkTracker end -# source://dalli//lib/rack/session/dalli.rb#8 -module Rack - class << self - # source://rack/3.2.7/lib/rack/version.rb#14 - def release; end - end -end +# pkg:gem/dalli#lib/rack/session/dalli.rb:8 +module Rack; end -# source://dalli//lib/rack/session/dalli.rb#9 +# pkg:gem/dalli#lib/rack/session/dalli.rb:9 module Rack::Session; end # Rack::Session::Dalli provides memcached based session management. # -# source://dalli//lib/rack/session/dalli.rb#11 +# pkg:gem/dalli#lib/rack/session/dalli.rb:11 class Rack::Session::Dalli < ::Rack::Session::Abstract::PersistedSecure # Brings in a new Rack::Session::Dalli middleware with the given # `:memcache_server`. The server is either a hostname, or a @@ -2571,62 +2454,58 @@ class Rack::Session::Dalli < ::Rack::Session::Abstract::PersistedSecure # for more information about it and its default options (which would only # be applicable if you supplied one of the two options, but not both). # - # @return [Dalli] a new instance of Dalli - # - # source://dalli//lib/rack/session/dalli.rb#64 + # pkg:gem/dalli#lib/rack/session/dalli.rb:64 def initialize(app, options = T.unsafe(nil)); end - # Returns the value of attribute data. - # - # source://dalli//lib/rack/session/dalli.rb#12 + # pkg:gem/dalli#lib/rack/session/dalli.rb:12 def data; end - # source://dalli//lib/rack/session/dalli.rb#94 + # pkg:gem/dalli#lib/rack/session/dalli.rb:94 def delete_session(_req, sid, options); end - # source://dalli//lib/rack/session/dalli.rb#73 + # pkg:gem/dalli#lib/rack/session/dalli.rb:73 def find_session(_req, sid); end - # source://dalli//lib/rack/session/dalli.rb#82 + # pkg:gem/dalli#lib/rack/session/dalli.rb:82 def write_session(_req, sid, session, options); end private - # source://dalli//lib/rack/session/dalli.rb#135 + # pkg:gem/dalli#lib/rack/session/dalli.rb:135 def build_data_source(options); end - # source://dalli//lib/rack/session/dalli.rb#117 + # pkg:gem/dalli#lib/rack/session/dalli.rb:117 def create_sid_with_empty_session(client); end - # source://dalli//lib/rack/session/dalli.rb#170 + # pkg:gem/dalli#lib/rack/session/dalli.rb:170 def ensure_connection_pool_added!; end - # source://dalli//lib/rack/session/dalli.rb#108 + # pkg:gem/dalli#lib/rack/session/dalli.rb:108 def existing_session_for_sid(client, sid); end - # source://dalli//lib/rack/session/dalli.rb#148 + # pkg:gem/dalli#lib/rack/session/dalli.rb:148 def extract_dalli_options(options); end - # source://dalli//lib/rack/session/dalli.rb#126 + # pkg:gem/dalli#lib/rack/session/dalli.rb:126 def generate_sid_with(client); end - # source://dalli//lib/rack/session/dalli.rb#104 + # pkg:gem/dalli#lib/rack/session/dalli.rb:104 def memcached_key_from_sid(sid); end - # source://dalli//lib/rack/session/dalli.rb#157 + # pkg:gem/dalli#lib/rack/session/dalli.rb:157 def retrieve_client_options(options); end - # source://dalli//lib/rack/session/dalli.rb#163 + # pkg:gem/dalli#lib/rack/session/dalli.rb:163 def retrieve_pool_options(options); end - # source://dalli//lib/rack/session/dalli.rb#190 + # pkg:gem/dalli#lib/rack/session/dalli.rb:190 def ttl(expire_after); end - # source://dalli//lib/rack/session/dalli.rb#178 + # pkg:gem/dalli#lib/rack/session/dalli.rb:178 def with_dalli_client(result_on_error = T.unsafe(nil), &block); end end # Don't freeze this until we fix the specs/implementation # -# source://dalli//lib/rack/session/dalli.rb#16 +# pkg:gem/dalli#lib/rack/session/dalli.rb:16 Rack::Session::Dalli::DEFAULT_DALLI_OPTIONS = T.let(T.unsafe(nil), Hash) diff --git a/sorbet/rbi/gems/date@3.4.1.rbi b/sorbet/rbi/gems/date@3.4.1.rbi deleted file mode 100644 index 1dcd7c8e..00000000 --- a/sorbet/rbi/gems/date@3.4.1.rbi +++ /dev/null @@ -1,75 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `date` gem. -# Please instead update this file by running `bin/tapioca gem date`. - - -# source://date//lib/date.rb#6 -class Date - include ::Comparable - - # call-seq: - # infinite? -> false - # - # Returns +false+ - # - # @return [Boolean] - # - # source://date//lib/date.rb#13 - def infinite?; end -end - -# source://date//lib/date.rb#17 -class Date::Infinity < ::Numeric - # @return [Infinity] a new instance of Infinity - # - # source://date//lib/date.rb#19 - def initialize(d = T.unsafe(nil)); end - - # source://date//lib/date.rb#33 - def +@; end - - # source://date//lib/date.rb#32 - def -@; end - - # source://date//lib/date.rb#35 - def <=>(other); end - - # source://date//lib/date.rb#30 - def abs; end - - # source://date//lib/date.rb#51 - def coerce(other); end - - # @return [Boolean] - # - # source://date//lib/date.rb#26 - def finite?; end - - # @return [Boolean] - # - # source://date//lib/date.rb#27 - def infinite?; end - - # @return [Boolean] - # - # source://date//lib/date.rb#28 - def nan?; end - - # source://date//lib/date.rb#59 - def to_f; end - - # @return [Boolean] - # - # source://date//lib/date.rb#25 - def zero?; end - - protected - - # source://date//lib/date.rb#21 - def d; end -end - -# source://date//lib/date.rb#7 -Date::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/date@3.6.0.rbi b/sorbet/rbi/gems/date@3.6.0.rbi new file mode 100644 index 00000000..2135e86c --- /dev/null +++ b/sorbet/rbi/gems/date@3.6.0.rbi @@ -0,0 +1,391 @@ +# typed: false + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `date` gem. +# Please instead update this file by running `bin/tapioca gem date`. + + +# pkg:gem/date#lib/date.rb:4 +class Date + include ::Comparable + + # pkg:gem/date#lib/date.rb:4 + def initialize(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def +(other); end + + # pkg:gem/date#lib/date.rb:4 + def -(other); end + + # pkg:gem/date#lib/date.rb:4 + def <<(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def <=>(other); end + + # pkg:gem/date#lib/date.rb:4 + def ===(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def >>(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def ajd; end + + # pkg:gem/date#lib/date.rb:4 + def amjd; end + + # pkg:gem/date#lib/date.rb:4 + def asctime; end + + # pkg:gem/date#lib/date.rb:4 + def ctime; end + + # pkg:gem/date#lib/date.rb:4 + def cwday; end + + # pkg:gem/date#lib/date.rb:4 + def cweek; end + + # pkg:gem/date#lib/date.rb:4 + def cwyear; end + + # pkg:gem/date#lib/date.rb:4 + def day; end + + # pkg:gem/date#lib/date.rb:4 + def day_fraction; end + + # pkg:gem/date#lib/date.rb:4 + def deconstruct_keys(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def downto(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def england; end + + # pkg:gem/date#lib/date.rb:4 + def eql?(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def friday?; end + + # pkg:gem/date#lib/date.rb:4 + def gregorian; end + + # pkg:gem/date#lib/date.rb:4 + def gregorian?; end + + # pkg:gem/date#lib/date.rb:4 + def hash; end + + # pkg:gem/date#lib/date.rb:4 + def httpdate; end + + # call-seq: + # infinite? -> false + # + # Returns +false+ + # + # pkg:gem/date#lib/date.rb:13 + def infinite?; end + + # pkg:gem/date#lib/date.rb:4 + def inspect; end + + # pkg:gem/date#lib/date.rb:4 + def iso8601; end + + # pkg:gem/date#lib/date.rb:4 + def italy; end + + # pkg:gem/date#lib/date.rb:4 + def jd; end + + # pkg:gem/date#lib/date.rb:4 + def jisx0301; end + + # pkg:gem/date#lib/date.rb:4 + def julian; end + + # pkg:gem/date#lib/date.rb:4 + def julian?; end + + # pkg:gem/date#lib/date.rb:4 + def ld; end + + # pkg:gem/date#lib/date.rb:4 + def leap?; end + + # pkg:gem/date#lib/date.rb:4 + def marshal_dump; end + + # pkg:gem/date#lib/date.rb:4 + def marshal_load(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def mday; end + + # pkg:gem/date#lib/date.rb:4 + def mjd; end + + # pkg:gem/date#lib/date.rb:4 + def mon; end + + # pkg:gem/date#lib/date.rb:4 + def monday?; end + + # pkg:gem/date#lib/date.rb:4 + def month; end + + # pkg:gem/date#lib/date.rb:4 + def new_start(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def next; end + + # pkg:gem/date#lib/date.rb:4 + def next_day(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def next_month(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def next_year(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def prev_day(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def prev_month(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def prev_year(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def rfc2822; end + + # pkg:gem/date#lib/date.rb:4 + def rfc3339; end + + # pkg:gem/date#lib/date.rb:4 + def rfc822; end + + # pkg:gem/date#lib/date.rb:4 + def saturday?; end + + # pkg:gem/date#lib/date.rb:4 + def start; end + + # pkg:gem/date#lib/date.rb:4 + def step(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def strftime(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def succ; end + + # pkg:gem/date#lib/date.rb:4 + def sunday?; end + + # pkg:gem/date#lib/date.rb:4 + def thursday?; end + + # pkg:gem/date#lib/date.rb:4 + def to_date; end + + # pkg:gem/date#lib/date.rb:4 + def to_datetime; end + + # pkg:gem/date#lib/date.rb:4 + def to_s; end + + # pkg:gem/date#lib/date.rb:4 + def to_time(form = T.unsafe(nil)); end + + # pkg:gem/date#lib/date.rb:4 + def tuesday?; end + + # pkg:gem/date#lib/date.rb:4 + def upto(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def wday; end + + # pkg:gem/date#lib/date.rb:4 + def wednesday?; end + + # pkg:gem/date#lib/date.rb:4 + def xmlschema; end + + # pkg:gem/date#lib/date.rb:4 + def yday; end + + # pkg:gem/date#lib/date.rb:4 + def year; end + + private + + # pkg:gem/date#lib/date.rb:4 + def hour; end + + # pkg:gem/date#lib/date.rb:4 + def initialize_copy(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def min; end + + # pkg:gem/date#lib/date.rb:4 + def minute; end + + # pkg:gem/date#lib/date.rb:4 + def sec; end + + # pkg:gem/date#lib/date.rb:4 + def second; end + + class << self + # pkg:gem/date#lib/date.rb:4 + def _httpdate(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _iso8601(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _jisx0301(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _load(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _parse(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _rfc2822(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _rfc3339(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _rfc822(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _strptime(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def _xmlschema(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def civil(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def commercial(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def gregorian_leap?(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def httpdate(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def iso8601(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def jd(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def jisx0301(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def julian_leap?(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def leap?(_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def ordinal(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def parse(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def rfc2822(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def rfc3339(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def rfc822(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def strptime(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def today(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def valid_civil?(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def valid_commercial?(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def valid_date?(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def valid_jd?(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def valid_ordinal?(*_arg0); end + + # pkg:gem/date#lib/date.rb:4 + def xmlschema(*_arg0); end + end +end + +# pkg:gem/date#lib/date.rb:17 +class Date::Infinity < ::Numeric + # pkg:gem/date#lib/date.rb:19 + def initialize(d = T.unsafe(nil)); end + + # pkg:gem/date#lib/date.rb:33 + def +@; end + + # pkg:gem/date#lib/date.rb:32 + def -@; end + + # pkg:gem/date#lib/date.rb:35 + def <=>(other); end + + # pkg:gem/date#lib/date.rb:30 + def abs; end + + # pkg:gem/date#lib/date.rb:51 + def coerce(other); end + + # pkg:gem/date#lib/date.rb:26 + def finite?; end + + # pkg:gem/date#lib/date.rb:27 + def infinite?; end + + # pkg:gem/date#lib/date.rb:28 + def nan?; end + + # pkg:gem/date#lib/date.rb:59 + def to_f; end + + # pkg:gem/date#lib/date.rb:25 + def zero?; end + + protected + + # pkg:gem/date#lib/date.rb:21 + def d; end +end + +# pkg:gem/date#lib/date.rb:7 +Date::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/dotenv-rails@3.1.8.rbi b/sorbet/rbi/gems/dotenv-rails@3.2.0.rbi similarity index 100% rename from sorbet/rbi/gems/dotenv-rails@3.1.8.rbi rename to sorbet/rbi/gems/dotenv-rails@3.2.0.rbi diff --git a/sorbet/rbi/gems/dotenv@3.1.8.rbi b/sorbet/rbi/gems/dotenv@3.2.0.rbi similarity index 59% rename from sorbet/rbi/gems/dotenv@3.1.8.rbi rename to sorbet/rbi/gems/dotenv@3.2.0.rbi index e67e6faa..f3d5c23a 100644 --- a/sorbet/rbi/gems/dotenv@3.1.8.rbi +++ b/sorbet/rbi/gems/dotenv@3.2.0.rbi @@ -7,30 +7,24 @@ # Shim to load environment variables from `.env files into `ENV`. # -# source://dotenv//lib/dotenv/version.rb#1 +# pkg:gem/dotenv#lib/dotenv/version.rb:1 module Dotenv extend ::Dotenv - # Returns the value of attribute instrumenter. - # - # source://dotenv//lib/dotenv.rb#15 + # pkg:gem/dotenv#lib/dotenv.rb:15 def instrumenter; end - # Sets the attribute instrumenter - # - # @param value the value to set the attribute instrumenter to. - # - # source://dotenv//lib/dotenv.rb#15 + # pkg:gem/dotenv#lib/dotenv.rb:15 def instrumenter=(_arg0); end # Loads environment variables from one or more `.env` files. See `#parse` for more details. # - # source://dotenv//lib/dotenv.rb#18 + # pkg:gem/dotenv#lib/dotenv.rb:18 def load(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil)); end # Same as `#load`, but raises Errno::ENOENT if any files don't exist # - # source://dotenv//lib/dotenv.rb#27 + # pkg:gem/dotenv#lib/dotenv.rb:27 def load!(*filenames); end # Modify `ENV` for the block and restore it to its previous state afterwards. @@ -40,27 +34,23 @@ module Dotenv # # @param env [Hash] Hash of keys and values to set in `ENV` # - # source://dotenv//lib/dotenv.rb#116 + # pkg:gem/dotenv#lib/dotenv.rb:124 def modify(env = T.unsafe(nil), &block); end - # same as `#load`, but will overwrite existing values in `ENV` - # - # source://dotenv//lib/dotenv.rb#32 + # pkg:gem/dotenv#lib/dotenv.rb:35 def overload(*filenames); end - # same as `#overwrite`, but raises Errno::ENOENT if any files don't exist - # - # source://dotenv//lib/dotenv.rb#38 + # pkg:gem/dotenv#lib/dotenv.rb:41 def overload!(*filenames); end # same as `#load`, but will overwrite existing values in `ENV` # - # source://dotenv//lib/dotenv.rb#32 + # pkg:gem/dotenv#lib/dotenv.rb:32 def overwrite(*filenames); end # same as `#overwrite`, but raises Errno::ENOENT if any files don't exist # - # source://dotenv//lib/dotenv.rb#38 + # pkg:gem/dotenv#lib/dotenv.rb:38 def overwrite!(*filenames); end # Parses the given files, yielding for each file if a block is given. @@ -71,12 +61,10 @@ module Dotenv # @param block [Proc] Block to yield for each parsed `Dotenv::Environment` # @return [Hash] parsed key/value pairs # - # source://dotenv//lib/dotenv.rb#50 + # pkg:gem/dotenv#lib/dotenv.rb:50 def parse(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil), &block); end - # @raise [MissingKeys] - # - # source://dotenv//lib/dotenv.rb#126 + # pkg:gem/dotenv#lib/dotenv.rb:134 def require_keys(*keys); end # Restore `ENV` to a given state @@ -84,122 +72,114 @@ module Dotenv # @param env [Hash] Hash of keys and values to restore, defaults to the last saved state # @param safe [Boolean] Is it safe to modify `ENV`? Defaults to `true` in the main thread, otherwise raises an error. # - # source://dotenv//lib/dotenv.rb#77 + # pkg:gem/dotenv#lib/dotenv.rb:77 def restore(env = T.unsafe(nil), safe: T.unsafe(nil)); end # Save the current `ENV` to be restored later # - # source://dotenv//lib/dotenv.rb#67 + # pkg:gem/dotenv#lib/dotenv.rb:67 def save; end # Update `ENV` with the given hash of keys and values # # @param env [Hash] Hash of keys and values to set in `ENV` - # @param overwrite [Boolean] Overwrite existing `ENV` values + # @param overwrite [Boolean|:warn] Overwrite existing `ENV` values # - # source://dotenv//lib/dotenv.rb#98 + # pkg:gem/dotenv#lib/dotenv.rb:98 def update(env = T.unsafe(nil), overwrite: T.unsafe(nil)); end private - # source://dotenv//lib/dotenv.rb#134 + # pkg:gem/dotenv#lib/dotenv.rb:142 def instrument(name, payload = T.unsafe(nil), &block); end end # A diff between multiple states of ENV. # -# source://dotenv//lib/dotenv/diff.rb#3 +# pkg:gem/dotenv#lib/dotenv/diff.rb:3 class Dotenv::Diff # Create a new diff. If given a block, the state of ENV after the block will be preserved as # the final state for comparison. Otherwise, the current ENV will be the final state. # # @param a [Hash] the initial state, defaults to a snapshot of current ENV # @param b [Hash] the final state, defaults to the current ENV - # @return [Diff] a new instance of Diff # @yield [diff] a block to execute before recording the final state # - # source://dotenv//lib/dotenv/diff.rb#16 + # pkg:gem/dotenv#lib/dotenv/diff.rb:16 def initialize(a: T.unsafe(nil), b: T.unsafe(nil), &block); end # The initial state # - # source://dotenv//lib/dotenv/diff.rb#5 + # pkg:gem/dotenv#lib/dotenv/diff.rb:5 def a; end # Return a Hash of keys added with their new values # - # source://dotenv//lib/dotenv/diff.rb#24 + # pkg:gem/dotenv#lib/dotenv/diff.rb:24 def added; end # Returns true if any keys were added, removed, or changed # - # @return [Boolean] - # - # source://dotenv//lib/dotenv/diff.rb#46 + # pkg:gem/dotenv#lib/dotenv/diff.rb:46 def any?; end # The final or current state # - # source://dotenv//lib/dotenv/diff.rb#8 + # pkg:gem/dotenv#lib/dotenv/diff.rb:8 def b; end # Returns of Hash of keys changed with an array of their previous and new values # - # source://dotenv//lib/dotenv/diff.rb#34 + # pkg:gem/dotenv#lib/dotenv/diff.rb:34 def changed; end # Returns a Hash of all added, changed, and removed keys and their new values # - # source://dotenv//lib/dotenv/diff.rb#41 + # pkg:gem/dotenv#lib/dotenv/diff.rb:41 def env; end # Returns a Hash of keys removed with their previous values # - # source://dotenv//lib/dotenv/diff.rb#29 + # pkg:gem/dotenv#lib/dotenv/diff.rb:29 def removed; end private - # source://dotenv//lib/dotenv/diff.rb#52 + # pkg:gem/dotenv#lib/dotenv/diff.rb:52 def snapshot; end end # A `.env` file that will be read and parsed into a Hash # -# source://dotenv//lib/dotenv/environment.rb#3 +# pkg:gem/dotenv#lib/dotenv/environment.rb:3 class Dotenv::Environment < ::Hash # Create a new Environment # # @param filename [String] the path to the file to read # @param overwrite [Boolean] whether the parser should assume existing values will be overwritten - # @return [Environment] a new instance of Environment # - # source://dotenv//lib/dotenv/environment.rb#10 + # pkg:gem/dotenv#lib/dotenv/environment.rb:10 def initialize(filename, overwrite: T.unsafe(nil)); end - # Returns the value of attribute filename. - # - # source://dotenv//lib/dotenv/environment.rb#4 + # pkg:gem/dotenv#lib/dotenv/environment.rb:4 def filename; end - # source://dotenv//lib/dotenv/environment.rb#17 + # pkg:gem/dotenv#lib/dotenv/environment.rb:17 def load; end - # Returns the value of attribute overwrite. - # - # source://dotenv//lib/dotenv/environment.rb#4 + # pkg:gem/dotenv#lib/dotenv/environment.rb:4 def overwrite; end - # source://dotenv//lib/dotenv/environment.rb#21 + # pkg:gem/dotenv#lib/dotenv/environment.rb:21 def read; end end -# source://dotenv//lib/dotenv/missing_keys.rb#2 +# pkg:gem/dotenv#lib/dotenv/missing_keys.rb:2 class Dotenv::Error < ::StandardError; end # Error raised when encountering a syntax error while parsing a .env file. # -# source://dotenv//lib/dotenv/parser.rb#6 +# pkg:gem/dotenv#lib/dotenv/parser.rb:6 class Dotenv::FormatError < ::SyntaxError; end # Logs instrumented events @@ -209,107 +189,97 @@ class Dotenv::FormatError < ::SyntaxError; end # require "dotenv/log_subscriber" # Dotenv.instrumenter = ActiveSupport::Notifications # -# source://dotenv//lib/dotenv/log_subscriber.rb#11 +# pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:11 class Dotenv::LogSubscriber < ::ActiveSupport::LogSubscriber - # source://dotenv//lib/dotenv/log_subscriber.rb#18 + # pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:18 def load(event); end - # source://dotenv//lib/dotenv/log_subscriber.rb#14 + # pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:14 def logger; end - # source://dotenv//lib/dotenv/log_subscriber.rb#34 + # pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:34 def restore(event); end - # source://dotenv//lib/dotenv/log_subscriber.rb#30 + # pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:30 def save(event); end - # source://dotenv//lib/dotenv/log_subscriber.rb#24 + # pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:24 def update(event); end private - # source://dotenv//lib/dotenv/log_subscriber.rb#57 + # pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:57 def color_env_constant; end - # source://dotenv//lib/dotenv/log_subscriber.rb#49 + # pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:49 def color_filename(filename); end - # source://dotenv//lib/dotenv/log_subscriber.rb#53 + # pkg:gem/dotenv#lib/dotenv/log_subscriber.rb:53 def color_var(name); end end -# source://dotenv//lib/dotenv/missing_keys.rb#4 +# pkg:gem/dotenv#lib/dotenv/missing_keys.rb:4 class Dotenv::MissingKeys < ::Dotenv::Error - # @return [MissingKeys] a new instance of MissingKeys - # - # source://dotenv//lib/dotenv/missing_keys.rb#5 + # pkg:gem/dotenv#lib/dotenv/missing_keys.rb:5 def initialize(keys); end end # Parses the `.env` file format into key/value pairs. # It allows for variable substitutions, command substitutions, and exporting of variables. # -# source://dotenv//lib/dotenv/parser.rb#10 +# pkg:gem/dotenv#lib/dotenv/parser.rb:10 class Dotenv::Parser - # @return [Parser] a new instance of Parser - # - # source://dotenv//lib/dotenv/parser.rb#46 + # pkg:gem/dotenv#lib/dotenv/parser.rb:46 def initialize(string, overwrite: T.unsafe(nil)); end - # source://dotenv//lib/dotenv/parser.rb#53 + # pkg:gem/dotenv#lib/dotenv/parser.rb:53 def call; end private # Determine if a variable is already defined and should not be overwritten. # - # @return [Boolean] - # - # source://dotenv//lib/dotenv/parser.rb#76 + # pkg:gem/dotenv#lib/dotenv/parser.rb:76 def existing?(key); end - # source://dotenv//lib/dotenv/parser.rb#101 + # pkg:gem/dotenv#lib/dotenv/parser.rb:101 def expand_newlines(value); end - # source://dotenv//lib/dotenv/parser.rb#80 + # pkg:gem/dotenv#lib/dotenv/parser.rb:80 def parse_value(value); end - # source://dotenv//lib/dotenv/parser.rb#97 + # pkg:gem/dotenv#lib/dotenv/parser.rb:97 def unescape_characters(value); end class << self - # source://dotenv//lib/dotenv/parser.rb#41 - def call(*_arg0, **_arg1, &_arg2); end + # pkg:gem/dotenv#lib/dotenv/parser.rb:41 + def call(*, **, &); end - # Returns the value of attribute substitutions. - # - # source://dotenv//lib/dotenv/parser.rb#39 + # pkg:gem/dotenv#lib/dotenv/parser.rb:39 def substitutions; end end end -# source://dotenv//lib/dotenv/parser.rb#16 +# pkg:gem/dotenv#lib/dotenv/parser.rb:16 Dotenv::Parser::LINE = T.let(T.unsafe(nil), Regexp) -# source://dotenv//lib/dotenv/parser.rb#36 +# pkg:gem/dotenv#lib/dotenv/parser.rb:36 Dotenv::Parser::QUOTED_STRING = T.let(T.unsafe(nil), Regexp) # Rails integration for using Dotenv to load ENV variables from a file # -# source://dotenv//lib/dotenv/rails.rb#22 +# pkg:gem/dotenv#lib/dotenv/rails.rb:22 class Dotenv::Rails < ::Rails::Railtie - # @return [Rails] a new instance of Rails - # - # source://dotenv//lib/dotenv/rails.rb#25 + # pkg:gem/dotenv#lib/dotenv/rails.rb:25 def initialize; end - # source://dotenv//lib/dotenv/rails.rb#23 - def autorestore(*_arg0, **_arg1, &_arg2); end + # pkg:gem/dotenv#lib/dotenv/rails.rb:23 + def autorestore(*, **, &); end - # source://dotenv//lib/dotenv/rails.rb#23 + # pkg:gem/dotenv#lib/dotenv/rails.rb:23 def autorestore=(arg); end - # source://dotenv//lib/dotenv/rails.rb#83 + # pkg:gem/dotenv#lib/dotenv/rails.rb:83 def deprecator; end # The current environment that the app is running in. @@ -319,13 +289,13 @@ class Dotenv::Rails < ::Rails::Railtie # # See https://github.com/bkeepers/dotenv/issues/219 # - # source://dotenv//lib/dotenv/rails.rb#73 + # pkg:gem/dotenv#lib/dotenv/rails.rb:73 def env; end - # source://dotenv//lib/dotenv/rails.rb#23 - def files(*_arg0, **_arg1, &_arg2); end + # pkg:gem/dotenv#lib/dotenv/rails.rb:23 + def files(*, **, &); end - # source://dotenv//lib/dotenv/rails.rb#23 + # pkg:gem/dotenv#lib/dotenv/rails.rb:23 def files=(arg); end # Public: Load dotenv @@ -333,85 +303,83 @@ class Dotenv::Rails < ::Rails::Railtie # This will get called during the `before_configuration` callback, but you # can manually call `Dotenv::Rails.load` if you needed it sooner. # - # source://dotenv//lib/dotenv/rails.rb#45 + # pkg:gem/dotenv#lib/dotenv/rails.rb:45 def load; end - # source://dotenv//lib/dotenv/rails.rb#23 - def logger(*_arg0, **_arg1, &_arg2); end + # pkg:gem/dotenv#lib/dotenv/rails.rb:23 + def logger(*, **, &); end # Set a new logger and replay logs # - # source://dotenv//lib/dotenv/rails.rb#62 + # pkg:gem/dotenv#lib/dotenv/rails.rb:62 def logger=(new_logger); end - # source://dotenv//lib/dotenv/rails.rb#49 + # pkg:gem/dotenv#lib/dotenv/rails.rb:49 def overload; end - # source://dotenv//lib/dotenv/rails.rb#23 - def overwrite(*_arg0, **_arg1, &_arg2); end + # pkg:gem/dotenv#lib/dotenv/rails.rb:23 + def overwrite(*, **, &); end - # source://dotenv//lib/dotenv/rails.rb#23 + # pkg:gem/dotenv#lib/dotenv/rails.rb:23 def overwrite=(arg); end # Internal: `Rails.root` is nil in Rails 4.1 before the application is # initialized, so this falls back to the `RAILS_ROOT` environment variable, # or the current working directory. # - # source://dotenv//lib/dotenv/rails.rb#57 + # pkg:gem/dotenv#lib/dotenv/rails.rb:57 def root; end class << self # Rails uses `#method_missing` to delegate all class methods to the # instance, which means `Kernel#load` gets called here. We don't want that. # - # source://dotenv//lib/dotenv/rails.rb#89 + # pkg:gem/dotenv#lib/dotenv/rails.rb:89 def load; end end end -# source://dotenv//lib/dotenv/rails.rb#81 +# pkg:gem/dotenv#lib/dotenv/rails.rb:81 Dotenv::Rails::TEST_RAKE_TASKS = T.let(T.unsafe(nil), Regexp) -# source://dotenv//lib/dotenv/rails.rb#110 +# pkg:gem/dotenv#lib/dotenv/rails.rb:110 Dotenv::Railtie = Dotenv::Rails # A logger that can be used before the apps real logger is initialized. # -# source://dotenv//lib/dotenv/replay_logger.rb#3 +# pkg:gem/dotenv#lib/dotenv/replay_logger.rb:3 class Dotenv::ReplayLogger < ::Logger - # @return [ReplayLogger] a new instance of ReplayLogger - # - # source://dotenv//lib/dotenv/replay_logger.rb#4 + # pkg:gem/dotenv#lib/dotenv/replay_logger.rb:4 def initialize; end # Override the add method to store logs so we can replay them to a real logger later. # - # source://dotenv//lib/dotenv/replay_logger.rb#10 + # pkg:gem/dotenv#lib/dotenv/replay_logger.rb:10 def add(*args, &block); end # Replay the store logs to a real logger. # - # source://dotenv//lib/dotenv/replay_logger.rb#15 + # pkg:gem/dotenv#lib/dotenv/replay_logger.rb:15 def replay(logger); end end # An internal monitor to synchronize access to ENV in multi-threaded environments. # -# source://dotenv//lib/dotenv.rb#12 +# pkg:gem/dotenv#lib/dotenv.rb:12 Dotenv::SEMAPHORE = T.let(T.unsafe(nil), Monitor) -# source://dotenv//lib/dotenv/substitutions/variable.rb#4 +# pkg:gem/dotenv#lib/dotenv/substitutions/variable.rb:4 module Dotenv::Substitutions; end # Substitute shell commands in a value. # # SHA=$(git rev-parse HEAD) # -# source://dotenv//lib/dotenv/substitutions/command.rb#9 +# pkg:gem/dotenv#lib/dotenv/substitutions/command.rb:9 module Dotenv::Substitutions::Command class << self - # source://dotenv//lib/dotenv/substitutions/command.rb#23 - def call(value, _env); end + # pkg:gem/dotenv#lib/dotenv/substitutions/command.rb:23 + def call(value, env); end end end @@ -420,13 +388,13 @@ end # HOST=example.com # URL="https://$HOST" # -# source://dotenv//lib/dotenv/substitutions/variable.rb#10 +# pkg:gem/dotenv#lib/dotenv/substitutions/variable.rb:10 module Dotenv::Substitutions::Variable class << self - # source://dotenv//lib/dotenv/substitutions/variable.rb#21 + # pkg:gem/dotenv#lib/dotenv/substitutions/variable.rb:21 def call(value, env); end end end -# source://dotenv//lib/dotenv/version.rb#2 +# pkg:gem/dotenv#lib/dotenv/version.rb:2 Dotenv::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/down@5.4.2.rbi b/sorbet/rbi/gems/down@5.6.2.rbi similarity index 100% rename from sorbet/rbi/gems/down@5.4.2.rbi rename to sorbet/rbi/gems/down@5.6.2.rbi diff --git a/sorbet/rbi/gems/drb@2.2.1.rbi b/sorbet/rbi/gems/drb@2.2.3.rbi similarity index 56% rename from sorbet/rbi/gems/drb@2.2.1.rbi rename to sorbet/rbi/gems/drb@2.2.3.rbi index d97695d9..37cdb0af 100644 --- a/sorbet/rbi/gems/drb@2.2.1.rbi +++ b/sorbet/rbi/gems/drb@2.2.3.rbi @@ -5,9 +5,293 @@ # Please instead update this file by running `bin/tapioca gem drb`. -# for ruby-1.8.0 +# == Overview # -# source://drb//lib/drb/eq.rb#2 +# dRuby is a distributed object system for Ruby. It is written in +# pure Ruby and uses its own protocol. No add-in services are needed +# beyond those provided by the Ruby runtime, such as TCP sockets. It +# does not rely on or interoperate with other distributed object +# systems such as CORBA, RMI, or .NET. +# +# dRuby allows methods to be called in one Ruby process upon a Ruby +# object located in another Ruby process, even on another machine. +# References to objects can be passed between processes. Method +# arguments and return values are dumped and loaded in marshalled +# format. All of this is done transparently to both the caller of the +# remote method and the object that it is called upon. +# +# An object in a remote process is locally represented by a +# DRb::DRbObject instance. This acts as a sort of proxy for the +# remote object. Methods called upon this DRbObject instance are +# forwarded to its remote object. This is arranged dynamically at run +# time. There are no statically declared interfaces for remote +# objects, such as CORBA's IDL. +# +# dRuby calls made into a process are handled by a DRb::DRbServer +# instance within that process. This reconstitutes the method call, +# invokes it upon the specified local object, and returns the value to +# the remote caller. Any object can receive calls over dRuby. There +# is no need to implement a special interface, or mixin special +# functionality. Nor, in the general case, does an object need to +# explicitly register itself with a DRbServer in order to receive +# dRuby calls. +# +# One process wishing to make dRuby calls upon another process must +# somehow obtain an initial reference to an object in the remote +# process by some means other than as the return value of a remote +# method call, as there is initially no remote object reference it can +# invoke a method upon. This is done by attaching to the server by +# URI. Each DRbServer binds itself to a URI such as +# 'druby://example.com:8787'. A DRbServer can have an object attached +# to it that acts as the server's *front* *object*. A DRbObject can +# be explicitly created from the server's URI. This DRbObject's +# remote object will be the server's front object. This front object +# can then return references to other Ruby objects in the DRbServer's +# process. +# +# Method calls made over dRuby behave largely the same as normal Ruby +# method calls made within a process. Method calls with blocks are +# supported, as are raising exceptions. In addition to a method's +# standard errors, a dRuby call may also raise one of the +# dRuby-specific errors, all of which are subclasses of DRb::DRbError. +# +# Any type of object can be passed as an argument to a dRuby call or +# returned as its return value. By default, such objects are dumped +# or marshalled at the local end, then loaded or unmarshalled at the +# remote end. The remote end therefore receives a copy of the local +# object, not a distributed reference to it; methods invoked upon this +# copy are executed entirely in the remote process, not passed on to +# the local original. This has semantics similar to pass-by-value. +# +# However, if an object cannot be marshalled, a dRuby reference to it +# is passed or returned instead. This will turn up at the remote end +# as a DRbObject instance. All methods invoked upon this remote proxy +# are forwarded to the local object, as described in the discussion of +# DRbObjects. This has semantics similar to the normal Ruby +# pass-by-reference. +# +# The easiest way to signal that we want an otherwise marshallable +# object to be passed or returned as a DRbObject reference, rather +# than marshalled and sent as a copy, is to include the +# DRb::DRbUndumped mixin module. +# +# dRuby supports calling remote methods with blocks. As blocks (or +# rather the Proc objects that represent them) are not marshallable, +# the block executes in the local, not the remote, context. Each +# value yielded to the block is passed from the remote object to the +# local block, then the value returned by each block invocation is +# passed back to the remote execution context to be collected, before +# the collected values are finally returned to the local context as +# the return value of the method invocation. +# +# == Examples of usage +# +# For more dRuby samples, see the +samples+ directory in the full +# dRuby distribution. +# +# === dRuby in client/server mode +# +# This illustrates setting up a simple client-server drb +# system. Run the server and client code in different terminals, +# starting the server code first. +# +# ==== Server code +# +# require 'drb/drb' +# +# # The URI for the server to connect to +# URI="druby://localhost:8787" +# +# class TimeServer +# +# def get_current_time +# return Time.now +# end +# +# end +# +# # The object that handles requests on the server +# FRONT_OBJECT=TimeServer.new +# +# DRb.start_service(URI, FRONT_OBJECT) +# # Wait for the drb server thread to finish before exiting. +# DRb.thread.join +# +# ==== Client code +# +# require 'drb/drb' +# +# # The URI to connect to +# SERVER_URI="druby://localhost:8787" +# +# # Start a local DRbServer to handle callbacks. +# # +# # Not necessary for this small example, but will be required +# # as soon as we pass a non-marshallable object as an argument +# # to a dRuby call. +# # +# # Note: this must be called at least once per process to take any effect. +# # This is particularly important if your application forks. +# DRb.start_service +# +# timeserver = DRbObject.new_with_uri(SERVER_URI) +# puts timeserver.get_current_time +# +# === Remote objects under dRuby +# +# This example illustrates returning a reference to an object +# from a dRuby call. The Logger instances live in the server +# process. References to them are returned to the client process, +# where methods can be invoked upon them. These methods are +# executed in the server process. +# +# ==== Server code +# +# require 'drb/drb' +# +# URI="druby://localhost:8787" +# +# class Logger +# +# # Make dRuby send Logger instances as dRuby references, +# # not copies. +# include DRb::DRbUndumped +# +# def initialize(n, fname) +# @name = n +# @filename = fname +# end +# +# def log(message) +# File.open(@filename, "a") do |f| +# f.puts("#{Time.now}: #{@name}: #{message}") +# end +# end +# +# end +# +# # We have a central object for creating and retrieving loggers. +# # This retains a local reference to all loggers created. This +# # is so an existing logger can be looked up by name, but also +# # to prevent loggers from being garbage collected. A dRuby +# # reference to an object is not sufficient to prevent it being +# # garbage collected! +# class LoggerFactory +# +# def initialize(bdir) +# @basedir = bdir +# @loggers = {} +# end +# +# def get_logger(name) +# if !@loggers.has_key? name +# # make the filename safe, then declare it to be so +# fname = name.gsub(/[.\/\\\:]/, "_") +# @loggers[name] = Logger.new(name, @basedir + "/" + fname) +# end +# return @loggers[name] +# end +# +# end +# +# FRONT_OBJECT=LoggerFactory.new("/tmp/dlog") +# +# DRb.start_service(URI, FRONT_OBJECT) +# DRb.thread.join +# +# ==== Client code +# +# require 'drb/drb' +# +# SERVER_URI="druby://localhost:8787" +# +# DRb.start_service +# +# log_service=DRbObject.new_with_uri(SERVER_URI) +# +# ["loga", "logb", "logc"].each do |logname| +# +# logger=log_service.get_logger(logname) +# +# logger.log("Hello, world!") +# logger.log("Goodbye, world!") +# logger.log("=== EOT ===") +# +# end +# +# == Security +# +# As with all network services, security needs to be considered when +# using dRuby. By allowing external access to a Ruby object, you are +# not only allowing outside clients to call the methods you have +# defined for that object, but by default to execute arbitrary Ruby +# code on your server. Consider the following: +# +# # !!! UNSAFE CODE !!! +# ro = DRbObject::new_with_uri("druby://your.server.com:8989") +# class << ro +# undef :instance_eval # force call to be passed to remote object +# end +# ro.instance_eval("`rm -rf *`") +# +# The dangers posed by instance_eval and friends are such that a +# DRbServer should only be used when clients are trusted. +# +# A DRbServer can be configured with an access control list to +# selectively allow or deny access from specified IP addresses. The +# main druby distribution provides the ACL class for this purpose. In +# general, this mechanism should only be used alongside, rather than +# as a replacement for, a good firewall. +# +# == dRuby internals +# +# dRuby is implemented using three main components: a remote method +# call marshaller/unmarshaller; a transport protocol; and an +# ID-to-object mapper. The latter two can be directly, and the first +# indirectly, replaced, in order to provide different behaviour and +# capabilities. +# +# Marshalling and unmarshalling of remote method calls is performed by +# a DRb::DRbMessage instance. This uses the Marshal module to dump +# the method call before sending it over the transport layer, then +# reconstitute it at the other end. There is normally no need to +# replace this component, and no direct way is provided to do so. +# However, it is possible to implement an alternative marshalling +# scheme as part of an implementation of the transport layer. +# +# The transport layer is responsible for opening client and server +# network connections and forwarding dRuby request across them. +# Normally, it uses DRb::DRbMessage internally to manage marshalling +# and unmarshalling. The transport layer is managed by +# DRb::DRbProtocol. Multiple protocols can be installed in +# DRbProtocol at the one time; selection between them is determined by +# the scheme of a dRuby URI. The default transport protocol is +# selected by the scheme 'druby:', and implemented by +# DRb::DRbTCPSocket. This uses plain TCP/IP sockets for +# communication. An alternative protocol, using UNIX domain sockets, +# is implemented by DRb::DRbUNIXSocket in the file drb/unix.rb, and +# selected by the scheme 'drbunix:'. A sample implementation over +# HTTP can be found in the samples accompanying the main dRuby +# distribution. +# +# The ID-to-object mapping component maps dRuby object ids to the +# objects they refer to, and vice versa. The implementation to use +# can be specified as part of a DRb::DRbServer's configuration. The +# default implementation is provided by DRb::DRbIdConv. It uses an +# object's ObjectSpace id as its dRuby id. This means that the dRuby +# reference to that object only remains meaningful for the lifetime of +# the object's process and the lifetime of the object within that +# process. A modified implementation is provided by DRb::TimerIdConv +# in the file drb/timeridconv.rb. This implementation retains a local +# reference to all objects exported over dRuby for a configurable +# period of time (defaulting to ten minutes), to prevent them being +# garbage-collected within this time. Another sample implementation +# is provided in sample/name.rb in the main dRuby distribution. This +# allows objects to specify their own id or "name". A dRuby reference +# can be made persistent across processes by having each process +# register an object using the same dRuby name. +# +# pkg:gem/drb#lib/drb/eq.rb:2 module DRb private @@ -16,7 +300,7 @@ module DRb # If there is no current server, this returns the default configuration. # See #current_server and DRbServer::make_config. # - # source://drb//lib/drb/drb.rb#1832 + # pkg:gem/drb#lib/drb/drb.rb:1882 def config; end # Get the 'current' server. @@ -30,16 +314,14 @@ module DRb # If the above rule fails to find a server, a DRbServerNotFound # error is raised. # - # @raise [DRbServerNotFound] - # - # source://drb//lib/drb/drb.rb#1789 + # pkg:gem/drb#lib/drb/drb.rb:1839 def current_server; end # Retrieves the server with the given +uri+. # # See also regist_server and remove_server. # - # source://drb//lib/drb/drb.rb#1934 + # pkg:gem/drb#lib/drb/drb.rb:1984 def fetch_server(uri); end # Get the front object of the current server. @@ -47,21 +329,19 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1843 + # pkg:gem/drb#lib/drb/drb.rb:1893 def front; end # Is +uri+ the URI for the current local server? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1822 + # pkg:gem/drb#lib/drb/drb.rb:1872 def here?(uri); end # Set the default ACL to +acl+. # # See DRb::DRbServer.default_acl. # - # source://drb//lib/drb/drb.rb#1888 + # pkg:gem/drb#lib/drb/drb.rb:1938 def install_acl(acl); end # Set the default id conversion object. @@ -71,24 +351,24 @@ module DRb # # See DRbServer#default_id_conv. # - # source://drb//lib/drb/drb.rb#1880 + # pkg:gem/drb#lib/drb/drb.rb:1930 def install_id_conv(idconv); end - # source://drb//lib/drb/drb.rb#1894 + # pkg:gem/drb#lib/drb/drb.rb:1944 def mutex; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb//lib/drb/drb.rb#1776 + # pkg:gem/drb#lib/drb/drb.rb:1826 def primary_server; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb//lib/drb/drb.rb#1776 + # pkg:gem/drb#lib/drb/drb.rb:1826 def primary_server=(_arg0); end # Registers +server+ with DRb. @@ -104,12 +384,12 @@ module DRb # s = DRb::DRbServer.new # automatically calls regist_server # DRb.fetch_server s.uri #=> # # - # source://drb//lib/drb/drb.rb#1912 + # pkg:gem/drb#lib/drb/drb.rb:1962 def regist_server(server); end # Removes +server+ from the list of registered servers. # - # source://drb//lib/drb/drb.rb#1921 + # pkg:gem/drb#lib/drb/drb.rb:1971 def remove_server(server); end # Start a dRuby server locally. @@ -128,7 +408,7 @@ module DRb # # See DRbServer::new. # - # source://drb//lib/drb/drb.rb#1768 + # pkg:gem/drb#lib/drb/drb.rb:1818 def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end # Stop the local dRuby server. @@ -136,14 +416,14 @@ module DRb # This operates on the primary server. If there is no primary # server currently running, it is a noop. # - # source://drb//lib/drb/drb.rb#1801 + # pkg:gem/drb#lib/drb/drb.rb:1851 def stop_service; end # Get the thread of the primary server. # # This returns nil if there is no primary server. See #primary_server. # - # source://drb//lib/drb/drb.rb#1869 + # pkg:gem/drb#lib/drb/drb.rb:1919 def thread; end # Get a reference id for an object using the current server. @@ -151,7 +431,7 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1860 + # pkg:gem/drb#lib/drb/drb.rb:1910 def to_id(obj); end # Convert a reference into an object using the current server. @@ -159,197 +439,97 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb//lib/drb/drb.rb#1852 + # pkg:gem/drb#lib/drb/drb.rb:1902 def to_obj(ref); end # Get the URI defining the local dRuby space. # # This is the URI of the current server. See #current_server. # - # source://drb//lib/drb/drb.rb#1810 + # pkg:gem/drb#lib/drb/drb.rb:1860 def uri; end class << self - # Get the configuration of the current server. - # - # If there is no current server, this returns the default configuration. - # See #current_server and DRbServer::make_config. - # - # source://drb//lib/drb/drb.rb#1832 + # pkg:gem/drb#lib/drb/drb.rb:1887 def config; end - # Get the 'current' server. - # - # In the context of execution taking place within the main - # thread of a dRuby server (typically, as a result of a remote - # call on the server or one of its objects), the current - # server is that server. Otherwise, the current server is - # the primary server. - # - # If the above rule fails to find a server, a DRbServerNotFound - # error is raised. - # - # @raise [DRbServerNotFound] - # - # source://drb//lib/drb/drb.rb#1789 + # pkg:gem/drb#lib/drb/drb.rb:1845 def current_server; end - # Retrieves the server with the given +uri+. - # - # See also regist_server and remove_server. - # - # source://drb//lib/drb/drb.rb#1934 + # pkg:gem/drb#lib/drb/drb.rb:1987 def fetch_server(uri); end - # Get the front object of the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # source://drb//lib/drb/drb.rb#1843 + # pkg:gem/drb#lib/drb/drb.rb:1896 def front; end - # Is +uri+ the URI for the current local server? - # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1822 + # pkg:gem/drb#lib/drb/drb.rb:1876 def here?(uri); end - # Set the default ACL to +acl+. - # - # See DRb::DRbServer.default_acl. - # - # source://drb//lib/drb/drb.rb#1888 + # pkg:gem/drb#lib/drb/drb.rb:1941 def install_acl(acl); end - # Set the default id conversion object. - # - # This is expected to be an instance such as DRb::DRbIdConv that responds to - # #to_id and #to_obj that can convert objects to and from DRb references. - # - # See DRbServer#default_id_conv. - # - # source://drb//lib/drb/drb.rb#1880 + # pkg:gem/drb#lib/drb/drb.rb:1933 def install_id_conv(idconv); end - # source://drb//lib/drb/drb.rb#1894 + # pkg:gem/drb#lib/drb/drb.rb:1947 def mutex; end - # The primary local dRuby server. - # - # This is the server created by the #start_service call. - # - # source://drb//lib/drb/drb.rb#1776 + # pkg:gem/drb#lib/drb/drb.rb:1827 def primary_server; end - # The primary local dRuby server. - # - # This is the server created by the #start_service call. - # - # source://drb//lib/drb/drb.rb#1776 + # pkg:gem/drb#lib/drb/drb.rb:1827 def primary_server=(_arg0); end - # Registers +server+ with DRb. - # - # This is called when a new DRb::DRbServer is created. - # - # If there is no primary server then +server+ becomes the primary server. - # - # Example: - # - # require 'drb' - # - # s = DRb::DRbServer.new # automatically calls regist_server - # DRb.fetch_server s.uri #=> # - # - # source://drb//lib/drb/drb.rb#1912 + # pkg:gem/drb#lib/drb/drb.rb:1968 def regist_server(server); end - # Removes +server+ from the list of registered servers. - # - # source://drb//lib/drb/drb.rb#1921 + # pkg:gem/drb#lib/drb/drb.rb:1979 def remove_server(server); end - # Start a dRuby server locally. - # - # The new dRuby server will become the primary server, even - # if another server is currently the primary server. - # - # +uri+ is the URI for the server to bind to. If nil, - # the server will bind to random port on the default local host - # name and use the default dRuby protocol. - # - # +front+ is the server's front object. This may be nil. - # - # +config+ is the configuration for the new server. This may - # be nil. - # - # See DRbServer::new. - # - # source://drb//lib/drb/drb.rb#1768 + # pkg:gem/drb#lib/drb/drb.rb:1821 def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end - # Stop the local dRuby server. - # - # This operates on the primary server. If there is no primary - # server currently running, it is a noop. - # - # source://drb//lib/drb/drb.rb#1801 + # pkg:gem/drb#lib/drb/drb.rb:1855 def stop_service; end - # Get the thread of the primary server. - # - # This returns nil if there is no primary server. See #primary_server. - # - # source://drb//lib/drb/drb.rb#1869 + # pkg:gem/drb#lib/drb/drb.rb:1922 def thread; end - # Get a reference id for an object using the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # source://drb//lib/drb/drb.rb#1860 + # pkg:gem/drb#lib/drb/drb.rb:1913 def to_id(obj); end - # Convert a reference into an object using the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # source://drb//lib/drb/drb.rb#1852 + # pkg:gem/drb#lib/drb/drb.rb:1914 def to_obj(ref); end - # Get the URI defining the local dRuby space. - # - # This is the URI of the current server. See #current_server. - # - # source://drb//lib/drb/drb.rb#1810 + # pkg:gem/drb#lib/drb/drb.rb:1869 def uri; end end end +# This is an internal singleton instance. This must not be used +# by users. +# +# pkg:gem/drb#lib/drb/drb.rb:382 +DRb::DRB_OBJECT_SPACE = T.let(T.unsafe(nil), DRb::DRbObjectSpace) + # An Array wrapper that can be sent to another server via DRb. # # All entries in the array will be dumped or be references that point to # the local server. # -# source://drb//lib/drb/drb.rb#518 +# pkg:gem/drb#lib/drb/drb.rb:546 class DRb::DRbArray # Creates a new DRbArray that either dumps or wraps all the items in the # Array +ary+ so they can be loaded by a remote DRb server. # - # @return [DRbArray] a new instance of DRbArray - # - # source://drb//lib/drb/drb.rb#523 + # pkg:gem/drb#lib/drb/drb.rb:551 def initialize(ary); end - # source://drb//lib/drb/drb.rb#542 + # pkg:gem/drb#lib/drb/drb.rb:570 def _dump(lv); end class << self - # source://drb//lib/drb/drb.rb#538 + # pkg:gem/drb#lib/drb/drb.rb:566 def _load(s); end end end @@ -364,35 +544,31 @@ end # This class is used internally by DRbObject. The user does # not normally need to deal with it directly. # -# source://drb//lib/drb/drb.rb#1256 +# pkg:gem/drb#lib/drb/drb.rb:1284 class DRb::DRbConn - # @return [DRbConn] a new instance of DRbConn - # - # source://drb//lib/drb/drb.rb#1317 + # pkg:gem/drb#lib/drb/drb.rb:1345 def initialize(remote_uri); end - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1333 + # pkg:gem/drb#lib/drb/drb.rb:1361 def alive?; end - # source://drb//lib/drb/drb.rb#1328 + # pkg:gem/drb#lib/drb/drb.rb:1356 def close; end - # source://drb//lib/drb/drb.rb#1323 + # pkg:gem/drb#lib/drb/drb.rb:1351 def send_message(ref, msg_id, arg, block); end - # source://drb//lib/drb/drb.rb#1321 + # pkg:gem/drb#lib/drb/drb.rb:1349 def uri; end class << self - # source://drb//lib/drb/drb.rb#1259 + # pkg:gem/drb#lib/drb/drb.rb:1287 def make_pool; end - # source://drb//lib/drb/drb.rb#1297 + # pkg:gem/drb#lib/drb/drb.rb:1325 def open(remote_uri); end - # source://drb//lib/drb/drb.rb#1292 + # pkg:gem/drb#lib/drb/drb.rb:1320 def stop_pool; end end end @@ -407,14 +583,14 @@ end # For alternative mechanisms, see DRb::TimerIdConv in drb/timeridconv.rb # and DRbNameIdConv in sample/name.rb in the full drb distribution. # -# source://drb//lib/drb/drb.rb#360 +# pkg:gem/drb#lib/drb/drb.rb:393 class DRb::DRbIdConv # Convert an object into a reference id. # # This implementation returns the object's __id__ in the local # object space. # - # source://drb//lib/drb/drb.rb#374 + # pkg:gem/drb#lib/drb/drb.rb:407 def to_id(obj); end # Convert an object reference id to an object. @@ -422,7 +598,7 @@ class DRb::DRbIdConv # This implementation looks up the reference id in the local object # space and returns the object it refers to. # - # source://drb//lib/drb/drb.rb#366 + # pkg:gem/drb#lib/drb/drb.rb:399 def to_obj(ref); end end @@ -436,42 +612,41 @@ end # The user does not have to directly deal with this object in # normal use. # -# source://drb//lib/drb/drb.rb#556 +# pkg:gem/drb#lib/drb/drb.rb:584 class DRb::DRbMessage - # @return [DRbMessage] a new instance of DRbMessage - # - # source://drb//lib/drb/drb.rb#557 + # pkg:gem/drb#lib/drb/drb.rb:585 def initialize(config); end - # source://drb//lib/drb/drb.rb#562 + # pkg:gem/drb#lib/drb/drb.rb:590 def dump(obj, error = T.unsafe(nil)); end - # @raise [DRbConnError] - # - # source://drb//lib/drb/drb.rb#579 + # pkg:gem/drb#lib/drb/drb.rb:607 def load(soc); end - # source://drb//lib/drb/drb.rb#639 + # pkg:gem/drb#lib/drb/drb.rb:667 def recv_reply(stream); end - # @raise [DRbConnError] - # - # source://drb//lib/drb/drb.rb#619 + # pkg:gem/drb#lib/drb/drb.rb:647 def recv_request(stream); end - # source://drb//lib/drb/drb.rb#633 + # pkg:gem/drb#lib/drb/drb.rb:661 def send_reply(stream, succ, result); end - # source://drb//lib/drb/drb.rb#605 + # pkg:gem/drb#lib/drb/drb.rb:633 def send_request(stream, ref, msg_id, arg, b); end private - # source://drb//lib/drb/drb.rb#646 + # pkg:gem/drb#lib/drb/drb.rb:674 def make_proxy(obj, error = T.unsafe(nil)); end end -# source://drb//lib/drb/eq.rb#3 +# Object wrapping a reference to a remote drb object. +# +# Method calls on this object are relayed to the remote +# object that this object is a stub for. +# +# pkg:gem/drb#lib/drb/eq.rb:3 class DRb::DRbObject # Create a new remote object stub. # @@ -479,51 +654,47 @@ class DRb::DRbObject # this is +nil+. +uri+ is the URI of the remote object that this # will be a stub for. # - # @return [DRbObject] a new instance of DRbObject - # - # source://drb//lib/drb/drb.rb#1089 + # pkg:gem/drb#lib/drb/drb.rb:1117 def initialize(obj, uri = T.unsafe(nil)); end - # source://drb//lib/drb/eq.rb#4 + # pkg:gem/drb#lib/drb/eq.rb:4 def ==(other); end # Get the reference of the object, if local. # - # source://drb//lib/drb/drb.rb#1115 + # pkg:gem/drb#lib/drb/drb.rb:1143 def __drbref; end # Get the URI of the remote object. # - # source://drb//lib/drb/drb.rb#1110 + # pkg:gem/drb#lib/drb/drb.rb:1138 def __drburi; end # Marshall this object. # # The URI and ref of the object are marshalled. # - # source://drb//lib/drb/drb.rb#1080 + # pkg:gem/drb#lib/drb/drb.rb:1108 def _dump(lv); end - # source://drb//lib/drb/eq.rb#4 + # pkg:gem/drb#lib/drb/eq.rb:13 def eql?(other); end - # source://drb//lib/drb/eq.rb#9 + # pkg:gem/drb#lib/drb/eq.rb:9 def hash; end - # source://drb//lib/drb/drb.rb#1135 - def method_missing(msg_id, *a, **_arg2, &b); end + # pkg:gem/drb#lib/drb/drb.rb:1163 + def method_missing(msg_id, *a, **, &b); end - # source://drb//lib/drb/drb.rb#1187 + # pkg:gem/drb#lib/drb/drb.rb:1215 def pretty_print(q); end - # source://drb//lib/drb/drb.rb#1191 + # pkg:gem/drb#lib/drb/drb.rb:1219 def pretty_print_cycle(q); end # Routes respond_to? to the referenced remote object. # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1123 + # pkg:gem/drb#lib/drb/drb.rb:1151 def respond_to?(msg_id, priv = T.unsafe(nil)); end class << self @@ -533,33 +704,47 @@ class DRb::DRbObject # the object itself is returned. Otherwise, a new DRbObject is # created to act as a stub for the remote referenced object. # - # source://drb//lib/drb/drb.rb#1051 + # pkg:gem/drb#lib/drb/drb.rb:1079 def _load(s); end # Creates a DRb::DRbObject given the reference information to the remote # host +uri+ and object +ref+. # - # source://drb//lib/drb/drb.rb#1065 + # pkg:gem/drb#lib/drb/drb.rb:1093 def new_with(uri, ref); end # Create a new DRbObject from a URI alone. # - # source://drb//lib/drb/drb.rb#1073 + # pkg:gem/drb#lib/drb/drb.rb:1101 def new_with_uri(uri); end # Returns a modified backtrace from +result+ with the +uri+ where each call # in the backtrace came from. # - # source://drb//lib/drb/drb.rb#1173 + # pkg:gem/drb#lib/drb/drb.rb:1201 def prepare_backtrace(uri, result); end # Given the +uri+ of another host executes the block provided. # - # source://drb//lib/drb/drb.rb#1160 + # pkg:gem/drb#lib/drb/drb.rb:1188 def with_friend(uri); end end end +# pkg:gem/drb#lib/drb/drb.rb:351 +class DRb::DRbObjectSpace + include ::MonitorMixin + + # pkg:gem/drb#lib/drb/drb.rb:357 + def initialize; end + + # pkg:gem/drb#lib/drb/drb.rb:362 + def to_id(obj); end + + # pkg:gem/drb#lib/drb/drb.rb:369 + def to_obj(ref); end +end + # Module managing the underlying network protocol(s) used by drb. # # By default, drb uses the DRbTCPSocket protocol. Other protocols @@ -627,16 +812,16 @@ end # and HTTP0 in sample/http0.rb and sample/http0serv.rb in the full # drb distribution. # -# source://drb//lib/drb/drb.rb#721 +# pkg:gem/drb#lib/drb/drb.rb:749 module DRb::DRbProtocol private # Add a new protocol to the DRbProtocol module. # - # source://drb//lib/drb/drb.rb#724 + # pkg:gem/drb#lib/drb/drb.rb:752 def add_protocol(prot); end - # source://drb//lib/drb/drb.rb#802 + # pkg:gem/drb#lib/drb/drb.rb:830 def auto_load(uri); end # Open a client connection to +uri+ with the configuration +config+. @@ -647,9 +832,7 @@ module DRb::DRbProtocol # URI, then a DRbBadURI error is raised. If a protocol accepts the # URI, but an error occurs in opening it, a DRbConnError is raised. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#736 + # pkg:gem/drb#lib/drb/drb.rb:764 def open(uri, config, first = T.unsafe(nil)); end # Open a server listening for connections at +uri+ with @@ -662,9 +845,7 @@ module DRb::DRbProtocol # accepts the URI, but an error occurs in opening it, the underlying # error is passed on to the caller. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#764 + # pkg:gem/drb#lib/drb/drb.rb:792 def open_server(uri, config, first = T.unsafe(nil)); end # Parse +uri+ into a [uri, option] pair. @@ -674,80 +855,55 @@ module DRb::DRbProtocol # URI by raising a DRbBadScheme error. If no protocol recognises the # URI, then a DRbBadURI error is raised. # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#785 + # pkg:gem/drb#lib/drb/drb.rb:813 def uri_option(uri, config, first = T.unsafe(nil)); end class << self - # Add a new protocol to the DRbProtocol module. - # - # source://drb//lib/drb/drb.rb#724 + # pkg:gem/drb#lib/drb/drb.rb:755 def add_protocol(prot); end - # source://drb//lib/drb/drb.rb#802 + # pkg:gem/drb#lib/drb/drb.rb:835 def auto_load(uri); end - # Open a client connection to +uri+ with the configuration +config+. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to open the URI. Each protocol signals that it does not handle that - # URI by raising a DRbBadScheme error. If no protocol recognises the - # URI, then a DRbBadURI error is raised. If a protocol accepts the - # URI, but an error occurs in opening it, a DRbConnError is raised. - # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#736 + # pkg:gem/drb#lib/drb/drb.rb:781 def open(uri, config, first = T.unsafe(nil)); end - # Open a server listening for connections at +uri+ with - # configuration +config+. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to open a server at the URI. Each protocol signals that it does - # not handle that URI by raising a DRbBadScheme error. If no protocol - # recognises the URI, then a DRbBadURI error is raised. If a protocol - # accepts the URI, but an error occurs in opening it, the underlying - # error is passed on to the caller. - # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#764 + # pkg:gem/drb#lib/drb/drb.rb:805 def open_server(uri, config, first = T.unsafe(nil)); end - # Parse +uri+ into a [uri, option] pair. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to parse the URI. Each protocol signals that it does not handle that - # URI by raising a DRbBadScheme error. If no protocol recognises the - # URI, then a DRbBadURI error is raised. - # - # @raise [DRbBadURI] - # - # source://drb//lib/drb/drb.rb#785 + # pkg:gem/drb#lib/drb/drb.rb:828 def uri_option(uri, config, first = T.unsafe(nil)); end end end # An exception wrapping an error object # -# source://drb//lib/drb/drb.rb#431 +# pkg:gem/drb#lib/drb/drb.rb:459 class DRb::DRbRemoteError < ::DRb::DRbError # Creates a new remote error that wraps the Exception +error+ # - # @return [DRbRemoteError] a new instance of DRbRemoteError - # - # source://drb//lib/drb/drb.rb#434 + # pkg:gem/drb#lib/drb/drb.rb:462 def initialize(error); end # the class of the error, as a string. # - # source://drb//lib/drb/drb.rb#441 + # pkg:gem/drb#lib/drb/drb.rb:469 def reason; end end -# source://drb//lib/drb/drb.rb#1350 +# Class representing a drb server instance. +# +# A DRbServer must be running in the local process before any incoming +# dRuby calls can be accepted, or any local objects can be passed as +# dRuby references to remote processes, even if those local objects are +# never actually called remotely. You do not need to start a DRbServer +# in the local process if you are only making outgoing dRuby calls +# passing marshalled parameters. +# +# Unless multiple servers are being used, the local DRbServer is normally +# started by calling DRb.start_service. +# +# pkg:gem/drb#lib/drb/drb.rb:1378 class DRb::DRbServer # Create a new DRbServer instance. # @@ -792,16 +948,12 @@ class DRb::DRbServer # # The server will immediately start running in its own thread. # - # @return [DRbServer] a new instance of DRbServer - # - # source://drb//lib/drb/drb.rb#1451 + # pkg:gem/drb#lib/drb/drb.rb:1479 def initialize(uri = T.unsafe(nil), front = T.unsafe(nil), config_or_acl = T.unsafe(nil)); end # Is this server alive? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1506 + # pkg:gem/drb#lib/drb/drb.rb:1534 def alive?; end # Check that a method is callable via dRuby. @@ -813,14 +965,12 @@ class DRb::DRbServer # SecurityError is thrown. If the method is private or undefined, # a NameError is thrown. # - # @raise [ArgumentError] - # - # source://drb//lib/drb/drb.rb#1594 + # pkg:gem/drb#lib/drb/drb.rb:1622 def check_insecure_method(obj, msg_id); end # The configuration of this DRbServer # - # source://drb//lib/drb/drb.rb#1493 + # pkg:gem/drb#lib/drb/drb.rb:1521 def config; end # The front object of the DRbServer. @@ -828,19 +978,17 @@ class DRb::DRbServer # This object receives remote method calls made on the server's # URI alone, with an object id. # - # source://drb//lib/drb/drb.rb#1490 + # pkg:gem/drb#lib/drb/drb.rb:1518 def front; end # Is +uri+ the URI for this server? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1511 + # pkg:gem/drb#lib/drb/drb.rb:1539 def here?(uri); end # Stop this server. # - # source://drb//lib/drb/drb.rb#1516 + # pkg:gem/drb#lib/drb/drb.rb:1544 def stop_service; end # The main thread of this DRbServer. @@ -849,36 +997,36 @@ class DRb::DRbServer # from clients, not that handles each client's request-response # session. # - # source://drb//lib/drb/drb.rb#1484 + # pkg:gem/drb#lib/drb/drb.rb:1512 def thread; end # Convert a local object to a dRuby reference. # - # source://drb//lib/drb/drb.rb#1533 + # pkg:gem/drb#lib/drb/drb.rb:1561 def to_id(obj); end # Convert a dRuby reference to the local object it refers to. # - # source://drb//lib/drb/drb.rb#1526 + # pkg:gem/drb#lib/drb/drb.rb:1554 def to_obj(ref); end # The URI of this DRbServer. # - # source://drb//lib/drb/drb.rb#1477 + # pkg:gem/drb#lib/drb/drb.rb:1505 def uri; end # Get whether the server is in verbose mode. # # In verbose mode, failed calls are logged to stdout. # - # source://drb//lib/drb/drb.rb#1503 + # pkg:gem/drb#lib/drb/drb.rb:1531 def verbose; end # Set whether to operate in verbose mode. # # In verbose mode, failed calls are logged to stdout. # - # source://drb//lib/drb/drb.rb#1498 + # pkg:gem/drb#lib/drb/drb.rb:1526 def verbose=(v); end private @@ -886,17 +1034,15 @@ class DRb::DRbServer # Coerce an object to a string, providing our own representation if # to_s is not defined for the object. # - # source://drb//lib/drb/drb.rb#1580 + # pkg:gem/drb#lib/drb/drb.rb:1608 def any_to_s(obj); end - # source://drb//lib/drb/drb.rb#1696 + # pkg:gem/drb#lib/drb/drb.rb:1746 def error_print(exception); end # Has a method been included in the list of insecure methods? # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1574 + # pkg:gem/drb#lib/drb/drb.rb:1602 def insecure_method?(msg_id); end # The main loop performed by a DRbServer's internal thread. @@ -907,15 +1053,15 @@ class DRb::DRbServer # returning responses, until the client closes the connection # or a local method call fails. # - # source://drb//lib/drb/drb.rb#1714 + # pkg:gem/drb#lib/drb/drb.rb:1764 def main_loop; end # Starts the DRb main loop in a new thread. # - # source://drb//lib/drb/drb.rb#1555 + # pkg:gem/drb#lib/drb/drb.rb:1583 def run; end - # source://drb//lib/drb/drb.rb#1540 + # pkg:gem/drb#lib/drb/drb.rb:1568 def shutdown; end class << self @@ -923,89 +1069,82 @@ class DRb::DRbServer # # See also DRb::ACL and #new() # - # source://drb//lib/drb/drb.rb#1375 + # pkg:gem/drb#lib/drb/drb.rb:1403 def default_acl(acl); end # Set the default value for the :argc_limit option. # # See #new(). The initial default value is 256. # - # source://drb//lib/drb/drb.rb#1361 + # pkg:gem/drb#lib/drb/drb.rb:1389 def default_argc_limit(argc); end # Set the default value for the :id_conv option. # # See #new(). The initial default value is a DRbIdConv instance. # - # source://drb//lib/drb/drb.rb#1382 + # pkg:gem/drb#lib/drb/drb.rb:1410 def default_id_conv(idconv); end # Set the default value for the :load_limit option. # # See #new(). The initial default value is 25 MB. # - # source://drb//lib/drb/drb.rb#1368 + # pkg:gem/drb#lib/drb/drb.rb:1396 def default_load_limit(sz); end - # source://drb//lib/drb/drb.rb#1398 + # pkg:gem/drb#lib/drb/drb.rb:1426 def make_config(hash = T.unsafe(nil)); end # Get the default value of the :verbose option. # - # source://drb//lib/drb/drb.rb#1394 + # pkg:gem/drb#lib/drb/drb.rb:1422 def verbose; end # Set the default value of the :verbose option. # # See #new(). The initial default value is false. # - # source://drb//lib/drb/drb.rb#1389 + # pkg:gem/drb#lib/drb/drb.rb:1417 def verbose=(on); end end end -# source://drb//lib/drb/drb.rb#1624 +# pkg:gem/drb#lib/drb/drb.rb:1652 class DRb::DRbServer::InvokeMethod - include ::DRb::DRbServer::InvokeMethod18Mixin - - # @return [InvokeMethod] a new instance of InvokeMethod - # - # source://drb//lib/drb/drb.rb#1625 + # pkg:gem/drb#lib/drb/drb.rb:1653 def initialize(drb_server, client); end - # source://drb//lib/drb/drb.rb#1630 + # pkg:gem/drb#lib/drb/drb.rb:1658 def perform; end private - # source://drb//lib/drb/drb.rb#1667 + # pkg:gem/drb#lib/drb/drb.rb:1704 + def block_yield(x); end + + # pkg:gem/drb#lib/drb/drb.rb:1695 def check_insecure_method; end - # source://drb//lib/drb/drb.rb#1659 + # pkg:gem/drb#lib/drb/drb.rb:1687 def init_with_client; end - # source://drb//lib/drb/drb.rb#1676 + # pkg:gem/drb#lib/drb/drb.rb:1711 + def perform_with_block; end + + # pkg:gem/drb#lib/drb/drb.rb:1731 def perform_without_block; end - # source://drb//lib/drb/drb.rb#1671 + # pkg:gem/drb#lib/drb/drb.rb:1699 def setup_message; end end -# source://drb//lib/drb/invokemethod.rb#6 -module DRb::DRbServer::InvokeMethod18Mixin - # source://drb//lib/drb/invokemethod.rb#7 - def block_yield(x); end - - # source://drb//lib/drb/invokemethod.rb#14 - def perform_with_block; end -end - # The default drb protocol which communicates over a TCP socket. # # The DRb TCP protocol URI looks like: # druby://:?. The option is optional. # -# source://drb//lib/drb/drb.rb#815 +# pkg:gem/drb#lib/drb/drb.rb:843 class DRb::DRbTCPSocket # Create a new DRbTCPSocket instance. # @@ -1013,23 +1152,19 @@ class DRb::DRbTCPSocket # +soc+ is the tcp socket we are bound to. +config+ is our # configuration. # - # @return [DRbTCPSocket] a new instance of DRbTCPSocket - # - # source://drb//lib/drb/drb.rb#903 + # pkg:gem/drb#lib/drb/drb.rb:931 def initialize(uri, soc, config = T.unsafe(nil)); end # On the server side, for an instance returned by #open_server, # accept a client connection and return a new instance to handle # the server's side of this client-server session. # - # source://drb//lib/drb/drb.rb#971 + # pkg:gem/drb#lib/drb/drb.rb:999 def accept; end # Check to see if this connection is alive. # - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1001 + # pkg:gem/drb#lib/drb/drb.rb:1029 def alive?; end # Close the connection. @@ -1039,65 +1174,65 @@ class DRb::DRbTCPSocket # returned by #open or by #accept, then it closes this particular # client-server session. # - # source://drb//lib/drb/drb.rb#953 + # pkg:gem/drb#lib/drb/drb.rb:981 def close; end # Get the address of our TCP peer (the other end of the socket # we are bound to. # - # source://drb//lib/drb/drb.rb#918 + # pkg:gem/drb#lib/drb/drb.rb:946 def peeraddr; end # On the client side, receive a reply from the server. # - # source://drb//lib/drb/drb.rb#941 + # pkg:gem/drb#lib/drb/drb.rb:969 def recv_reply; end # On the server side, receive a request from the client. # - # source://drb//lib/drb/drb.rb#931 + # pkg:gem/drb#lib/drb/drb.rb:959 def recv_request; end # On the server side, send a reply to the client. # - # source://drb//lib/drb/drb.rb#936 + # pkg:gem/drb#lib/drb/drb.rb:964 def send_reply(succ, result); end # On the client side, send a request to the server. # - # source://drb//lib/drb/drb.rb#926 + # pkg:gem/drb#lib/drb/drb.rb:954 def send_request(ref, msg_id, arg, b); end - # source://drb//lib/drb/drb.rb#1010 + # pkg:gem/drb#lib/drb/drb.rb:1038 def set_sockopt(soc); end # Graceful shutdown # - # source://drb//lib/drb/drb.rb#996 + # pkg:gem/drb#lib/drb/drb.rb:1024 def shutdown; end # Get the socket. # - # source://drb//lib/drb/drb.rb#923 + # pkg:gem/drb#lib/drb/drb.rb:951 def stream; end # Get the URI that we are connected to. # - # source://drb//lib/drb/drb.rb#914 + # pkg:gem/drb#lib/drb/drb.rb:942 def uri; end private - # source://drb//lib/drb/drb.rb#986 + # pkg:gem/drb#lib/drb/drb.rb:1014 def accept_or_shutdown; end - # source://drb//lib/drb/drb.rb#962 + # pkg:gem/drb#lib/drb/drb.rb:990 def close_shutdown_pipe; end class << self # Returns the hostname of this server # - # source://drb//lib/drb/drb.rb#845 + # pkg:gem/drb#lib/drb/drb.rb:873 def getservername; end # Open a client connection to +uri+ (DRb URI string) using configuration @@ -1107,28 +1242,28 @@ class DRb::DRbTCPSocket # recognized protocol. See DRb::DRbServer.new for information on built-in # URI protocols. # - # source://drb//lib/drb/drb.rb#838 + # pkg:gem/drb#lib/drb/drb.rb:866 def open(uri, config); end # Open a server listening for connections at +uri+ using # configuration +config+. # - # source://drb//lib/drb/drb.rb#876 + # pkg:gem/drb#lib/drb/drb.rb:904 def open_server(uri, config); end # For the families available for +host+, returns a TCPServer on +port+. # If +port+ is 0 the first available port is used. IPv4 servers are # preferred over IPv6 servers. # - # source://drb//lib/drb/drb.rb#861 + # pkg:gem/drb#lib/drb/drb.rb:889 def open_server_inaddr_any(host, port); end - # source://drb//lib/drb/drb.rb#818 + # pkg:gem/drb#lib/drb/drb.rb:846 def parse_uri(uri); end # Parse +uri+ into a [uri, option] pair. # - # source://drb//lib/drb/drb.rb#893 + # pkg:gem/drb#lib/drb/drb.rb:921 def uri_option(uri, config); end end end @@ -1138,69 +1273,63 @@ end # DRb UNIX socket URIs look like drbunix:?. The # option is optional. # -# source://drb//lib/drb/unix.rb#15 +# pkg:gem/drb#lib/drb/unix.rb:15 class DRb::DRbUNIXSocket < ::DRb::DRbTCPSocket - # @return [DRbUNIXSocket] a new instance of DRbUNIXSocket - # - # source://drb//lib/drb/unix.rb#62 + # pkg:gem/drb#lib/drb/unix.rb:62 def initialize(uri, soc, config = T.unsafe(nil), server_mode = T.unsafe(nil)); end - # source://drb//lib/drb/unix.rb#105 + # pkg:gem/drb#lib/drb/unix.rb:105 def accept; end - # source://drb//lib/drb/unix.rb#95 + # pkg:gem/drb#lib/drb/unix.rb:95 def close; end - # source://drb//lib/drb/unix.rb#111 + # pkg:gem/drb#lib/drb/unix.rb:111 def set_sockopt(soc); end class << self - # source://drb//lib/drb/unix.rb#28 + # pkg:gem/drb#lib/drb/unix.rb:28 def open(uri, config); end - # source://drb//lib/drb/unix.rb#34 + # pkg:gem/drb#lib/drb/unix.rb:34 def open_server(uri, config); end # :stopdoc: # - # source://drb//lib/drb/unix.rb#17 + # pkg:gem/drb#lib/drb/unix.rb:17 def parse_uri(uri); end - # source://drb//lib/drb/unix.rb#72 + # pkg:gem/drb#lib/drb/unix.rb:72 def temp_server; end - # source://drb//lib/drb/unix.rb#57 + # pkg:gem/drb#lib/drb/unix.rb:57 def uri_option(uri, config); end end end # import from tempfile.rb # -# source://drb//lib/drb/unix.rb#70 +# pkg:gem/drb#lib/drb/unix.rb:70 DRb::DRbUNIXSocket::Max_try = T.let(T.unsafe(nil), Integer) -# source://drb//lib/drb/drb.rb#1021 +# pkg:gem/drb#lib/drb/drb.rb:1049 class DRb::DRbURIOption - # @return [DRbURIOption] a new instance of DRbURIOption - # - # source://drb//lib/drb/drb.rb#1022 + # pkg:gem/drb#lib/drb/drb.rb:1050 def initialize(option); end - # source://drb//lib/drb/drb.rb#1028 + # pkg:gem/drb#lib/drb/drb.rb:1056 def ==(other); end - # source://drb//lib/drb/drb.rb#1028 + # pkg:gem/drb#lib/drb/drb.rb:1065 def eql?(other); end - # source://drb//lib/drb/drb.rb#1033 + # pkg:gem/drb#lib/drb/drb.rb:1061 def hash; end - # Returns the value of attribute option. - # - # source://drb//lib/drb/drb.rb#1025 + # pkg:gem/drb#lib/drb/drb.rb:1053 def option; end - # source://drb//lib/drb/drb.rb#1026 + # pkg:gem/drb#lib/drb/drb.rb:1054 def to_s; end end @@ -1211,11 +1340,9 @@ end # and a reference to the object is returned, rather than the # object being marshalled and moved into the client space. # -# source://drb//lib/drb/drb.rb#390 +# pkg:gem/drb#lib/drb/drb.rb:418 module DRb::DRbUndumped - # @raise [TypeError] - # - # source://drb//lib/drb/drb.rb#391 + # pkg:gem/drb#lib/drb/drb.rb:419 def _dump(dummy); end end @@ -1233,7 +1360,7 @@ end # +name+ attribute. The marshalled object is held in the +buf+ # attribute. # -# source://drb//lib/drb/drb.rb#457 +# pkg:gem/drb#lib/drb/drb.rb:485 class DRb::DRbUnknown # Create a new DRbUnknown object. # @@ -1242,22 +1369,20 @@ class DRb::DRbUnknown # when the unmarshalling failed. It is used to determine the # name of the unmarshalled object. # - # @return [DRbUnknown] a new instance of DRbUnknown - # - # source://drb//lib/drb/drb.rb#465 + # pkg:gem/drb#lib/drb/drb.rb:493 def initialize(err, buf); end - # source://drb//lib/drb/drb.rb#494 + # pkg:gem/drb#lib/drb/drb.rb:522 def _dump(lv); end # Buffer contained the marshalled, unknown object. # - # source://drb//lib/drb/drb.rb#484 + # pkg:gem/drb#lib/drb/drb.rb:512 def buf; end # Create a DRbUnknownError exception containing this object. # - # source://drb//lib/drb/drb.rb#508 + # pkg:gem/drb#lib/drb/drb.rb:536 def exception; end # The name of the unknown thing. @@ -1265,7 +1390,7 @@ class DRb::DRbUnknown # Class name for unknown objects; variable name for unknown # constants. # - # source://drb//lib/drb/drb.rb#481 + # pkg:gem/drb#lib/drb/drb.rb:509 def name; end # Attempt to load the wrapped marshalled object again. @@ -1274,74 +1399,68 @@ class DRb::DRbUnknown # will be unmarshalled and returned. Otherwise, a new # but identical DRbUnknown object will be returned. # - # source://drb//lib/drb/drb.rb#503 + # pkg:gem/drb#lib/drb/drb.rb:531 def reload; end class << self - # source://drb//lib/drb/drb.rb#486 + # pkg:gem/drb#lib/drb/drb.rb:514 def _load(s); end end end # An exception wrapping a DRb::DRbUnknown object # -# source://drb//lib/drb/drb.rb#410 +# pkg:gem/drb#lib/drb/drb.rb:438 class DRb::DRbUnknownError < ::DRb::DRbError # Create a new DRbUnknownError for the DRb::DRbUnknown object +unknown+ # - # @return [DRbUnknownError] a new instance of DRbUnknownError - # - # source://drb//lib/drb/drb.rb#413 + # pkg:gem/drb#lib/drb/drb.rb:441 def initialize(unknown); end - # source://drb//lib/drb/drb.rb#425 + # pkg:gem/drb#lib/drb/drb.rb:453 def _dump(lv); end # Get the wrapped DRb::DRbUnknown object. # - # source://drb//lib/drb/drb.rb#419 + # pkg:gem/drb#lib/drb/drb.rb:447 def unknown; end class << self - # source://drb//lib/drb/drb.rb#421 + # pkg:gem/drb#lib/drb/drb.rb:449 def _load(s); end end end -# source://drb//lib/drb/drb.rb#1199 +# pkg:gem/drb#lib/drb/drb.rb:1227 class DRb::ThreadObject include ::MonitorMixin - # @return [ThreadObject] a new instance of ThreadObject - # - # source://drb//lib/drb/drb.rb#1202 + # pkg:gem/drb#lib/drb/drb.rb:1230 def initialize(&blk); end - # source://drb//lib/drb/drb.rb#1237 + # pkg:gem/drb#lib/drb/drb.rb:1265 def _execute; end - # @return [Boolean] - # - # source://drb//lib/drb/drb.rb#1213 + # pkg:gem/drb#lib/drb/drb.rb:1241 def alive?; end - # source://drb//lib/drb/drb.rb#1217 + # pkg:gem/drb#lib/drb/drb.rb:1245 def kill; end - # source://drb//lib/drb/drb.rb#1222 + # pkg:gem/drb#lib/drb/drb.rb:1250 def method_missing(msg, *arg, &blk); end end -# source://drb//lib/drb/version.rb#2 +# pkg:gem/drb#lib/drb/version.rb:2 DRb::VERSION = T.let(T.unsafe(nil), String) -# source://drb//lib/drb/drb.rb#1943 +# pkg:gem/drb#lib/drb/drb.rb:1993 DRbIdConv = DRb::DRbIdConv # :stopdoc: # -# source://drb//lib/drb/drb.rb#1941 +# pkg:gem/drb#lib/drb/drb.rb:1991 DRbObject = DRb::DRbObject -# source://drb//lib/drb/drb.rb#1942 +# pkg:gem/drb#lib/drb/drb.rb:1992 DRbUndumped = DRb::DRbUndumped diff --git a/sorbet/rbi/gems/erb@6.0.7.rbi b/sorbet/rbi/gems/erb@6.0.7.rbi new file mode 100644 index 00000000..3b7041d3 --- /dev/null +++ b/sorbet/rbi/gems/erb@6.0.7.rbi @@ -0,0 +1,1580 @@ +# typed: false + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `erb` gem. +# Please instead update this file by running `bin/tapioca gem erb`. + + +# :markup: markdown +# +# Class **ERB** (the name stands for **Embedded Ruby**) +# is an easy-to-use, but also very powerful, [template processor][template processor]. +# +# ## Usage +# +# Before you can use \ERB, you must first require it +# (examples on this page assume that this has been done): +# +# ``` +# require 'erb' +# ``` +# +# ## In Brief +# +# Here's how \ERB works: +# +# - You can create a *template*: a plain-text string that includes specially formatted *tags*. +# - You can create an \ERB object to store the template. +# - You can call instance method ERB#result to get the *result*. +# +# \ERB supports tags of three kinds: +# +# - [Expression tags][expression tags]: +# each begins with `'<%='`, ends with `'%>'`; contains a Ruby expression; +# in the result, the value of the expression replaces the entire tag: +# +# ``` +# template = 'The magic word is <%= magic_word %>.' +# erb = ERB.new(template) +# magic_word = 'xyzzy' +# erb.result(binding) # => "The magic word is xyzzy." +# ``` +# +# The above call to #result passes argument `binding`, +# which contains the binding of variable `magic_word` to its string value `'xyzzy'`. +# +# The below call to #result need not pass a binding, +# because its expression `Date::DAYNAMES` is globally defined. +# +# ``` +# ERB.new('Today is <%= Date::DAYNAMES[Date.today.wday] %>.').result # => "Today is Monday." +# ``` +# +# - [Execution tags][execution tags]: +# each begins with `'<%'`, ends with `'%>'`; contains Ruby code to be executed: +# +# ``` +# template = '<% File.write("t.txt", "Some stuff.") %>' +# ERB.new(template).result +# File.read('t.txt') # => "Some stuff." +# ``` +# +# - [Comment tags][comment tags]: +# each begins with `'<%#'`, ends with `'%>'`; contains comment text; +# in the result, the entire tag is omitted. +# +# ``` +# template = 'Some stuff;<%# Note to self: figure out what the stuff is. %> more stuff.' +# ERB.new(template).result # => "Some stuff; more stuff." +# ``` +# +# ## Some Simple Examples +# +# Here's a simple example of \ERB in action: +# +# ``` +# template = 'The time is <%= Time.now %>.' +# erb = ERB.new(template) +# erb.result +# # => "The time is 2025-09-09 10:49:26 -0500." +# ``` +# +# Details: +# +# 1. A plain-text string is assigned to variable `template`. +# Its embedded [expression tag][expression tags] `'<%= Time.now %>'` includes a Ruby expression, `Time.now`. +# 2. The string is put into a new \ERB object, and stored in variable `erb`. +# 3. Method call `erb.result` generates a string that contains the run-time value of `Time.now`, +# as computed at the time of the call. +# +# The \ERB object may be re-used: +# +# ``` +# erb.result +# # => "The time is 2025-09-09 10:49:33 -0500." +# ``` +# +# Another example: +# +# ``` +# template = 'The magic word is <%= magic_word %>.' +# erb = ERB.new(template) +# magic_word = 'abracadabra' +# erb.result(binding) +# # => "The magic word is abracadabra." +# ``` +# +# Details: +# +# 1. As before, a plain-text string is assigned to variable `template`. +# Its embedded [expression tag][expression tags] `'<%= magic_word %>'` has a variable *name*, `magic_word`. +# 2. The string is put into a new \ERB object, and stored in variable `erb`; +# note that `magic_word` need not be defined before the \ERB object is created. +# 3. `magic_word = 'abracadabra'` assigns a value to variable `magic_word`. +# 4. Method call `erb.result(binding)` generates a string +# that contains the *value* of `magic_word`. +# +# As before, the \ERB object may be re-used: +# +# ``` +# magic_word = 'xyzzy' +# erb.result(binding) +# # => "The magic word is xyzzy." +# ``` +# +# ## Bindings +# +# A call to method #result, which produces the formatted result string, +# requires a [`Binding` object][binding object] as its argument. +# +# The binding object provides the bindings for expressions in [expression tags][expression tags]. +# +# There are three ways to provide the required binding: +# +# - [Default binding][default binding] +# - [Local binding][local binding] +# - [Augmented binding][augmented binding] +# +# ### Default Binding +# +# When you pass no `binding` argument to method #result, +# the method uses its default binding: the one returned by method #new_toplevel. +# This binding has the bindings defined by Ruby itself, +# which are those for Ruby's constants and variables. +# +# That binding is sufficient for an expression tag that refers only to Ruby's constants and variables; +# these expression tags refer only to Ruby's global constant `RUBY_COPYRIGHT` and global variable `$0`: +# +# ``` +# template = <